ASNMTAP
view release on metacpan or search on metacpan
applications/htmlroot/cgi-bin/moderator/collectorCrontabSchedulingReports.pl view on Meta::CPAN
document.crontabs.catalogIDreload.value = 1;
document.crontabs.submit();
return true;
}
function validateForm() {
var objectRegularExpressionSqlPeriode = /\^(12|24|36|48|60|72|84|94)00\$/;
if ( document.crontabs.sqlPeriode.value == null || document.crontabs.sqlPeriode.value == '' ) {
document.crontabs.sqlPeriode.focus();
alert('Please enter Periode!');
return false;
} else {
if ( ! objectRegularExpressionSqlPeriode.test(document.crontabs.sqlPeriode.value) ) {
document.crontabs.sqlPeriode.focus();
alert('Please re-enter Periode (1200|2400|3600|4800|6000|7200|8400|9400): Bad Periode value!');
return false;
}
}
var objectRegularExpressionWidth = /\^(1[0-9][0-9][0-9])\$/;
if ( document.crontabs.width.value == null || document.crontabs.width.value == '' ) {
document.crontabs.width.focus();
alert('Please enter Width!');
return false;
} else {
if ( ! objectRegularExpressionWidth.test(document.crontabs.width.value) ) {
document.crontabs.width.focus();
alert('Please re-enter Width (1000-1999): Bad Width value!');
return false;
}
}
var objectRegularExpressionXoffset = /\^([1-3][0-9][0-9])\$/;
if ( document.crontabs.xOffset.value == null || document.crontabs.xOffset.value == '' ) {
document.crontabs.xOffset.focus();
alert('Please enter x Offset!');
return false;
} else {
if ( ! objectRegularExpressionXoffset.test(document.crontabs.xOffset.value) ) {
document.crontabs.xOffset.focus();
alert('Please re-enter x Offset (100-399): Bad x Offset value !');
return false;
}
}
return true;
}
</script>
<form action="$ENV{SCRIPT_NAME}" method="post" name="crontabs" onSubmit="return validateForm();">
<input type="hidden" name="pagedir" value="$pagedir">
<input type="hidden" name="pageset" value="$pageset">
<input type="hidden" name="debug" value="$debug">
<input type="hidden" name="CGISESSID" value="$sessionID">
<input type="hidden" name="catalogIDreload" value="0">
<table border="0">
<tr><td><b>Catalog ID: </b></td><td>
<input type="text" name="catalogID" value="$CcatalogID" size="5" maxlength="5" disabled> $catalogIDSelect
</td></tr>
<tr align="left">
<td>Periode:</td><td><input name="sqlPeriode" type="text" value="$sqlPeriode" size="4" maxlength="4"> </td>
<td>Width:</td><td><input name="width" type="text" value="$width" size="4" maxlength="4"> </td>
<td>x offset:</td><td><input name="xOffset" type="text" value="$xOffset" size="3" maxlength="3"></td>
</tr>
<tr align="left"><td>Options:</td><td colspan="5">$currentTimeslotOutputBox $printerFriendlyOutputBox</td></tr>
<tr align="left"><td align="right"><br>
<input type="submit" value="Scheduling"></td><td colspan="5"><br><input type="reset" value="Reset">
</td></tr>
</table>
</form>
<hr>
HTML
}
if (defined $errorMessage) {
print $errorMessage, "\n" ;
} else {
foreach my $collectorDaemon (@collectorDaemons) {
print "<br><center><img src=\"$HTTPSURL/cgi-bin/moderator/generateCollectorCrontabSchedulingReport.pl?catalogID=$CcatalogID&collectorDaemon=$collectorDaemon&".encode_html_entities('U', $urlAccessParameters)."\"></center>\n";
}
print "<br><center><a href=\"$HTTPSURL/cgi-bin/htmlToPdf.pl?HTMLtoPDFprg=$HTMLTOPDFPRG&HTMLtoPDFhow=$HTMLTOPDFHOW&scriptname=", $ENV{SCRIPT_NAME}, "&",encode_html_entities('U', $urlAccessParameters),"\" target=\"_blank\">[Generate P...
}
print '<BR>', "\n";
}
}
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
print_legend (*STDOUT);
print '</BODY>', "\n", '</HTML>', "\n";
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
( run in 0.580 second using v1.01-cache-2.11-cpan-39bf76dae61 )