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

   1  {include file="$admintemplatepath/header.template"}
   2  {include file="$admintemplatepath/navigation.template" showOpt=createBlog title=$locale->tr("createBlog")}
   3   <form name="addBlog" action="admin.php" method="post">
   4     <fieldset class="inputField">
   5       <legend>{$locale->tr("createBlog")}</legend>
   6       {include file="$admintemplatepath/formvalidate.template"}
   7       <div class="field">
   8         <label for="blogName">{$locale->tr("name")}</label>
   9         <span class="required">*</span>
  10         <div class="formHelp">{$locale->tr("blog_name_help")}</div>
  11         <input type="text" style="width:95%" name="blogName" id="blogName" value="{$blogName}"/>
  12         {include file="$admintemplatepath/validate.template" field=blogName message=$locale->tr("error_invalid_blog_name")}
  13       </div>
  14      
  15      {if $blogDomainsEnabled}
  16      <div class="field">
  17        <label for="blogSubDomain">{$locale->tr("domain")}</label>
  18        <div class="formHelp">{$locale->tr("register_blog_domain_help")}</div>
  19        <input type="text" name="blogSubDomain" id="blogSubDomain" 
  20               style="width:150px" value="{$blogSubDomain}" />
  21        <select name="blogMainDomain" id="blogMainDomain">
  22         {foreach from=$blogAvailableDomains item=domain}
  23          <option value="{$domain}"
  24               {if $domain == $blogMainDomain}selected{/if}>
  25               {if $domain == "?"}
  26                 {$locale->tr("subdomains_any_domain")}
  27               {else}
  28                 .{$domain}
  29               {/if}
  30          </option>
  31         {/foreach}
  32        </select>
  33        {include file="$admintemplatepath/validate.template"
  34            field=blogSubDomain 
  35            message=$locale->tr("error_invalid_subdomain")}
  36        {include file="$admintemplatepath/validate.template"
  37            field=blogMainDomain 
  38            message=$locale->tr("error_invalid_domain")}
  39      </div>
  40      {/if}
  41  
  42       <div class="field">
  43         <label for="blogOwner">{$locale->tr("owner")}</label>
  44         <span class="required">*</span>
  45         <div class="formHelp">{$locale->tr("blog_owner_help")}</div>
  46         <input type="text" name="userName" id="userName" style="width:40%" value="{$userName}" readonly="readonly" />
  47         <input type="hidden" name="userId" id="userId" value="{$userId}" />
  48         <a href="#" onclick="window.open('?op=siteUsersChooser','UserChooser','scrollbars=yes,resizable=yes,toolbar=no,height=450,width=600');">
  49          {$locale->tr("select")}
  50         </a>    
  51         {include file="$admintemplatepath/validate.template" field=userId message=$locale->tr("error_incorrect_user")}       
  52       </div>
  53      </fieldset>
  54      <div class="buttons">
  55         <input type="reset" name="reset" value="{$locale->tr("reset")}" />
  56         <input type="submit" name="Add Blog" value="{$locale->tr("add")}"/>
  57         <input type="hidden" name="op" value="addBlog" />
  58      </div>
  59   </form>
  60  {include file="$admintemplatepath/footernavigation.template"}
  61  {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