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

   1  {include file="$admintemplatepath/chooser/header.template"}
   2  <script type="text/javascript">
   3  {literal}
   4  YAHOO.util.Event.addListener( window, "load", function() {
   5          var t = new Lifetype.UI.TableEffects( "list" );
   6          t.stripe();
   7          t.highlightRows();
   8      });
   9  {/literal}
  10  </script>
  11          <div id="list_nav_bar">
  12              <div id="list_nav_select">             
  13  <form id="viewUsers" action="admin.php" method="post">
  14   <fieldset>
  15    <legend>{$locale->tr("show_by")}</legend>
  16     <div class="list_nav_option">
  17      <label for="status">{$locale->tr("status")}</label>
  18      <br />
  19      <select name="status" id="status">
  20      {foreach from=$userstatus key=name item=status}
  21        <option value="{$status}" {if $currentstatus == $status} selected="selected"{/if}>{$locale->tr($name)}</option>
  22      {/foreach}
  23      </select>
  24     </div>
  25     
  26     <div class="list_nav_option">
  27     <label for="search">{$locale->tr("search_terms")}</label>
  28     <br />
  29     <input type="text" name="searchTerms" value="{$searchTerms}" size="15" id="search" />
  30     </div>   
  31     
  32     <div class="list_nav_option">
  33      <br />
  34      <input type="hidden" name="op" value="siteUsersChooser" />
  35      <input type="submit" name="Show" value="{$locale->tr("show")}" />
  36      <input type="hidden" name="mode" value="{$mode}" />
  37     </div>
  38    </fieldset> 
  39   </form> 
  40   </div>
  41   <br style="clear:both" />
  42   </div>             
  43   
  44          <form id="siteUsers" action="admin.php" method="post">
  45          <div id="list">
  46    {include file="$admintemplatepath/successmessage.template"}
  47    {include file="$admintemplatepath/errormessage.template"}
  48              <table class="info" style="width:560px;" summary="{$locale->tr("editSiteUsers")}">
  49                  <thead>
  50                      <tr>
  51                          <th style="width:25px;">UID</th>
  52                          <th style="width:135px;">{$locale->tr("username")}</th>
  53                          <th style="width:305px;">{$locale->tr("full_name")}</th>                        
  54                          <th style="width:175px;">{$locale->tr("email")}</th>
  55                          <th style="width:50px;">{$locale->tr("status")}</th>
  56                          <th style="width:90px;">{$locale->tr("actions")}</th>
  57                      </tr>
  58                  </thead>
  59                  <tbody>
  60                     {foreach from=$siteusers item=siteuser}
  61                      <tr>
  62                          <td class="col_highlighted">
  63                              {$siteuser->getId()}
  64                          </td>
  65                          <td class="col_highlighted">
  66                              {if $mode=="1"}
  67                                <a href="javascript:setDocumentField(parent.opener.document, 'userName','{$siteuser->getUsername()}');setDocumentField(parent.opener.document,'userId','{$siteuser->getId()}');window.close()">
  68                              {else}
  69                                <a href="javascript:appendDocumentList(parent.opener.document, 'userList','{$siteuser->getId()}','{$siteuser->getUsername()}');window.close()">
  70                              {/if}
  71                                {$siteuser->getUsername()}
  72                              </a>
  73                          </td>
  74                          <td>
  75                              {$siteuser->getFullName()|truncate:70:"..."}
  76                          </td>                        
  77                          <td>
  78                              <a href="mailto:{$siteuser->getEmail()}">
  79                              {$siteuser->getEmail()}
  80                              </a>
  81                          </td>
  82                          <td>
  83                            {foreach from=$userstatus key=name item=status}
  84                             {if $siteuser->getStatus() == $status}
  85                              {if $status == 2}<span style="color:red">{$locale->tr($name)}</span>
  86                              {else}{$locale->tr($name)}{/if}
  87                             {/if}
  88                            {/foreach}                           
  89                          </td>
  90                          <td>
  91                            <div class="list_action_button">
  92                              {if $mode=="1"}
  93                                <a href="javascript:setDocumentField(parent.opener.document, 'userName','{$siteuser->getUsername()}');setDocumentField(parent.opener.document,'userId','{$siteuser->getId()}');window.close()">
  94                              {else}
  95                                <a href="javascript:appendDocumentList(parent.opener.document, 'userList','{$siteuser->getId()}','{$siteuser->getUsername()}');window.close()">
  96                              {/if}
  97                                <img src="imgs/admin/icon_arrow-16.png" alt="{$locale->tr("select_user")}" />
  98                              </a>
  99                            </div>                           
 100                          </td>
 101                      </tr>
 102                      {/foreach}
 103                  </tbody>
 104              </table>
 105          </div>        
 106          <div id="list_action_bar">
 107              {adminpager style=list}
 108              <a href="javascript:window.close()">{$locale->tr("close")}</a>
 109          </div>
 110  {include file="$admintemplatepath/chooser/footer.template"}


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