<table width="95%" border="0" class="cadre" cellspacing="0" align="center">
<tr>
<td width="50%" align="center" bgcolor="#339900" class="txtTeteEtPiedTab">Nom</td>
<td width="18%" align="center" bgcolor="#339900" class="txtTeteEtPiedTab">Date de Création</td>
<td width="8%" align="center" bgcolor="#339900" class="txtTeteEtPiedTab">Structure</td>
<td width="8%" align="center" bgcolor="#339900" class="txtTeteEtPiedTab">Fusion</td>
<td width="8%" align="center" bgcolor="#339900" class="txtTeteEtPiedTab">Modifier</td>
<td width="8%" align="center" bgcolor="#339900" class="txtTeteEtPiedTab">Suppression</td>
</tr>
<%while not rst.EOF %>
<tr id="rows<%=i%>" onMouseOver="this.style.background='#DFDFDF'" onMouseOut="this.style.background='none'" onClick="<%Session.contents.remove("keep")%>">
<td class="Texte1">
<% tmp = rst("ORG_Num_PK")
'test si la chaine de caractère fait plus de 20 caractères
if len(rst("ORG_UserOrg"))>35 then
response.write(left(rst("ORG_UserOrg"),35)&"...")
else
response.write(rst("Org_UserOrg"))
end if
%> </td>
<td align="center" class="Texte1">
<%
if len(rst("ORG_DateCreat"))>"" then
response.write(left(rst("ORG_DateCreat"),10))
else
response.write("-")
end if
%> </td>
<td align="center" class="Texte1">
<%
'test si le CODE structure est différent de NULL
if rst("ORG_CODEStructure_FK")<>"" then
response.write(rst("ORG_CODEStructure_FK"))
else
response.write("-")
end if
%> </td>
<td align="center" class="Texte1"><img src="Images/fusion.jpg" widt="13" height="13" alt="Fusion" border="0" title="Fusion" class="imgFusion" onClick="
if (FormOrganisme.OrgKeep.value=='')
{
FormOrganisme.OrgKeep.value='<%=rst("ORG_Num_PK")%>';
}
else
{
if (FormOrganisme.OrgKeep.value=='<%=rst("ORG_Num_PK")%>')
{
alert('Il est impossible de s\él\écionner deux fois le même organisme.');
}
else
{
FormOrganisme.OrgWipe.value='<%=rst("ORG_Num_PK")%>';
}
}
ajaxCustomer(window.document.forms['FormOrganisme']);
">
</td>
<td align="center" class="Texte1"><a href="Organisme.Ecran?mode=M&id=<%=rst("ORG_Num_PK")%>"><img src="Images/update.jpg" width="13" height="13" alt="Modifier" border="0" title="Modifier"></a></td>
<td align="center" class="Texte1"><a href="Organisme/DeleteOrganisme-Template.asp&id=<%=rst("ORG_Num_PK")%>" onClick="window.open('Organisme/DeleteOrganisme-Template.asp?id=<%=rst("ORG_Num_PK")%>','Suppression',config='height=375, width=750,toolbar=0,menubar=0,location=0,scrollbars=0'); return false;"><img src="Images/corbeille.jpg" width="13" height="13" alt="Supprimer" border="0" title="Supprimer"></a></td>
</tr>
<%rst.movenext%>
<%wend%>
<tr>
<td bgcolor="#339900" class="txtTeteEtPiedTab">Nombres d'organisme : <%=objPagination.intPRows%></td>
<td bgcolor="#339900" class="txtTeteEtPiedTab"> </td>
<td bgcolor="#339900" class="txtTeteEtPiedTab" colspan="4" align="right">Page :
<%
num = objPagination.NumPage()
%>
</td>
</tr>
</table>
</p>
<center>
<p>
<%
page = objPagination.page()
end if
'qdfFus = "SELECT * FROM PSO_TMP_ORG"
'Set rstFus = server.createobject("ADODB.Recordset")
'rstFus.Open qdfFus,Conn , 3, 3
strKeep = Session("keep")
strWipe = Session("wipe")
%>
<br>
<a onClick="window.open('Organisme/test.asp','',config='height=375, width=750,toolbar=0,menubar=0,location=0,scrollbars=0'); ">test</a>
<fieldset>
<legend>Fusion</legend>
<form action="Organisme.Fusion.Action" method="post" name="FormOrganisme" >
<div id="FusionLigne">
<div id="FusionLeft"><label class="label_Fiche"><strong>Client à conserver:</strong></label> </div>
<div id="FusionRight" class="FusionOrg"><label><input type="text" name="OrgKeep" value="<%=strKeep%>"></label></div>
</div>
<div id="FusionLigne">
<div id="FusionLeft"><label class="label_Fiche"><strong>Client à fusionner:</strong></label> </div>
<div id="FusionRight"><label><input type="text" name="OrgWipe" value="<%=strWipe%>"></label></div>
</div>
<p><input type="submit" value="Fusionner" class="inputSpe" onClick="return(verifFusion())"></p>
</form>
</fieldset>
</p>
</center>
Partager