source: extensions/AStat/admin/astat_tools.tpl @ 19228

Last change on this file since 19228 was 16490, checked in by grum, 12 years ago

feature:2636 - compatibility with Piwigo 2.4

last commit was done with wrong files version, commit again..

  • Property svn:executable set to *
File size: 6.1 KB
RevLine 
[3706]1
[16453]2{combine_script id="jquery.ui" path="themes/default/js/ui/jquery.ui.core.js"}
3{combine_script id="jquery.ui.datepicker" path="themes/default/js/ui/jquery.ui.datepicker.js"}
4{assign var="datepicker_language" value="themes/default/js/ui/i18n/jquery.ui.datepicker-"|@cat:$lang_info.code|@cat:".js"}
5
6
[3706]7{if "PHPWG_ROOT_PATH"|@constant|@cat:$datepicker_language|@file_exists}
[10614]8{combine_script id="jquery.ui.datepicker-$lang_info.code" path=$datepicker_language}
[3706]9{/if}
10
11{html_head}
[10614]12<link rel="stylesheet" type="text/css" href="themes/default/js/ui/theme/jquery.ui.datepicker.css">
[3706]13{/html_head}
14
[3394]15{literal}
16<script type="text/javascript">
[3706]17
[3394]18 function enabled_purge()
19 {
[4269]20  re = /\d{2}\/\d{2}\/\d{4}/i;
[3394]21
[3706]22  if(($('#purge_history_confirm').attr('checked')&&$('#purge_history_type0').attr('checked')&&re.test($('#purge_history_date').val()))||
[5423]23     ($('#purge_history_confirm').attr('checked')&&!$('#purge_history_type0').attr('checked')))
[3706]24  {
[5423]25    $('#purge_history_button').attr('disabled', false);
[3706]26  }
27  else
28  {
[5423]29    $('#purge_history_button').attr('disabled', true);
[3706]30  }
[3394]31 }
32
33 function enabled_deleted_picture()
34 {
[3706]35  var objconfirm = document.getElementById('deleted_picture_confirm_resync');
36  var objbutton = document.getElementById('deleted_picture_resync_button');
[3394]37
[3706]38  if($('#deleted_picture_confirm_resync').attr('checked'))
39  {
40    $('deleted_picture_resync_button').attr('disabled', false);
41  }
42  else
43  {
44    $('deleted_picture_resync_button').attr('disabled', true);
45  }
[3394]46 }
47
[3706]48 function init()
49 {
50   $("#purge_history_date").datepicker({
51     dateFormat: 'dd/mm/yy',
52     constrainInput: true,
53     defaultDate:"-12m",
54     maxDate:0,
55     minDate:new Date({/literal}"{$datas.ASTAT_MINDATE}"{literal})
56   });
57 }
58
[3394]59</script>
60{/literal}
61
[16490]62{if isset($datas.ASTAT_RESULT_OK)}{$datas.ASTAT_RESULT_OK}{/if}
[3394]63
64<fieldset class='formtable'>
[3706]65  <legend>{'AStat_tools_general_nfo'|@translate}</legend>
66  <p>{$datas.ASTAT_GENERAL_NFO}</p>
[3394]67</fieldset>
68
69
70
71<form method="post" action="" class="general">
72  <fieldset class='formtable'>
73    <legend>{'AStat_tools_deleted_user'|@translate}</legend>
74    <p>{'AStat_tools_deleted_user_nfo0'|@translate}</p>
75    <p>{$datas.ASTAT_DELETED_USER_NFO}</p>
76    {if isset($datas.AStat_deleted_user_submit) and $datas.AStat_deleted_user_submit == 'yes'}
77      <p class='formtable'>
78        <input type="submit" value="{'AStat_tools_deleted_user_apply'|@translate}" name="apply_tool_deleted_user"/>
79      </p>
80    {/if}
81  </fieldset>
82</form>
83
84
85<fieldset class='formtable'>
[3706]86  <legend>{'AStat_tools_deleted_picture'|@translate}</legend>
87  <p>{'AStat_tools_deleted_picture_nfo0'|@translate}</p>
88  <p>{$datas.ASTAT_DELETED_PICTURE_NFO}</p>
89  <form method="post" action="" class="general">
90    { if isset($datas.AStat_deleted_picture_submit0) and $datas.AStat_deleted_picture_submit0 == 'yes'}
[3394]91      <p class='formtable'>
92        <input type="submit" value="{'AStat_tools_deleted_picture_apply'|@translate}" name="apply_tool_deleted_picture"/>
93      </p>
[3706]94    {/if}
95  </form>
96  <hr/>
97  <p>{'AStat_tools_deleted_picture_nfo3'|@translate}</p>
98
99  <form method="post" action="" class="general">
100    <p>
[3394]101      <label>
102        <input type="radio" value="prepare" name="fAStat_tools_deleted_picture_action" id="deleted_picture0" {$datas.ASTAT_DELETED_PICTURE_PREPARE} >&nbsp;
103        {'AStat_tools_deleted_picture_prepare_action'|@translate}
104      </label><br>
[3706]105      <label>
[3394]106        <input type="radio" value="apply" name="fAStat_tools_deleted_picture_action" id="deleted_picture1" {$datas.ASTAT_DELETED_PICTURE_DO_ACTION} >&nbsp;
[3706]107        {'AStat_tools_deleted_picture_do_action'|@translate}{$datas.ASTAT_DELETED_PICTURE_NFO_NB}
[3394]108      </label>
109    </p>
[3706]110    <p class='formtable'>
111      <input type="checkbox" id="deleted_picture_confirm_resync" onclick="enabled_deleted_picture();"/>
112      <input type="submit" value="{'AStat_tools_deleted_picture_do'|@translate}" name="apply_tool_deleted_picture_resync" id="deleted_picture_resync_button" disabled />
113    </p>
114  </form>
[3394]115</fieldset>
116
117
118<fieldset class='formtable'>
[3706]119  <legend>{'AStat_tools_deleted_category'|@translate}</legend>
120  <p>{'AStat_tools_deleted_category_nfo0'|@translate}</p>
121  <p>{$datas.ASTAT_DELETED_CATEGORY_NFO}</p>
122  <form method="post" action="" class="general">
123    {if isset($datas.AStat_deleted_category_submit0) and $datas.AStat_deleted_category_submit0=='yes'}
124    <p class='formtable'>
125      <input type="submit" value="{'AStat_tools_deleted_category_apply'|@translate}" name="apply_tool_deleted_category"/>
126    </p>
127    {/if}
128  </form>
[3394]129</fieldset>
130
131
132<fieldset class='formtable'>
[3706]133  <legend>{'AStat_tools_purge_history'|@translate}</legend>
134  <p>{'AStat_tools_purge_history_nfo'|@translate}</p>
135  <form method="post" action="" class="general">
136    <p>
[3394]137      <label>
138        <input type="radio" value="bydate" name="fAStat_purge_history_type" id="purge_history_type0" checked onclick="enabled_purge();">&nbsp;
139        {'AStat_tools_purge_history_date'|@translate}
140      </label>
141
[3706]142      <input type="text" id="purge_history_date" name="fAStat_purge_history_date" size="10" onchange="enabled_purge();"/><br>
[3394]143
144      <label>
145        <input type="radio" value="byimageid0" name="fAStat_purge_history_type" id="purge_history_type1" onclick="enabled_purge();" {$datas.ASTAT_PURGE_HISTORY_IMAGE_DISABLED} >&nbsp;
146        {$datas.ASTAT_PURGE_HISTORY_IMAGE_NFO}
147      </label>
[3706]148      <br/>
[3394]149
150      <label>
151        <input type="radio" value="bycategoryid0" name="fAStat_purge_history_type" id="purge_history_type2" onclick="enabled_purge();" {$datas.ASTAT_PURGE_HISTORY_CATEGORY_DISABLED}>&nbsp;
152        {$datas.ASTAT_PURGE_HISTORY_CATEGORY_NFO}
153      </label>
[3706]154      <br/>
155
156      <label>
157        <input type="radio" value="byipid0" name="fAStat_purge_history_type" id="purge_history_type3" onclick="enabled_purge();" {$datas.ASTAT_PURGE_HISTORY_IP_DISABLED}>&nbsp;
158        {$datas.ASTAT_PURGE_HISTORY_IP_NFO}
159      </label>
[3394]160    </p>
161
162    <p class='formtable'>
163      <input type="checkbox" id="purge_history_confirm" onclick="enabled_purge();"/>
164      <input type="submit" value="{'AStat_tools_purge_history_apply'|@translate}" name="apply_tool_purge_history" id="purge_history_button" disabled />
165    </p>
166
[3706]167  </form>
[3394]168</fieldset>
169
[3706]170<script type="text/javascript">
171  init();
172</script>
Note: See TracBrowser for help on using the repository browser.