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

Last change on this file since 13664 was 10614, checked in by grum, 14 years ago

bug:2146 ; compatibility with piwigo 2.2

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