[ Index ] |
|
Code source de eZ Publish 3.9.0 |
1 {let matrix=$attribute.content} 2 {switch match=$attribute.contentclass_attribute_identifier} 3 {case match='company_address'} 4 {* {let selectbox_content=array("Postal Address", "Visitor Addres" ) }*} 5 {let selectbox_content=ezini( 'MatrixComponentSettings', 'CompanyAddress', 'content.ini' ) 6 inputType=textarea} 7 {include uri="design:datatype/ezmatrix/selectcomponent.tpl" } 8 {/let} 9 {/case} 10 {case match='contact_information'} 11 {let selectbox_content=false() 12 inputType=text} 13 {switch match=$attribute.object.class_identifier} 14 {case match='company'} 15 {set selectbox_content=ezini( 'MatrixComponentSettings', 'CompanyContactInfo', 'content.ini' )} 16 {/case} 17 {case match='person'} 18 {set selectbox_content=ezini( 'MatrixComponentSettings', 'PersonContactInfo', 'content.ini' )} 19 {/case} 20 {/switch} 21 {include uri="design:datatype/ezmatrix/selectcomponent.tpl" } 22 {/let} 23 {/case} 24 {case} 25 <table> 26 <tr> 27 <th> 28 {section name=ColumnNames loop=$matrix.columns.sequential} 29 {$ColumnNames:item.name} 30 {delimiter} 31 </th> 32 <th> 33 {/delimiter} 34 {/section} 35 </th> 36 </tr> 37 <tr> 38 {section name=Rows loop=$matrix.rows.sequential} 39 <td> 40 {section name=Columns loop=$Rows:item.columns} 41 <input type="text" name="ContentObjectAttribute_ezmatrix_cell_{$attribute.id}[]" value="{$Rows:Columns:item|wash(xhtml)}" /> 42 {delimiter} 43 </td> 44 <td> 45 {/delimiter} 46 {/section} 47 </td> 48 <td> 49 <input type="checkbox" name="ContentObjectAttribute_data_matrix_remove_{$attribute.id}[]" value="{$Rows:index}" /><br /> 50 </td> 51 {delimiter} 52 </tr> 53 <tr> 54 {/delimiter} 55 {/section} 56 </tr> 57 </table> 58 {/case} 59 {/switch} 60 61 <div class="buttonblock"> 62 <input class="button" type="submit" name="CustomActionButton[{$attribute.id}_new_row]" value="{'New row'|i18n('design/base')}" /> 63 <input class="button" type="submit" name="CustomActionButton[{$attribute.id}_remove_selected]" value="{'Remove Selected'|i18n('design/base')}" /> 64 </div> 65 66 {/let}
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 |