[ Index ]
 

Code source de LifeType 1.2.4

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/templates/admin/ -> siteblogs.template (source)

   1  {include file="$admintemplatepath/header.template"}
   2  {include file="$admintemplatepath/navigation.template" showOpt=editSiteBlogs title=$locale->tr("editSiteBlogs")}
   3  <script type="text/javascript" src="js/ui/plogui.js"></script>
   4  <script type="text/javascript">
   5      var errorStatusMsg = '{$locale->tr("error_select_status")}';
   6      var showMassiveChangeOption = '{$locale->tr("show_massive_change_option")}';
   7      var hideMassiveChangeOption = '{$locale->tr("hide_massive_change_option")}';
   8  </script>
   9          <div id="list_nav_bar">
  10              <div id="list_nav_select">
  11              
  12  <form id="viewBlogs" action="admin.php" method="post">
  13   <fieldset>
  14    <legend>{$locale->tr("show_by")}</legend>
  15     <div class="list_nav_option">
  16      <label for="status">{$locale->tr("status")}</label>
  17      <br />
  18      <select name="status" id="status">
  19      {foreach from=$blogstatus key=name item=status}
  20        <option value="{$status}" {if $currentstatus == $status} selected="selected"{/if}>{$locale->tr($name)}</option>
  21      {/foreach}
  22      </select>
  23     </div>
  24     
  25     <div class="list_nav_option">
  26     <label for="search">{$locale->tr("search_terms")}</label>
  27     <br />
  28     <input type="text" name="searchTerms" value="{$searchTerms}" size="15" id="search" />
  29     </div>   
  30     
  31     <div class="list_nav_option">
  32      <br />
  33      <input type="hidden" name="op" value="editSiteBlogs" />
  34      <input type="submit" name="Show" value="{$locale->tr("show")}" />
  35     </div>
  36    </fieldset> 
  37   </form> 
  38   </div>
  39   <br style="clear:both" />
  40   </div> 
  41   
  42   <form id="editBlogs" method="post" action="admin.php">
  43  {check_perms adminperm=update_site_blog}    
  44       <div class="optionIcon">
  45          <a id="optionIconLink" href="#bulkEdit" title="{$locale->tr("show_massive_change_option")}" onclick="switchMassiveOption()">{$locale->tr("show_massive_change_option")}</a>
  46      </div>
  47  {/check_perms}    
  48    <div id="list"> 
  49    {include file="$admintemplatepath/successmessage.template"}
  50    {include file="$admintemplatepath/errormessage.template"}
  51     <table id="list" class="info" summary="{$locale->tr("editSiteBlogs")}">
  52      <thead>
  53       <tr>
  54        <th><input class="checkbox" type="checkbox" name="all" id="all" value="1" onclick="toggleAllChecks('editBlogs');" /></th>
  55        <th style="width:35%;">{$locale->tr("blog")}</th>
  56        <th style="width:25%">{$locale->tr("owner")}</th>
  57        <th style="width:15%;">{$locale->tr("status")}</th>
  58        <th style="width:10%;">{$locale->tr("quota")}</th> 
  59        <th style="width:25%;">{$locale->tr("actions")}</th>
  60       </tr>
  61      </thead>
  62      <tbody>
  63       {foreach from=$siteblogs item=siteblog}
  64        <tr>
  65         <td><input class="checkbox" type="checkbox" name="blogIds[{counter}]" value="{$siteblog->getId()}"/></td>
  66         <td class="col_highlighted">
  67          {check_perms adminperm=update_site_blog}<a href="?op=editBlog&amp;blogId={$siteblog->getId()}">{/check_perms}{$siteblog->getBlog()}{check_perms adminperm=update_site_blog}</a>{/check_perms}
  68         </td>
  69         <td>
  70          {assign var=ownerInfo value=$siteblog->getOwnerInfo()}
  71          <a href="?op=editSiteUser&amp;userId={$ownerInfo->getId()}">{$ownerInfo->getUsername()}</a>
  72         </td>
  73         <td>
  74          {foreach from=$blogstatus key=name item=status}
  75            {if $siteblog->getStatus() == $status}
  76            {if $status == 2}<span style="color:red">{$locale->tr($name)}</span>
  77            {else}{$locale->tr($name)}{/if}
  78            {/if}
  79          {/foreach}        
  80         </td>       
  81         <td>
  82          {$siteblog->getResourcesQuota()|round:$locale}
  83         </td>
  84         <td>
  85          <div class="list_action_button">
  86           {check_perms adminperm=update_site_blog}
  87           <a href="?op=deleteBlog&amp;blogId={$siteblog->getId()}" title="{$locale->tr("delete")}">
  88             <img src="imgs/admin/icon_delete-16.png" alt="{$locale->tr("delete")}" />
  89           </a>
  90           <a href="?op=editBlog&amp;blogId={$siteblog->getId()}" title="{$locale->tr("edit")}">
  91             <img src="imgs/admin/icon_edit-16.png" alt="{$locale->tr("edit")}" />
  92           </a>
  93           {assign var=blogUrl value=$siteblog->getBlogRequestGenerator()}
  94              {assign var=blogname value=$siteblog->getBlog()}
  95           <a href="{$blogUrl->blogLink()}" title="{$locale->pr("goto_blog_page",$blogname)}">
  96             <img src="imgs/admin/icon_goto-16.png" alt="{$locale->pr("goto_blog_page",$blogname)}" />
  97           </a>
  98           {if $siteblog->getStatus() == 3}
  99           <a href="?op=resendConfirmation&amp;blogId={$siteblog->getId()}" title="{$locale->tr("resend_confirmation_blog")}">
 100             <img src="imgs/admin/icon_mail-16.png" alt="{$locale->tr("resend_confirmation_blog")}" />
 101           </a>
 102           {/if}
 103           {/check_perms}
 104           {check_perms adminperm=edit_blog_admin_mode}
 105           <a href="?op=adminBlogSelect&amp;blogId={$siteblog->getId()}&amp;action=controlCenter" title="{$locale->tr("administrate_user_blog")}">
 106             <img src="imgs/admin/icon_lock_open-16.png" alt="{$locale->tr("administrate_user_blog")}" />
 107           </a>
 108           {/check_perms}
 109          </div>
 110        </tr>
 111       {/foreach}
 112      </tbody> 
 113     </table>
 114    </div>
 115   <a name="bulkEdit"></a>
 116    <div id="list_action_bar">
 117      {adminpager style="list"}
 118      {check_perms adminperm=update_site_blog}
 119      <input type="hidden" name="op" value="deleteBlogs"/>
 120      <input type="submit" name="{$locale->tr("delete")}" value="{$locale->tr("delete")}"/>  
 121      {/check_perms}
 122      {check_perms adminperm=update_site_blog}
 123      <div id="massiveChangeOption" style="display: none">
 124          <fieldset>    
 125          <legend>{$locale->tr("massive_change_option")}</legend>            
 126              <label for="blogStatus">{$locale->tr("status")}</label>
 127              <select name="blogStatus" id="blogStatus">
 128                <option value="-1">-{$locale->tr("select")}-</option>
 129                  {foreach from=$blogstatus key=name item=status}
 130                        {if $status != -1}<option value="{$status}">{$locale->tr($name)}</option>{/if}
 131                  {/foreach}    
 132              </select>
 133              <input type="button" name="changeBlogStatus" value="{$locale->tr("change_status")}" class="submit" onClick="javascript:submitBlogsList('changeBlogStatus');" /> 
 134          </fieldset>
 135      </div>
 136      {/check_perms}
 137    </div> 
 138   </form>
 139  {include file="$admintemplatepath/footernavigation.template"}
 140  {include file="$admintemplatepath/footer.template"}


Généré le : Mon Nov 26 21:04:15 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics