1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223
|
<html>
<head>
<TITLE>Consult. - Consultation</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<LINK REL="shortcut icon" type="image/x-icon" href="favicon.ico" />
<LINK REL="icon" type="image/gif" href="favicon.gif">
<LINK REL=stylesheet TYPE=text/css HREF="res/Consult.css">
<script type="text/javascript" src="./include/dojo/dojo/dojo.js" djConfig="isDebug: true, parseOnLoad: true"></script>
<style type="text/css">
@import "./include/dojo/dojo/resources/dojo.css";
@import "./include/dojo/dijit/themes/nihilo/nihilo.css";
/*Pour que le bordercontainer soit sur toute la page*/
html, body, #main { height: 100%; width: 100%; margin: 0; padding: 0; }
</style>
</head>
<body class="soria">
<script type="text/javascript">
dojo.require("dojox.layout.ContentPane");
dojo.require("dijit.layout.AccordionContainer");
dojo.require("dijit.layout.BorderContainer");
dojo.require("dojox.grid.DataGrid");
dojo.require("dojo.data.ItemFileWriteStore");
dojo.require("dijit.Tree");
dojo.require("dijit.tree.ForestStoreModel");
</script>
<div id="main" dojoType="dijit.layout.BorderContainer" design="headline">
<div id="ProfilBar" align="right">
<table border="0"><tr>
<td align="center" width="80"><a href="/ssafe_c/consult.php?go=profil" class="Style-lien">Mon profil</a></td>
<td align="center" width="100"><a href="logout.php" class="Style-lien"><img src="./res/cross.png" alt="Déconnexion" border="0">Déconnexion</a></td>
</tr></table></div>
<!-- Entête -->
<div dojoType="dijit.layout.ContentPane" region="top">
<TABLE CLASS="l-1" BORDER="0" WIDTH="100%">
<TD WIDTH=10 ROWSPAN=2 />
<TD ROWSPAN=2 CLASS="Titre-Logo"><img src="res/safe.gif" hspace=0 vspace=2 border=0>
<BR><FONT CLASS="Style-Libelle-Titre-Logo-">Consultation XXX</FONT>
</TD>
<TD CLASS="Style-libelle-titre" ID="TITREPAGE" VALIGN="top" ALIGN="CENTER">
CONSULTATION
</TD>
<TD></TD>
<TD></TD>
</TR>
<TD CLASS="Style-Libelle-bienvenue" VALIGN="top" ALIGN="CENTER">
Bienvenue <I>Lionel</I> (<SPAN CLASS="Style-Etat-Connectes">3 connectés</SPAN>)
</TD>
<td width="150" CLASS="Style-Libelle" STYLE="text-align: right;" id="heure">
<script type="text/javascript">
// function UR_Start()
// {
// var UR_Nu = new Date;
// UR_Indhold = showFilled(UR_Nu.getDate()) + "/" + showFilled(UR_Nu.getMonth() + 1) + "/" + showFilled(UR_Nu.getYear()) + " " + showFilled(UR_Nu.getHours()) + ":" + showFilled(UR_Nu.getMinutes()) + ":" + showFilled(UR_Nu.getSeconds());
// document.getElementById("heure").innerHTML = UR_Indhold;
// setTimeout("UR_Start()",1000);
// }
// function showFilled(Value)
// {
// return (Value > 9) ? "" + Value : "0" + Value;
// }
// UR_Start();
</script>
</td>
</TR>
</TABLE>
</div>
<!-- Entête -->
<!-- Bloc du tree a gauche -->
<div dojoType="dijit.layout.ContentPane" region="left" style="width: 210px;padding:0px; margin:0px; border:none;" splitter="true">
<DIV dojoType="dijit.layout.AccordionContainer" id="acc01">
<DIV dojoType="dijit.layout.ContentPane" title="Archives" BORDER="0" WIDTH="100%" HEIGHT="100%" STYLE="height: 100%; max-height: 100%; width: 100%; max-width: 100%;">
<script type="text/javascript">
var storeArcs = new dojo.data.ItemFileWriteStore({data: { identifier: "key", label: "name", items: []}});
storeArcs.newItem({key: "a_256", name: "a_256", ARC_ID: "40"});
storeArcs.newItem({key: "a_mecanno", name: "a_mecanno", ARC_ID: "37"});
storeArcs.newItem({key: "a_plante", name: "a_plante", ARC_ID: "41"});
storeArcs.newItem({key: "a_senat", name: "a_senat", ARC_ID: "67"});
storeArcs.newItem({key: "laurent", name: "laurent"});
storeArcs.fetchItemByIdentity({identity: "laurent",
onItem : function(item) {
storeArcs.newItem({key: "truc::test", name: "test"}, {parent: item, attribute:"children"});
}});
storeArcs.fetchItemByIdentity({identity: "truc::test",
onItem : function(item) {
storeArcs.newItem({key: "truc::test::mecano", name: "mecano", ARC_ID: "38"}, {parent: item, attribute:"children"});
}});
storeArcs.newItem({key: "md5_sha256", name: "md5_sha256", ARC_ID: "44"});
storeArcs.newItem({key: "pdf_archive", name: "pdf_archive", ARC_ID: "7"});
storeArcs.newItem({key: "xml0306", name: "xml0306", ARC_ID: "45"});
storeArcs.newItem({key: "xml1004", name: "xml1004", ARC_ID: "36"});
var modelArcs = new dijit.tree.ForestStoreModel({
store: storeArcs,
rootLabel: "Liste des archives"
});
</script>
<div dojoType="dijit.Tree" id="treeArcs"
model="modelArcs" openOnClick="true" onLoad="console.log('loaded arcs tree');">
<script type="dojo/method" event="onClick" args="item">
var arcID = storeArcs.getValue(item, "ARC_ID");
if (arcID)
document.location = "consult.php?go=arc&arc="+arcID;
</script>
</div>
</DIV>
<DIV dojoType="dijit.layout.ContentPane" title= "Dossiers" BORDER="0" WIDTH="100%" HEIGHT="100%" STYLE="height: 100%; max-height: 100%; width: 100%; max-width: 100%;">
<script type="text/javascript">
var storeDossier = new dojo.data.ItemFileWriteStore({data: { identifier: "key", label: "name", items: []}});
var modelDossier = new dijit.tree.ForestStoreModel({
store: storeDossier,
rootLabel: "Liste des dossiers"
});
</script>
<div dojoType="dijit.Tree" id="treeBind"
model="modelDossier" openOnClick="true" onLoad="console.log('loaded binders tree');">
<script type="dojo/method" event="onClick" args="item">
var bindID = storeArcs.getValue(item, "BIND_ID");
if (bindID)
document.location = "consult.php?go=bind&bind="+bindID;
</script>
<script type="dojo/method" event="onOpen" args="item">
//console.log("Open of node " + storeDossier.getLabel(item));
</script>
<script type="dojo/method" event="onClose" args="item">
//console.log("Close of node " + storeDossier.getLabel(item));
</script>
</div>
</DIV>
</DIV>
</div>
<!-- Bloc du tree a gauche -->
<!-- Bloc du centre pour l'affichage du contenu des pages -->
<div id="pageCentre" dojoType="dijit.layout.ContentPane" region="center">
<style type="text/css">
@import "./include/dojo/grid/resources/soriaGrid.css";
</style>
<script type="text/javascript">
var layoutData = [
{field: "ARC_DOC_ID", name: "ARC_DOC_ID", width:"0px", styles: 'display: none;'},
{field: "Nom_Prenom", name: "Nom_Prenom", width:"200px", classes:'dojoxGridColString'},
{field: "Num_Titre", name: "Num_Titre", width:"80px", classes:'dojoxGridColInt'},
{field: "Num_Bordereau", name: "Num_Bordereau", width:"80px", classes:'dojoxGridColInt'},
{field: "Num_Dossier_Interne", name: "Num_Dossier_Interne", width:"80px", classes:'dojoxGridColInt'},
{field: "Date_Emission", name: "Date_Emission", width:"80px", classes:'dojoxGridColString'},
{field: "Cpte_Tiers", name: "Cpte_Tiers", width:"80px", classes:'dojoxGridColInt'},
{field: "Date_Entree", name: "Date_Entree", width:"80px", classes:'dojoxGridColString'}
];
var myData = {"identifier": "ARC_DOC_ID", "items": [
{"ARC_DOC_ID": "0", "Nom_Prenom": "BOUTEFIN MARCEL", "Num_Titre": "-23823", "Num_Bordereau": "102", "Num_Dossier_Interne": "207137725", "Date_Emission": "02/04/2003", "Cpte_Tiers": "41151", "Date_Entree": "03/01/2003"},
{"ARC_DOC_ID": "1", "Nom_Prenom": "PECHOT JEAN", "Num_Titre": "-23822", "Num_Bordereau": "102", "Num_Dossier_Interne": "207153628", "Date_Emission": "02/04/2003", "Cpte_Tiers": "41151", "Date_Entree": "03/01/2003"},
{"ARC_DOC_ID": "2", "Nom_Prenom": "GANTIER JACQUES", "Num_Titre": "-23821", "Num_Bordereau": "102", "Num_Dossier_Interne": "207156688", "Date_Emission": "02/04/2003", "Cpte_Tiers": "41151", "Date_Entree": "03/01/2003"},
{"ARC_DOC_ID": "3", "Nom_Prenom": "CHAPPROUX FRANCOISE", "Num_Titre": "-23820", "Num_Bordereau": "102", "Num_Dossier_Interne": "207175660", "Date_Emission": "02/04/2003", "Cpte_Tiers": "41151", "Date_Entree": "03/01/2003"},
{"ARC_DOC_ID": "4", "Nom_Prenom": "HURTON J-LUC", "Num_Titre": "-23819", "Num_Bordereau": "102", "Num_Dossier_Interne": "207181474", "Date_Emission": "02/04/2003", "Cpte_Tiers": "41151", "Date_Entree": "03/01/2003"},
{"ARC_DOC_ID": "5", "Nom_Prenom": "BARLER M-ODILE", "Num_Titre": "-23818", "Num_Bordereau": "102", "Num_Dossier_Interne": "207201058", "Date_Emission": "02/04/2003", "Cpte_Tiers": "41151", "Date_Entree": "03/01/2003"}
]};
function noSort(index)
{
return false;
}
function selectInForm()
{
var items = grid0.selection.getSelected();
alert("ok");
if(items.length)
{
dojo.forEach(items, function(selectedItem) {
if(selectedItem !== null)
{
var docSel = document.createElement('INPUT');
docSel.setAttribute('type', 'hidden');
docSel.name = 'selItem[]';
docSel.value = grid0.store.getValues(selectedItem, "ARC_DOC_ID");
docSel.setAttribute('checked', true);
document.f1.appendChild(docSel);
}
});
}
return true;
}
</script>
1098 documents (150 affichés)<br><br>
<div dojoType="dojo.data.ItemFileWriteStore" data="myData" jsId="storeData">
</div>
<div dojoType="dojox.grid.DataGrid" jsid="grid0" id="grid0" style="height: 500px;" autoWidth="true" autoHeight="true"
store="storeData" structure="layoutData"
canSort='noSort' clientSort="true" columnReordering="true"
rowSelector="20px" selectionMode="multiple"
>
</div>
<!--
1 <A HREF="" onClick="document.f1.action = '/ssafe_c/consult.php?go=arc&arc=76&p=2'; document.forms['f1'].onsubmit = selectInForm; if (document.forms['f1'].onsubmit()) {document.forms['f1'].submit();} return false;">2</A> <A HREF="" onClick="document.f1.action = '/ssafe_c/consult.php?go=arc&arc=76&p=3'; document.forms['f1'].onsubmit = selectInForm; if (document.forms['f1'].onsubmit()) {document.forms['f1'].submit();} return false;">3</A> <A HREF="" onClick="document.f1.action = '/ssafe_c/consult.php?go=arc&arc=76&p=4'; document.forms['f1'].onsubmit = selectInForm; if (document.forms['f1'].onsubmit()) {document.forms['f1'].submit();} return false;">4</A> <A HREF="" onClick="document.f1.action = '/ssafe_c/consult.php?go=arc&arc=76&p=5'; document.forms['f1'].onsubmit = selectInForm; if (document.forms['f1'].onsubmit()) {document.forms['f1'].submit();} return false;">5</A> <A HREF="" onClick="document.f1.action = '/ssafe_c/consult.php?go=arc&arc=76&p=6'; document.forms['f1'].onsubmit = selectInForm; if (document.forms['f1'].onsubmit()) {document.forms['f1'].submit();} return false;">6</A> <A HREF="" onClick="document.f1.action = '/ssafe_c/consult.php?go=arc&arc=76&p=7'; document.forms['f1'].onsubmit = selectInForm; if (document.forms['f1'].onsubmit()) {document.forms['f1'].submit();} return false;">7</A> <A HREF="" onClick="document.f1.action = '/ssafe_c/consult.php?go=arc&arc=76&p=8'; document.forms['f1'].onsubmit = selectInForm; if (document.forms['f1'].onsubmit()) {document.forms['f1'].submit();} return false;">8</A> <A HREF="" onClick="document.f1.action = '/ssafe_c/consult.php?go=arc&arc=76&p=9'; document.forms['f1'].onsubmit = selectInForm; if (document.forms['f1'].onsubmit()) {document.forms['f1'].submit();} return false;">9</A> <A HREF="" onClick="document.f1.action = '/ssafe_c/consult.php?go=arc&arc=76&p=10'; document.forms['f1'].onsubmit = selectInForm; if (document.forms['f1'].onsubmit()) {document.forms['f1'].submit();} return false;">10</A>
-->
</div>
</div>
</body>
</html> |
Partager