<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>WPKG Client Package Status Report</title>
<style type="text/css">
body { font-family: arial, sans-serif; font-size: 14px; }
table.pkgTable { background-color: #CCCCCC; }
.pkgTable th { padding: 5px; }
.pkgTable td { padding: 5px; }
.colHostname { text-align: left; }
.colPkgId { text-align: left; }
.colPkgName { text-align: left; }
.colPkgRev { text-align: right; }
.colPkgState { text-align: center; }
.colLastMod { text-align: right; }
.pkgTable th { background-color: #C4FFF3; }
tr.oddRow { background-color: #EFEFEF; }
tr.evenRow { background-color: #D6D6D6; }
tr.pkgStateUpgrade { background-color: yellow; }
tr.pkgStateDowngrade { background-color: orange; }
tr.pkgStateRemove { background-color: red; }
tr.pkgStateInstall { background-color: green; }
</style>
<script type="text/javascript" language="JavaScript">
<!--
var pkgStateOk = 0;
var pkgStateInstall = 1;
var pkgStateUpgrade = 2;
var pkgStateDowngrade = 3;
var pkgStateRemove = 4;
function HideState(StateArray) {
var TRarray = document.getElementsByTagName('tr');
for ( var i = 0; i < TRarray.length; i++ ) {
if ( TRarray[i].className.match(/pkgState[Ok|Install|Upgrade|Downgrade|Remove]/) ) {
var StateClass = TRarray[i].className.replace(/oddRow /, "");
var StateClass = StateClass.replace(/evenRow /, "");
if ( StateArray[eval(StateClass)] ) {
TRarray[i].style.visibility = "visible";
} else {
if ( navigator.appName.match(/Microsoft Internet Explorer/) ) {
TRarray[i].style.visibility = "hidden";
} else {
TRarray[i].style.visibility = "collapse";
}
}
}
}
}
function FilterColumn(ColumnClass) {
if ( ColumnClass == "colPkgState" ) {
var CheckState = document.getElementsByName('StateCheck');
var CheckStates = new Array();
for ( var i = 0; i < CheckState.length; i++ ) {
CheckStates[eval(CheckState[i].value)] = CheckState[i].checked;
}
HideState(CheckStates)
}
}
// -->
</script>
</head>
<body>
<table class="pkgTable">
<tr class="oddRow">
<td>
<input type="button" value="Apply Filter" onclick="FilterColumn('colHostname')"/>
</td>
<td>
<input type="button" value="Apply Filter" onclick="FilterColumn('colPkgId')"/>
</td>
<td>
<input type="button" value="Apply Filter" onclick="FilterColumn('colPkgName')"/>
</td>
<td>
<input type="button" value="Apply Filter" onclick="FilterColumn('colPkgRev')"/>
</td>
<td>
<input type="checkbox" checked="checked" name="StateCheck" value="pkgStateOk"/> OK <br/>
<input type="checkbox" checked="checked" name="StateCheck" value="pkgStateInstall"/> Install <br/>
<input type="checkbox" checked="checked" name="StateCheck" value="pkgStateUpgrade"/> Upgrade <br/>
<input type="checkbox" checked="checked" name="StateCheck" value="pkgStateDowngrade"/> Downgrade <br/>
<input type="checkbox" checked="checked" name="StateCheck" value="pkgStateRemove"/> Remove <br/> <br/>
<input type="button" value="Apply Filter" onclick="FilterColumn('colPkgState')"/>
</td>
<td>
<input type="button" value="Apply Filter" onclick="FilterColumn('colLastMod')"/>
</td>
</tr>
<wpkg:pkgTable>
</table>
</body>
</html>