Ignore:
Timestamp:
Nov 20, 2009, 10:56:32 PM (14 years ago)
Author:
LucMorizur
Message:

[Event Cats] Finish duplication management, configuration management, code cleaning

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/event_cats/admin/template/autolog_new.tpl

    r4263 r4329  
    66<div style = "text-align:right; font-style:italic;">
    77  {if $ec_ap_ok}
    8     {'ec_plugin_ap_ok'|@translate}
    9     <script type = "text/javascript"><!--
    10       var ec_ap_ok = true; //-->
     8    {'Additional Pages active'|@translate}
     9    <script type = "text/javascript">
     10      var ec_ap_ok = {if count($ec_lists.add_pages) == 0}false{else}true{/if};
    1111    </script>
    1212  {else}
    13     {'ec_plugin_ap_nok'|@translate}
    14     <script type = "text/javascript"><!--
    15       var ec_ap_ok = false; //-->
     13    {'Additional Pages inactive'|@translate}
     14    <script type = "text/javascript">
     15      var ec_ap_ok = false;
    1616    </script>
    1717  {/if}
     
    2525  {* <!-- Page title. Can be "New entry" or "Entry modification" --> *}
    2626  <div style = "text-align:center;">
    27     <a style = "font-weight:bold; font-size:120%;" href = "#ec_top" name = "ec_top" title = "{'ec_top_title'|@translate}">
     27    <a style = "font-weight:bold; font-size:120%;" href = "#ec_top" name = "ec_top" title = "{'Place title on top ttip'|@translate}">
    2828      <!--[if !IE]> <--> <label> <!--> <![endif]-->
    2929        {if $ec_is_creation}
    30           {'ec_new_entry_title'|@translate}
     30          {'New entry title'|@translate}
    3131        {else}
    32           {'ec_modify_entry_title'|@translate}
     32          {'Modify entry title'|@translate}
    3333        {/if}
    3434      <!--[if !IE]> <--> </label> <!--> <![endif]-->
     
    3636    </a>
    3737    {if $ec_is_creation}
    38       <br><br>
    39       <input class = "submit" type = "button" name = "ec_submit_gen_full_auto" value = "{'ec_new_full_auto'|@translate}"
     38      <br /><br />
     39      <input class = "submit" type = "button" name = "ec_submit_gen_full_auto" value = "{'Full auto'|@translate}"
    4040       id = "ec_submit_gen_full_auto_id" onclick = "ec_gen_full_auto();" style = "margin-top:0;"/>
    4141    {/if}
    42   </div><br>
     42  </div><br />
    4343 
    4444  {* <!-- Table (borders not visible) with 3 rows for parameters adjustment --> *}
     
    5050      <td style = "vertical-align:top; font-weight:bold;">
    5151        {if $ec_is_creation}
    52           {'ec_new_entry'|@translate}
     52          {'Code'|@translate}
    5353        {else}
    54           {'ec_sel_entry'|@translate}
     54          {'Selected entry'|@translate}
    5555        {/if}
    5656      </td>
     
    6161            <label for = "ec_in_up_code_id" onclick = "ec_mark_code('ec_sel_code_new');" {$ec_hidden_when_no_code} >
    6262              <input type = "radio" name = "ec_sel_code" for = "ec_in_up_code_id" value = "new" id = "ec_sel_code_new"/>
    63               {'ec_up_code_lbl_code_new'|@translate}
     63              {'New code'|@translate}
    6464            </label>
    6565            <span {$ec_hidden_when_no_code} >&nbsp;</span>
    6666            <label for = "ec_in_up_code_id" style = "margin:0;">
    67               <input class = "submit" type = "button" name = "ec_submit_gen_code" value = "{'ec_new_entry_button'|@translate}"
     67              <input class = "submit" type = "button" name = "ec_submit_gen_code" value = "{'Auto code button'|@translate}"
    6868               id = "ec_submit_gen_code_id" onclick = "ec_gen_code();" style = "margin:0;"
    6969              />
    7070            </label>
    71             {'ec_gen_code_nb_pre'|@translate}
     71            {'Auto code mid'|@translate}
    7272            <select name = "ec_in_up_auto_code_length" id = "ec_in_up_auto_code_length_id" onchange = "ec_auto_code_digits_nb = this.value;">
    73               <option value =  "4" >4{'ec_gen_code_nb_min'|@translate}</option>
    74               <option value =  "5" >5</option>
    75               <option value =  "8" >8</option>
    76               <option value = "10">10</option>
    77               <option value = "12">12</option>
    78               <option value = "15">15</option>
    79               <option value = "16">16</option>
    80               <option value = "20">20</option>
    81               <option value = "24">24</option>
    82               <option value = "25">25</option>
    83               <option value = "30">30</option>
    84               <option value = "32">32{'ec_gen_code_nb_max'|@translate}</option>
     73              {foreach from=$ec_auto_code_dg_nb item=ec_item name=listloop}
     74                <option value = "{$ec_item}">
     75                  {$ec_item}
     76                  {if $smarty.foreach.listloop.index == 0}
     77                    {'Auto code min'|@translate}
     78                  {/if}
     79                  {if $smarty.foreach.listloop.index == count($ec_auto_code_dg_nb) - 1}
     80                    {'Auto code max'|@translate}
     81                  {/if}
     82                </option>
     83              {/foreach}
    8584            </select>
    86             {'ec_gen_code_nb_end'|@translate}<br>
     85            {'Auto code end'|@translate}<br />
    8786            <ul><li>
    8887              <input type = "text" name = "ec_in_up_code" maxlength = "32" size = "40"
     
    9695            <label for = "ec_in_up_code_list_id" onclick = "ec_mark_code('ec_sel_code_old');" {$ec_hidden_when_no_code}>
    9796              <input type = "radio" name = "ec_sel_code" for = "ec_in_up_code_list_id" {$ec_hidden_when_no_code} value = "old" id = "ec_sel_code_old" />
    98               {'ec_up_code_lbl_code_old'|@translate}
     97              {'Existing code'|@translate}
    9998            </label>
    10099            <select name = "ec_in_up_code_list" id = "ec_in_up_code_list_id" onchange = "ec_change_code_list(this.value);" {$ec_hidden_when_no_code} >
     
    102101                <option value = "{$ec_val.id}">{$ec_key}</option>
    103102              {/foreach}
    104             </select><br>
     103            </select><br />
    105104          </li>
    106105         
     
    124123    <tr>
    125124      <td style = "vertical-align:top; font-weight:bold;">
    126         {'ec_up_code_lbl_user'|@translate}<br>
    127         <br>
    128         <span style = "font-weight:bold; color:red;" id = "ec_in_up_pwd_warn">&nbsp;</span><br>
     125        {'Identified user'|@translate}<br />
     126        <br />
     127        <span style = "font-weight:bold; color:red;" id = "ec_in_up_pwd_warn">&nbsp;</span><br />
    129128      </td>
    130129      <td>
     
    134133            <label onclick = "return ec_mark_user('ec_sel_user_none');">
    135134              <input type = "radio" name = "ec_sel_user" value = "none" id = "ec_sel_user_none" />
    136               {'ec_up_code_lbl_user_none'|@translate}
    137             </label><br>
     135              {'No user'|@translate}
     136            </label><br />
    138137          </li>
    139138        {/if}
     
    143142          <label for = "ec_in_up_usr_txt_id" onclick = "return ec_mark_user('ec_sel_user_new');" {$ec_hidden_when_no_user} >
    144143            <input type = "radio" name = "ec_sel_user" for = "ec_in_up_usr_txt_id" value = "new" id = "ec_sel_user_new" {$ec_hidden_when_no_user} />
    145             {'ec_up_code_lbl_user_new'|@translate}
     144            {'New generic user'|@translate}
    146145          </label>
    147146          <span {$ec_hidden_when_no_user} >&nbsp;</span>
    148147          <label for = "ec_in_up_usr_txt_id" style = "margin:0;">
    149             <input class = "submit" type = "button" name = "ec_submit_gen_user" value = "{'ec_up_code_lbl_gen_user'|@translate}"
     148            <input class = "submit" type = "button" name = "ec_submit_gen_user" value = "{'Generate username'|@translate}"
    150149             id = "ec_submit_gen_user_id" onclick = "ec_gen_user();"
    151150            />
    152           </label><br>
     151          </label><br />
    153152          <ul><li>
    154             <label class = "ec_block" onclick = "return ec_mark_user('ec_sel_user_new');">{'ec_new_user_name'|@translate}<br>
     153            <label class = "ec_block" onclick = "return ec_mark_user('ec_sel_user_new');">{'New username'|@translate}<br />
    155154              <input type = "text" name = "login" id = "ec_in_up_usr_txt_id" maxlength = "50"
    156155               size = "20" onblur = "ec_new_user_text = this.value; ec_check_user_text();"
    157156              />
    158157            </label>
    159             <label class = "ec_block" onclick = "return ec_mark_user('ec_sel_user_new');">{'ec_new_user_pswd'|@translate}<br>
     158            <label class = "ec_block" onclick = "return ec_mark_user('ec_sel_user_new');">{'New password'|@translate}<br />
    160159              <input type = "text" name = "password" id = "ec_in_up_psd_txt_id" maxlength = "32"
    161160               size = "20" onblur = "ec_new_psd_text = this.value; ec_check_pwd_text();"
    162161              />
    163162            </label>
    164             <label class = "ec_block" onclick = "return ec_mark_user('ec_sel_user_new');">{'ec_confirm_pswd'|@translate}<br>
     163            <label class = "ec_block" onclick = "return ec_mark_user('ec_sel_user_new');">{'Confirm password'|@translate}<br />
    165164              <input type = "password" id = "ec_confirm_psd_txt_id" maxlength = "32" size = "20"/>
    166165            </label>
     
    170169              />
    171170              <span onMouseover = "ec_chk_over_grp = true;" onMouseout = "ec_chk_over_grp = false;">
    172                 {'ec_new_user_group'|@translate}
    173               </span><br>
     171                {'New group'|@translate}
     172              </span><br />
    174173              <input type = "text" name = "groupname" id = "ec_in_up_grp_txt_id" maxlength = "32"
    175174               size = "20" onblur = "ec_new_grp_text = this.value; if (this.value != '') ec_selected_old_group = true;"
    176175              />
    177176            </label>
    178           </li></ul><br>
     177          </li></ul><br />
    179178        </li>
    180179       
     
    183182          <label for = "ec_in_up_usr_list_id" onclick = "return ec_mark_user('ec_sel_user_old');" {$ec_hidden_when_no_user} >
    184183            <input type = "radio" name = "ec_sel_user" for = "ec_in_up_usr_list_id" {$ec_hidden_when_no_user} value = "old" id = "ec_sel_user_old" />
    185             {'ec_up_code_lbl_user_old'|@translate}
     184            {'Existing user'|@translate}
    186185          </label>
    187186          <select name = "ec_in_up_usr_list" id = "ec_in_up_usr_list_id" onchange = "ec_change_user_list(this.value);" {$ec_hidden_when_no_user} >
     
    189188              <option label = "{$ec_val}" value = "{$ec_key}" >{$ec_val}</option>
    190189            {/foreach}
    191           </select><br>
     190          </select><br />
    192191        </li>
    193192      </td>
     
    197196    <tr>
    198197      <td style = "vertical-align:top;">
    199         <span style = "font-weight:bold;">{'ec_up_code_lbl_action'|@translate}</span><br>
     198        <span style = "font-weight:bold;">{'Displayed page'|@translate}</span><br />
    200199        <label class = "ec_block" for = "ec_in_up_forced_id" style = "margin-top:5px;" onclick = "ec_mark_forced();">
    201200          <input type = "checkbox" name = "ec_in_up_forced" id = "ec_in_up_forced_id">
     
    209208          <label class = "ec_block" onclick = "return ec_mark_action('ec_input_action_home');">
    210209            <input type = "radio" name = "ec_input_action" value = "home" id = "ec_input_action_home" />
    211             {'ec_up_code_lbl_home'|@translate}
     210            {'Home'|@translate}
    212211          </label>
    213212         
     
    216215            <label class = "ec_block" onclick = "return ec_mark_action('ec_input_action_refused');">
    217216              <input type = "radio" name = "ec_input_action" value = "refused" id = "ec_input_action_refused" />
    218               {'ec_up_code_lbl_refused'|@translate}
     217              {'Access denied'|@translate}
    219218            </label>
    220219          {/if}
     
    225224          >
    226225            <input type = "radio" name = "ec_input_action" value = "img" id = "ec_input_action_img" for = "ec_in_up_imgs_id" />
    227             {'ec_up_code_lbl_img'|@translate}<br>
     226            {'Image id'|@translate}<br />
    228227            <input type = "text" name = "ec_in_up_img" id = "ec_in_up_imgs_id" maxlength = "6"
    229228             size = "10" onblur = "ec_selected_img = this.value; ec_check_img_text();" onfocus = "return ec_mark_action('ec_input_action_img');"
     
    239238          >
    240239            <input type = "radio" name = "ec_input_action" value = "add_p" id = "ec_input_action_add_p" for = "ec_in_up_aps_id" />
    241             {'ec_up_code_lbl_aps'|@translate}<br>
     240            {'Additional Page'|@translate}<br />
    242241            <select class = "categoryList" name = "ec_in_up_aps" size="30" id = "ec_in_up_aps_id" onchange = "ec_selected_AP = this.value;" >
    243242              {html_options options=$ec_lists.add_pages}
     
    252251              onMouseover = "ec_chk_nover_cat = false;" onMouseout = "ec_chk_nover_cat = true;"
    253252            />
    254             <span onMouseover = "ec_chk_nover_cat = false;" onMouseout = "ec_chk_nover_cat = true;">{'ec_up_code_lbl_cats'|@translate}</span><br>
     253            <span onMouseover = "ec_chk_nover_cat = false;" onMouseout = "ec_chk_nover_cat = true;">{'Category'|@translate}</span><br />
    255254            <select class = "categoryList" name = "ec_in_up_cat" size = "30" id = "ec_in_up_cats_id" onchange = "ec_selected_cat = this.value;">
    256255              {html_options options=$ec_lists.categories}
     
    271270<script type = "text/javascript"><!--
    272271  ec_is_creation                          = {if $ec_is_creation}true{else}false{/if};
    273   ec_up_code_lbl_forced_txt               = "{'ec_up_code_lbl_forced'|@translate}";
     272  ec_up_code_lbl_forced_txt               = "{'Forced'|@translate}";
    274273  ec_JS_message['ec_gen_user_act_miss']   = "{'ec_gen_user_act_miss'|@translate|@escape:javascript}";
    275274  ec_JS_message['ec_act_cat_miss']        = "{'ec_act_cat_miss'|@translate|@escape:javascript}";
     
    283282  ec_JS_message['ec_conf_pwd_dont_match'] = "{'ec_conf_pwd_dont_match'|@translate|@escape:javascript}";
    284283  ec_JS_message['ec_confirm_change_user'] = "{'ec_confirm_change_user'|@translate|@escape:javascript}";
    285   ec_JS_message['ec_up_code_lbl_home']    = "{'ec_up_code_lbl_home'|@translate}";
     284  ec_JS_message['Home']                   = "{'Home'|@translate}";
    286285  ec_JS_message['ec_submit_code_miss']    = "{'ec_submit_code_miss'|@translate}";
    287286  ec_JS_message['ec_submit_user_miss']    = "{'ec_submit_user_miss'|@translate}";
     
    304303
    305304{include file='../../../plugins/event_cats/admin/template/footer.inc.tpl'}
    306 
    307 {* <!--
    308 --> *}
Note: See TracChangeset for help on using the changeset viewer.