[ Index ] |
|
Code source de LifeType 1.2.4 |
1 {include file="$admintemplatepath/header.template"} 2 {include file="$admintemplatepath/navigation.template" showOpt=editArticleCategories title=$locale->tr("editArticleCategories")} 3 <script type="text/javascript"> 4 {literal} 5 YAHOO.util.Event.addListener( window, "load", function() { 6 var t = new Lifetype.UI.TableEffects( "list" ); 7 t.stripe(); 8 t.highlightRows(); 9 }); 10 {/literal} 11 </script> 12 <div id="list_nav_bar"> 13 <div id="list_nav_select"> 14 15 <form id="viewArticleCategories" action="admin.php" method="post"> 16 <fieldset> 17 <legend>{$locale->tr("show_by")}</legend> 18 19 <div class="list_nav_option"> 20 <label for="search">{$locale->tr("search_terms")}</label> 21 <br /> 22 <input type="text" name="searchTerms" value="{$searchTerms}" size="15" id="search" /> 23 </div> 24 25 <div class="list_nav_option"> 26 <br /> 27 <input type="hidden" name="op" value="editArticleCategories" /> 28 <input type="submit" name="Show" value="{$locale->tr("show")}" /> 29 </div> 30 </fieldset> 31 </form> 32 </div> 33 <br style="clear:both" /> 34 </div> 35 36 <form id="deleteCategories" action="admin.php" method="post"> 37 <div id="list"> 38 {include file="$admintemplatepath/successmessage.template"} 39 {include file="$admintemplatepath/errormessage.template"} 40 <table class="info" id="info" summary="{$locale->tr("editArticleCategories")}"> 41 <thead> 42 <tr> 43 <th><input class="checkbox" type="checkbox" name="all" id="all" value="1" onclick="toggleAllChecks('deleteCategories');" /></th> 44 <th style="width:50%;">{$locale->tr("category")}</th> 45 <th style="width:20%">{$locale->tr("posts")}</th> 46 <th style="width:20%">{$locale->tr("show_in_main_page")}</th> 47 <th style="width:10%;">{$locale->tr("actions")}</th> 48 </tr> 49 </thead> 50 <tbody> 51 {foreach from=$categories item=category} 52 <tr class="even"> 53 <td> 54 <input class="checkbox" type="checkbox" name="categoryIds[{counter}]" id="checks_{$category->getId()}" value="{$category->getId()}" /> 55 </td> 56 <td class="col_highlighted"> 57 {check_perms perm=update_category}<a href="admin.php?op=editArticleCategory&categoryId={$category->getId()}">{/check_perms}{$category->getName()}{check_perms perm=update_category}</a>{/check_perms} 58 </td> 59 {if $category->getNumArticles() > 0} 60 <td>{check_perms perm=view_articles}<a href="admin.php?op=editPosts&showCategory={$category->getId()}&showStatus=0&showMonth=-1">{/check_perms}({$category->getNumAllArticles()}){check_perms perm=view_articles}</a>{/check_perms}</td> 61 {else} 62 <td>(0)</td> 63 {/if} 64 <td> 65 {if $category->isInMainPage()}{$locale->tr("yes")}{else}{$locale->tr("no")}{/if} 66 </td> 67 <td> 68 <div class="list_action_button"> 69 {check_perms perm=update_category} 70 <a href="?op=editArticleCategory&categoryId={$category->getId()}" title="{$locale->tr("edit")}"> 71 <img src="imgs/admin/icon_edit-16.png" alt="{$locale->tr("edit")}" /> 72 </a> 73 <a href="?op=deleteArticleCategory&categoryId={$category->getId()}" title="{$locale->tr("delete")}"> 74 <img src="imgs/admin/icon_delete-16.png" alt="{$locale->tr("delete")}" /> 75 </a> 76 {/check_perms} 77 </div> 78 </td> 79 </tr> 80 {/foreach} 81 </tbody> 82 </table> 83 </div> 84 <div id="list_action_bar"> 85 {adminpager style=list} 86 {check_perms perm=update_category} 87 <input type="hidden" name="op" value="deleteArticleCategories"/> 88 <input type="submit" name="Delete selected" value="{$locale->tr("delete")}"/> 89 {/check_perms} 90 </div> 91 </form> 92 93 {include file="$admintemplatepath/footernavigation.template"} 94 {include file="$admintemplatepath/footer.template"}
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Mon Nov 26 21:04:15 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |