Changeset 27065
- Timestamp:
- Jan 30, 2014, 10:01:15 AM (10 years ago)
- Location:
- extensions/AStat
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/AStat/admin/astat_tools.tpl
r16490 r27065 1 {include file='include/datepicker.inc.tpl'} 1 2 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 7 {if "PHPWG_ROOT_PATH"|@constant|@cat:$datepicker_language|@file_exists} 8 {combine_script id="jquery.ui.datepicker-$lang_info.code" path=$datepicker_language} 9 {/if} 10 11 {html_head} 12 <link rel="stylesheet" type="text/css" href="themes/default/js/ui/theme/jquery.ui.datepicker.css"> 13 {/html_head} 14 15 {literal} 16 <script type="text/javascript"> 3 {footer_script}{literal} 17 4 18 5 function enabled_purge() … … 20 7 re = /\d{2}\/\d{2}\/\d{4}/i; 21 8 22 if(($('#purge_history_confirm'). attr('checked')&&$('#purge_history_type0').attr('checked')&&re.test($('#purge_history_date').val()))||23 ($('#purge_history_confirm'). attr('checked')&&!$('#purge_history_type0').attr('checked')))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'))) 24 11 { 25 12 $('#purge_history_button').attr('disabled', false); … … 36 23 var objbutton = document.getElementById('deleted_picture_resync_button'); 37 24 38 if($('#deleted_picture_confirm_resync'). attr('checked'))25 if($('#deleted_picture_confirm_resync').is(':checked')) 39 26 { 40 27 $('deleted_picture_resync_button').attr('disabled', false); … … 57 44 } 58 45 59 </script> 60 {/literal} 46 init(); 47 48 {/literal}{/footer_script} 61 49 62 50 {if isset($datas.ASTAT_RESULT_OK)}{$datas.ASTAT_RESULT_OK}{/if} … … 88 76 <p>{$datas.ASTAT_DELETED_PICTURE_NFO}</p> 89 77 <form method="post" action="" class="general"> 90 { 78 {if isset($datas.AStat_deleted_picture_submit0) and $datas.AStat_deleted_picture_submit0 == 'yes'} 91 79 <p class='formtable'> 92 80 <input type="submit" value="{'AStat_tools_deleted_picture_apply'|@translate}" name="apply_tool_deleted_picture"/> … … 167 155 </form> 168 156 </fieldset> 169 170 <script type="text/javascript">171 init();172 </script> -
extensions/AStat/astat_aip.class.inc.php
r16486 r27065 1443 1443 if(isset($_POST['submit'])) 1444 1444 { 1445 if (!is_adviser())1445 if (true) // if(!is_adviser()) 1446 1446 { 1447 1447 reset($this->config); … … 1574 1574 if(isset($_POST['apply_tool_purge_history'])) 1575 1575 { 1576 if (!is_adviser())1576 if (true) // if(!is_adviser()) 1577 1577 { 1578 1578 $action_result['action']='AStat_tools_purge_history'; … … 1632 1632 elseif(isset($_POST['apply_tool_deleted_picture_resync'])) 1633 1633 { 1634 if (!is_adviser())1634 if (true) // if(!is_adviser()) 1635 1635 { 1636 1636 $action_result['action']='AStat_tools_deleted_picture'; … … 1673 1673 elseif(isset($_POST['apply_tool_deleted_picture'])) 1674 1674 { 1675 if (!is_adviser())1675 if (true) // if(!is_adviser()) 1676 1676 { 1677 1677 $action_result['action']='AStat_tools_deleted_picture'; … … 1696 1696 elseif(isset($_POST['apply_tool_deleted_category'])) 1697 1697 { 1698 if (!is_adviser())1698 if (true) // if(!is_adviser()) 1699 1699 { 1700 1700 $action_result['action']='AStat_tools_deleted_category'; … … 1719 1719 elseif(isset($_POST['apply_tool_deleted_user'])) 1720 1720 { 1721 if (!is_adviser())1721 if (true) // if(!is_adviser()) 1722 1722 { 1723 1723 $action_result['action']='AStat_tools_deleted_user';
Note: See TracChangeset
for help on using the changeset viewer.