[ Index ]
 

Code source de LifeType 1.2.4

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/templates/admin/ -> newresourcealbum.template (source)

   1  {include file="$admintemplatepath/header.template"}
   2  {include file="$admintemplatepath/navigation.template" showOpt=newResourceAlbum title=$locale->tr("newResourceAlbum")}
   3  
   4   <form name="addResourceAlbum" action="admin.php" method="post">
   5    <fieldset class="inputField">
   6     {include file="$admintemplatepath/formvalidate.template"}
   7     {if $viewIsError}
   8      {if $viewErrorMessage != ""}
   9        {include file="$admintemplatepath/successmessage.template" message=$viewErrorMessage}
  10      {/if}     
  11     {/if}
  12     <legend>{$locale->tr("newResourceAlbum")}</legend>
  13     <div class="field">
  14      <label for="albumName">{$locale->tr("name")}</label>
  15      <span class="required">*</span>    
  16      <div class="formHelp">{$locale->tr("album_name_help")}</div>
  17      <input type="text" id="albumName" name="albumName" value="{$albumName}" />
  18      {include file="$admintemplatepath/validate.template" field=albumName message=$locale->tr("error_empty_name")}
  19     </div>
  20     <div class="field">
  21      <label for="parentId">{$locale->tr("parent")}</label>
  22      <div class="formHelp">{$locale->tr("parent_album_help")}</div>
  23      <select name="parentId" id="parentId">
  24       <option value="0">({$locale->tr("no_parent")})</option>
  25       {foreach from=$albums item=album}
  26        <option value="{$album->getId()}" {if $album->getId()==$parentId}selected="selected"{/if}>
  27        {assign var=indentLevel value=$album->getValue("level")}
  28        {textformat indent=$indentLevel indent_char="&nbsp;&nbsp;&nbsp;"}{$album->getName()}{/textformat}
  29        </option>
  30       {/foreach}
  31       </select>
  32      </div>   
  33     <div class="field">
  34      <label for="albumDescription">{$locale->tr("description")}</label>
  35      <div class="formHelp">{$locale->tr("album_description_help")}</div>
  36      <textarea name="albumDescription" id="albumDescription" rows="10" cols="60">{$albumDescription}</textarea>
  37     </div>
  38     <div class="field">
  39      <label for="showAlbum">{$locale->tr("show")}</label>
  40      <div class="formHelp">
  41       <input class="checkbox" type="checkbox" id="showAlbum" name="showAlbum" value="1" 
  42            checked="checked" />
  43       {$locale->tr("show_album_help")}
  44     </div> 
  45     </div>   </fieldset>
  46     <div class="buttons">
  47      <input type="reset" name="reset" value="{$locale->tr("reset")}" />
  48      <input type="submit" name="addAlbum" value="{$locale->tr("add")}" />
  49      <input type="hidden" name="op" value="addResourceAlbum" />
  50     </div>    
  51   </form>
  52  {include file="$admintemplatepath/footernavigation.template"}
  53  {include file="$admintemplatepath/footer.template"}


Généré le : Mon Nov 26 21:04:15 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics