*** empty log message ***
This commit is contained in:
parent
499a662252
commit
2fe9e8e42d
@ -21,44 +21,25 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
require("./pre.inc.php3");
|
require("./pre.inc.php3");
|
||||||
|
|
||||||
require("./project.class.php3");
|
require("./project.class.php3");
|
||||||
require("../propal.class.php3");
|
require("../propal.class.php3");
|
||||||
|
|
||||||
llxHeader("","../");
|
llxHeader("","../");
|
||||||
print "<table width=\"100%\">";
|
|
||||||
print "<tr><td>Projets</td>";
|
|
||||||
|
|
||||||
print "</table>";
|
|
||||||
|
|
||||||
$db = new Db();
|
$db = new Db();
|
||||||
|
|
||||||
if ($sortfield == "") {
|
|
||||||
$sortfield="lower(p.label)";
|
|
||||||
}
|
|
||||||
if ($sortorder == "") {
|
|
||||||
$sortorder="ASC";
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
if ($page == -1) { $page = 0 ; }
|
|
||||||
$limit = 26;
|
|
||||||
$offset = $limit * $page ;
|
|
||||||
|
|
||||||
if ($action == 'create') {
|
if ($action == 'create') {
|
||||||
|
print_titre("Nouveau projet");
|
||||||
|
|
||||||
print '<form action="index.php3?socidp='.$socidp.'" method="post">';
|
print '<form action="index.php3?socidp='.$socidp.'" method="post">';
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|
||||||
<table border=1 cellpadding="1" cellspacing="0">
|
<table border=1 cellpadding="1" cellspacing="0">
|
||||||
<input type="hidden" name="action" value="create">
|
<input type="hidden" name="action" value="create">
|
||||||
<tr><td>Société</td><td>
|
<tr><td>Société</td><td>
|
||||||
<?PHP
|
<?PHP
|
||||||
$societe = new Societe($db);
|
$societe = new Societe($db);
|
||||||
$societe->get_nom($socidp);
|
$societe->get_nom($socidp);
|
||||||
print $societe->nom;
|
print '<a href="../fiche.php3?socid='.$socidp.'">'.$societe->nom.'</a>';
|
||||||
|
|
||||||
?>
|
?>
|
||||||
</td></tr>
|
</td></tr>
|
||||||
@ -67,7 +48,7 @@ if ($action == 'create') {
|
|||||||
?>
|
?>
|
||||||
<tr><td>Référence</td><td><input size="10" type="text" name="ref"></td></tr>
|
<tr><td>Référence</td><td><input size="10" type="text" name="ref"></td></tr>
|
||||||
<tr><td>Titre</td><td><input size="30" type="text" name="title"></td></tr>
|
<tr><td>Titre</td><td><input size="30" type="text" name="title"></td></tr>
|
||||||
<tr><td colspan="2"><input type="submit"></td></tr>
|
<tr><td colspan="2"><input type="submit" value="Enregistrer"></td></tr>
|
||||||
</table>
|
</table>
|
||||||
</form>
|
</form>
|
||||||
<?PHP
|
<?PHP
|
||||||
@ -78,6 +59,9 @@ if ($action == 'create') {
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
print_titre("Projet");
|
||||||
|
|
||||||
$propales = array();
|
$propales = array();
|
||||||
$projet = new Project($db);
|
$projet = new Project($db);
|
||||||
$projet->fetch($id);
|
$projet->fetch($id);
|
||||||
@ -133,7 +117,7 @@ if ($action == 'create') {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$db->close();
|
||||||
|
|
||||||
llxFooter("<em>Dernière modification $Date$ révision $Revision$</em>");
|
llxFooter("<em>Dernière modification $Date$ révision $Revision$</em>");
|
||||||
?>
|
?>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user