[ Index ] |
|
Code source de eZ Publish 3.9.0 |
1 {* Poll - Embed view *} 2 <div class="content-view-embed"> 3 <div class="class-poll"> 4 <h2>{$object.name|wash}</h2> 5 6 <div class="content-body"> 7 <form method="post" action={"content/action"|ezurl}> 8 <input type="hidden" name="ContentNodeID" value="{$object.main_node_id}" /> 9 <input type="hidden" name="ContentObjectID" value="{$object.id}" /> 10 <input type="hidden" name="ViewMode" value="full" /> 11 12 {let attribute=$object.data_map.question 13 option_id=cond( is_set( $#collection_attributes[$attribute.id]), $#collection_attributes[$attribute.id].data_int,false() )} 14 15 <h3>{$attribute.content.name}</h3> 16 17 {section name=OptionList loop=$attribute.content.option_list sequence=array(bglight,bgdark)} 18 <input type="radio" name="ContentObjectAttribute_data_option_value_{$attribute.id}" value="{$OptionList:item.id}" 19 {section show=$OptionList:item.id|eq($option_id)}checked="checked"{/section} 20 />{$OptionList:item.value}<br /> 21 {/section} 22 23 {/let} 24 <input class="button" type="submit" name="ActionCollectInformation" value={"Vote"|i18n("design/base")} /> 25 26 </form> 27 </div> 28 </div> 29 </div>
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 |