ajoute l'utilisation de la fonction select_civilite
This commit is contained in:
parent
a42d2875e2
commit
2f1e0c0b94
@ -1,6 +1,7 @@
|
|||||||
<?PHP
|
<?PHP
|
||||||
/* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
|
* Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -34,6 +35,7 @@ if ($_POST["action"] == 'add')
|
|||||||
|
|
||||||
$contact->name = $_POST["name"];
|
$contact->name = $_POST["name"];
|
||||||
$contact->firstname = $_POST["firstname"];
|
$contact->firstname = $_POST["firstname"];
|
||||||
|
$contact->civilite_id = $_POST["civilite_id"];
|
||||||
$contact->poste = $_POST["poste"];
|
$contact->poste = $_POST["poste"];
|
||||||
$contact->address = $_POST["adresse"];
|
$contact->address = $_POST["adresse"];
|
||||||
$contact->cp = $_POST["cp"];
|
$contact->cp = $_POST["cp"];
|
||||||
@ -72,6 +74,7 @@ if ($action == 'update')
|
|||||||
$contact->socid = $_POST["socid"];
|
$contact->socid = $_POST["socid"];
|
||||||
$contact->name = $_POST["name"];
|
$contact->name = $_POST["name"];
|
||||||
$contact->firstname = $_POST["firstname"];
|
$contact->firstname = $_POST["firstname"];
|
||||||
|
$contact->civilite_id = $_POST["civilite_id"];
|
||||||
$contact->poste = $_POST["poste"];
|
$contact->poste = $_POST["poste"];
|
||||||
|
|
||||||
$contact->address = $_POST["adresse"];
|
$contact->address = $_POST["adresse"];
|
||||||
@ -107,6 +110,7 @@ if ($action == 'create_user')
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
llxHeader();
|
llxHeader();
|
||||||
|
$form = new Form($db);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Onglets
|
* Onglets
|
||||||
@ -154,6 +158,10 @@ if ($_GET["action"] == 'create')
|
|||||||
print '<input type="hidden" name="socid" value="'.$objsoc->id.'">';
|
print '<input type="hidden" name="socid" value="'.$objsoc->id.'">';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
print '<tr><td>Titre</td><td colspan="3">';
|
||||||
|
print $form->select_civilite($contact->civilite_id);
|
||||||
|
print '</td></tr>';
|
||||||
|
|
||||||
print '<tr><td>Nom</td><td><input name="name" type="text" size="20" maxlength="80"></td>';
|
print '<tr><td>Nom</td><td><input name="name" type="text" size="20" maxlength="80"></td>';
|
||||||
print '<td>Prenom</td><td><input name="firstname" type="text" size="15" maxlength="80"></td>';
|
print '<td>Prenom</td><td><input name="firstname" type="text" size="15" maxlength="80"></td>';
|
||||||
|
|
||||||
@ -199,6 +207,10 @@ elseif ($_GET["action"] == 'edit')
|
|||||||
print '<input type="hidden" name="socid" value="'.$objsoc->id.'">';
|
print '<input type="hidden" name="socid" value="'.$objsoc->id.'">';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
print '<tr><td>Titre</td><td colspan="3">';
|
||||||
|
print $form->select_civilite($contact->civilite_id);
|
||||||
|
print '</td></tr>';
|
||||||
|
|
||||||
print '<tr><td>Nom</td><td><input name="name" type="text" size="20" maxlength="80" value="'.$contact->name.'"></td>';
|
print '<tr><td>Nom</td><td><input name="name" type="text" size="20" maxlength="80" value="'.$contact->name.'"></td>';
|
||||||
print '<td>Prénom</td><td><input name="firstname" type="text" size="15" maxlength="80" value="'.$contact->firstname.'"></td>';
|
print '<td>Prénom</td><td><input name="firstname" type="text" size="15" maxlength="80" value="'.$contact->firstname.'"></td>';
|
||||||
|
|
||||||
@ -248,8 +260,11 @@ else
|
|||||||
print '<tr><td>Société : '.$objsoc->nom_url.'</td></tr>';
|
print '<tr><td>Société : '.$objsoc->nom_url.'</td></tr>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
print '<tr><td valign="top">Titre : '.$contact->civilite."<br>";
|
||||||
|
|
||||||
print '<tr><td valign="top">Nom : '.$contact->name.' '.$contact->firstname ."<br>";
|
print '<tr><td valign="top">Nom : '.$contact->name.' '.$contact->firstname ."<br>";
|
||||||
|
|
||||||
|
|
||||||
if ($contact->poste)
|
if ($contact->poste)
|
||||||
print 'Poste : '.$contact->poste ."<br>";
|
print 'Poste : '.$contact->poste ."<br>";
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user