Commit 618cd778 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 407fb485
......@@ -90,7 +90,7 @@
{section name=changes loop=$listpages}
<tr class="{cycle}">
{if $prefs.art_list_title eq 'y'}
<td>
<td class="text">
{if $tiki_p_read_article eq 'y'}
<a class="artname" href="{$listpages[changes].articleId|sefurl:article}" title="{$listpages[changes].title|escape}">
{/if}
......@@ -105,10 +105,10 @@
<td class="integer">{$listpages[changes].articleId}</td>
{/if}
{if $prefs.art_list_type eq 'y'}
<td>{tr}{$listpages[changes].type|escape}{/tr}</td>
<td class="text">{tr}{$listpages[changes].type|escape}{/tr}</td>
{/if}
{if $prefs.art_list_topic eq 'y'}
<td>{$listpages[changes].topicName|escape}</td>
<td class="text">{$listpages[changes].topicName|escape}</td>
{/if}
{if $prefs.art_list_date eq 'y'}
<td class="date">{$listpages[changes].publishDate|tiki_short_datetime}</td>
......@@ -117,13 +117,13 @@
<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>
<td class="text">{tr}{$listpages[changes].disp_article}{/tr}</td>
{/if}
{if $prefs.art_list_lang eq 'y'}
<td>{tr}{$listpages[changes].lang}{/tr}</td>
<td class="text">{tr}{$listpages[changes].lang}{/tr}</td>
{/if}
{if $prefs.art_list_author eq 'y'}
<td>{$listpages[changes].authorName|escape}</td>
<td class="text">{$listpages[changes].authorName|escape}</td>
{/if}
{if $prefs.art_list_rating eq 'y'}
<td class="integer">{$listpages[changes].rating}</td>
......@@ -135,7 +135,7 @@
<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>
<td class="text">{tr}{$listpages[changes].hasImage}{/tr}/{tr}{$listpages[changes].useImage}{/tr}</td>
{/if}
<td style="text-align:center;">{$listpages[changes].ispublished}</td>
<td class="action">
......
......@@ -31,18 +31,18 @@
{cycle values="odd,even" print=false}
{section name=changes loop=$listpages}
<tr class="{cycle}">
<td>{if $tiki_p_admin_banners eq 'y'}<a class="link" href="tiki-edit_banner.php?bannerId={$listpages[changes].bannerId}">{/if}{$listpages[changes].bannerId}{if $tiki_p_admin_banners eq 'y'}</a>{/if}</td>
<td>{$listpages[changes].client|username}</td>
<td>{$listpages[changes].url}</td>
<td>{$listpages[changes].zone|escape}</td>
<td>{$listpages[changes].created|tiki_short_date}</td>
<td>{$listpages[changes].which}</td>
<td>{$listpages[changes].useDates}</td>
<td>{$listpages[changes].maxImpressions}</td>
<td>{$listpages[changes].impressions}</td>
<td>{$listpages[changes].maxClicks}</td>
<td>{$listpages[changes].clicks}</td>
<td>
<td class="id">{if $tiki_p_admin_banners eq 'y'}<a class="link" href="tiki-edit_banner.php?bannerId={$listpages[changes].bannerId}">{/if}{$listpages[changes].bannerId}{if $tiki_p_admin_banners eq 'y'}</a>{/if}</td>
<td class="username">{$listpages[changes].client|username}</td>
<td class="text">{$listpages[changes].url}</td>
<td class="text">{$listpages[changes].zone|escape}</td>
<td class="date">$listpages[changes].created|tiki_short_date}</td>
<td class="text">{$listpages[changes].which}</td>
<td class="integer">{$listpages[changes].useDates}</td>
<td class="integer">{$listpages[changes].maxImpressions}</td>
<td class="integer">{$listpages[changes].impressions}</td>
<td class="integer">{$listpages[changes].maxClicks}</td>
<td class="integer">{$listpages[changes].clicks}</td>
<td class="action">
{if $tiki_p_admin_banners eq 'y'}
<a class="link" href="tiki-edit_banner.php?bannerId={$listpages[changes].bannerId}">{icon _id='page_edit'}</a>
<a class="link" href="tiki-list_banners.php?offset={$offset}&amp;sort_mode={$sort_mode}&amp;remove={$listpages[changes].bannerId}">{icon _id='cross' alt="{tr}Remove{/tr}"}</a>
......
......@@ -51,7 +51,7 @@
{section name=changes loop=$listpages}
<tr class="{cycle}">
{if $prefs.blog_list_title eq 'y' or $prefs.blog_list_description eq 'y'}
<td>
<td class="text">
{if ($tiki_p_admin eq 'y') or ($listpages[changes].individual eq 'n') or ($listpages[changes].individual_tiki_p_read_blog eq 'y' ) }
<a class="blogname" href="{$listpages[changes].blogId|sefurl:blog}" title="{$listpages[changes].title|escape}">
{/if}
......
......@@ -19,13 +19,13 @@
</tr>
{section name=changes loop=$listpages}
<tr class="{cycle}">
<td>
<td class="text">
<a class="link" href="{$listpages[changes].url}">{$listpages[changes].url}</a>
</td>
<td>
<td class="date">
{$listpages[changes].refresh|tiki_short_datetime}
</td>
<td>
<td class="action">
<a class="link" target="_blank" href="tiki-view_cache.php?cacheId={$listpages[changes].cacheId}" title="{tr}View{/tr}"><img src="pics/icons/magnifier.png" width="16" height="16" alt="{tr}View{/tr}" /></a>
<a class="link" href="tiki-list_cache.php?offset={$offset}&amp;sort_mode={$sort_mode}&amp;remove={$listpages[changes].cacheId}" title="{tr}Remove{/tr}"><img src="pics/icons/cross.png" height="16" width="16" alt="{tr}Remove{/tr}" /></a>
<a class="link" href="tiki-list_cache.php?offset={$offset}&amp;sort_mode={$sort_mode}&amp;refresh={$listpages[changes].cacheId}" title="{tr}Refresh{/tr}"><img src="pics/icons/arrow_refresh.png" height="16" width="16" alt="{tr}Refresh{/tr}" /></a>
......
......@@ -78,8 +78,8 @@
{/capture}
<tr class="{cycle}{if $prefs.feature_comments_moderation eq 'y'} post-approved-{$comments[ix].approved}{/if}">
<td><input type="checkbox" name="checked[]" value="{$id}"/></td>
<td>
<td class="checkbox"><input type="checkbox" name="checked[]" value="{$id}"/></td>
<td class="action">
<a title="{tr}Actions{/tr}" href="#" {popup trigger="onClick" sticky=1 mouseoff=1 fullhtml="1" center=true text=$smarty.capture.over_actions|escape:"javascript"|escape:"html"} style="padding:0; margin:0; border:0">{icon _id='wrench' alt="{tr}Actions{/tr}"}</a>
</td>
......
......@@ -22,8 +22,8 @@
{cycle values="odd,even" print=false}
{section name=changes loop=$listpages}
<tr class="{cycle}">
<td>{$listpages[changes].contentId}</td>
<td>
<td class="id">{$listpages[changes].contentId}</td>
<td class="text">
{if $listpages[changes].contentLabel neq ''}
<b>{$listpages[changes].contentLabel}</b>
{/if}
......@@ -31,11 +31,11 @@
<div class="subcomment">{$listpages[changes].description}</div>
{/if}
</td>
<td>{$listpages[changes].data|escape:'html'|nl2br}</td>
<td>{$listpages[changes].actual|tiki_short_datetime}</td>
<td>{$listpages[changes].next|tiki_short_datetime}</td>
<td>{$listpages[changes].future}</td>
<td>
<td class="text">{$listpages[changes].data|escape:'html'|nl2br}</td>
<td class="date">{$listpages[changes].actual|tiki_short_datetime}</td>
<td class="date">{$listpages[changes].next|tiki_short_datetime}</td>
<td class="text">{$listpages[changes].future}</td>
<td class="action">
{self_link _class='link' _icon='page_edit' edit=$listpages[changes].contentId cookietab=2}{tr}Edit{/tr}{/self_link}
<a class="link" href="tiki-edit_programmed_content.php?contentId={$listpages[changes].contentId}" title="{tr}Program{/tr}">{icon _id=wrench alt="{tr}Program{/tr}"}</a>
{self_link _class='link' _icon='cross' _template='confirm.tpl' remove=$listpages[changes].contentId}{tr}Remove{/tr}{/self_link}
......
......@@ -25,20 +25,20 @@
{cycle values="odd,even" print=false}
{section name=user loop=$channels}
<tr class="{cycle}">
<td>
<td class="text">
<a class="tablename" href="tiki-view_faq.php?faqId={$channels[user].faqId}">{$channels[user].title|escape}</a>
<div class="subcomment">
{$channels[user].description|escape|nl2br}
</div>
</td>
<td style="text-align:right;">
<td class="integer">
{$channels[user].hits}
</td>
<td style="text-align:right;">
<td class="integer">
{$channels[user].questions} ({$channels[user].suggested})
</td>
{if $tiki_p_admin_faqs eq 'y'}
<td style="text-align:right">
<td class="action">
<a class="link" href="tiki-list_faqs.php?offset={$offset}&amp;sort_mode={$sort_mode}&amp;faqId={$channels[user].faqId}">{icon _id='page_edit'}</a>
<a class="link" href="tiki-faq_questions.php?faqId={$channels[user].faqId}">{icon _id='help' alt="{tr}Questions{/tr}"}</a>
<a class="link" href="tiki-list_faqs.php?offset={$offset}&amp;sort_mode={$sort_mode}&amp;remove={$channels[user].faqId}">{icon _id='cross' alt="{tr}Remove{/tr}"}</a>
......
......@@ -42,11 +42,11 @@
{foreach item=invited from=$inviteds}
<tr class="{cycle}">
{if $tiki_p_admin eq 'y'}
<td>{$invited.inviter|userlink}</td>
<td class="text">{$invited.inviter|userlink}</td>
{/if}
<td>{$invited.ts|tiki_short_date}</td>
<td>{$invited.email|escape}</td>
<td>{$invited.used|escape}</td>
<td class="date">{$invited.ts|tiki_short_date}</td>
<td class="email">{$invited.email|escape}</td>
<td class="text">{$invited.used|escape}</td>
</tr>
{/foreach}
</table>
......
......@@ -15,15 +15,15 @@
{if $item->id ne ''}
<tr{if ($key % 2)} class="odd"{else} class="even"{/if}>
{include file=tiki-list_kaltura_entries_actions.tpl}
<td><input type="checkbox" name="mediaId[]" value="{$item->id}" /></td>
<td><a href="#" {popup trigger="onclick" sticky=1 fullhtml="1" text=$smarty.capture.actions|escape:"javascript"|escape:"html"}><img class="athumb" src="{$item->thumbnailUrl}" alt="{$item->description}" height="80" width="120" /></a></td>
<td><a href="tiki-kaltura_video.php?{$entryType}Id={$item->id}" title="{tr}View{/tr}">{$item->name}</a></td>
<td>{$item->mediaType}</td>
<td>{$item->createdAt|tiki_short_datetime}</td>
<td>{$item->statusString}</td>
<td>{$item->tags}</td>
<td class="checkbox"><input type="checkbox" name="mediaId[]" value="{$item->id}" /></td>
<td class="text"><a href="#" {popup trigger="onclick" sticky=1 fullhtml="1" text=$smarty.capture.actions|escape:"javascript"|escape:"html"}><img class="athumb" src="{$item->thumbnailUrl}" alt="{$item->description}" height="80" width="120" /></a></td>
<td class="text"><a href="tiki-kaltura_video.php?{$entryType}Id={$item->id}" title="{tr}View{/tr}">{$item->name}</a></td>
<td class="text">{$item->mediaType}</td>
<td class="date">{$item->createdAt|tiki_short_datetime}</td>
<td class="text">{$item->statusString}</td>
<td class="text">{$item->tags}</td>
{include file=tiki-list_kaltura_entries_add_info.tpl}
<td><a href="#" {popup trigger="onmouseover" fullhtml="1" sticky=true text=$smarty.capture.add_info|escape:"javascript"|escape:"html" left=true}>{icon _id='information' class='' title='{tr}More Information{/tr}'}</a></td>
<td class="text"><a href="#" {popup trigger="onmouseover" fullhtml="1" sticky=true text=$smarty.capture.add_info|escape:"javascript"|escape:"html" left=true}>{icon _id='information' class='' title='{tr}More Information{/tr}'}</a></td>
</tr>
{/if}
{/foreach}
......
......@@ -17,19 +17,19 @@
{include file=tiki-list_kaltura_entries_actions.tpl}
<td><input type="checkbox" name="mixId[]" value="{$item->id}" /></td>
<td><a href="#" {popup trigger="onclick" sticky=1 fullhtml="1" text=$smarty.capture.actions|escape:"javascript"|escape:"html"}><img class="athumb" src="{$item->thumbnailUrl}" alt="{$item->description}" height="80" width="120"/></a></td>
<td><a href="tiki-kaltura_video.php?{$entryType}Id={$item->id}"><img src="pics/icons/application_form_magnify.png" class="icon" /> {$item->name}</a></td>
<td>{$item->createdAt}</td>
<td>{$item->tags}</td>
<td>{$modifiedAt[$key]}
<td class="checkbox"><input type="checkbox" name="mixId[]" value="{$item->id}" /></td>
<td class="text"><a href="#" {popup trigger="onclick" sticky=1 fullhtml="1" text=$smarty.capture.actions|escape:"javascript"|escape:"html"}><img class="athumb" src="{$item->thumbnailUrl}" alt="{$item->description}" height="80" width="120"/></a></td>
<td class="text"><a href="tiki-kaltura_video.php?{$entryType}Id={$item->id}"><img src="pics/icons/application_form_magnify.png" class="icon" /> {$item->name}</a></td>
<td class="text">{$item->createdAt}</td>
<td class="text">{$item->tags}</td>
<td class="text">{$modifiedAt[$key]}
{if !$prefs.kuser}
<br/><br/>
{tr}Modified By:{/tr} {$modifiedBy[$key]}
{/if}
</td>
{include file=tiki-list_kaltura_entries_add_info.tpl}
<td><a href="#" {popup trigger="onmouseover" fullhtml="1" sticky=true text=$smarty.capture.add_info|escape:"javascript"|escape:"html" left=true}>{icon _id='information' class='' title=''}</a></td>
<td class="text"><a href="#" {popup trigger="onmouseover" fullhtml="1" sticky=true text=$smarty.capture.add_info|escape:"javascript"|escape:"html" left=true}>{icon _id='information' class='' title=''}</a></td>
</tr>
{/if}
{/foreach}
......
......@@ -106,14 +106,14 @@
{if $item->id ne ''}
<tr {if ($key % 2)}class="odd"{else}class="even"{/if}>
{include file=tiki-list_kaltura_entries_actions.tpl}
<td><input type="checkbox" name="playlistId[]" value="{$item->id}" /></td>
<td><a href="tiki-list_kaltura_playlists.php?playlistId={$item->id}">{$item->name}</a></td>
<td>{$item->playlistType}</td>
<td>{$item->createdAt}<br/><br/>Created By: {$item->userId}</td>
<td height="100">{$item->tags}</td>
<td>{$item->version}</td>
<td class="checkbox"><input type="checkbox" name="playlistId[]" value="{$item->id}" /></td>
<td class="text"><a href="tiki-list_kaltura_playlists.php?playlistId={$item->id}">{$item->name}</a></td>
<td class="text">{$item->playlistType}</td>
<td class="text">{$item->createdAt}<br/><br/>Created By: {$item->userId}</td>
<td height="100" class="text">{$item->tags}</td>
<td class="text">{$item->version}</td>
{include file=tiki-list_kaltura_entries_add_info.tpl}
<td><a href="#" {popup trigger="onmouseover" fullhtml="1" text=$smarty.capture.add_info|escape:"javascript"|escape:"html" left=true}>{icon _id='information' class='' title=''}</a></td>
<td class="text"><a href="#" {popup trigger="onmouseover" fullhtml="1" text=$smarty.capture.add_info|escape:"javascript"|escape:"html" left=true}>{icon _id='information' class='' title=''}</a></td>
</tr>
{/if}
{/foreach}
......
......@@ -21,7 +21,7 @@
<tr><th>{tr}Group{/tr}</th><th>{tr}Permission{/tr}</th></tr>
{cycle values="even,odd" print=false}
{foreach from=$content.default item=default}
<tr class="{cycle}"><td>{$default.group|escape}</td><td>{$default.perm|escape}</td></tr>
<tr class="{cycle}"><td class="text">{$default.group|escape}</td><td class="text">{$default.perm|escape}</td></tr>
{/foreach}
</table>
</div>
......@@ -34,10 +34,10 @@
{if !empty($object.special)}
{foreach from=$object.special item=special}
<tr class="{cycle}">
<td>{$special.objectName}</td>
<td>{$special.group|escape}</td>
<td>{$special.perm|escape}</td>
<td>
<td class="text">{$special.objectName}</td>
<td class="text">{$special.group|escape}</td>
<td class="text">{$special.perm|escape}</td>
<td class="text">
{if !empty($special.objectId)}
<a href="tiki-objectpermissions.php?objectId={$special.objectId}&amp;objectType={$special.objectType}&amp;objectName={$special.objectName|escape}">{tr}{$special.reason|escape}{/tr}</a>
{else}
......@@ -60,10 +60,10 @@
{if !empty($object.category)}
{foreach from=$object.category item=special}
<tr class="{cycle}">
<td>{if isset($object.objectName)}{$object.objectName}{else}{$object.objectId}{/if}</td>
<td>{$special.group|escape}</td>
<td>{$special.perm|escape}</td>
<td>
<td class="text">{if isset($object.objectName)}{$object.objectName}{else}{$object.objectId}{/if}</td>
<td class="text">{$special.group|escape}</td>
<td class="text">{$special.perm|escape}</td>
<td class="text">
{if !empty($special.objectId)}
<a href="tiki-objectpermissions.php?objectId={$special.objectId}&amp;objectType={$special.objectType}&amp;objectName={$special.objectName|escape}">{tr}{$special.reason|escape}:{/tr} {$special.objectName}</a>
{else}
......
......@@ -35,9 +35,9 @@
{cycle values="odd,even" print=false}
{section name=changes loop=$posts}
<tr class="{cycle}">
<td><a class="link" href="tiki-view_blog_post.php?postId={$posts[changes].postId}">{$posts[changes].title|escape}</a></td>
<td class="text"><a class="link" href="tiki-view_blog_post.php?postId={$posts[changes].postId}">{$posts[changes].title|escape}</a></td>
{if !isset($blogId)}
<td>
<td class="text">
<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}
......
......@@ -176,7 +176,7 @@
{/if}
{if $prefs.wiki_list_name eq 'y'}
<td>
<td class="text">
<a href="{$listpages[changes].pageName|sefurl:'wiki':'':$all_langs}" class="link" title="{tr}View page{/tr}&nbsp;{$listpages[changes].pageName|escape}">
{$listpages[changes].pageName|truncate:$prefs.wiki_list_name_len:"...":true|escape}
</a>
......@@ -192,7 +192,7 @@
{/if}
{foreach from=$wplp_used key=lc item=ln}
<td>
<td class="text">
{if $listpages[changes].translations[$lc]}
<a href="{$listpages[changes].translations[$lc]|sefurl}" class="link" title="{tr}View page{/tr}&nbsp;{$listpages[changes].translations[$lc]|escape}">
{$listpages[changes].translations[$lc]|escape}
......@@ -285,13 +285,13 @@
{/if}
{if $prefs.wiki_list_language eq 'y'}
<td>
<td class="text">
{$listpages[changes].lang}
</td>
{/if}
{if $prefs.wiki_list_categories eq 'y'}
<td>
<td class="text">
{foreach item=categ from=$listpages[changes].categname name=categ}
{if !$smarty.foreach.categ.first}<br />{/if}
{$categ|escape}
......@@ -300,7 +300,7 @@
{/if}
{if $prefs.wiki_list_categories_path eq 'y'}
<td>
<td class="text">
{foreach item=categpath from=$listpages[changes].categpath}
{if !$smarty.foreach.categpath.first}<br />{/if}
{$categpath|escape}
......
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