Commit e9d7bc82 authored by changi67's avatar changi67

~indent~ No changes

parent 1a5c6dfc
......@@ -31,145 +31,143 @@
</div>
{tabset name='tabs_articletypes'}
{tab name="{tr}List of article types{/tr}"}
<form enctype="multipart/form-data" action="tiki-article_types.php" method="post">
{section name=user loop=$types}
<h3>{tr}{$types[user].type|escape}{/tr}</h3>
<a class="link" href="tiki-view_articles.php?type={$types[user].type|escape:url}">{tr}view articles with this type{/tr}</a>
<table class="normal">
<tr>
<th>{tr}Articles{/tr}</th>
<th>{tr}Author Rating{/tr}</th>
<th>{tr}Show before publish date{/tr}</th>
<th>{tr}Show after expire date{/tr}</th>
<th>{tr}Heading only{/tr}</th>
<th>{tr}Comments{/tr}</th>
<th>{tr}Comment Can Rate Article{/tr}</th>
<th>{tr}Show image{/tr}</th>
<th>{tr}Show avatar{/tr}</th>
<th>{tr}Show author{/tr}</th>
<th>{tr}Show publish date{/tr}</th>
</tr>
{cycle print=false values="even,odd"}
<input type="hidden" name="type_array[{$types[user].type|escape}]" />
<tr class="{cycle}">
{*get_strings {tr}Article{/tr}{tr}Review{/tr}{tr}Event{/tr}{tr}Classified{/tr} *}
<td>{$types[user].article_cnt}</td>
<td>
<input type="checkbox" name="use_ratings[{$types[user].type|escape}]" {if $types[user].use_ratings eq 'y'}checked="checked"{/if} />
</td>
<td>
<input type="checkbox" name="show_pre_publ[{$types[user].type|escape}]" {if $types[user].show_pre_publ eq 'y'}checked="checked"{/if} />
</td>
<td>
<input type="checkbox" name="show_post_expire[{$types[user].type|escape}]" {if $types[user].show_post_expire eq 'y'}checked="checked"{/if} />
</td>
<td>
<input type="checkbox" name="heading_only[{$types[user].type|escape}]" {if $types[user].heading_only eq 'y'}checked="checked"{/if} />
</td>
<td>
<input type="checkbox" name="allow_comments[{$types[user].type|escape}]" {if $types[user].allow_comments eq 'y'}checked="checked"{/if} />
</td>
<td>
<input type="checkbox" name="comment_can_rate_article[{$types[user].type|escape}]" {if $types[user].comment_can_rate_article eq 'y'}checked="checked"{/if} />
</td>
<td>
<input type="checkbox" name="show_image[{$types[user].type|escape}]" {if $types[user].show_image eq 'y'}checked="checked"{/if} />
</td>
<td>
<input type="checkbox" name="show_avatar[{$types[user].type|escape}]" {if $types[user].show_avatar eq 'y'}checked="checked"{/if} />
</td>
<td>
<input type="checkbox" name="show_author[{$types[user].type|escape}]" {if $types[user].show_author eq 'y'}checked="checked"{/if} />
</td>
<td>
<input type="checkbox" name="show_pubdate[{$types[user].type|escape}]" {if $types[user].show_pubdate eq 'y'}checked="checked"{/if} />
</td>
{tab name="{tr}List of article types{/tr}"}
<form enctype="multipart/form-data" action="tiki-article_types.php" method="post">
{section name=user loop=$types}
<h3>{tr}{$types[user].type|escape}{/tr}</h3>
<a class="link" href="tiki-view_articles.php?type={$types[user].type|escape:url}">{tr}view articles with this type{/tr}</a>
<table class="normal">
<tr>
<th>{tr}Articles{/tr}</th>
<th>{tr}Author Rating{/tr}</th>
<th>{tr}Show before publish date{/tr}</th>
<th>{tr}Show after expire date{/tr}</th>
<th>{tr}Heading only{/tr}</th>
<th>{tr}Comments{/tr}</th>
<th>{tr}Comment Can Rate Article{/tr}</th>
<th>{tr}Show image{/tr}</th>
<th>{tr}Show avatar{/tr}</th>
<th>{tr}Show author{/tr}</th>
<th>{tr}Show publish date{/tr}</th>
</tr>
{cycle print=false values="even,odd"}
<input type="hidden" name="type_array[{$types[user].type|escape}]" />
<tr class="{cycle}">
{*get_strings {tr}Article{/tr}{tr}Review{/tr}{tr}Event{/tr}{tr}Classified{/tr} *}
<td>{$types[user].article_cnt}</td>
<td>
<input type="checkbox" name="use_ratings[{$types[user].type|escape}]" {if $types[user].use_ratings eq 'y'}checked="checked"{/if} />
</td>
<td>
<input type="checkbox" name="show_pre_publ[{$types[user].type|escape}]" {if $types[user].show_pre_publ eq 'y'}checked="checked"{/if} />
</td>
<td>
<input type="checkbox" name="show_post_expire[{$types[user].type|escape}]" {if $types[user].show_post_expire eq 'y'}checked="checked"{/if} />
</td>
<td>
<input type="checkbox" name="heading_only[{$types[user].type|escape}]" {if $types[user].heading_only eq 'y'}checked="checked"{/if} />
</td>
<td>
<input type="checkbox" name="allow_comments[{$types[user].type|escape}]" {if $types[user].allow_comments eq 'y'}checked="checked"{/if} />
</td>
<td>
<input type="checkbox" name="comment_can_rate_article[{$types[user].type|escape}]" {if $types[user].comment_can_rate_article eq 'y'}checked="checked"{/if} />
</td>
<td>
<input type="checkbox" name="show_image[{$types[user].type|escape}]" {if $types[user].show_image eq 'y'}checked="checked"{/if} />
</td>
<td>
<input type="checkbox" name="show_avatar[{$types[user].type|escape}]" {if $types[user].show_avatar eq 'y'}checked="checked"{/if} />
</td>
<td>
<input type="checkbox" name="show_author[{$types[user].type|escape}]" {if $types[user].show_author eq 'y'}checked="checked"{/if} />
</td>
<td>
<input type="checkbox" name="show_pubdate[{$types[user].type|escape}]" {if $types[user].show_pubdate eq 'y'}checked="checked"{/if} />
</td>
</tr>
<tr>
<th>{tr}Show expire date{/tr}</th>
<th>{tr}Show reads{/tr}</th>
<th>{tr}Show size{/tr}</th>
<th>{tr}Show topline{/tr}</th>
<th>{tr}Show subtitle{/tr}</th>
<th>{tr}Show source{/tr}</th>
<th>{tr}Show Image Caption{/tr}</th>
<th>{tr}Show lang{/tr}</th>
<th>{tr}Creator can edit{/tr}</th>
<th colspan="2">{tr}Action{/tr}</th>
</tr>
<tr class="{cycle}">
<td>
<input type="checkbox" name="show_expdate[{$types[user].type|escape}]" {if $types[user].show_expdate eq 'y'}checked="checked"{/if} />
</td>
<td>
<input type="checkbox" name="show_reads[{$types[user].type|escape}]" {if $types[user].show_reads eq 'y'}checked="checked"{/if} />
</td>
<td>
<input type="checkbox" name="show_size[{$types[user].type|escape}]" {if $types[user].show_size eq 'y'}checked="checked"{/if} />
</td>
<td>
<input type="checkbox" name="show_topline[{$types[user].type|escape}]" {if $types[user].show_topline eq 'y'}checked="checked"{/if} />
</td>
<td>
<input type="checkbox" name="show_subtitle[{$types[user].type|escape}]" {if $types[user].show_subtitle eq 'y'}checked="checked"{/if} />
</td>
<td>
<input type="checkbox" name="show_linkto[{$types[user].type|escape}]" {if $types[user].show_linkto eq 'y'}checked="checked"{/if} />
</td>
<td>
<input type="checkbox" name="show_image_caption[{$types[user].type|escape}]" {if $types[user].show_image_caption eq 'y'}checked="checked"{/if} />
</td>
<td>
<input type="checkbox" name="show_lang[{$types[user].type|escape}]" {if $types[user].show_lang eq 'y'}checked="checked"{/if} />
</td>
<td>
<input type="checkbox" name="creator_edit[{$types[user].type|escape}]" {if $types[user].creator_edit eq 'y'}checked="checked"{/if} />
</td>
<td colspan="2">
<center>
{if $types[user].article_cnt eq 0}
<a class="link" href="tiki-article_types.php?remove_type={$types[user].type|escape:url}">{icon _id='cross' alt="{tr}Remove{/tr}"}</a>
{else}
&nbsp;
{/if}
</center>
</td>
</tr>
<tr>
<th>{tr}Show expire date{/tr}</th>
<th>{tr}Show reads{/tr}</th>
<th>{tr}Show size{/tr}</th>
<th>{tr}Show topline{/tr}</th>
<th>{tr}Show subtitle{/tr}</th>
<th>{tr}Show source{/tr}</th>
<th>{tr}Show Image Caption{/tr}</th>
<th>{tr}Show lang{/tr}</th>
<th>{tr}Creator can edit{/tr}</th>
<th colspan="2">{tr}Action{/tr}</th>
</tr>
<tr class="{cycle}">
<td>
<input type="checkbox" name="show_expdate[{$types[user].type|escape}]" {if $types[user].show_expdate eq 'y'}checked="checked"{/if} />
</td>
<td>
<input type="checkbox" name="show_reads[{$types[user].type|escape}]" {if $types[user].show_reads eq 'y'}checked="checked"{/if} />
</td>
<td>
<input type="checkbox" name="show_size[{$types[user].type|escape}]" {if $types[user].show_size eq 'y'}checked="checked"{/if} />
</td>
<td>
<input type="checkbox" name="show_topline[{$types[user].type|escape}]" {if $types[user].show_topline eq 'y'}checked="checked"{/if} />
</td>
<td>
<input type="checkbox" name="show_subtitle[{$types[user].type|escape}]" {if $types[user].show_subtitle eq 'y'}checked="checked"{/if} />
</td>
<td>
<input type="checkbox" name="show_linkto[{$types[user].type|escape}]" {if $types[user].show_linkto eq 'y'}checked="checked"{/if} />
</td>
<td>
<input type="checkbox" name="show_image_caption[{$types[user].type|escape}]" {if $types[user].show_image_caption eq 'y'}checked="checked"{/if} />
</td>
<td>
<input type="checkbox" name="show_lang[{$types[user].type|escape}]" {if $types[user].show_lang eq 'y'}checked="checked"{/if} />
</td>
<td>
<input type="checkbox" name="creator_edit[{$types[user].type|escape}]" {if $types[user].creator_edit eq 'y'}checked="checked"{/if} />
</td>
<td colspan="2">
<center>
{if $types[user].article_cnt eq 0}
<a class="link" href="tiki-article_types.php?remove_type={$types[user].type|escape:url}">{icon _id='cross' alt="{tr}Remove{/tr}"}</a>
{else}
&nbsp;
{/if}
</center>
</td>
</tr>
</table>
{if $prefs.article_custom_attributes eq 'y'}
<table class="normal">
<tr>
<th>{tr}Custom attribute{/tr}</th>
<th>{tr}Action{/tr}</th>
</tr>
{cycle print=false values="even,odd"}
{foreach from=$types[user].attributes item=att key=attname}
<tr class="{cycle}">
<td>{$attname|escape}</td>
<td><a class="link" href="tiki-article_types.php?att_type={$types[user].type|escape:url}&att_remove={$att.relationId|escape:url}">{icon _id='cross' alt="{tr}Remove{/tr}"}</a></td>
</tr>
{/foreach}
<tr>
<td><input type="text" name="new_attribute[{$types[user].type|escape}]" value="" /></td>
<td>&nbsp;</td>
</tr>
</table>
{/if}
<input type="submit" name="update_type" value="{tr}Save{/tr}" /><br />
<hr />
<br />
{/section}
</table>
{if $prefs.article_custom_attributes eq 'y'}
<table class="normal">
<tr>
<th>{tr}Custom attribute{/tr}</th>
<th>{tr}Action{/tr}</th>
</tr>
{cycle print=false values="even,odd"}
{foreach from=$types[user].attributes item=att key=attname}
<tr class="{cycle}">
<td>{$attname|escape}</td>
<td>
<a class="link" href="tiki-article_types.php?att_type={$types[user].type|escape:url}&att_remove={$att.relationId|escape:url}">
{icon _id='cross' alt="{tr}Remove{/tr}"}
</a>
</td>
</tr>
{/foreach}
<tr>
<td><input type="text" name="new_attribute[{$types[user].type|escape}]" value="" /></td>
<td>&nbsp;</td>
</tr>
</table>
{/if}
<input type="submit" name="update_type" value="{tr}Save{/tr}" /><br />
<hr />
<br />
{/section}
{/tab}
{tab name="{tr}Create a new type{/tr}"}
<h3>{tr}Create a new type{/tr}</h3>
<input type="text" name="new_type" /><input type="submit" name="add_type" value="{tr}Create a new type{/tr}" />
<h3>{tr}Create a new type{/tr}</h3>
<input type="text" name="new_type" /><input type="submit" name="add_type" value="{tr}Create a new type{/tr}" />
{/tab}
{/tabset}
</form>
</form>
{/tabset}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment