Current File : //root/panel/modules/cron/module.zpm |
<div class="zmodule_content panel" id="zmodule_header_<@ ModuleName @>">
<div class="panel-heading">
<img src="<@ ModuleIcon @>" width="35" height="35" border="0" alt="<@ ModuleName @>">
<div class="zmodule_title">
<@ ModuleName @>
</div>
<div class="zmodule_desc" id="zmodule_desc_<@ ModuleName @>"><@ ModuleDesc @></div>
<% if isDeleteCron %>
<div class="zform_wrapper alert alert-danger">
<p><: Please confirm that you want to delete this cron. :></p>
<form action="./?module=cron&action=DeleteCron" method="post" autocomplete="off" >
<table class="none" cellpadding="0" cellspacing="0">
<tr>
<td colspan="2" align="right">
<input type="hidden" name="inDelete" value="<@ EditCurrentCron @>">
<button class="button-loader delete btn btn-danger" type="submit" ><: Delete :></button>
<button class="button-loader btn btn-default" type="button" onclick="window.location.href='./?module=cron';return false;"><: Cancel :></button>
</td>
</tr>
</table>
<@ CSFR_Tag @>
</form>
</div>
<% endif %>
</div>
<style>
.helpicon {
display: block;
float: right;
border: 1px solid #ccc;
background-color: #f3f3f3;
padding: 5px 10px;
font-size: 12px;
margin-top:-80px;
margin-right:6px;
-webkit-box-shadow: -8px 7px 5px 0px rgba(204,204,204,1);
-moz-box-shadow: -8px 7px 5px 0px rgba(204,204,204,1);
box-shadow: -8px 7px 5px 0px rgba(204,204,204,1);
-webkit-box-shadow: 8px 7px 5px 0px rgba(204,204,204,1);
-moz-box-shadow: 8px 7px 5px 0px rgba(204,204,204,1);
box-shadow: 8px 7px 5px 0px rgba(204,204,204,1);
}
.hrcroncomseltd select {
width: 424px;
}
.hrcronseltd select {
width: 205px !important;
}
</style>
<div class="helpicon">
<a href="<@ helpicon @>" target="_blank"><img src="etc/styles/CstyleX-master/images/help.png" style="float:left;" ><span style="float:left;margin-top:8px;font-weight:bold;font-size:12px;" >Video Tutorial</span></a>
</div>
<@ Result @>
<div class="zgrid_wrapper">
<@ Crons @>
</div>
<div class="zform_wrapper">
<@ CreateCronNew @>
</div>
</div>
<div class="notes">
<h3>Note:</h3>
<p><b>Main Domain : public_html/folderpath/filename</b></p1>
<p>Example : public_html/cronfolder/cron.php</p>
<p><b>SubDomain & AddonDomain:DomainFolder/folderpath/filename</b></p1>
<p>Example : example_com/cronfolder/cron.php</p>
</div>
<script>
function commonSettingChanges() {
var selected_value = document.getElementById('com_setting').value;
selected_value = selected_value.split(" ");
document.getElementById('minute_text').value = selected_value[0];
document.getElementById('minute_setting').value = selected_value[0];
document.getElementById('hour_text').value = selected_value[1];
document.getElementById('hour_setting').value = selected_value[1];
document.getElementById('day_text').value = selected_value[2];
document.getElementById('day_setting').value = selected_value[2];
document.getElementById('month_text').value = selected_value[3];
document.getElementById('month_setting').value = selected_value[3];
document.getElementById('weekday_text').value = selected_value[4];
document.getElementById('weekday_setting').value = selected_value[4];
}
function changeSettings(field) {
var text_value = field+"_text";
var select_value = field+"_setting";
var selected_setting_value = document.getElementById(select_value).value;
document.getElementById('com_setting').value = "--";
document.getElementById(text_value).value = selected_setting_value;
}
function changeTxtSettings(field) {
var text_value = field+"_text";
var select_value = field+"_setting";
var text_setting_value = document.getElementById(text_value).value;
var has_option = $('#'+select_value+' option[value="' + text_setting_value + '"]');
if(has_option.length == 0) {
document.getElementById(select_value).value = "--";
} else {
document.getElementById(select_value).value = text_setting_value;
}
}
function changeCommandOrUrl() {
var cron_type = document.getElementsByName('crontype');
for (var i = 0, length = cron_type.length; i < length; i++) {
if (cron_type[i].checked) {
console.log(cron_type[i].value);
if(cron_type[i].value=='url') {
cron_command_settings.style.display = "none";
cron_url_settings.style.display = "block";
} else {
cron_command_settings.style.display = "block";
cron_url_settings.style.display = "none";
}
break;
}
}
}
</script>
<style>
#cronjob #cron_body tr td {
display: table;
margin-bottom: 5px;
width: 100%;
}
#cron_body table input {
width: 20%;
height: 34px;
margin-right: 25px;
padding: 0 5px;
}
#cron_body table select {
width: 38%;
height: 34px;
}
.hrcroncomseltd select, .hrcroncmdexectd input, .hrcroncmdscrtd input {
width: 60% !important;
}
</style>