Amélioration de la présentation
This commit is contained in:
parent
689a7d2152
commit
81a5daec26
@ -127,13 +127,15 @@ if ($socid > 0) {
|
|||||||
|
|
||||||
$result = $db->query($sql);
|
$result = $db->query($sql);
|
||||||
|
|
||||||
if ($result) {
|
if ($result)
|
||||||
$objsoc = $db->fetch_object(0);
|
{
|
||||||
|
$objsoc = $db->fetch_object(0);
|
||||||
|
|
||||||
$dac = strftime("%Y-%m-%d %H:%M", time());
|
$dac = strftime("%Y-%m-%d %H:%M", time());
|
||||||
if ($errmesg) {
|
if ($errmesg)
|
||||||
print "<b>$errmesg</b><br>";
|
{
|
||||||
}
|
print "<b>$errmesg</b><br>";
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
@ -266,7 +268,6 @@ if ($socid > 0) {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
if ($action == 'changevalue') {
|
if ($action == 'changevalue') {
|
||||||
|
|
||||||
print "<HR noshade>";
|
print "<HR noshade>";
|
||||||
print "<form action=\"index.php3?socid=$objsoc->idp\" method=\"post\">";
|
print "<form action=\"index.php3?socid=$objsoc->idp\" method=\"post\">";
|
||||||
print "<input type=\"hidden\" name=\"action\" value=\"cabrecrut\">";
|
print "<input type=\"hidden\" name=\"action\" value=\"cabrecrut\">";
|
||||||
@ -284,26 +285,24 @@ if ($socid > 0) {
|
|||||||
* Liste des contacts
|
* Liste des contacts
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
print '<table width="100%" cellspacing="0" border="0" cellpadding="0" bgcolor="#000000"><tr><td>';
|
|
||||||
|
|
||||||
print '<table width="100%" cellspacing="1" border="0" cellpadding="2">';
|
print '<table width="100%" cellspacing="1" border="0" cellpadding="2">';
|
||||||
|
|
||||||
print "<tr class=\"liste_titre\"><td>Prénom Nom</td>";
|
print '<tr class="liste_titre"><td>Prénom Nom</td>';
|
||||||
print '<td><b>Poste</b></td><td>Tél</td>';
|
print '<td>Poste</td><td>Tél</td>';
|
||||||
print "<td><b>Fax</b></td><td>Email</td>";
|
print "<td>Fax</td><td>Email</td>";
|
||||||
print "<td><a href=\"people.php3?socid=$objsoc->idp&action=addcontact\">Ajouter</a></td></tr>";
|
print "<td align=\"center\"><a href=\"people.php3?socid=$objsoc->idp&action=addcontact\">Ajouter</a></td></tr>";
|
||||||
|
|
||||||
$sql = "SELECT p.idp, p.name, p.firstname, p.poste, p.phone, p.fax, p.email, p.note FROM socpeople as p WHERE p.fk_soc = $objsoc->idp ORDER by p.datec";
|
$sql = "SELECT p.idp, p.name, p.firstname, p.poste, p.phone, p.fax, p.email, p.note FROM socpeople as p WHERE p.fk_soc = $objsoc->idp ORDER by p.datec";
|
||||||
$result = $db->query($sql);
|
$result = $db->query($sql);
|
||||||
$i = 0 ; $num = $db->num_rows(); $tag = True;
|
$i = 0 ; $num = $db->num_rows(); $tag = True;
|
||||||
while ($i < $num) {
|
while ($i < $num)
|
||||||
|
{
|
||||||
$obj = $db->fetch_object( $i);
|
$obj = $db->fetch_object( $i);
|
||||||
$var = !$var;
|
$var = !$var;
|
||||||
print "<tr $bc[$var]>";
|
print "<tr $bc[$var]>";
|
||||||
|
|
||||||
print '<td>';
|
print '<td>';
|
||||||
//print '<a href="action/fiche.php3?action=create&actionid=5&contactid='.$obj->idp.'&socid='.$objsoc->idp.'">';
|
|
||||||
//print '<img border="0" src="/theme/'.$conf->theme.'/img/filenew.png"></a> ';
|
|
||||||
print '<a href="action/fiche.php3?action=create&actionid=5&contactid='.$obj->idp.'&socid='.$objsoc->idp.'">'.$obj->firstname.' '. $obj->name.'</a> ';
|
print '<a href="action/fiche.php3?action=create&actionid=5&contactid='.$obj->idp.'&socid='.$objsoc->idp.'">'.$obj->firstname.' '. $obj->name.'</a> ';
|
||||||
|
|
||||||
if ($obj->note)
|
if ($obj->note)
|
||||||
@ -315,14 +314,14 @@ if ($socid > 0) {
|
|||||||
print '<td><a href="action/fiche.php3?action=create&actionid=1&contactid='.$obj->idp.'&socid='.$objsoc->idp.'">'.$obj->phone.'</a> </td>';
|
print '<td><a href="action/fiche.php3?action=create&actionid=1&contactid='.$obj->idp.'&socid='.$objsoc->idp.'">'.$obj->phone.'</a> </td>';
|
||||||
print '<td><a href="action/fiche.php3?action=create&actionid=2&contactid='.$obj->idp.'&socid='.$objsoc->idp.'">'.$obj->fax.'</a> </td>';
|
print '<td><a href="action/fiche.php3?action=create&actionid=2&contactid='.$obj->idp.'&socid='.$objsoc->idp.'">'.$obj->fax.'</a> </td>';
|
||||||
print '<td><a href="action/fiche.php3?action=create&actionid=4&contactid='.$obj->idp.'&socid='.$objsoc->idp.'">'.$obj->email.'</a> </td>';
|
print '<td><a href="action/fiche.php3?action=create&actionid=4&contactid='.$obj->idp.'&socid='.$objsoc->idp.'">'.$obj->email.'</a> </td>';
|
||||||
print "<td><a href=\"people.php3?socid=$objsoc->idp&action=editcontact&contactid=$obj->idp\">Modifier</a></td>";
|
print "<td align=\"center\"><a href=\"people.php3?socid=$objsoc->idp&action=editcontact&contactid=$obj->idp\">Modifier</a></td>";
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
$i++;
|
$i++;
|
||||||
$tag = !$tag;
|
$tag = !$tag;
|
||||||
}
|
}
|
||||||
print "</table>";
|
print "</table>";
|
||||||
print '</td></tr></table>';
|
|
||||||
print "\n<hr noshade size=1>\n";
|
print "<p />";
|
||||||
|
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user