[ Index ] |
|
Code source de eZ Publish 3.9.0 |
1 <div class="content-navigation-childlist"> 2 <table class="list" cellspacing="0"> 3 <tr> 4 {* Remove column *} 5 <th class="remove"><img src={'toggle-button-16x16.gif'|ezimage} alt="{'Invert selection.'|i18n( 'design/admin/node/view/full' )}" title="{'Invert selection.'|i18n( 'design/admin/node/view/full' )}" onclick="ezjs_toggleCheckboxes( document.children, 'DeleteIDArray[]' ); return false;" /></th> 6 7 {* Name column *} 8 <th class="name">{'Name'|i18n( 'design/admin/node/view/full' )}</th> 9 10 {* Class type column *} 11 <th class="class">{'Type'|i18n( 'design/admin/node/view/full' )}</th> 12 13 {* Priority column *} 14 {section show=eq( $node.sort_array[0][0], 'priority' )} 15 <th class="priority">{'Priority'|i18n( 'design/admin/node/view/full' )}</th> 16 {/section} 17 18 {* Edit column *} 19 <th class="edit"> </th> 20 </tr> 21 22 {section var=Nodes loop=$children sequence=array( bglight, bgdark )} 23 {let child_name=$Nodes.item.name|wash 24 node_name=$node.name} 25 26 <tr class="{$Nodes.sequence}"> 27 28 {* Remove checkbox *} 29 <td> 30 {section show=$Nodes.item.can_remove} 31 <input type="checkbox" name="DeleteIDArray[]" value="{$Nodes.item.node_id}" title="{'Use these checkboxes to select items for removal. Click the "Remove selected" button to actually remove the selected items.'|i18n( 'design/admin/node/view/full' )|wash()}" /> 32 {section-else} 33 <input type="checkbox" name="DeleteIDArray[]" value="{$Nodes.item.node_id}" title="{'You do not have permissions remove this item.'|i18n( 'design/admin/node/view/full' )}" disabled="disabled" /> 34 {/section} 35 </td> 36 37 {* Name *} 38 {def $userEnabled='' $userLocked=''} 39 {def $nodeContent=fetch( 'content', 'object', hash( 'object_id', $Nodes.item.contentobject_id ) )} 40 {if $nodeContent.class_identifier|eq('user')} 41 {if not($nodeContent.data_map['user_account'].content.is_enabled)} 42 {set $userEnabled=concat( '<span class="userstatus-disabled">', '(disabled)'|i18n("design/admin/node/view/full") ,'</span>')} 43 {/if} 44 {if $nodeContent.data_map['user_account'].content.is_locked} 45 {set $userLocked=concat( '<span class="userstatus-disabled">', '(locked)'|i18n("design/admin/node/view/full") ,'</span>')} 46 {/if} 47 {/if} 48 <td>{node_view_gui view=line content_node=$Nodes.item} {$userEnabled} {$userLocked}</td> 49 {undef $userEnabled $nodeContent $userLocked} 50 51 {* Class type *} 52 <td class="class">{$Nodes.item.class_name|wash()}</td> 53 54 {* Priority *} 55 {section show=eq( $node.sort_array[0][0], 'priority' )} 56 <td> 57 {section show=$node.can_edit} 58 <input type="text" name="Priority[]" size="3" value="{$Nodes.item.priority}" title="{'Use the priority fields to control the order in which the items appear. Use positive and negative integers. Click the "Update priorities" button to apply the changes.'|i18n( 'design/admin/node/view/full' )|wash()}" /> 59 <input type="hidden" name="PriorityID[]" value="{$Nodes.item.node_id}" /> 60 {section-else} 61 <input type="text" name="Priority[]" size="3" value="{$Nodes.item.priority}" title="{'You are not allowed to update the priorities because you do not have permissions to edit <%node_name>.'|i18n( 'design/admin/node/view/full',, hash( '%node_name', $node_name ) )|wash}" disabled="disabled" /> 62 {/section} 63 </td> 64 {/section} 65 66 {* Edit button *} 67 <td> 68 {section show=$Nodes.item.can_edit} 69 <a href={concat( 'content/edit/', $Nodes.item.contentobject_id )|ezurl}><img src={'edit.gif'|ezimage} alt="{'Edit'|i18n( 'design/admin/node/view/full' )}" title="{'Edit <%child_name>.'|i18n( 'design/admin/node/view/full',, hash( '%child_name', $child_name ) )|wash}" /></a> 70 {section-else} 71 <img src={'edit-disabled.gif'|ezimage} alt="{'Edit'|i18n( 'design/admin/node/view/full' )}" title="{'You do not have permissions to edit %child_name.'|i18n( 'design/admin/node/view/full',, hash( '%child_name', $child_name ) )|wash}" /></a> 72 {/section} 73 </td> 74 </tr> 75 76 {/let} 77 {/section} 78 79 </table> 80 </div> 81
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sat Feb 24 10:30:04 2007 | par Balluche grâce à PHPXref 0.7 |