Commit 1d5d358c authored by changi67's avatar changi67

[ENH] introduction of class on td - see...

[ENH] introduction of class on td - see http://dev.tiki.org/Templates+Best+Practices&highlight=formcolor#Tables
parent eb029c1c
......@@ -64,13 +64,13 @@
<td>
<a class="link" href="tiki-view_forum.php?forumId={$channels[user].forumId}" title="{tr}View{/tr}">{$channels[user].name|escape}</a>
</td>
<td style="text-align:right;">{$channels[user].threads}</td>
<td style="text-align:right;">{$channels[user].comments}</td>
<td style="text-align:right;">{$channels[user].users}</td>
<td style="text-align:right;">{$channels[user].age}</td>
<td style="text-align:right;">{$channels[user].posts_per_day|string_format:"%.2f"}</td>
<td style="text-align:right;">{$channels[user].hits}</td>
<td style="text-align:right;">
<td class="integer">{$channels[user].threads}</td>
<td class="integer">{$channels[user].comments}</td>
<td class="integer">{$channels[user].users}</td>
<td class="integer">{$channels[user].age}</td>
<td class="integer">{$channels[user].posts_per_day|string_format:"%.2f"}</td>
<td class="integer">{$channels[user].hits}</td>
<td class="action">
<a class="link" href="tiki-view_forum.php?forumId={$channels[user].forumId}" title="{tr}View{/tr}">{icon _id='table' alt="{tr}View{/tr}"}</a>
{if $tiki_p_forum_lock eq 'y'}
......
......@@ -76,7 +76,7 @@
{section loop=$channels name=ix}
<tr class="{cycle}">
{if $tiki_p_admin eq 'y'}
<td>
<td class="checkbox">
<input type="checkbox" name="action[]" value='{$channels[ix].page_ref_id}' style="border:1px;font-size:80%;" />
</td>
{/if}
......@@ -88,7 +88,7 @@
{/if}
</a>
</td>
<td>
<td class="action">
<a class="tablename" href="tiki-edit_structure.php?page_ref_id={$channels[ix].page_ref_id}" title="{tr}View structure{/tr}">{icon _id='information' alt="{tr}View structure{/tr}"}</a>
<a class='link' href='{sefurl page=$channels[ix].pageName structure=$channels[ix].pageName page_ref_id=$channels[ix].page_ref_id}' title="{tr}View page{/tr}">{icon _id='magnifier' alt="{tr}View page{/tr}"}</a>
......
......@@ -40,7 +40,7 @@
{cycle print=false values="even,odd"}
{section name=user loop=$topics}
<tr class="{cycle}">
<td>{$topics[user].topicId}</td>
<td class="integer">{$topics[user].topicId}</td>
<td>
<a class="link" href="tiki-view_articles.php?topic={$topics[user].topicId}">{$topics[user].name|escape}</a>
</td>
......@@ -52,9 +52,9 @@
{/if}
</td>
<td>{$topics[user].active}</td>
<td>{$topics[user].arts}</td>
<td class="integer">{$topics[user].arts}</td>
{if $prefs.feature_submissions eq 'y'}<td>{$topics[user].subs}</td>{/if}
<td>
<td class="action">
<a class="link" href="tiki-edit_topic.php?topicid={$topics[user].topicId}">{icon _id='page_edit'}</a>
{if $topics[user].individual eq 'y'}
<a title="{tr}Active Permissions{/tr}" class="link" href="tiki-objectpermissions.php?objectName={$topics[user].name|escape:"url"}&amp;objectType=topic&amp;permType=cms&amp;objectId={$topics[user].topicId}">{icon _id='key_active' alt="{tr}Active Permissions{/tr}"}</a>
......
......@@ -54,35 +54,35 @@
<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>
<td class="integer">{$types[user].article_cnt}</td>
<td class="checkbox">
<input type="checkbox" name="use_ratings[{$types[user].type|escape}]" {if $types[user].use_ratings eq 'y'}checked="checked"{/if} />
</td>
<td>
<td class="checkbox">
<input type="checkbox" name="show_pre_publ[{$types[user].type|escape}]" {if $types[user].show_pre_publ eq 'y'}checked="checked"{/if} />
</td>
<td>
<td class="checkbox">
<input type="checkbox" name="show_post_expire[{$types[user].type|escape}]" {if $types[user].show_post_expire eq 'y'}checked="checked"{/if} />
</td>
<td>
<td class="checkbox">
<input type="checkbox" name="heading_only[{$types[user].type|escape}]" {if $types[user].heading_only eq 'y'}checked="checked"{/if} />
</td>
<td>
<td class="checkbox">
<input type="checkbox" name="allow_comments[{$types[user].type|escape}]" {if $types[user].allow_comments eq 'y'}checked="checked"{/if} />
</td>
<td>
<td class="checkbox">
<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>
<td class="checkbox">
<input type="checkbox" name="show_image[{$types[user].type|escape}]" {if $types[user].show_image eq 'y'}checked="checked"{/if} />
</td>
<td>
<td class="checkbox">
<input type="checkbox" name="show_avatar[{$types[user].type|escape}]" {if $types[user].show_avatar eq 'y'}checked="checked"{/if} />
</td>
<td>
<td class="checkbox">
<input type="checkbox" name="show_author[{$types[user].type|escape}]" {if $types[user].show_author eq 'y'}checked="checked"{/if} />
</td>
<td>
<td class="checkbox">
<input type="checkbox" name="show_pubdate[{$types[user].type|escape}]" {if $types[user].show_pubdate eq 'y'}checked="checked"{/if} />
</td>
</tr>
......@@ -99,34 +99,34 @@
<th colspan="2">{tr}Action{/tr}</th>
</tr>
<tr class="{cycle}">
<td>
<td class="checkbox">
<input type="checkbox" name="show_expdate[{$types[user].type|escape}]" {if $types[user].show_expdate eq 'y'}checked="checked"{/if} />
</td>
<td>
<td class="checkbox">
<input type="checkbox" name="show_reads[{$types[user].type|escape}]" {if $types[user].show_reads eq 'y'}checked="checked"{/if} />
</td>
<td>
<td class="checkbox">
<input type="checkbox" name="show_size[{$types[user].type|escape}]" {if $types[user].show_size eq 'y'}checked="checked"{/if} />
</td>
<td>
<td class="checkbox">
<input type="checkbox" name="show_topline[{$types[user].type|escape}]" {if $types[user].show_topline eq 'y'}checked="checked"{/if} />
</td>
<td>
<td class="checkbox">
<input type="checkbox" name="show_subtitle[{$types[user].type|escape}]" {if $types[user].show_subtitle eq 'y'}checked="checked"{/if} />
</td>
<td>
<td class="checkbox">
<input type="checkbox" name="show_linkto[{$types[user].type|escape}]" {if $types[user].show_linkto eq 'y'}checked="checked"{/if} />
</td>
<td>
<td class="checkbox">
<input type="checkbox" name="show_image_caption[{$types[user].type|escape}]" {if $types[user].show_image_caption eq 'y'}checked="checked"{/if} />
</td>
<td>
<td class="checkbox">
<input type="checkbox" name="show_lang[{$types[user].type|escape}]" {if $types[user].show_lang eq 'y'}checked="checked"{/if} />
</td>
<td>
<td class="checkbox">
<input type="checkbox" name="creator_edit[{$types[user].type|escape}]" {if $types[user].creator_edit eq 'y'}checked="checked"{/if} />
</td>
<td colspan="2">
<td class="action" 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>
......@@ -147,7 +147,7 @@
{foreach from=$types[user].attributes item=att key=attname}
<tr class="{cycle}">
<td>{$attname|escape}</td>
<td>
<td class="action">
<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>
......
......@@ -109,13 +109,13 @@
{/if}
</td>
{if $prefs.forum_list_topics eq 'y'}
<td style="text-align:right;">{$channels[user].threads}</td>
<td class="integer">{$channels[user].threads}</td>
{/if}
{if $prefs.forum_list_posts eq 'y'}
<td style="text-align:right;">{$channels[user].comments}</td>
<td class="integer">{$channels[user].comments}</td>
{/if}
{if $prefs.forum_list_ppd eq 'y'}
<td style="text-align:right;">{$channels[user].posts_per_day|string_format:"%.2f"}</td>
<td class="integer">{$channels[user].posts_per_day|string_format:"%.2f"}</td>
{/if}
{if $prefs.forum_list_lastpost eq 'y'}
<td>
......@@ -127,10 +127,10 @@
</td>
{/if}
{if $prefs.forum_list_visits eq 'y'}
<td style="text-align:right;">{$channels[user].hits}</td>
<td class="integer">{$channels[user].hits}</td>
{/if}
<td style="text-align:right;">
<td class="action">
<a class="admlink" title="{tr}View{/tr}" href="tiki-view_forum.php?forumId={$channels[user].forumId}">{icon _id='table' alt="{tr}View{/tr}"}</a>
{if ($tiki_p_admin eq 'y') or (($channels[user].individual eq 'n') and ($tiki_p_admin_forum eq 'y')) or ($channels[user].individual_tiki_p_admin_forum eq 'y')}
<a class="admlink" title="{tr}Configure Forum{/tr}" href="tiki-admin_forums.php?forumId={$channels[user].forumId}&amp;cookietab=2">{icon _id='page_edit'}</a>
......
......@@ -48,19 +48,19 @@
{cycle values="odd,even" print=false}
{section name=changes loop=$lastchanges}
<tr class="{cycle}">
<td>{$lastchanges[changes].lastModif|tiki_short_datetime}</td>
<td class="date">{$lastchanges[changes].lastModif|tiki_short_datetime}</td>
<td>
<a href="{$lastchanges[changes].pageName|sefurl}" class="tablename" title="{$lastchanges[changes].pageName|escape}">
{$lastchanges[changes].pageName|truncate:$prefs.wiki_list_name_len:"...":true|escape}
</a>
</td>
<td>{tr}{$lastchanges[changes].action|escape}{/tr}</td>
<td>{$lastchanges[changes].user|userlink}</td>
<td class="username">{$lastchanges[changes].user|userlink}</td>
{if $prefs.feature_wiki_history_ip ne 'n'}
<td>{$lastchanges[changes].ip}</td>
{/if}
<td>{$lastchanges[changes].comment|escape}</td>
<td>
<td class="action">
{if $tiki_p_wiki_view_history eq 'y'}
{if $lastchanges[changes].version}
<a class="link" href='tiki-pagehistory.php?page={$lastchanges[changes].pageName|escape:"url"}'>{icon _id='page_white_stack' alt="{tr}History{/tr}"}</a>{tr}v{/tr}{$lastchanges[changes].version}
......
......@@ -102,7 +102,7 @@
</td>
{/if}
{if $prefs.art_list_id eq 'y'}
<td>{$listpages[changes].articleId}</td>
<td class="integer">{$listpages[changes].articleId}</td>
{/if}
{if $prefs.art_list_type eq 'y'}
<td>{tr}{$listpages[changes].type|escape}{/tr}</td>
......@@ -111,10 +111,10 @@
<td>{$listpages[changes].topicName|escape}</td>
{/if}
{if $prefs.art_list_date eq 'y'}
<td>{$listpages[changes].publishDate|tiki_short_datetime}</td>
<td class="date">{$listpages[changes].publishDate|tiki_short_datetime}</td>
{/if}
{if $prefs.art_list_expire eq 'y'}
<td>{$listpages[changes].expireDate|tiki_short_datetime}</td>
<td class="date">{$listpages[changes].expireDate|tiki_short_datetime}</td>
{/if}
{if $prefs.art_list_visible eq 'y'}
<td>{tr}{$listpages[changes].disp_article}{/tr}</td>
......@@ -126,19 +126,19 @@
<td>{$listpages[changes].authorName|escape}</td>
{/if}
{if $prefs.art_list_rating eq 'y'}
<td style="text-align:right;">{$listpages[changes].rating}</td>
<td class="integer">{$listpages[changes].rating}</td>
{/if}
{if $prefs.art_list_reads eq 'y'}
<td style="text-align:right;">{$listpages[changes].nbreads}</td>
<td class="integer">{$listpages[changes].nbreads}</td>
{/if}
{if $prefs.art_list_size eq 'y'}
<td style="text-align:right;">{$listpages[changes].size|kbsize}</td>
<td class="integer">{$listpages[changes].size|kbsize}</td>
{/if}
{if $prefs.art_list_img eq 'y'}
<td>{tr}{$listpages[changes].hasImage}{/tr}/{tr}{$listpages[changes].useImage}{/tr}</td>
{/if}
<td style="text-align:center;">{$listpages[changes].ispublished}</td>
<td>
<td class="action">
{if $tiki_p_read_article eq 'y'}
<a href="{$listpages[changes].articleId|sefurl:article}" title="{$listpages[changes].title|escape}">{icon _id='magnifier' alt="{tr}View{/tr}"}</a>
{/if}
......
......@@ -41,10 +41,10 @@
<a class="blogname" href="tiki-list_posts.php?blogId={$posts[changes].blogId}" title="{$posts[changes].blogTitle|escape}">{$posts[changes].blogTitle|truncate:$prefs.blog_list_title_len:"...":true|escape}</a>
</td>
{/if}
<td>&nbsp;{$posts[changes].created|tiki_short_date}&nbsp;</td>
<td>&nbsp;{$posts[changes].size}&nbsp;</td>
<td class="date">&nbsp;{$posts[changes].created|tiki_short_date}&nbsp;</td>
<td class="integer">&nbsp;{$posts[changes].size}&nbsp;</td>
<td>&nbsp;{$posts[changes].user}&nbsp;</td>
<td>
<td class="action">
<a class="link" href="tiki-blog_post.php?blogId={$posts[changes].blogId}&postId={$posts[changes].postId}">{icon _id='page_edit'}</a>
<a class="link" href="tiki-list_posts.php?{if isset($blogId)}blogId={$blogId}&amp;{/if}offset={$offset}&amp;sort_mode={$sort_mode}&amp;remove={$posts[changes].postId}">{icon _id='cross' alt="{tr}Remove{/tr}"}</a>
</td>
......
......@@ -33,9 +33,9 @@
{else}
<td>{$channels[user].description|escape|nl2br}</td>
{/if}
<td>{$channels[user].created|tiki_short_datetime}</td>
<td>{$channels[user].lastModif|tiki_short_datetime}</td>
<td style="text-align:right;">{$channels[user].items}</td>
<td class="date">{$channels[user].created|tiki_short_datetime}</td>
<td class="date">{$channels[user].lastModif|tiki_short_datetime}</td>
<td class="integer">{$channels[user].items}</td>
</tr>
{/if}
{sectionelse}
......
......@@ -164,13 +164,13 @@
<tr class="{cycle}">
{if $checkboxes_on eq 'y'}
<td>
<td class="checkbox">
<input type="checkbox" name="checked[]" value="{$listpages[changes].pageName|escape}"/>
</td>
{/if}
{if $prefs.wiki_list_id eq 'y'}
<td>
<td class="integer">
<a href="{$listpages[changes].pageName|sefurl}" class="link" title="{tr}View page{/tr}&nbsp;{$listpages[changes].pageName|escape}">{$listpages[changes].page_id}</a>
</td>
{/if}
......@@ -202,13 +202,13 @@
{/foreach}
{if $prefs.wiki_list_hits eq 'y'}
<td style="text-align:right;">
<td class="integer">
{$listpages[changes].hits}
</td>
{/if}
{if $prefs.wiki_list_lastmodif eq 'y' or $prefs.wiki_list_comment eq 'y'}
<td>
<td class="date">
{if $prefs.wiki_list_lastmodif eq 'y'}
<div>{$listpages[changes].lastModif|tiki_short_datetime}</div>
{/if}
......@@ -221,25 +221,25 @@
{/if}
{if $prefs.wiki_list_creator eq 'y'}
<td>
<td class="username">
{$listpages[changes].creator|userlink}
</td>
{/if}
{if $prefs.wiki_list_user eq 'y'}
<td>
<td class="username">
{$listpages[changes].user|userlink}
</td>
{/if}
{if $prefs.wiki_list_lastver eq 'y'}
<td style="text-align:right;">
<td class="integer">
{$listpages[changes].version}
</td>
{/if}
{if $prefs.wiki_list_status eq 'y'}
<td style="text-align:center;">
<td class="icon">
{if $listpages[changes].flag eq 'locked'}
{icon _id='lock' alt="{tr}Locked{/tr}"}
{else}
......@@ -250,38 +250,38 @@
{if $prefs.wiki_list_versions eq 'y'}
{if $prefs.feature_history eq 'y' and $tiki_p_wiki_view_history eq 'y'}
<td style="text-align:right;">
<td class="integer">
<a class="link" href="tiki-pagehistory.php?page={$listpages[changes].pageName|escape:"url"}">
{$listpages[changes].versions}
</a>
</td>
{else}
<td style="text-align:right;">
<td class="integer">
{$listpages[changes].versions}
</td>
{/if}
{/if}
{if $prefs.wiki_list_links eq 'y'}
<td style="text-align:right;">
<td class="integer">
{$listpages[changes].links}
</td>
{/if}
{if $prefs.wiki_list_backlinks eq 'y'}
{if $prefs.feature_backlinks eq 'y'}
<td style="text-align:right;">
<td class="integer">
<a class="link" href="tiki-backlinks.php?page={$listpages[changes].pageName|escape:"url"}">
{$listpages[changes].backlinks}
</a>
</td>
{else}
<td style="text-align:right;">{$listpages[changes].backlinks}</td>
<td class="integer">{$listpages[changes].backlinks}</td>
{/if}
{/if}
{if $prefs.wiki_list_size eq 'y'}
<td style="text-align:right;">{$listpages[changes].len|kbsize}</td>
<td class="integer">{$listpages[changes].len|kbsize}</td>
{/if}
{if $prefs.wiki_list_language eq 'y'}
......@@ -309,7 +309,7 @@
{/if}
{if $show_actions eq 'y'}
<td>
<td class="action">
{if $listpages[changes].perms.tiki_p_edit eq 'y'}
<a class="link" href="tiki-editpage.php?page={$listpages[changes].pageName|escape:"url"}">{icon _id='page_edit'}</a>
<a class="link" href="tiki-copypage.php?page={$listpages[changes].pageName|escape:"url"}&amp;version=last">{icon _id='page_copy' alt="{tr}Copy{/tr}"}</a>
......@@ -330,7 +330,6 @@
{/if}
</td>
{/if}
{cycle print=false}
</tr>
{sectionelse}
......
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