Source for file display.phtml

Documentation is available at display.phtml

  1. {{wrap with="_cms/page.phtml" into="content_zone"}}
  2.    <div id="header_block">
  3.  
  4.       <h1>Список пользователей</h1>
  5.  
  6.       <div class="header_actions">
  7.           <a href='{{route_url params="action:create" /}}?popup=1' class='create'>Добавить пользователя</a>
  8.       </div>
  9.  
  10.     </div>
  11.  
  12.     <div id="content_block">
  13.  
  14.       <active_record:fetch class_path='limb/cms/src/model/lmbCmsUser' target="users" order="email=ASC" navigator="pager"/>
  15.       <?php $this->userslmbActiveRecord::find('lmbCmsUser');?>
  16.       {{paginate iterator='$#users' pager='pager' /}}
  17.         {{include file='_cms/pager.phtml'/}}
  18.  
  19.       {{form name='list_form' method='post' class='list'}}
  20.  
  21.         <div class='list_actions'>
  22.           <input type="button" class='button' value="Удалить" onclick='Limb.Form.submitPopup(this.form, "{{route_url params="action:delete" /}}");'/>
  23.         </div>
  24.  
  25.         <table>
  26.           <tr>
  27.             <th class='selector'>{{include file='_cms/selector.phtml'/}}</th>
  28.             <th>#ID</th>
  29.             <th>Имя</th>
  30.             <th>Логин</th>
  31.             <th>E-mail</th>
  32.             <th>Группа</th>
  33.             <th>Действия</th>
  34.           </tr>
  35.           {{list using='{$#users}' parity='{$Parity}'}}
  36.             {{list:item}}
  37.             <tr class='{$Parity}'>
  38.               <td class='selector'>{{input type='checkbox' name='ids[]' value='{$item.id}' runat='client'/}}</td>
  39.               <td>#{$item.id}</td>
  40.               <td>{$item.name}</td>
  41.               <td>{$item.login}</td>
  42.               <td><a href='mailto:{$item.email}'>{$item.email}</a></td>
  43.               <td>{$item.current_role.name}</td>
  44.               <td class='actions'>
  45.                   <a href='{{route_url params="action:change_password,id:{$item.id}?popup=1" /}}'  title="Сменить пароль"><img src='/shared/cms/images/icon/action/password.gif' width='14' height='16' alt='Сменить пароль'/></a>
  46.                   <a href='{{route_url params="action:edit,id:{$item.id}?popup=1" /}}'  title="Редактировать"><img src='/shared/cms/images/icon/action/edit.gif' width='16' height='17'  alt='Редактировать' /></a>
  47.                           <a href='{{route_url params="action:delete?popup=1&ids[]={$item.id}" /}}'  title="Удалить"><img src='/shared/cms/images/icon/action/delete.gif' width='14' height='17'  alt='Удалить' /></a>
  48.               </td>
  49.             </tr>
  50.             {{/list:item}}
  51.           {{/list}}
  52.         </table>
  53.  
  54.         <div class='list_actions'>
  55.           <input type="button" class='button' value="Удалить" onclick='Limb.Form.submitPopup(this.form, "{{route_url params="action:delete" /}}");'/>
  56.         </div>
  57.  
  58.       {{/form}}
  59.  
  60.     </div>
  61.  
  62. {{/wrap}}

Documentation generated on Wed, 07 Jan 2009 03:46:16 +0300 by phpDocumentor 1.3.2