[ Index ]

PHP Cross Reference of Limb3

title

Body

[close]

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

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


Generated: Sat Nov 22 03:48:54 2008 Cross-referenced by PHPXref 0.7