diciamo che sto continuando il lavoro di un ragazzo...quindi anche io devo ancora capire bene.
Cmq potrei postare tutta la pagina....però forse è il caso che qualcuno mi sposti nel forum giusto...
grazie......
a seguito la pagina
codice:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Poste Italiane - SRC - Sistema Riscontro Contabile</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="RCFONT00.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="RCSCRIPT00.js"></script>
</head>
<body onLoad="setVariables();checkLocation()">
<script type="text/javascript">
var xmldoc;
function CaricaTab(){
Partite.async = false;
Partite.load("xml/PartiteAperte.xml");
if (Partite.parseError.errorCode != 0) { document.write(reportParseError(Partite.parseError)); return}
xmldoc = Partite.cloneNode(true);
NumItem()
}
function sort(xml, xsldoc){
var Appoxs = xsldoc.documentElement;
var AppoPa = Partite.XMLDocument;
xml.documentElement.transformNodeToObject(Appoxs, AppoPa);
//Partite.documentElement.transformNodeToObject(xsldoc.documentElement, Partite.XMLDocument);
NumItem()
}
function SortDataBinding(col) {
Partite.Sort[col];
Partite.Reset();
}
function toggleDetail(e) {
var d,ep;
alert(e.recordNumber)
if (e.style.display == "none") {
e.style.color = "yellow";
} else {
e.style.color = "white";
}
}
function ItemSel(e) {
var ind = e.recordNumber - 1;
alert(Partite.documentElement.childNodes.item(ind).xml);
}
function NumItem() {
NItem.value = Partite.documentElement.childNodes.length
}
function Filtra(Field, Dir, Query, Valore) {
if ((Field == "")&&(FiltroVal.value == "")) { alert("Inserire criteri di ricerca!"); return;}
var txt = "<PartiteAperte>\n"
txt = txt+"<xsl:for-each "
if (Field != "") txt= txt+"order-by=\""+Dir+" "+Field+"\""
txt = txt+" select=\"Partita"
if (Query != "") txt= txt+"["+Query+"'"+Valore+"']"
txt = txt+"\" xmlns:xsl=\"http://www.w3.org/TR/WD-xsl\">\n"
txt = txt+"<Partita>\n"
txt = txt+"<Ufficio><xsl:value-of select=\"Ufficio\"/></Ufficio>\n"
txt = txt+"<Daco><xsl:value-of select='Daco'/></Daco>\n"
txt = txt+"<DataPartita><xsl:value-of select='DataPartita'/></DataPartita>\n"
txt = txt+"<Segno><xsl:value-of select='Segno'/></Segno>\n"
txt = txt+"<ImportoDaco><xsl:value-of select='ImportoDaco'/></ImportoDaco>\n"
txt = txt+"<DataDaco><xsl:value-of select='DataDaco'/></DataDaco>\n"
txt = txt+"<ImportoPartitario><xsl:value-of select='ImportoPartitario'/></ImportoPartitario>\n"
txt = txt+"<DataPartitario><xsl:value-of select='DataPartitario'/></DataPartitario>\n"
txt = txt+"<ImportoDifferenze><xsl:value-of select='ImportoDifferenze'/></ImportoDifferenze>\n"
txt = txt+"<ImportoRilievi><xsl:value-of select='ImportoRilievi'/></ImportoRilievi>\n"
txt = txt+"<ImportoCOPA><xsl:value-of select='ImportoCOPA'/></ImportoCOPA>\n"
txt = txt+"<ImportoPartita><xsl:value-of select='ImportoPartita'/></ImportoPartita>\n"
txt = txt+"</Partita>\n"
txt = txt+"</xsl:for-each>\n"
txt = txt+"</PartiteAperte>\n"
Filtro.loadXML(txt);
if (Filtro.parseError.errorCode != 0) { document.write(reportParseError(Filtro.parseError)); return;}
if (Field != "") sort(Partite, Filtro.XMLDocument)
else sort(xmldoc, Filtro.XMLDocument)
}
// Parse error formatting function
function reportParseError(error)
{
var s = "";
for (var i=1; i<error.linepos; i++) {
s += " ";
}
r = "<font face=Verdana size=2><font size=4>XML Error loading '" +
error.url + "'</font>" +
"
" + error.reason +
"</P></font>";
if (error.line > 0)
r += "<font size=3><XMP>" +
"at line " + error.line + ", character " + error.linepos +
"\n" + error.srcText +
"\n" + s + "^" +
"</XMP></font>";
return r;
}
window.onresize=function(){if(ultimo) document.getElementById(ultimo).style.visibility='hidden'}
</script>
<div id="boxesterno">
<table cellpadding="0" cellspacing="0" width="100%" border="0">
<tr height="25">
<td width="25"></td>
<td width="273" align="left" valign="top">[img]images/Image_logo.jpg[/img]</td>
<td></td>
<td rowspan="2" width="110" align="right" valign="bottom">
[img]images/logo_posteitalianeNEW.jpg[/img]</td>
<td rowspan="2" width="25" align="right" valign="bottom">
[img]images/ang_dx_giallo.jpg[/img]</td>
</tr>
<tr height="25">
<td width="25" colspan="">[img]images/ang_sx_giallo.jpg[/img]</td>
<td class="header">[img]images/Testo_SRC.jpg[/img]</td>
<td class="header"></td>
</tr>
<tr height="25" bgcolor="#3333CC">
<td width="24"></td>
<td>
<div id="menu">
<div id="1">SINTETICO PARTITEANALITICO PARTITE</div>
<div id="2">INSERIMENTOVISUALIZZAZIONE</div>
<div id="3">REPORT DATA CONTABILE</div>
<div id="4">CONSULTAZIONE</div>
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td width="20%" align="left" onmouseover="VisualizzaMenu(this,1)">PARTITE</td>
<td align="left"></td>
<td width="20%" align="left" onmouseover="VisualizzaMenu(this,2)">CORREZIONI 3270</td>
<td align="left"></td>
<td width="20%" align="left" onmouseover="VisualizzaMenu(this,3)">RICHIESTE BATCH</td>
<td align="left"></td>
<td width="20%" align="left" onmouseover="VisualizzaMenu(this,4)">CONTROLLO CONTABILE</td>
<td width="20%" align="left"></td>
</tr>
</table>
</div>
<!--<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td width="14%" align="left" id="mnu_partite" class="giallost"
onMouseOver="MM_showMenu(window.mm_menu_0424141543_0,0,18,null,'mnu_partite')"
onMouseOut="MM_startTimeout();">PARTITE
</td>
<td width="22%" align="left" id="mnu_3270" class="giallost"
onMouseOver="MM_showMenu(window.mm_menu_0424142628_0,0,18,null,'mnu_3270')"
onMouseOut="MM_startTimeout();">CORREZIONI 3270
</td>
<td width="22%" align="left" id="mnu_batch" class="giallost"
onMouseOver="MM_showMenu(window.mm_menu_0424142700_0,0,18,null,'mnu_batch')"
onMouseOut="MM_startTimeout();">RICHIESTE BATCH
</td>
<td width="30%" align="left" id="mnu_contabile" class="giallost"
onMouseOver="MM_showMenu(window.mm_menu_0424142955_0 ,0,18,null,'mnu_contabile')"
onMouseOut="MM_startTimeout();">CONTROLLO CONTABILE
</td>
</tr>
</table>-->
</td>
<td colspan="3" class="biancost" align="right" valign="middle">Utente: <span class="giallost">DEMO</span>[img]images/logoff.jpg[/img]</td>
</tr>
<tr height="25">
<td width="24" class="left"></td>
<td colspan="4" class="right"></td>
</tr>
<tr height="25">
<td width="24" class="left"></td>
<td colspan="4" class="right"></td>
</tr>
</table>
<xml id="Partite"></xml>
<xml id="Filtro"></xml>
<table class="Body" cellpadding="0" cellspacing="0" width="100%" border="0" height="400">
<tr valign="top">
<td width="25"></td>
<td width="150" class="blust" align="left"></td>
<td align="center">
<table cellpadding="4" cellspacing="0" width="98%">
<tr>
<td class="blust" align="left">
<input type="button" value="Carica Partite Aperte" onClick="CaricaTab();"/>
<input type="button" value="Ordina" onClick="Filtra('Ufficio','-','','');"/>
Voce DACO:<input type="text" id="FiltroVal"/><input type="button" value="Filtra" onClick="Filtra('','','Daco$eq$',FiltroVal.value);"/>
</td>
<td class="blust" align="right">
[img]images/indietro.gif[/img]
[img]images/prev.gif[/img]
[img]images/next.gif[/img]
[img]images/avanti.gif[/img]
</td>
</tr>
<tr>
<td class="blust" align="left" colspan="2">
Numero Partite estratte: <input type="text" id="NItem" size="5" value="0" readonly/>Mostra n° <input type="text" id="DItem" size="3" value="30" onBlur="PartAperte.dataPageSize = this.value;" /> record per pagina.
<input type="button" value="OrdinaNew" onClick="SortDataBinding('Ufficio');"/>
</td>
</table>
<table class="Dati" width="98%" datapagesize="30" id="PartAperte" datasrc="#Partite" border="0" cellpadding="2" cellspacing="1">
<thead bgcolor="#3333CC">
<tr>
<th colspan="3" class="giallost" align="center">Parte Generale</th>
<th width="5%" class="giallost" align="center">Segno</th>
<th colspan="2" class="giallost" align="center">DACO</th>
<th colspan="2" class="giallost" align="center">Partitario</th>
<th class="giallost" align="center">Differenze
DACO-Partitario</th>
<th class="giallost" align="center">Rilievi</th>
<th class="giallost" align="center">Correzioni
3270</th>
<th class="giallost" align="center">Partite</th>
</tr>
<tr>
<th class="giallost" align="center" id="Ufficio">Ufficio</th>
<th class="giallost" align="center">Daco</th>
<th class="giallost" align="center">Data</th>
<th class="giallost" align="center">D/A</th>
<th class="giallost" align="right">Importo</th>
<th class="giallost" align="center">Data</th>
<th class="giallost" align="right">Importo</th>
<th class="giallost" align="center">Data</th>
<th class="giallost" align="right">Importo</th>
<th class="giallost" align="right">Importo</th>
<th class="giallost" align="right">Importo</th>
<th class="giallost" align="right">Importo</th>
</tr>
</thead>
<tbody>
<tr onClick="ItemSel(this)">
<td class="blust" align="center"><span datafld="Ufficio"></span></td>
<td class="blust" align="center" onClick="toggleDetail(this)"><span datafld="Daco"></span></td>
<td class="blust" align="center"><span datafld="DataPartita"></span></td>
<td class="blust" align="center"><span datafld="Segno"></span></td>
<td class="blust" align="right"><span datafld="ImportoDaco"></span></td>
<td class="blust" align="center"><span datafld="DataDaco"></span></td>
<td class="blust" align="right"><span datafld="ImportoPartitario"></span></td>
<td class="blust" align="center"><span datafld="DataPartitario"></span></td>
<td class="blust" align="right"><span datafld="ImportoDifferenze"></span></td>
<td class="blust" align="right"><span datafld="ImportoRilievi"></span></td>
<td class="blust" align="right"><span datafld="ImportoCOPA"></span></td>
<td class="blust" align="right"><span datafld="ImportoPartita"></span></td>
</tr>
</tbody>
</table>
<table cellpadding="4" cellspacing="0" width="98%">
<tr>
<td class="blust" align="right">
[img]images/indietro.gif[/img]
[img]images/prev.gif[/img]
[img]images/next.gif[/img]
[img]images/avanti.gif[/img]
</td>
</tr>
</table>
</td>
</tr>
</table>