/* box model fix for strict doctypes, safari */
.aw-strict #myGrid .aw-grid-cell {padding-right: 3px;}
.aw-strict #myGrid .aw-grid-row {padding-bottom: 3px;}
</style>
</head>
<body style="background-color:#000099;overflow:hidden;">
<!-- Island xml section modified for firefox and safari support -->
<script id="xmlDataIsland" type="xml/data">
<records>
// assign xml data
table.setXML(xmlString);
table.getLink = function(col, row){return this.getNode(col, row).getAttribute("f_hl");};
table.getTooltip = function(col, row){return this.getNode(col, row).getAttribute("f_ro");};
var obj = new AW.UI.Grid;
obj.setId("myGrid");
obj.setColumnCount(19);
obj.setRowCount(144);
obj.setCellModel(table);
obj.setHeaderText(["Destination","Call_Attempts","Call_Connects","Call_Errors","Minutes","ASR","ABR","PDD","ALOC","LastCall","Link1","Link2","Link3","Link4","Link5","Link6","Link7","FirstCall","PSC","@bc","@fc","@ft","@fw","@hl","More/@f_hl"]);
var c, r, a, text = [];
var cols = this.getSelectedColumns();
var rows = this.getSelectedRows();
// build columns array for row selections
if (this.getCurrentSelection() == "row"){
cols = [];
var count = this.getColumnCount();
var indices = this.getColumnIndices();
for (c=0; c<count; c++){
cols[c] = indices ? indices[c] : c;
}
}
// push column headers
if ( cols.length > 1 || rows.length > 1 ){
a = [];
for (c=0; c<cols.length; c++){
a[c] = this.getHeaderText(cols[c]);
}
text.push(a.join("\t"));
}
// push cell text
for (r=0; r<rows.length; r++){
a = [];
for (c=0; c<cols.length; c++){
a[c] = this.getCellText(cols[c], rows[r]);
}
text.push(a.join("\t"));
}
return text.join("\r\n");
};
var myRow = new AW.Grid.Row;
myRow.setStyle("background", function(){return this.getRowProperty("background");});
myRow.setStyle("color", function(){return this.getRowProperty("color");});
myRow.setStyle("font-family", function(){return this.getRowProperty("font-family");});
myRow.setStyle("font-weight", function(){return this.getRowProperty("font-weight");});
obj.setRowTemplate(myRow);
var label = new AW.UI.Label;
label.setId("myLabel");
label.setControlText("Destination: ");
var button1 = new AW.UI.Button;
button1.setId("button1");
button1.setControlText("Add…");
var str = new AW.Formats.String;
var num = new AW.Formats.Number;
var floatFormat = new AW.Formats.Number;
var cur = new AW.Formats.Number;
var rate = new AW.Formats.Number;
floatFormat.setTextFormat("#,###.###");
num.setTextFormat("#,###.");
cur.setTextFormat("#,###.##");
rate.setTextFormat("##.#####");
obj.setFooterText(function(c, r){
var format = this.getFooterFormat(c, r);
var data = this.getFooterData(c, r);
return format ? format.dataToText(data) : data;
});