[ 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/ -> upload.tpl (source)

   1  {* DO NOT EDIT THIS FILE! Use an override template instead. *}
   2  <form enctype="multipart/form-data" action={'content/upload'|ezurl} method="post">
   3  
   4  {section show=$upload.description_template}
   5      {include name=Description uri=$upload.description_template upload=$upload}
   6  {section-else}
   7      <div class="maincontentheader">
   8      <h1>{"Upload file"|i18n("design/standard/content/upload")}</h1>
   9      </div>
  10  
  11      <p>{'Choose a file from your locale machine and click the "Upload" button. An object will be created according to file type and placed in your chosen location.'|i18n("design/standard/content/upload")}</p>
  12  {/section}
  13  
  14  {section show=$errors|count|gt( 0 )}
  15      <div class="error">
  16          <h2>{"Some errors occurred"|i18n( "design/standard/content/upload" )}</h2>
  17          <ul>
  18              {section var=error loop=$errors}
  19                  <li>{$error.description}</li>
  20              {/section}
  21          </ul>
  22      </div>
  23  {/section}
  24  
  25  <input type="hidden" name="UploadActionName" value="{$upload.action_name}" />
  26  
  27  <div class="createblock">
  28      <label>{'Location'|i18n( 'design/standard/content/upload' )}</label>
  29      <select    name="UploadLocationChoice" class="combobox locationchoice">
  30          <option value="auto">{'Automatic'|i18n( 'design/standard/content/upload' )}</option>
  31  
  32  {def $root_node_value=ezini( 'LocationSettings', 'RootNode', 'upload.ini' )
  33       $root_node=cond( $root_node_value|is_numeric, fetch( content, node, hash( node_id, $root_node_value ) ),
  34                        fetch( content, node, hash( node_path, $root_node_value ) ) )
  35       $content_object=fetch( content, object, hash( object_id, $upload.content.object_id ) )
  36       $selection_list=fetch( 'content', 'tree',
  37                              hash( 'parent_node_id', $root_node.node_id,
  38                              'class_filter_type', include,
  39                              'class_filter_array', ezini( 'LocationSettings', 'ClassList', 'upload.ini' ),
  40                              'depth', ezini( 'LocationSettings', 'MaxDepth', 'upload.ini' ),
  41                              'depth_operator', 'lt',
  42                              'limit', ezini( 'LocationSettings', 'MaxItems', 'upload.ini' ) ) )}
  43  
  44      {section show=$content_object.published}
  45       <option value="{$content_object.main_node_id}">{$content_object.name}</option>
  46      {/section}
  47  
  48  {foreach $selection_list as $selection}
  49          {if $selection.can_create}
  50            <option value="{$selection.node_id}">{'&nbsp;'|repeat( sub( $selection.depth, $root_node.depth, 1 ) )}{$selection.name|wash}</option>
  51          {/if}
  52  {/foreach}
  53  {undef $root_node_value $root_node $selection_list}
  54        </select>
  55  </div>
  56  
  57  <div class="createblock">
  58      <label>{'Name'|i18n( 'design/standard/content/upload' )}</label>
  59      <input name="ObjectName" type="text" />
  60  </div>
  61  
  62  <div class="createblock">
  63      <label>{'File'|i18n( 'design/standard/content/upload' )}</label>
  64      <input type="hidden" name="MAX_FILE_SIZE" value="50000000" />
  65      <input name="UploadFile" type="file" />
  66      &nbsp;
  67      <input class="defaultbutton" type="submit" name="UploadFileButton" value="{'Upload'|i18n( 'design/standard/content/upload' )}" title="{'Click here to upload a file. The file will be placed within the location that is specified using the dropdown menu on the top.'|i18n( 'design/standard/content/upload' )}" />
  68  
  69  </div>
  70  </form>


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