[ Index ] |
|
Code source de eZ Publish 3.9.0 |
1 <table class="list" cellspacing="0"> 2 <tr> 3 <th class="tight"> 4 {section show=eq( $select_type, 'checkbox' )} 5 <img src={'toggle-button-16x16.gif'|ezimage} alt="{'Invert selection.'|i18n( 'design/admin/content/browse' )}" title="{'Invert selection.'|i18n( 'design/admin/content/browse' )}" onclick="ezjs_toggleCheckboxes( document.browse, '{$select_name}[]' ); return false;" /> 6 {section-else} 7 8 {/section} 9 </th> 10 <th class="wide"> 11 {'Name'|i18n( 'design/admin/content/browse' )} 12 </th> 13 <th class="tight"> 14 {'Type'|i18n( 'design/admin/content/browse' )} 15 </th> 16 </tr> 17 18 {section var=Nodes loop=$node_array sequence=array( bglight, bgdark )} 19 <tr class="{$Nodes.sequence}"> 20 <td> 21 {* Note: The tpl code for $ignore_nodes_merge with the eq, unique and count 22 is just a replacement for a missing template operator. 23 If there are common elements the unique array will have less elements 24 than the merged one 25 In the future this should be replaced with a new template operator that checks 26 one array against another and returns true if elements in the first 27 exists in the other *} 28 {let ignore_nodes_merge=merge( $browse.ignore_nodes_select_subtree, $Nodes.item.path_array )} 29 {section show=and( or( $browse.permission|not, 30 cond( is_set( $browse.permission.contentclass_id ), 31 fetch( content, access, hash( access, $browse.permission.access, 32 contentobject, $Nodes.item, 33 contentclass_id, $browse.permission.contentclass_id ) ), 34 fetch( content, access, hash( access, $browse.permission.access, 35 contentobject, $Nodes.item ) ) ) ), 36 $browse.ignore_nodes_select|contains( $Nodes.item.node_id )|not, 37 eq( $ignore_nodes_merge|count, 38 $ignore_nodes_merge|unique|count ) )} 39 {section show=is_array( $browse.class_array )} 40 {section show=$browse.class_array|contains( $Nodes.item.object.content_class.identifier )} 41 <input type="{$select_type}" name="{$select_name}[]" value="{$Nodes.item[$select_attribute]}" /> 42 {section-else} 43 <input type="{$select_type}" name="" value="" disabled="disabled" /> 44 {/section} 45 {section-else} 46 {section show=and( or( eq( $browse.action_name, 'MoveNode' ), eq( $browse.action_name, 'CopyNode' ), eq( $browse.action_name, 'AddNodeAssignment' ) ), $Nodes.item.object.content_class.is_container|not )} 47 <input type="{$select_type}" name="{$select_name}[]" value="{$Nodes.item[$select_attribute]}" disabled="disabled" /> 48 {section-else} 49 <input type="{$select_type}" name="{$select_name}[]" value="{$Nodes.item[$select_attribute]}" /> 50 {/section} 51 {/section} 52 {section-else} 53 <input type="{$select_type}" name="" value="" disabled="disabled" /> 54 {/section} 55 {/let} 56 </td> 57 <td> 58 59 {* Replaces node_view_gui... *} 60 {* Note: The tpl code for $ignore_nodes_merge with the eq, unique and count 61 is just a replacement for a missing template operator. 62 If there are common elements the unique array will have less elements 63 than the merged one 64 In the future this should be replaced with a new template operator that checks 65 one array against another and returns true if elements in the first 66 exists in the other *} 67 {let ignore_nodes_merge=merge( $browse.ignore_nodes_click, $Nodes.item.path_array )} 68 {section show=eq( $ignore_nodes_merge|count, 69 $ignore_nodes_merge|unique|count )} 70 {section show=and( or( ne( $browse.action_name, 'MoveNode' ), ne( $browse.action_name, 'CopyNode' ) ), $Nodes.item.object.content_class.is_container )} 71 {$Nodes.item.object.class_identifier|class_icon( small, $Nodes.item.object.class_name )} <a href={concat( '/content/browse/', $Nodes.item.node_id )|ezurl}>{$Nodes.item.name|wash}</a> 72 {section-else} 73 {$Nodes.item.object.class_identifier|class_icon( small, $Nodes.item.object.class_name )} {$Nodes.item.name|wash} 74 {/section} 75 {section-else} 76 {$Nodes.item.object.class_identifier|class_icon( small, $Nodes.item.object.class_name )} {$Nodes.item.name|wash} 77 {/section} 78 {/let} 79 80 </td> 81 <td class="class"> 82 {$Nodes.item.object.content_class.name|wash} 83 </td> 84 </tr> 85 {/section} 86 </table>
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 |