{include file='include/datepicker.inc.tpl'} {footer_script}{literal} function enabled_purge() { re = /\d{2}\/\d{2}\/\d{4}/i; if(($('#purge_history_confirm').is(':checked')&&$('#purge_history_type0').is(':checked')&&re.test($('#purge_history_date').val()))|| ($('#purge_history_confirm').is(':checked')&&!$('#purge_history_type0').is(':checked'))) { $('#purge_history_button').attr('disabled', false); } else { $('#purge_history_button').attr('disabled', true); } } function enabled_deleted_picture() { var objconfirm = document.getElementById('deleted_picture_confirm_resync'); var objbutton = document.getElementById('deleted_picture_resync_button'); if($('#deleted_picture_confirm_resync').is(':checked')) { $('deleted_picture_resync_button').attr('disabled', false); } else { $('deleted_picture_resync_button').attr('disabled', true); } } function init() { $("#purge_history_date").datepicker({ dateFormat: 'dd/mm/yy', constrainInput: true, defaultDate:"-12m", maxDate:0, minDate:new Date({/literal}"{$datas.ASTAT_MINDATE}"{literal}) }); } init(); {/literal}{/footer_script} {if isset($datas.ASTAT_RESULT_OK)}{$datas.ASTAT_RESULT_OK}{/if}