[ Index ] |
|
Code source de eZ Publish 3.9.0 |
1 {include uri="design:pdf/edit_validation.tpl"} 2 3 <form action={concat( 'pdf/edit/', $pdf_export.id )|ezurl} method="post" name="ExportPDF"> 4 5 <div class="context-block"> 6 7 {* DESIGN: Header START *}<div class="box-header"><div class="box-tc"><div class="box-ml"><div class="box-mr"><div class="box-tl"><div class="box-tr"> 8 9 <h1 class="context-title">{'pdfexport'|icon( 'normal', 'PDF Export'|i18n( 'design/admin/pdf/edit' ) )} {'%pdf_export_title [PDF export]'|i18n( 'design/admin/pdf/edit',, hash( '%pdf_export_title', $pdf_export.title ) )|wash}</h1> 10 11 {* DESIGN: Mainline *}<div class="header-mainline"></div> 12 13 {* DESIGN: Header END *}</div></div></div></div></div></div> 14 15 {* DESIGN: Content START *}<div class="box-ml"><div class="box-mr"><div class="box-content"> 16 17 <div class="context-attributes"> 18 {* Title. *} 19 <div class="block"> 20 <label>{'Title'|i18n( 'design/admin/pdf/edit' )}:</label> 21 <input class="box" id="pdfTitle" type="text" name="Title" value="{$pdf_export.title|wash}" /> 22 </div> 23 24 <fieldset> 25 <legend>{'Frontpage'|i18n( 'design/admin/pdf/edit' )}</legend> 26 27 {* Display frontpage. *} 28 <div class="block"> 29 <label>{'Display frontpage'|i18n( 'design/admin/pdf/edit' )}:</label> 30 <input type="checkbox" name="DisplayFrontpage" {section show=$pdf_export.show_frontpage|eq(1)}checked="checked"{/section} /> 31 </div> 32 33 {* Intro text. *} 34 <div class="block"> 35 <label>{'Intro text'|i18n( 'design/admin/pdf/edit' )}:</label> 36 <textarea class="box" name="IntroText" cols="64" rows="3">{$pdf_export.intro_text|wash}</textarea> 37 </div> 38 39 {* Sub text. *} 40 <div class="block"> 41 <label>{'Sub text'|i18n( 'design/admin/pdf/edit' )}:</label> 42 <textarea class="box" name="SubText" cols="64" rows="3">{$pdf_export.sub_text|wash}</textarea> 43 </div> 44 </fieldset> 45 46 {* Source node. *} 47 <div class="block"> 48 <fieldset> 49 <legend>{'Source node'|i18n( 'design/admin/pdf/edit' )}</legend> 50 {section show=$pdf_export.source_node} 51 <table class="list" cellspacing="0"> 52 53 <tr> 54 <th>{'Name'|i18n( 'design/admin/pdf/edit' )}</th> 55 <th>{'Type'|i18n( 'design/admin/pdf/edit' )}</th> 56 <th>{'Section'|i18n( 'design/admin/pdf/edit' )}</th> 57 </tr> 58 <tr> 59 <td>{$pdf_export.source_node.class_identifier|class_icon( small, $pdf_export.source_node.class_name )} {$pdf_export.source_node.name|wash}</td> 60 <td>{$pdf_export.source_node.class_name|wash}</td> 61 <td>{let section_object=fetch( section, object, hash( section_id, $pdf_export.source_node.object.section_id ) )}{section show=$section_object}{$section_object.name|wash}{section-else}<i>{'Unknown'|i18n( 'design/admin/pdf/edit' )}</i>{/section}{/let}</td> 62 </tr> 63 64 </table> 65 {section-else} 66 <p>{'There is no source node.'|i18n( 'design/admin/pdf/edit' )}</p> 67 {/section} 68 <input class="button" type="submit" name="ExportPDFBrowse" value="{'Browse'|i18n( 'design/admin/pdf/edit' )}" /> 69 <input type="hidden" name="SourceNode" value="{$pdf_export.source_node_id|wash}" /> 70 </fieldset> 71 </div> 72 73 {* Export structure. *} 74 <div class="block"> 75 <label>{'Export structure'|i18n( 'design/admin/pdf/edit' )}:</label> 76 <select name="ExportType"> 77 <option {section show=$pdf_export.export_structure|eq( 'tree' )|not()}selected="selected"{/section} value="node">{'Node'|i18n( 'design/admin/pdf/edit' )}</option> 78 <option {section show=$pdf_export.export_structure|eq( 'tree' )}selected="selected"{/section} value="tree">{'Tree'|i18n( 'design/admin/pdf/edit' )}</option> 79 </select> 80 </div> 81 82 {* Export classes. *} 83 <div class="block"> 84 <label>{'Export classes (if exporting a tree)'|i18n( 'design/admin/pdf/edit' )}:</label> 85 <select name="ClassList[]" multiple="multiple" size="8"> 86 {section var=class loop=$export_class_array} 87 <option value="{$class.item.id}" 88 {section show=$pdf_export.export_classes|contains($class.item.id)} 89 selected="selected" 90 {/section} 91 >{$class.item.name|wash}</option> 92 {/section} 93 </select> 94 </div> 95 96 {* Export destination. *} 97 <div class="block"> 98 <label>{'Export type'|i18n( 'design/admin/pdf/edit' )}:</label> 99 <select name="DestinationType"> 100 <option value="url" {section show=$export_type|eq( 2 )|not}selected="selected"{/section}>{'Generate once'|i18n( 'design/admin/pdf/edit' )}</option> 101 <option value="download" {section show=$export_type|eq( 2 )}selected="selected"{/section}>{'Generate on the fly'|i18n( 'design/admin/pdf/edit' )}</option> 102 </select> 103 </div> 104 <div class="block"> 105 <label>{'Filename (if generated on the fly)'|i18n( 'design/admin/pdf/edit' )}:</label> 106 <input class="box" type="text" name="DestinationFile" value="{$pdf_export.pdf_filename|wash}" /> 107 </div> 108 109 </div> 110 111 {* DESIGN: Content END *}</div></div></div> 112 113 {* Buttons. *} 114 <div class="controlbar"> 115 {* DESIGN: Control bar START *}<div class="box-bc"><div class="box-ml"><div class="box-mr"><div class="box-tc"><div class="box-bl"><div class="box-br"> 116 <div class="block"> 117 <input class="button" type="submit" name="ExportPDFButton" value="{'OK'|i18n( 'design/admin/pdf/edit' )}" /> 118 <input class="button" type="submit" name="DiscardButton" value="{'Cancel'|i18n( 'design/admin/pdf/edit' )}" /> 119 </div> 120 {* DESIGN: Control bar END *}</div></div></div></div></div></div> 121 </div> 122 123 </div> 124 125 </form> 126 127 {literal} 128 <script language="JavaScript" type="text/javascript"> 129 <!-- 130 window.onload=function() 131 { 132 document.getElementById('pdfTitle').select(); 133 document.getElementById('pdfTitle').focus(); 134 } 135 --> 136 </script> 137 {/literal}
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 |