[ Index ]
 

Code source de eZ Publish 3.9.0

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/design/standard/templates/node/view/ -> full.tpl (source)

   1  {* DO NOT EDIT THIS FILE! Use an override template instead. *}
   2  <SCRIPT LANGUAGE="JavaScript" type="text/javascript">
   3  <!--
   4  {literal}
   5  function checkAll()
   6  {
   7  {/literal}
   8      if ( document.fullview.selectall.value == "{'Select all'|i18n('design/standard/node/view')}" )
   9  {literal}
  10      {
  11  {/literal}
  12          document.fullview.selectall.value = "{'Deselect all'|i18n('design/standard/node/view')}";
  13  {literal}
  14          with (document.fullview)
  15      {
  16              for (var i=0; i < elements.length; i++)
  17          {
  18                  if (elements[i].type == 'checkbox' && elements[i].name == 'DeleteIDArray[]')
  19                       elements[i].checked = true;
  20          }
  21          }
  22       }
  23       else
  24       {
  25  {/literal}
  26           document.fullview.selectall.value = "{'Select all'|i18n('design/standard/node/view')}";
  27  {literal}
  28           with (document.fullview)
  29       {
  30              for (var i=0; i < elements.length; i++)
  31          {
  32                  if (elements[i].type == 'checkbox' && elements[i].name == 'DeleteIDArray[]')
  33                       elements[i].checked = false;
  34          }
  35           }
  36       }
  37  }
  38  {/literal}
  39  //-->
  40  </SCRIPT>
  41  
  42  {* Default object admin view template *}
  43  {default with_children=true()
  44           is_editable=true()
  45       is_standalone=true()}
  46  {let page_limit=15
  47       list_count=and($with_children,fetch('content','list_count',hash(parent_node_id,$node.node_id,depth_operator,eq)))}
  48  {default content_object=$node.object
  49           content_version=$node.contentobject_version_object
  50           node_name=$node.name|wash}
  51  
  52  {section show=$is_standalone}
  53  <form name="fullview" method="post" action={"content/action"|ezurl}>
  54  {/section}
  55  
  56  
  57  <div class="objectheader">
  58  <h2>{'Default object view.'|i18n('design/standard/node/view')} <a class="menuheadlink" href={"/visual/templateview/node/view/full.tpl"|ezurl}>{'Click to create a custom template'|i18n('design/standard/node/view')}</a>, {'Node ID'|i18n( 'design/standard/node/view' )}: {$node.node_id}, {'Object ID'|i18n( 'design/standard/node/view' )}: {$node.object.id}</h2>
  59  </div>
  60  
  61  <div class="object">
  62  <h1>{$node_name}</h1>
  63  <input type="hidden" name="TopLevelNode" value="{$content_object.main_node_id}" />
  64  
  65      {default validation=false()}
  66      {section show=$validation}
  67        {include name=Validation uri='design:content/collectedinfo_validation.tpl' validation=$validation collection_attributes=$collection_attributes}
  68      {/section}
  69      {/default}
  70  
  71      {section name=ContentObjectAttribute loop=$content_version.contentobject_attributes}
  72      <div class="block">
  73          <label>{$ContentObjectAttribute:item.contentclass_attribute.name|wash}</label>
  74          <p class="box">{attribute_view_gui attribute=$ContentObjectAttribute:item}</p>
  75      </div>
  76      {/section}
  77  
  78  <div class="buttonblock">
  79  {section show=$is_editable}
  80     {switch match=$content_object.can_edit}
  81     {case match=1}
  82     <input type="hidden" name="ContentObjectID" value="{$content_object.id}" />
  83     <input class="button" type="submit" name="EditButton" value="{'Edit'|i18n('design/standard/node/view')}" />
  84     {/case}
  85     {case match=0}
  86     {/case}
  87     {/switch}
  88  {/section}
  89      <input class="button" type="submit" name="ActionPreview" value="{'Preview'|i18n('design/standard/node/view')}" />
  90      {section show=$node.object.can_remove|eq( true() )}
  91      <input class="button" type="submit" name="ActionRemove" value="{'Remove'|i18n('design/standard/node/view')}" />
  92      {/section}
  93      <input class="button" type="submit" name="ActionAddToBookmarks" value="{'Add to Bookmarks'|i18n('design/standard/node/view')}" />
  94      <input class="button" type="submit" name="ActionAddToNotification" value="{'Notify me about updates'|i18n('design/standard/node/view')}" />
  95  
  96  </div>
  97  
  98  </div>
  99  
 100      {let related_objects=$content_version.related_contentobject_array}
 101  
 102        {section name=ContentObject  loop=$related_objects show=$related_objects  sequence=array(bglight,bgdark)}
 103          <div class="block">
 104          {content_view_gui view=text_linked content_object=$Object:ContentObject:item}
 105          </div>
 106        {/section}
 107      {/let}
 108  
 109      {section show=$is_standalone}
 110      {let content_action_list=$content_object.content_action_list}
 111          {section name=ContentAction loop=$content_action_list show=$content_action_list}
 112              <div class="block">
 113                  <input type="submit" name="{$ContentAction:item.action}" value="{$ContentAction:item.name|wash}" />
 114              </div>
 115          {/section}
 116      {/let}
 117      {/section}
 118  
 119  <div class="buttonblock">
 120  
 121  {section show=$content_object.can_create}
 122           <input type="hidden" name="NodeID" value="{$node.node_id}" />
 123           <select name="ClassID">
 124            {section name=Classes loop=$content_object.can_create_class_list}
 125            <option value="{$:item.id}">{$:item.name|wash}</option>
 126            {/section}
 127           </select>
 128           <input class="button" type="submit" name="NewButton" value="{'Create here'|i18n('design/standard/node/view')}" />
 129  {/section}
 130  </div>
 131  
 132  
 133  <input type="hidden" name="ContentNodeID" value="{$node.node_id}" />
 134  <input type="hidden" name="ContentObjectID" value="{$content_object.id}" />
 135  <input type="hidden" name="ViewMode" value="full" />
 136  
 137  
 138  {section show=$with_children}
 139  
 140  {let name=Child
 141       children=fetch('content','list',hash(parent_node_id,$node.node_id,sort_by,$node.sort_array,limit,$page_limit,offset,$view_parameters.offset,depth_operator,eq))
 142       can_remove=false() can_edit=false() can_create=false() can_copy=false()}
 143  
 144  {section show=$:children}
 145  
 146  {section loop=$:children}
 147    {section show=$:item.object.can_remove}
 148      {set can_remove=true()}
 149    {/section}
 150    {section show=$:item.object.can_edit}
 151      {set can_edit=true()}
 152    {/section}
 153    {section show=$:item.object.can_create}
 154      {set can_create=true()}
 155    {/section}
 156  {/section}
 157  
 158  {set can_copy=$content_object.can_create}
 159  
 160  
 161  
 162  <table class="list" width="100%" cellspacing="0" cellpadding="0" border="0">
 163  <tr>
 164      {section show=$:can_remove}
 165      <th width="1">
 166  &nbsp;
 167      </th>
 168      {/section}
 169      <th>
 170        {"Name"|i18n("design/standard/node/view")}
 171      </th>
 172      <th>
 173        {"Class"|i18n("design/standard/node/view")}
 174      </th>
 175      <th>
 176        {"Section"|i18n("design/standard/node/view")}
 177      </th>
 178      {section show=eq($node.sort_array[0][0],'priority')}
 179      <th>
 180        {"Priority"|i18n("design/standard/node/view")}
 181      </th>
 182      {/section}
 183      {section show=$:can_edit}
 184      <th width="1">
 185        {"Edit"|i18n("design/standard/node/view")}
 186      </th>
 187      {/section}
 188      {section show=$:can_copy}
 189      <th width="1">
 190        {"Copy"|i18n("design/standard/node/view")}
 191      </th>
 192      {/section}
 193  </tr>
 194  {section loop=$:children sequence=array(bglight,bgdark)}
 195  <tr class="{$Child:sequence}">
 196          {section show=$:can_remove}
 197      <td align="right" width="1">
 198      {section show=$:item.object.can_remove}
 199               <input type="checkbox" name="DeleteIDArray[]" value="{$Child:item.node_id}" />
 200          {/section}
 201      </td>
 202          {/section}
 203      <td>
 204          <a href={$:item.url_alias|ezurl}>{node_view_gui view=line content_node=$:item}</a>
 205  
 206  {*        {node_view_gui view=line content_node=$:item} *}
 207      </td>
 208      <td>
 209          {$Child:item.object.class_name|wash}
 210      </td>
 211      <td>
 212          {$Child:item.object.section_id}
 213      </td>
 214      {section show=eq($node.sort_array[0][0],'priority')}
 215      <td width="40" align="left">
 216          <input type="text" name="Priority[]" size="2" value="{$Child:item.priority}">
 217          <input type="hidden" name="PriorityID[]" value="{$Child:item.node_id}">
 218      </td>
 219      {/section}
 220  
 221          {section show=$:can_edit}
 222              <td width="1">
 223                  {section show=$:item.object.can_edit}
 224                      <a href={concat("content/edit/",$Child:item.contentobject_id)|ezurl}><img src={"edit.gif"|ezimage} alt="Edit" /></a>
 225                  {/section}
 226              </td>
 227          {/section}
 228          {section show=$:can_copy}
 229          <td>
 230            <a href={concat("content/copy/",$Child:item.contentobject_id)|ezurl}><img src={"copy.gif"|ezimage} alt="{'Copy'|i18n('design/standard/node/view')}" /></a>
 231          </td>
 232          {/section}
 233  
 234  </tr>
 235  {/section}
 236  </table>
 237  
 238      {section show=eq($node.sort_array[0][0],'priority')}
 239        {section show=and($content_object.can_edit,eq($node.sort_array[0][0],'priority'))}
 240           <input class="button" type="submit"  name="UpdatePriorityButton" value="{'Update'|i18n('design/standard/node/view')}" />
 241        {/section}
 242      {/section}
 243      {section show=$:can_edit}
 244      {/section}
 245      {section show=$:can_copy}
 246      {/section}
 247      {section show=$:can_remove}
 248  {*    {section show=fetch('content','list',hash(parent_node_id,$node.node_id,sort_by,$node.sort_array,limit,$page_limit,offset,$view_parameters.offset))}
 249      list_count*}
 250      {section show=$list_count}
 251              <input type="submit" name="RemoveButton" value="{'Remove'|i18n('design/standard/node/view')}" />
 252          <input name="selectall" onclick=checkAll() type="button" value="{'Select all'|i18n('design/standard/node/view')}">
 253      {/section}
 254      {/section}
 255  
 256  
 257  {/section}
 258  {/let}
 259  
 260  {include name=navigator
 261           uri='design:navigator/google.tpl'
 262           page_uri=concat('/content/view','/full/',$node.node_id)
 263           item_count=$list_count
 264           view_parameters=$view_parameters
 265           item_limit=$page_limit}
 266  
 267  
 268  {/section}
 269  
 270  
 271  {section show=$is_standalone}
 272  </form>
 273  {/section}
 274  
 275  {/default}
 276  {/let}
 277  {/default}
 278  


Généré le : Sat Feb 24 10:30:04 2007 par Balluche grâce à PHPXref 0.7