18 require_once SQ_CORE_PACKAGE_PATH.
'/system/cron/cron_job/cron_job_edit_fns.inc';
19 require_once SQ_LIB_PATH.
'/html_form/html_form.inc';
41 parent::__construct();
67 for($i=0;$i<60;$i++) {
69 $mins[
'0'.$i] =
'0'.$i;
77 for($i=0;$i<24;$i++) {
79 $hours[
'0'.$i] =
'0'.$i;
84 $when = $asset->attr(
'when');
86 $when_array = split(
'=', $when);
88 if(is_array($when_array) && count($when_array)==2) {
89 if($when_array[0]==
'HR') {
91 $hr_mins = $when_array[1];
94 $time = split(
':',$when_array[1]);
95 if(is_array($time) && count($time)==2) {
102 if ($asset->writeAccess(
'attributes')) {
105 <table style=
"width:auto;border-spacing:0px;" border=
"0">
107 <td><span style=
"font-weight:bold;">Hourly</span></td>
108 <td><?php radio_button($prefix.
'_schedule',
'HR', $hr_check); ?></td>
109 <td><?php combo_box($prefix.
'_h_mins',$mins,
false, $hr_mins); ?> min of every hour</td>
112 <td><span style=
"font-weight:bold;">Daily</span></td>
113 <td><?php radio_button($prefix.
'_schedule',
'DL', $dl_check); ?></td>
114 <td><?php combo_box($prefix.
'_d_hours',$hours,
false, $dl_hours); ?>:<?php combo_box($prefix.
'_d_mins',$mins,
false, $dl_mins); ?> on every day</td>
123 <table style=
"width:auto;border-spacing:0px;" border=
"0">
125 <td>CMIS
Bridge Files Will be Updated Hourly at </td>
126 <td><?php echo $hr_mins;?> min</td>
134 <table style=
"width:auto;border-spacing:0px;" border=
"0">
136 <td>CMIS
Bridge Files Will be Updated Daily at </td>
137 <td><?php echo $dl_hours;?>:<?php echo $dl_mins;?></td>
160 if(isset($_POST[$prefix.
'_schedule'])) {
161 $_schedule = $_POST[$prefix.
'_schedule'];
163 if(isset($_POST[$prefix.
'_h_mins'])) {
164 $_h_mins = $_POST[$prefix.
'_h_mins'];
166 if(isset($_POST[$prefix.
'_d_hours'])) {
167 $_d_hours = $_POST[$prefix.
'_d_hours'];
169 if(isset($_POST[$prefix.
'_d_mins'])) {
170 $_d_mins = $_POST[$prefix.
'_d_mins'];
173 if($_schedule==
'HR') {
174 $when = $_schedule.
'='.$_h_mins;
176 $when = $_schedule.
'='.$_d_hours.
':'.$_d_mins;
180 return $asset->setAttrValue(
'when', $when);