Changeset 7165


Ignore:
Timestamp:
10/12/10 08:02:53 (9 years ago)
Author:
LucMorizur
Message:

Begin implementation of validity date

Location:
extensions/event_cats
Files:
1 deleted
2 edited

Legend:

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

    r6269 r7165  
    44 
    55{include file=$HeaderIncTPL} 
     6{include file='include/datepicker.inc.tpl'} 
    67 
    78{* <!-- Whether plugin Additionnal Pages is active or not, and help banner management --> *} 
     
    231232   
    232233  {* <!-- Page to display --> *} 
    233   <fieldset> 
     234  <fieldset style = "float:left;"> 
    234235    <legend style = "font-weight:bold;">{'Displayed page'|@translate}</legend> 
    235236     
     
    295296  </fieldset> 
    296297   
    297   <p> 
     298  <fieldset style = "float:right;"> 
     299    <legend style = "font-weight:bold;">Validité</legend> 
     300    <span style = "font-weight:bold;">Date de validité&nbsp;: </span> 
     301    <select id = "date_creation_day-13" name = "date_creation_day-13"> 
     302      <option value = "0">--</option> 
     303      <option value = "1" >1</option> 
     304      <option value = "2" >2</option> 
     305      <option value = "3" >3</option> 
     306      <option value = "4" >4</option> 
     307      <option value = "5" >5</option> 
     308      <option value = "6" >6</option> 
     309      <option value = "7" >7</option> 
     310      <option value = "8" >8</option> 
     311      <option value = "9" >9</option> 
     312      <option value = "10" >10</option> 
     313      <option value = "11" >11</option> 
     314      <option value = "12" >12</option> 
     315      <option value = "13" >13</option> 
     316      <option value = "14" >14</option> 
     317      <option value = "15" >15</option> 
     318      <option value = "16" >16</option> 
     319      <option value = "17" >17</option> 
     320      <option value = "18" >18</option> 
     321      <option value = "19" >19</option> 
     322      <option value = "20" >20</option> 
     323      <option value = "21" >21</option> 
     324      <option value = "22" >22</option> 
     325      <option value = "23" >23</option> 
     326      <option value = "24" >24</option> 
     327      <option value = "25" >25</option> 
     328      <option value = "26" >26</option> 
     329      <option value = "27" >27</option> 
     330      <option value = "28" >28</option> 
     331      <option value = "29" >29</option> 
     332      <option value = "30" >30</option> 
     333      <option value = "31" >31</option> 
     334    </select> 
     335 
     336    <select id = "date_creation_month-13" name = "date_creation_month-13"> 
     337      <option label = "------------" value = "0">------------</option> 
     338      <option label = "Janvier"      value = "1">Janvier</option> 
     339      <option label = "Février"      value = "2">Février</option> 
     340      <option label = "Mars"         value = "3">Mars</option> 
     341      <option label = "Avril"        value = "4">Avril</option> 
     342      <option label = "Mai"          value = "5">Mai</option> 
     343      <option label = "Juin"         value = "6">Juin</option> 
     344      <option label = "Juillet"      value = "7">Juillet</option> 
     345      <option label = "Août"         value = "8">Août</option> 
     346      <option label = "Septembre"    value = "9">Septembre</option> 
     347      <option label = "Octobre"      value = "10">Octobre</option> 
     348      <option label = "Novembre"     value = "11">Novembre</option> 
     349      <option label = "Décembre"     value = "12">Décembre</option> 
     350    </select> 
     351 
     352    <input id = "date_creation_year-13" name = "date_creation_year-13" type = "text" size = "4" maxlength = "4" value = "2010"> 
     353    <input id = "date_creation_linked_date-13" name = "date_creation_linked_date-13" type = "hidden" size = "10" disabled = "disabled"> 
     354    <script type = "text/javascript"> 
     355      pwg_initialization_datepicker("#date_creation_day-13", "#date_creation_month-13", 
     356       "#date_creation_year-13", "#date_creation_linked_date-13", "#date_creation_action_set-13"); 
     357    </script> 
     358  </fieldset> 
     359   
     360  <p style = "clear:both;"> 
    298361    <input class = "submit" type = "submit" value = "{'Submit'|@translate}"/> 
    299362    <input class = "submit" type = "submit" value = "{'Reset'|@translate}" onclick = "return ec_init();"/> 
  • extensions/event_cats/main.inc.php

    r7099 r7165  
    8181// Sets the administration panel of the plugin 
    8282  function plugin_admin_menu($menu) { 
     83                                                                                // to be removed in final version : 
     84                                                                                global $template; 
     85                                                                                $template->delete_compiled_templates(); 
    8386    array_push($menu, 
    8487      array( 
Note: See TracChangeset for help on using the changeset viewer.