[ Index ]

PHP Cross Reference of Limb3

title

Body

[close]

/cms/template/admin_file_folder/ -> display.html (source)

   1  <core:wrap file="_cms/page.html" in="content_zone">
   2  
   3  <ar:fetch using='limb/cms/src/model/lmbCmsNode' find='by_id_or_path' target='node'>
   4    <find:params node_id='{$#request.id}' path='/files' />
   5  </ar:fetch>
   6  
   7  <core:datasource id='node'>
   8  
   9  <h1>Files folder</h1>
  10  
  11  <core:include file='_cms/node_breadcrumbs.html'/>
  12  
  13  <ar:fetch using='limb/cms/src/model/lmbCmsNodeKids' find='immediate_children' target='subfolders'>
  14    <find:params parent_id='{$id}' controller='file_folder' />
  15  </ar:fetch>
  16  
  17  <h2>Folders list</h2>
  18  
  19  <route_url params="controller:admin_file_folder,action:create" extra='?popup=1&parent={$id}'>
  20    <img src='/shared/cms/images/icons/create_object.gif' width='24' height='24' alt='Create folder' />
  21  </route_url>
  22  
  23  <form name='list_form' method='post'>
  24  
  25  <list:list id='subfolders'>
  26  <table cellpadding="0" cellspacing="0" class='list'>
  27    <thead>
  28     <tr>
  29       <th><input type='checkbox' onclick='MarkAll(checked);' name='mark_all' /></th>
  30       <th>Title</th>
  31       <th>Actions</th>
  32     </tr>
  33    </thead>
  34    <list:item>
  35      <tr>
  36        <td><input type='checkbox' name='ids[]' value='{$id}' class='input' runat='client'/></td>
  37        <td><route_url params='id:{$id}'>{$title}</route_url></td>
  38        <td><route_url params="controller:admin_file_folder,action:edit,id:{$id}" extra='?popup=1' alt='Edit' title='Edit'><img src='/shared/cms/images/icons/edit.gif' width='24' height='24' /></route_url>
  39            <route_url params="controller:admin_file_folder,action:delete" extra='?popup=1&ids[]={$id}' alt='Delete' title='Delete'><img src='/shared/cms/images/icons/delete.gif' width='24' height='24' /></route_url>
  40        </td>
  41      </tr>
  42    </list:item>
  43  </table>
  44    <br/>
  45    <route_url_set field='delete_url' params="controller:admin_file_folder,action:delete" />
  46    <input type='submit' value='Delete' onclick='Limb.Form.submitPopup(this.form, "{$delete_url}");return false;'/>
  47  </list:list>
  48  
  49  </form>
  50  
  51  <ar:fetch using='limb/cms/src/model/lmbCmsNodeKids' find='immediate_children' target='files' navigator='pager'>
  52    <find:params parent_id='{$id}' controller='file_object' />
  53  </ar:fetch>
  54  
  55  <core:include file='_cms/pager.html'/>
  56  
  57  <h2>Files list</h2>
  58  
  59  <route_url params="controller:admin_file_object,action:create" extra='?popup=1&parent={$id}'>
  60    <img src='/shared/cms/images/icons/create_object.gif' width='24' height='24' alt='Create file' />
  61  </route_url>
  62  
  63  <form name='list_form' method='post'>
  64  
  65  <list:list id='files'>
  66  <table cellpadding="0" cellspacing="0" class='list'>
  67    <thead>
  68     <tr>
  69       <th><input type='checkbox' onclick='MarkAll(checked);' name='mark_all' /></th>
  70       <th>Title</th>
  71       <th>Actions</th>
  72     </tr>
  73    </thead>
  74    <list:item>
  75      <tr>
  76        <td><input type='checkbox' name='ids[]' value='{$id}' class='input' runat='client'/></td>
  77        <td>{$title}</td>
  78        <td><route_url params="controller:admin_file_object,action:edit,id:{$id}" extra='?popup=1'><img src='/shared/cms/images/icons/edit.gif' width='24' height='24' alt='Edit' /></route_url>
  79            <route_url params="controller:admin_file_object,action:delete" extra='?popup=1&ids[]={$id}'><img src='/shared/cms/images/icons/delete.gif' width='24' height='24' alt='Delete' /></route_url>
  80        </td>
  81      </tr>
  82    </list:item>
  83  </table>
  84    <br/>
  85    <route_url_set field='delete_url' params="controller:admin_file_object,action:delete" />
  86    <input type='submit' value='Delete' onclick='Limb.Form.submitPopup(this.form, "{$delete_url}");return false;'/>
  87  </list:list>
  88  
  89  </form>
  90  
  91  </core:datasource>
  92  </core:wrap>


Generated: Fri Dec 5 04:05:07 2008 Cross-referenced by PHPXref 0.7