[ Index ]
 

Code source de eZ Publish 3.9.0

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/design/standard/templates/content/datatype/edit/ -> ezmedia.tpl (source)

   1  {* DO NOT EDIT THIS FILE! Use an override template instead. *}
   2  {default attribute_base=ContentObjectAttribute}
   3  
   4  {* Type. *}
   5  <div class="block">
   6      <label>{'Type'|i18n( 'design/standard/content/datatype' )}:</label>
   7      <p>
   8      {switch name=mediaType match=$attribute.contentclass_attribute.data_text1}
   9      {case match=flash}{'Flash'|i18n( 'design/standard/content/datatype' )}{/case}
  10      {case match=quick_time}{'QuickTime'|i18n( 'design/standard/content/datatype' )}{/case}
  11      {case match=real_player}{'Real player'|i18n( 'design/standard/content/datatype' )}{/case}
  12      {case match=windows_media_player}{'Windows media player'|i18n( 'design/standard/content/datatype' )}{/case}
  13      {case}{'Unknown'|i18n( 'design/standard/content/datatype' )}{/case}
  14      {/switch}
  15      </p>
  16  </div>
  17  
  18  {* Current file. *}
  19  <div class="block">
  20  <label>{'Current file'|i18n( 'design/standard/content/datatype' )}:</label>
  21  {section show=$attribute.content.filename}
  22  <table class="list" cellspacing="0">
  23  <tr>
  24      <th>{'Filename'|i18n( 'design/standard/content/datatype' )}</th>
  25      <th>{'MIME type'|i18n( 'design/standard/content/datatype' )}</th>
  26      <th>{'Size'|i18n( 'design/standard/content/datatype' )}</th>
  27  </tr>
  28  <tr>
  29      <td>{$attribute.content.original_filename}</td>
  30      <td>{$attribute.content.mime_type}</td>
  31      <td>{$attribute.content.filesize|si( byte )}</td>
  32  </tr>
  33  </table>
  34  {section-else}
  35  <p>{'There is no file.'|i18n( 'design/standard/content/datatype' )}</p>
  36  {/section}
  37  </div>
  38  
  39  {* Remove button. *}
  40  {section show=$attribute.content.filename}
  41      <input class="button" type="submit" name="CustomActionButton[{$attribute.id}_delete_media]" value="{'Remove'|i18n('design/standard/content/datatype')}" title="{'Remove the file from this draft.'|i18n( 'design/standard/content/datatype' )}" />
  42  {section-else}
  43      <input class="button-disabled" type="submit" name="CustomActionButton[{$attribute.id}_delete_media]" value="{'Remove'|i18n('design/standard/content/datatype')}" disabled="disabled" />
  44  {/section}
  45  
  46  
  47  
  48  
  49  {switch name=mediaType match=$attribute.contentclass_attribute.data_text1}
  50  
  51  {* Flash. *}
  52  {case match=flash}
  53  <div class="block">
  54      <input type="hidden" name="MAX_FILE_SIZE" value="{$attribute.contentclass_attribute.data_int1|mul( 1024, 1024 )}" />
  55      <label>{'New file for upload'|i18n( 'design/standard/content/datatype' )}:</label>
  56      <input class="box" name="{$attribute_base}_data_mediafilename_{$attribute.id}" type="file" />
  57  </div>
  58  
  59  <div class="block">
  60  
  61  <div class="element">
  62      <label>{'Width'|i18n( 'design/standard/content/datatype' )}:</label>
  63      <input type="text" name="{$attribute_base}_data_media_width_{$attribute.id}" size="5" value="{$attribute.content.width}" />
  64  </div>
  65  
  66  <div class="element">
  67      <label>{'Height'|i18n( 'design/standard/content/datatype' )}:</label>
  68      <input type="text" name="{$attribute_base}_data_media_height_{$attribute.id}" size="5" value="{$attribute.content.height}" />
  69      &nbsp;
  70      &nbsp;
  71      &nbsp;
  72  </div>
  73  
  74  <div class="element">
  75  <label>{'Quality'|i18n( 'design/standard/content/datatype' )}:</label>
  76  <select name="{$attribute_base}_data_media_quality_{$attribute.id}">
  77  {switch name=Sw match=$attribute.content.quality}
  78  {case match=high}
  79    <option value="high" selected="selected">{'High'|i18n( 'design/standard/content/datatype' )}</option>
  80    <option value="best">{'Best'|i18n( 'design/standard/content/datatype' )}</option>
  81    <option value="low">{'Low'|i18n( 'design/standard/content/datatype' )}</option>
  82    <option value="autohigh">{'Autohigh'|i18n( 'design/standard/content/datatype' )}</option>
  83    <option value="autolow">{'Autolow'|i18n( 'design/standard/content/datatype' )}</option>
  84  {/case}
  85  {case match=best}
  86    <option value="high">{'High'|i18n( 'design/standard/content/datatype' )}</option>
  87    <option value="best" selected="selected">{'Best'|i18n( 'design/standard/content/datatype' )}</option>
  88    <option value="low">{'Low'|i18n( 'design/standard/content/datatype' )}</option>
  89    <option value="autohigh">{'Autohigh'|i18n( 'design/standard/content/datatype' )}</option>
  90    <option value="autolow">{'Autolow'|i18n( 'design/standard/content/datatype' )}</option>
  91  {/case}
  92  {case match=low}
  93    <option value="high">{'High'|i18n( 'design/standard/content/datatype' )}</option>
  94    <option value="best">{'Best'|i18n( 'design/standard/content/datatype' )}</option>
  95    <option value="low" selected="selected">{'Low'|i18n( 'design/standard/content/datatype' )}</option>
  96    <option value="autohigh">{'Autohigh'|i18n( 'design/standard/content/datatype' )}</option>
  97    <option value="autolow">{'Autolow'|i18n( 'design/standard/content/datatype' )}</option>
  98  {/case}
  99  {case match=autohigh}
 100    <option value="high">{'High'|i18n( 'design/standard/content/datatype' )}</option>
 101    <option value="best">{'Best'|i18n( 'design/standard/content/datatype' )}</option>
 102    <option value="low">{'Low'|i18n( 'design/standard/content/datatype' )}</option>
 103    <option value="autohigh" selected="selected">{'Autohigh'|i18n( 'design/standard/content/datatype' )}</option>
 104    <option value="autolow">{'Autolow'|i18n( 'design/standard/content/datatype' )}</option>
 105  {/case}
 106  {case match=autolow}
 107    <option value="high">{'High'|i18n( 'design/standard/content/datatype' )}</option>
 108    <option value="best">{'Best'|i18n( 'design/standard/content/datatype' )}</option>
 109    <option value="low">{'Low'|i18n( 'design/standard/content/datatype' )}</option>
 110    <option value="autohigh">{'Autohigh'|i18n( 'design/standard/content/datatype' )}</option>
 111    <option value="autolow" selected="selected">{'Autolow'|i18n( 'design/standard/content/datatype' )}</option>
 112  {/case}
 113  {case}
 114    <option value="high">{'High'|i18n( 'design/standard/content/datatype' )}</option>
 115    <option value="best">{'Best'|i18n( 'design/standard/content/datatype' )}</option>
 116    <option value="low">{'Low'|i18n( 'design/standard/content/datatype' )}</option>
 117    <option value="autohigh">{'Autohigh'|i18n( 'design/standard/content/datatype' )}</option>
 118    <option value="autolow">{'Autolow'|i18n( 'design/standard/content/datatype' )}</option>
 119  {/case}
 120  {/switch}
 121  </select>
 122  &nbsp;
 123  &nbsp;
 124  &nbsp;
 125  </div>
 126  
 127  <div class="element">
 128      <label>{'Autoplay'|i18n( 'design/standard/content/datatype' )}:</label>
 129      <input type="checkbox" name="{$attribute_base}_data_media_is_autoplay_{$attribute.id}" value="1" {section show=$attribute.content.is_autoplay}checked="checked"{/section} />
 130  </div>
 131  
 132  <div class="element">
 133      <label>{'Loop'|i18n( 'design/standard/content/datatype' )}:</label>
 134      <input type="checkbox" name="{$attribute_base}_data_media_is_loop_{$attribute.id}" value="1" {section show=$attribute.content.is_loop}checked="checked"{/section} />
 135  </div>
 136  
 137  <div class="break"></div>
 138  </div>
 139  {/case}
 140  
 141  
 142  {* Quicktime. *}
 143  {case match=quick_time}
 144  <div class="block">
 145      <input type="hidden" name="MAX_FILE_SIZE" value="{$attribute.contentclass_attribute.data_int1|mul( 1024, 1024 )}" />
 146      <label>{'New file for upload'|i18n( 'design/standard/content/datatype' )}:</label>
 147      <input class="box" name="{$attribute_base}_data_mediafilename_{$attribute.id}" type="file" />
 148  </div>
 149  
 150  <div class="block">
 151  
 152  <div class="element">
 153      <label>{'Width'|i18n( 'design/standard/content/datatype' )}:</label>
 154      <input type="text" name="{$attribute_base}_data_media_width_{$attribute.id}" size="5" value="{$attribute.content.width}" />
 155  </div>
 156  
 157  <div class="element">
 158      <label>{'Height'|i18n( 'design/standard/content/datatype' )}:</label>
 159      <input type="text" name="{$attribute_base}_data_media_height_{$attribute.id}" size="5" value="{$attribute.content.height}" />
 160      &nbsp;
 161      &nbsp;
 162      &nbsp;
 163  </div>
 164  
 165  <div class="element">
 166      <label>{'Controller'|i18n( 'design/standard/content/datatype' )}:</label>
 167      <input type="checkbox" name="{$attribute_base}_data_media_has_controller_{$attribute.id}" value="1" {section show=$attribute.content.has_controller}checked="checked"{/section} />
 168  </div>
 169  
 170  <div class="element">
 171      <label>{'Autoplay'|i18n( 'design/standard/content/datatype' )}:</label>
 172      <input type="checkbox" name="{$attribute_base}_data_media_is_autoplay_{$attribute.id}" value="1" {section show=$attribute.content.is_autoplay}checked="checked"{/section} />
 173  </div>
 174  
 175  <div class="element">
 176      <label>{'Loop'|i18n( 'design/standard/content/datatype' )}:</label>
 177      <input type="checkbox" name="{$attribute_base}_data_media_is_loop_{$attribute.id}" value="1" {section show=$attribute.content.is_loop}checked="checked"{/section} />
 178  </div>
 179  
 180  <div class="break"></div>
 181  </div>
 182  {/case}
 183  
 184  
 185  
 186  {* Real player. *}
 187  {case match=real_player}
 188  <div class="block">
 189  
 190  <label>{'New file for upload'|i18n( 'design/standard/content/datatype' )}:</label>
 191      <input type="hidden" name="MAX_FILE_SIZE" value="{$attribute.contentclass_attribute.data_int1|mul( 1024, 1024 )}" />
 192      <input class="box" name="{$attribute_base}_data_mediafilename_{$attribute.id}" type="file" />
 193  </div>
 194  
 195  <div class="block">
 196  
 197  <div class="element">
 198      <label>{'Width'|i18n( 'design/standard/content/datatype' )}:</label>
 199      <input type="text" name="{$attribute_base}_data_media_width_{$attribute.id}" size="5" value="{$attribute.content.width}" />
 200  </div>
 201  
 202  <div class="element">
 203      <label>{'Height'|i18n( 'design/standard/content/datatype' )}:</label>
 204      <input type="text" name="{$attribute_base}_data_media_height_{$attribute.id}" size="5" value="{$attribute.content.height}" />
 205      &nbsp;
 206      &nbsp;
 207      &nbsp;
 208  </div>
 209  
 210  <div class="element">
 211  <label>{'Controls'|i18n( 'design/standard/content/datatype' )}:</label>
 212  <select name="{$attribute_base}_data_media_controls_{$attribute.id}" >
 213  {switch name=Sw match=$attribute.content.controls}
 214  {case match=imagewindow}
 215    <option value="imagewindow" selected="selected">{'ImageWindow'|i18n( 'design/standard/content/datatype' )}</option>
 216    <option value="all">{'All'|i18n( 'design/standard/content/datatype' )}</option>
 217    <option value="controlpanel">{'ControlPanel'|i18n( 'design/standard/content/datatype' )}</option>
 218    <option value="infovolumpanel">{'InfoVolumePanel'|i18n( 'design/standard/content/datatype' )}</option>
 219    <option value="infopanel">{'InfoPanel'|i18n( 'design/standard/content/datatype' )}</option>
 220      {/case}
 221  {case match=All}
 222    <option value="imagewindow">{'ImageWindow'|i18n( 'design/standard/content/datatype' )}</option>
 223    <option value="all" selected="selected">{'All'|i18n( 'design/standard/content/datatype' )}</option>
 224    <option value="controlpanel">{'ControlPanel'|i18n( 'design/standard/content/datatype' )}</option>
 225    <option value="infovolumpanel">{'InfoVolumePanel'|i18n( 'design/standard/content/datatype' )}</option>
 226    <option value="infopanel">{'InfoPanel'|i18n( 'design/standard/content/datatype' )}</option>
 227      {/case}
 228  {case match=controlpanel}
 229    <option value="imagewindow">{'ImageWindow'|i18n( 'design/standard/content/datatype' )}</option>
 230    <option value="all">{'All'|i18n( 'design/standard/content/datatype' )}</option>
 231    <option value="controlpanel" selected="selected">{'ControlPanel'|i18n( 'design/standard/content/datatype' )}</option>
 232    <option value="infovolumpanel">{'InfoVolumePanel'|i18n( 'design/standard/content/datatype' )}</option>
 233    <option value="infopanel">{'InfoPanel'|i18n( 'design/standard/content/datatype' )}</option>
 234      {/case}
 235  {case match=infovolumpanel}
 236    <option value="imagewindow">{'ImageWindow'|i18n( 'design/standard/content/datatype' )}</option>
 237    <option value="all">{'All'|i18n( 'design/standard/content/datatype' )}</option>
 238    <option value="controlpanel">{'ControlPanel'|i18n( 'design/standard/content/datatype' )}</option>
 239    <option value="infovolumpanel" selected="selected">{'InfoVolumePanel'|i18n( 'design/standard/content/datatype' )}</option>
 240    <option value="infopanel">{'InfoPanel'|i18n( 'design/standard/content/datatype' )}</option>
 241      {/case}
 242  {case match=infopanel}
 243    <option value="imagewindow">{'ImageWindow'|i18n( 'design/standard/content/datatype' )}</option>
 244    <option value="all">{'All'|i18n( 'design/standard/content/datatype' )}</option>
 245    <option value="controlpanel">{'ControlPanel'|i18n( 'design/standard/content/datatype' )}</option>
 246    <option value="infovolumpanel">{'InfoVolumePanel'|i18n( 'design/standard/content/datatype' )}</option>
 247    <option value="infopanel" selected="selected">{'InfoPanel'|i18n( 'design/standard/content/datatype' )}</option>
 248      {/case}
 249  {case}
 250    <option value="imagewindow" selected="selected">{'ImageWindow'|i18n( 'design/standard/content/datatype' )}</option>
 251    <option value="all">{'All'|i18n( 'design/standard/content/datatype' )}</option>
 252    <option value="controlpanel">{'ControlPanel'|i18n( 'design/standard/content/datatype' )}</option>
 253    <option value="infovolumpanel">{'InfoVolumePanel'|i18n( 'design/standard/content/datatype' )}</option>
 254    <option value="infopanel">{'InfoPanel'|i18n( 'design/standard/content/datatype' )}</option>
 255      {/case}
 256  {/switch}
 257  </select>
 258  &nbsp;
 259  &nbsp;
 260  &nbsp;
 261  </div>
 262  
 263  <div class="element">
 264      <label>{'Autoplay'|i18n( 'design/standard/content/datatype' )}:</label>
 265      <input type="checkbox" name="{$attribute_base}_data_media_is_autoplay_{$attribute.id}" value="1" {section show=$attribute.content.is_autoplay}checked="checked"{/section} />
 266  </div>
 267  
 268  <div class="break"></div>
 269  </div>
 270  {/case}
 271  
 272  
 273  
 274  
 275  {* Windows media. *}
 276  {case match=windows_media_player}
 277  <div class="block">
 278  
 279  <label>{'New file for upload'|i18n( 'design/standard/content/datatype' )}:</label>
 280      <input type="hidden" name="MAX_FILE_SIZE" value="{$attribute.contentclass_attribute.data_int1|mul( 1024, 1024 )}" />
 281      <input id="ezcoa-{if ne( $attribute_base, 'ContentObjectAttribute' )}{$attribute_base}-{/if}{$attribute.contentclassattribute_id}_{$attribute.contentclass_attribute_identifier}" class="box ezcc-{$attribute.object.content_class.identifier} ezcca-{$attribute.object.content_class.identifier}_{$attribute.contentclass_attribute_identifier}" name="{$attribute_base}_data_mediafilename_{$attribute.id}" type="file" />
 282  </div>
 283  
 284  <div class="block">
 285  
 286  <div class="element">
 287      <label>{'Width'|i18n( 'design/standard/content/datatype' )}:</label>
 288      <input id="ezcoa-{if ne( $attribute_base, 'ContentObjectAttribute' )}{$attribute_base}-{/if}{$attribute.contentclassattribute_id}_{$attribute.contentclass_attribute_identifier}_width" type="text" name="{$attribute_base}_data_media_width_{$attribute.id}" size="5" value="{$attribute.content.width}" />
 289  </div>
 290  
 291  <div class="element">
 292      <label>{'Height'|i18n( 'design/standard/content/datatype' )}:</label>
 293      <input id="ezcoa-{if ne( $attribute_base, 'ContentObjectAttribute' )}{$attribute_base}-{/if}{$attribute.contentclassattribute_id}_{$attribute.contentclass_attribute_identifier}_height" type="text" name="{$attribute_base}_data_media_height_{$attribute.id}" size="5" value="{$attribute.content.height}" />
 294      &nbsp;
 295      &nbsp;
 296      &nbsp;
 297  </div>
 298  
 299  <div class="element">
 300      <label>{'Controller'|i18n( 'design/standard/content/datatype' )}:</label>
 301      <input id="ezcoa-{if ne( $attribute_base, 'ContentObjectAttribute' )}{$attribute_base}-{/if}{$attribute.contentclassattribute_id}_{$attribute.contentclass_attribute_identifier}_controller" type="checkbox" name="{$attribute_base}_data_media_has_controller_{$attribute.id}" value="1" {section show=$attribute.content.has_controller}checked="checked"{/section} />
 302  </div>
 303  
 304  <div class="element">
 305      <label>{'Autoplay'|i18n( 'design/standard/content/datatype' )}:</label>
 306      <input id="ezcoa-{if ne( $attribute_base, 'ContentObjectAttribute' )}{$attribute_base}-{/if}{$attribute.contentclassattribute_id}_{$attribute.contentclass_attribute_identifier}_autoplay" type="checkbox" name="{$attribute_base}_data_media_is_autoplay_{$attribute.id}" value="1" {section show=$attribute.content.is_autoplay}checked="checked"{/section} />
 307  </div>
 308  
 309  <div class="break"></div>
 310  </div>
 311  {/case}
 312  
 313  
 314  
 315  {/switch}
 316  
 317  {/default}


Généré le : Sat Feb 24 10:30:04 2007 par Balluche grâce à PHPXref 0.7