Mise en conformaité
This commit is contained in:
parent
2074623839
commit
6383e11610
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2001-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* Copyright (C) 2001-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
* Copyright (C) 2004-2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
* Copyright (C) 2004-2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
@ -21,10 +21,11 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/** \file htdocs/projet/fiche.php
|
/*!
|
||||||
\ingroup projet
|
\file htdocs/projet/fiche.php
|
||||||
\brief Fiche projet
|
\ingroup projet
|
||||||
\version $Revision$
|
\brief Fiche projet
|
||||||
|
\version $Revision$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require("./pre.inc.php");
|
require("./pre.inc.php");
|
||||||
@ -32,16 +33,7 @@ require("../propal.class.php");
|
|||||||
require("../facture.class.php");
|
require("../facture.class.php");
|
||||||
require("../commande/commande.class.php");
|
require("../commande/commande.class.php");
|
||||||
|
|
||||||
$langs->load("projects");
|
if (!$user->rights->projet->lire) accessforbidden();
|
||||||
$langs->load("companies");
|
|
||||||
$langs->load("bills");
|
|
||||||
$langs->load("orders");
|
|
||||||
|
|
||||||
|
|
||||||
$user->getrights('projet');
|
|
||||||
|
|
||||||
if (!$user->rights->projet->lire)
|
|
||||||
accessforbidden();
|
|
||||||
|
|
||||||
|
|
||||||
if ($_POST["action"] == 'add' && $user->rights->projet->creer)
|
if ($_POST["action"] == 'add' && $user->rights->projet->creer)
|
||||||
@ -125,26 +117,29 @@ if ($_GET["action"] == 'create' && $user->rights->projet->creer)
|
|||||||
$hselected=$h;
|
$hselected=$h;
|
||||||
$h++;
|
$h++;
|
||||||
|
|
||||||
if ($conf->propal->enabled) {
|
if ($conf->propal->enabled)
|
||||||
|
{
|
||||||
$langs->load("propal");
|
$langs->load("propal");
|
||||||
$head[$h][0] = DOL_URL_ROOT.'/projet/propal.php?id='.$projet->id;
|
$head[$h][0] = DOL_URL_ROOT.'/projet/propal.php?id='.$projet->id;
|
||||||
$head[$h][1] = $langs->trans("Proposals");
|
$head[$h][1] = $langs->trans("Proposals");
|
||||||
$h++;
|
$h++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($conf->commande->enabled) {
|
if ($conf->commande->enabled)
|
||||||
|
{
|
||||||
$langs->load("orders");
|
$langs->load("orders");
|
||||||
$head[$h][0] = DOL_URL_ROOT.'/projet/commandes.php?id='.$projet->id;
|
$head[$h][0] = DOL_URL_ROOT.'/projet/commandes.php?id='.$projet->id;
|
||||||
$head[$h][1] = $langs->trans("Orders");
|
$head[$h][1] = $langs->trans("Orders");
|
||||||
$h++;
|
$h++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($conf->facture->enabled) {
|
if ($conf->facture->enabled)
|
||||||
|
{
|
||||||
$langs->load("bills");
|
$langs->load("bills");
|
||||||
$head[$h][0] = DOL_URL_ROOT.'/projet/facture.php?id='.$projet->id;
|
$head[$h][0] = DOL_URL_ROOT.'/projet/facture.php?id='.$projet->id;
|
||||||
$head[$h][1] = $langs->trans("Bills");
|
$head[$h][1] = $langs->trans("Bills");
|
||||||
$h++;
|
$h++;
|
||||||
}
|
}
|
||||||
|
|
||||||
dolibarr_fiche_head($head, $hselected, $langs->trans("Project").": ".$projet->ref);
|
dolibarr_fiche_head($head, $hselected, $langs->trans("Project").": ".$projet->ref);
|
||||||
|
|
||||||
@ -163,7 +158,8 @@ if ($_GET["action"] == 'create' && $user->rights->projet->creer)
|
|||||||
print '<input type="hidden" name="id" value="'.$_GET["id"].'">';
|
print '<input type="hidden" name="id" value="'.$_GET["id"].'">';
|
||||||
|
|
||||||
print '<table class="border" width="50%">';
|
print '<table class="border" width="50%">';
|
||||||
print '<tr><td>'.$langs->trans("Company").'</td><td><a href="'.DOL_URL_ROOT.'/soc.php?socid='.$projet->societe->id.'">'.$projet->societe->nom.'</td></tr>';
|
print '<tr><td>'.$langs->trans("Company").'</td><td>'.$projet->societe->nom_url.'</td></tr>';
|
||||||
|
|
||||||
print '<tr><td>'.$langs->trans("Ref").'</td><td><input name="ref" value="'.$projet->ref.'"></td></tr>';
|
print '<tr><td>'.$langs->trans("Ref").'</td><td><input name="ref" value="'.$projet->ref.'"></td></tr>';
|
||||||
print '<tr><td>'.$langs->trans("Label").'</td><td><input name="title" value="'.$projet->title.'"></td></tr>';
|
print '<tr><td>'.$langs->trans("Label").'</td><td><input name="title" value="'.$projet->title.'"></td></tr>';
|
||||||
print '<tr><td align="center" colspan="2"><input name="update" type="submit" Value="'.$langs->trans("Modify").'"> <input type="submit" name="cancel" Value="'.$langs->trans("Cancel").'"></td></tr>';
|
print '<tr><td align="center" colspan="2"><input name="update" type="submit" Value="'.$langs->trans("Modify").'"> <input type="submit" name="cancel" Value="'.$langs->trans("Cancel").'"></td></tr>';
|
||||||
@ -174,7 +170,9 @@ if ($_GET["action"] == 'create' && $user->rights->projet->creer)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
print '<table class="border" width="100%">';
|
print '<table class="border" width="100%">';
|
||||||
print '<tr><td>'.$langs->trans("Company").'</td><td><a href="'.DOL_URL_ROOT.'/soc.php?socid='.$projet->societe->id.'">'.$projet->societe->nom.'</a></td></tr>';
|
|
||||||
|
print '<tr><td>'.$langs->trans("Company").'</td><td>'.$projet->societe->nom_url.'</td></tr>';
|
||||||
|
|
||||||
print '<tr><td>'.$langs->trans("Ref").'</td><td>'.$projet->ref.'</td></tr>';
|
print '<tr><td>'.$langs->trans("Ref").'</td><td>'.$projet->ref.'</td></tr>';
|
||||||
print '<tr><td>'.$langs->trans("Label").'</td><td>'.$projet->title.'</td></tr>';
|
print '<tr><td>'.$langs->trans("Label").'</td><td>'.$projet->title.'</td></tr>';
|
||||||
print '</table>';
|
print '</table>';
|
||||||
@ -183,7 +181,6 @@ if ($_GET["action"] == 'create' && $user->rights->projet->creer)
|
|||||||
|
|
||||||
print '</div>';
|
print '</div>';
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Boutons actions
|
* Boutons actions
|
||||||
*/
|
*/
|
||||||
@ -193,8 +190,8 @@ if ($_GET["action"] == 'create' && $user->rights->projet->creer)
|
|||||||
|
|
||||||
if ($_GET["action"] != "edit")
|
if ($_GET["action"] != "edit")
|
||||||
{
|
{
|
||||||
print '<a class="tabAction" href="fiche.php?id='.$projet->id.'&action=edit">'.$langs->trans("Edit").'</a>';
|
print '<a class="butAction" href="fiche.php?id='.$projet->id.'&action=edit">'.$langs->trans("Edit").'</a>';
|
||||||
print '<a class="butDelete" href="fiche.php?id='.$projet->id.'&action=delete">'.$langs->trans("Delete").'</a>';
|
print '<a class="butActionDelete" href="fiche.php?id='.$projet->id.'&action=delete">'.$langs->trans("Delete").'</a>';
|
||||||
}
|
}
|
||||||
|
|
||||||
print "</div>";
|
print "</div>";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user