[ 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/ -> editlink.template (source)

   1  {include file="$admintemplatepath/header.template"}
   2  {include file="$admintemplatepath/navigation.template" showOpt=editLinks title=$locale->tr("editLink")}
   3  
   4     <form name="newLink" action="admin.php" method="post"> 
   5        
   6          <fieldset class="inputField">
   7          <legend>{$locale->tr("editLink")}</legend>
   8          {include file="$admintemplatepath/formvalidate.template"}
   9  
  10          <div class="field">
  11              <label for="linkName">{$locale->tr("name")}</label>
  12              <span class="required">*</span>
  13              <div class="formHelp">{$locale->tr("link_name_help")}</div>
  14              <input type="text" name="linkName" id="linkName" value="{$linkName|escape:"html"}" />
  15              {include file="$admintemplatepath/validate.template" field=linkName message=$locale->tr("error_empty_name")}
  16          </div>
  17          
  18          <div class="field">
  19              <label for="linkUrl">{$locale->tr("url")}</label>
  20              <span class="required">*</span>
  21              <div class="formHelp">{$locale->tr("link_url_help")}</div>
  22              <input type="text" name="linkUrl" id="linkUrl" value="{$linkUrl}" />
  23              {include file="$admintemplatepath/validate.template" field=linkUrl message=$locale->tr("error_invalid_url")}
  24          </div>        
  25  
  26          <div class="field">
  27              <label for="linkDescription">{$locale->tr("description")}</label>
  28              <span class="required"></span>
  29              <div class="formHelp">{$locale->tr("link_description_help")}</div>
  30              <input type="text" name="linkDescription" id="linkDescription" value="{$linkDescription}" />
  31          </div>
  32          
  33          <div class="field">
  34              <label for="linkRssFeed">{$locale->tr("feed")}</label>
  35              <span class="required"></span>
  36              <div class="formHelp">{$locale->tr("link_feed_help")}</div>
  37              <input type="text" name="linkRssFeed" id="linkRssFeed" value="{$linkRssFeed}" />
  38              {include file="$admintemplatepath/validate.template" field=linkRssFeed message=$locale->tr("error_invalid_url")}            
  39          </div>            
  40  
  41          <div class="field">
  42              <label for="linkCategory">{$locale->tr("category")}</label>
  43              <span class="required">*</span>
  44              <div class="formHelp">{$locale->tr("link_category_help")}</div>
  45              <select name="linkCategoryId" id="linkCategoryId">
  46               {foreach from=$linkcategories item=linkcategory}
  47                <option value="{$linkcategory->getId()}" {if $linkCategoryId == $linkcategory->getId()}selected="selected"{/if}>
  48                  {$linkcategory->getName()}
  49                </option>
  50               {/foreach}
  51              </select>
  52          </div>
  53          </fieldset>
  54          <div class="buttons">
  55             <input type="hidden" name="linkId" value="{$linkId}"/>
  56             <input type="hidden" value="updateLink" name="op"/>
  57             <input type="reset" value="{$locale->tr("reset")}" name="reset"/>                       
  58             <input type="submit" value="{$locale->tr("update")}" name="Update"/>
  59          </div>
  60  </form>
  61  
  62  {include file="$admintemplatepath/footernavigation.template"}
  63  {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