Your IP : 216.73.216.249


Current Path : /home/jeromecohp/www/aesecure/premium/template/
Upload File :
Current File : /home/jeromecohp/www/aesecure/premium/template/form_19_maintenance.default.aec

<div>

   %CHECKBOXES%

   <form id="form%ID%" role="form">
      <input type="hidden" name="w" value="%ID%" size="4"/>
      <input type="hidden" name="a" value="1" size="1"/>
      <input type="hidden" name="%AESECURETOKEN%" value="%TOKEN%"/>
      <textarea style="display:none;" disabled="disabled" id="backup%ID%" class="form-control" rows="5">%BACKUPVALUES%</textarea>
      <div data-aesecure="pro" class="form-group pro_options" id="pro_options%ID%">&nbsp;</div>
   </form>
   <br/><span class="text-success"><em><strong>%RECOMMANDED_STATE%:</strong>&nbsp;%RECOMMANDED_STATE_VALUE%</em></span>
</div>

<div id="div%ID%" class="ajaxResult"/>

<script type="text/javascript">

function postProcessing%ID%() { 
   if ($('#indicatorMaintenance').length>0) {
      if ($('#form%ID% input[name=a]').val()==1) {
         $('#indicatorMaintenance').show();
      } else {
         $('#indicatorMaintenance').hide();
      }
   }
   return true;
}
   // Initialize Pro functionnalities (if present)
   if (typeof initaeSecurePro !== 'undefined' && $.isFunction(initaeSecurePro)) initaeSecurePro(%ID%);

   $('#tab%ID%switch input[type=checkbox]').checkboxpicker();
   $('#tab%ID%switch input[type=checkbox]').on("change", function() {
      var checked = $(this).prop("checked");
      if (checked==true) {
         // Enable the protection
         $('#form%ID% input[name=a]').val(1);
         var formData=$('#form%ID%').serialize();
         SetupTask(%ID%, 'div%ID%',formData,'%FEATURE_ENABLED%','','postProcessing%ID%()',true, 'POST','tab%ID%switch','','','%TAG%');
      } else { // if (data.value==true)
         // Disable the protection
         $('#form%ID% input[name=a]').val(0);
         var formData=$('#form%ID%').serialize();
         SetupTask(%ID%, 'div%ID%',formData,'%FEATURE_DISABLED%','','postProcessing%ID%()',true, 'POST','tab%ID%switch','','','%TAG%');
      } // if (data.value==true)
   });

   $('[data-toggle="popover"]').popover({trigger:'hover','placement':'top','html':true});

</script>