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