[ 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/ -> blogusers.template (source)

   1  {include file="$admintemplatepath/header.template"}
   2  {include file="$admintemplatepath/navigation.template" showOpt=showBlogUsers title=$locale->tr("showBlogUsers")}
   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          <form id="blogUsers" action="admin.php" method="post">
  13          <div id="list">
  14    {include file="$admintemplatepath/successmessage.template"}
  15    {include file="$admintemplatepath/errormessage.template"}
  16              <table id="list" class="info" summary="{$locale->tr("showBlogUsers")}">
  17                  <thead>
  18                      <tr>
  19                          <th><input class="checkbox" type="checkbox" name="all" id="all" value="1" onclick="toggleAllChecks('blogUsers');" /></th>
  20                          <th style="width:20%;">{$locale->tr("username")}</th>
  21                          <th style="width:40%;">{$locale->tr("full_name")}</th>                        
  22                          <th style="width:30%;">{$locale->tr("email")}</th>
  23                          <th style="width:10%;">{$locale->tr("actions")}</th>
  24                      </tr>
  25                  </thead>
  26                  {if $blogusers}
  27                  <tbody>
  28                     {foreach from=$blogusers item=bloguser}
  29                      <tr>
  30                          <td>
  31                              <input class="checkbox" type="checkbox" name="userIds[{$bloguser->getId()}]" id="checks_1" value="{$bloguser->getId()}" />
  32                          </td>
  33                          <td class="col_highlighted">
  34                              <a id="user_{$bloguser->getId()}" href="?op=editBlogUser&amp;userId={$bloguser->getId()}">{$bloguser->getUsername()}</a>
  35                              {assign var=blogId value=$blog->getId()}
  36                              {assign var=userPerms value=$bloguser->getPermissions($blogId)}
  37                              <script type="text/javascript">
  38                                myTooltip = new YAHOO.widget.Tooltip("myTooltip", {literal}{{/literal}  
  39                                  context:"user_{$bloguser->getId()}",  
  40                                  text:"{$locale->tr("permissions")}:<br/>{foreach from=$userPerms item=perm}{$perm->getPermissionName()}<br/>{/foreach}"
  41                                  {literal}}{/literal} );
  42                              </script>
  43                          </td>
  44                          <td>
  45                              {$bloguser->getFullName()}
  46                          </td>                        
  47                          <td>
  48                              <a href="mailto:{$bloguser->getEmail()}">
  49                              {$bloguser->getEmail()}
  50                              </a>
  51                          </td>
  52                          <td>
  53                              <div class="list_action_button">
  54                              {check_perms perm=update_blog_users}
  55                              <a href="?op=editBlogUser&amp;userId={$bloguser->getId()}" title="{$locale->tr("edit")}">
  56                                 <img src="imgs/admin/icon_edit-16.png" alt="{$locale->tr("edit")}" />
  57                              </a>
  58                              <a href="?op=deleteBlogUserPermissions&amp;userId={$bloguser->getId()}" title="{$locale->tr("revoke_permissions")}">
  59                                 <img src="imgs/admin/icon_delete-16.png" alt="{$locale->tr("revoke_permissions")}" />
  60                              </a>
  61                              {/check_perms}
  62                              </div>
  63                          </td>
  64                      </tr>
  65                      {/foreach}
  66                  </tbody>
  67                  {/if}
  68              </table>
  69          </div>
  70          <div id="list_action_bar">
  71              {check_perms perm=update_blog_users}
  72              <input type="submit" name="delete" value="{$locale->tr("revoke_permissions")}" class="submit" />
  73              <input type="hidden" name="op" value="deleteBlogUsersPermissions" />
  74              {/check_perms}
  75          </div>
  76      </form>
  77  {include file="$admintemplatepath/footernavigation.template"}
  78  {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