ASNMTAP
view release on metacpan or search on metacpan
applications/htmlroot/cgi-bin/getArchivedDebug.pl view on Meta::CPAN
my $debugMin = substr($archivedDebugFile, 10, 2);
my $debugSec = substr($archivedDebugFile, 12, 2);
my $debugTime = "$debugHour:$debugMin:$debugSec";
$debugsSelect .= "\n <tr><td><a href=\"$RESULTSURL/$resultsdir/$DEBUGDIR/$archivedDebugFile\" target=\"_blank\">$debugDate</a></td><td>$debugTime</td></tr>";
$noGeneratedDebugs = 0;
}
}
$debugsSelect .= "\n <tr><td>For this period there are no generated debug report(s) for '" .encode_html_entities('T', $title). "'</td></tr>" if ($noGeneratedDebugs);
}
$debugsSelect .= "\n </table>";
} else {
$debugsSelect = "<h1>Contact the administrator, maybe no debug reports generated</h1><br>" if ($uKey ne '<NIHIL>');
}
# HTML - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
my $onload = ($uKey ne '<NIHIL>') ? "ONLOAD=\"if (document.images) document.Progress.src='".$IMAGESURL."/spacer.gif';\"" : '';
print_header (*STDOUT, $pagedir, $pageset, $htmlTitle, $subTitle, 3600, $onload, 'F', '', $sessionID);
my $urlWithAccessParameters = "?pagedir=$pagedir&pageset=$pageset&debug=$debug&CGISESSID=$sessionID&catalogID=$CcatalogID";
if ( $userType >= 1 ) {
print <<EndOfHtml;
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr align="center"><td>
<table border="0" cellspacing="0" cellpadding="0"><tr>
<td class="StatusItem"><a href="getArchivedReport.pl$urlWithAccessParameters">[List report archive]</a></td>
<td class="StatusItem"> </td>
<td class="StatusItem"><a href="getArchivedDebug.pl$urlWithAccessParameters">[List debug archive]</a></td>
<td class="StatusItem"> </td>
<td class="StatusItem"><a href="getArchivedDisplays.pl$urlWithAccessParameters">[List display archive]</a></td>
<td class="StatusItem"> </td>
<td class="StatusItem"><a href="getArchivedResults.pl$urlWithAccessParameters">[List results archive]</a></td>
</tr></table>
</td></tr>
</table>
EndOfHtml
}
my $checkboxArchived = "<input type=\"checkbox\" name=\"archived\"" .(($archived eq 'on') ? ' checked' : ''). "> Archived";
print <<EndOfHtml;
<script language="JavaScript1.2" type="text/javascript">
function submitForm() {
document.getArchivedDebug.catalogIDreload.value = 1;
document.getArchivedDebug.submit();
return true;
}
</script>
<BR>
<form action="$ENV{SCRIPT_NAME}" method="post" name="getArchivedDebug">
<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="ascending" value="$ascending">
<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>Application:</td><td>$uKeySelect</td></tr>
<tr align="left"><td>Periode:</td><td>$checkboxArchived</td></tr>
<tr align="left"><td align="right"><br><input type="submit" value="Go"></td><td><br><input type="reset" value="Reset"></td></tr>
</table>
</form>
<HR>
EndOfHtml
if (defined $debugsSelect) {
print "<br>$debugsSelect";
} else {
print "<br>Select application from the 'Archived Debug Directory'.<br>";
}
}
print '<BR>', "\n";
}
}
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
print_legend (*STDOUT);
print '</BODY>', "\n", '</HTML>', "\n";
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
( run in 0.770 second using v1.01-cache-2.11-cpan-39bf76dae61 )