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
|
print "<select name=\"con_id\" class=\"inputbox\" onChange=\"printInfo()\">";
echo mosToolTip( "Selectionner la personne à contacter." );
// Cycle through and list all the contacts
foreach ($rows as $contact)
{
print "<option value=\"$contact->id\">$contact->name</option>";
}
print "</select>";
print "</td></tr><tr><td colspan=\"2\">";
// Cycle through and list and print the other information in
// hidden <div> tags
foreach ($rows as $contact)
{
?>
<script language="JavaScript" type="text/javascript">
<!--
counter++;
//-->
</script>
<?php
// Adds parameter handling
$params = new mosParameters( $contact->params );
print "<div id=\"$contact->id\" style=\"display:none;float:right;\" name=\"lableText\">";
print "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" class=\"content_table\>";
print "<tr valign=\"top\">";
print "<td width=\"100%\">";
print "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"50%\">";
print "<tr valign=\"top\">";
print "<td width=\"30%\">";
// Position
if ($contact->con_position != "")
{
print "<strong>Position:</strong>";
print "$contact->id";
print "</td><td>";
print "$contact->con_position";
print "</td></tr><tr><td valign=\"top\">";
}
print "</td></tr></table></td></tr></table>";
print "</div>";
//print "</div>";
}
// Make the default "selected" value appear automatically
?>
<script language="JavaScript" type="text/javascript">
printInfo();
</script> |
Partager