Changeset 2294


Ignore:
Timestamp:
Mar 31, 2008, 7:42:14 AM (16 years ago)
Author:
rub
Message:

Fix day 31 not listed on smarty list

Location:
trunk/template/yoga
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/template/yoga/admin/element_set_global.tpl

    r2249 r2294  
    123123        <select onchange="document.getElementById('date_creation_action_set').checked = true;" name="date_creation_day">
    124124                <option value="0">--</option>
    125           {section name=day start=1 loop=31}
     125          {section name=day start=1 loop=32}
    126126            <option value="{$smarty.section.day.index}" {if $smarty.section.day.index==$DATE_CREATION_DAY}selected="selected"{/if}>{$smarty.section.day.index}</option>
    127127          {/section}
  • trunk/template/yoga/admin/element_set_unit.tpl

    r2249 r2294  
    5454        <select onmousedown="document.getElementById('date_creation_action_set-{$element.ID}').checked = true;" name="date_creation_day-{$element.ID}">
    5555                <option value="0">--</option>
    56            {section name=day start=1 loop=31}
     56           {section name=day start=1 loop=32}
    5757             <option value="{$smarty.section.day.index}" {if $smarty.section.day.index==$element.DATE_CREATION_DAY}selected="selected"{/if}>{$smarty.section.day.index}</option>
    5858           {/section}
  • trunk/template/yoga/admin/history.tpl

    r2272 r2294  
    2323    <li>
    2424      <select name="start_day">
    25         <option value="0">--</option>
    26         {section name=day start=1 loop=31}
    27           <option value="{$smarty.section.day.index}" {if $smarty.section.day.index==$START_DAY_SELECTED}selected="selected"{/if}>{$smarty.section.day.index}</option>
     25        <option value="0">--</option>
     26        {section name=day start=1 loop=32}
     27        <option value="{$smarty.section.day.index}" {if $smarty.section.day.index==$START_DAY_SELECTED}selected="selected"{/if}>{$smarty.section.day.index}</option>
    2828        {/section}
    2929      </select>
    3030      <select name="start_month">
    31         {html_options options=$month_list selected=$START_MONTH_SELECTED}
     31      {html_options options=$month_list selected=$START_MONTH_SELECTED}
    3232      </select>
    3333      <input name="start_year" value="{$START_YEAR}" type="text" size="4" maxlength="4" >
     
    3838    <li>
    3939      <select name="end_day">
    40         <option value="0">--</option>
    41         {section name=day start=1 loop=31}
    42           <option value="{$smarty.section.day.index}" {if $smarty.section.day.index==$END_DAY_SELECTED}selected="selected"{/if}>{$smarty.section.day.index}</option>
     40        <option value="0">--</option>
     41        {section name=day start=1 loop=32}
     42        <option value="{$smarty.section.day.index}" {if $smarty.section.day.index==$END_DAY_SELECTED}selected="selected"{/if}>{$smarty.section.day.index}</option>
    4343        {/section}
    4444      </select>
    4545      <select name="end_month">
    46         {html_options options=$month_list selected=$END_MONTH_SELECTED}
     46      {html_options options=$month_list selected=$END_MONTH_SELECTED}
    4747      </select>
    4848      <input name="end_year" value="{$END_YEAR}" type="text" size="4" maxlength="4" >
     
    5353    {'Element type'|@translate}
    5454    <select name="types[]" multiple="multiple" size="4">
    55         {html_options values=$type_option_values output=$type_option_values|translate selected=$type_option_selected}
     55      {html_options values=$type_option_values output=$type_option_values|translate selected=$type_option_selected}
    5656    </select>
    5757  </label>
     
    6060    {'User'|@translate}
    6161    <select name="user">
    62         <option value="-1">------------</option>
    63         {html_options options=$user_options selected=$user_options_selected}
     62      <option value="-1">------------</option>
     63      {html_options options=$user_options selected=$user_options_selected}
    6464    </select>
    6565  </label>
     
    8383      {'Thumbnails'|@translate}
    8484      <select name="display_thumbnail">
    85         {html_options values=$display_thumbnail_values output=$display_thumbnail_values|translate selected=$display_thumbnail_selected}
     85        {html_options values=$display_thumbnail_values output=$display_thumbnail_values|translate selected=$display_thumbnail_selected}
    8686      </select>
    8787    </li>
     
    110110{if !empty($NAV_BAR)}
    111111<div class="navigationBar">
    112         {$NAV_BAR}
     112  {$NAV_BAR}
    113113</div>
    114114{/if}
     
    117117<table class="table2" id="detailedStats">
    118118<tr class="throw">
    119         <th>{'Date'|@translate}</th>
    120         <th>{'time'|@translate}</th>
    121         <th>{'user'|@translate}</th>
    122         <th>{'IP'|@translate}</th>
    123         <th>{'image'|@translate}</th>
    124         <th>{'Element type'|@translate}</th>
    125         <th>{'section'|@translate}</th>
    126         <th>{'category'|@translate}</th>
    127         <th>{'tags'|@translate}</th>
     119  <th>{'Date'|@translate}</th>
     120  <th>{'time'|@translate}</th>
     121  <th>{'user'|@translate}</th>
     122  <th>{'IP'|@translate}</th>
     123  <th>{'image'|@translate}</th>
     124  <th>{'Element type'|@translate}</th>
     125  <th>{'section'|@translate}</th>
     126  <th>{'category'|@translate}</th>
     127  <th>{'tags'|@translate}</th>
    128128</tr>
    129129{if !empty($search_results) }
    130130{foreach from=$search_results item=detail name=res_loop}
    131131<tr class="{if $smarty.foreach.res_loop.index is odd}row1{else}row2{/if}">
    132         <td class="hour">{$detail.DATE}</td>
    133         <td class="hour">{$detail.TIME}</td>
    134         <td>{$detail.USER}</td>
    135         <td>{$detail.IP}</td>
    136         <td>{$detail.IMAGE}</td>
    137         <td>{$detail.TYPE}</td>
    138         <td>{$detail.SECTION}</td>
    139         <td>{$detail.CATEGORY}</td>
    140         <td>{$detail.TAGS}</td>
     132  <td class="hour">{$detail.DATE}</td>
     133  <td class="hour">{$detail.TIME}</td>
     134  <td>{$detail.USER}</td>
     135  <td>{$detail.IP}</td>
     136  <td>{$detail.IMAGE}</td>
     137  <td>{$detail.TYPE}</td>
     138  <td>{$detail.SECTION}</td>
     139  <td>{$detail.CATEGORY}</td>
     140  <td>{$detail.TAGS}</td>
    141141</tr>
    142142{/foreach}
     
    147147{if !empty($NAV_BAR)}
    148148<div class="navigationBar">
    149         {$NAV_BAR}
     149  {$NAV_BAR}
    150150</div>
    151151{/if}
  • trunk/template/yoga/admin/picture_modify.tpl

    r2227 r2294  
    8989          <select onmousedown="document.getElementById('date_creation_action_set').checked = true;" name="date_creation_day">
    9090            <option value="0">--</option>
    91             {section name=day start=1 loop=31}
     91            {section name=day start=1 loop=32}
    9292              <option value="{$smarty.section.day.index}" {if $smarty.section.day.index==$DATE_CREATION_DAY_VALUE}selected="selected"{/if}>{$smarty.section.day.index}</option>
    9393            {/section}
  • trunk/template/yoga/search.tpl

    r2286 r2294  
    6464      <select name="start_day">
    6565          <option value="0">--</option>
    66         {section name=day start=1 loop=31}
     66        {section name=day start=1 loop=32}
    6767          <option value="{$smarty.section.day.index}" {if $smarty.section.day.index==$START_DAY_SELECTED}selected="selected"{/if}>{$smarty.section.day.index}</option>
    6868        {/section}
     
    8282      <select name="end_day">
    8383          <option value="0">--</option>
    84         {section name=day start=1 loop=31}
     84        {section name=day start=1 loop=32}
    8585          <option value="{$smarty.section.day.index}" {if $smarty.section.day.index==$END_DAY_SELECTED}selected="selected"{/if}>{$smarty.section.day.index}</option>
    8686        {/section}
Note: See TracChangeset for help on using the changeset viewer.