nettoyage de code
This commit is contained in:
parent
5e29f620f4
commit
eabec1dfa5
@ -22,7 +22,7 @@
|
||||
require("./pre.inc.php3");
|
||||
|
||||
llxHeader();
|
||||
$db = new Db();
|
||||
|
||||
if ($sortorder == "") {
|
||||
$sortorder="DESC";
|
||||
}
|
||||
@ -82,8 +82,8 @@ if ( $db->query($sql) )
|
||||
print "<p><TABLE border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"4\">";
|
||||
print "<TR bgcolor=\"orange\">";
|
||||
print "<TD> </TD>";
|
||||
print "<TD align=\"center\"><a href=\"index.php3?sortfield=idp&sortorder=$sortorder&begin=$begin\">Id</a></TD>";
|
||||
print "<TD><a href=\"index.php3?sortfield=lower(s.nom)&sortorder=$sortorder&begin=$begin\">Societe</a></td>";
|
||||
print "<TD align=\"center\"><a href=\"index.php?sortfield=idp&sortorder=$sortorder&begin=$begin\">Id</a></TD>";
|
||||
print "<TD><a href=\"index.php?sortfield=lower(s.nom)&sortorder=$sortorder&begin=$begin\">Societe</a></td>";
|
||||
|
||||
print "<TD align=\"center\">Statut</TD>";
|
||||
print "<TD>Auteur</TD>";
|
||||
@ -110,7 +110,7 @@ if ( $db->query($sql) )
|
||||
print "<TR $bc>";
|
||||
print "<TD>" . ($i + 1 + ($limit * $page)) . "</TD>";
|
||||
print "<TD align=\"center\"><b>$obj->idp</b></TD>";
|
||||
print "<TD><a href=\"index.php3?socid=$obj->idp\">$obj->nom</A></TD>\n";
|
||||
print "<TD><a href=\"index.php?socid=$obj->idp\">$obj->nom</A></TD>\n";
|
||||
|
||||
print "<TD align=\"center\">$obj->stcomm</TD>\n";
|
||||
print "<TD>$obj->author</TD>\n";
|
||||
|
||||
@ -23,7 +23,7 @@
|
||||
require("./pre.inc.php3");
|
||||
|
||||
llxHeader();
|
||||
$db = new Db();
|
||||
|
||||
|
||||
if ($action == 'add') {
|
||||
$datefacture = $db->idate(mktime(12, 0 , 0, $pmonth, $pday, $pyear));
|
||||
@ -171,7 +171,7 @@ if ($action == 'add') {
|
||||
$objp = $db->fetch_object( $i);
|
||||
$var=!$var;
|
||||
print "<TR $bc[$var]>";
|
||||
print "<TD><a href=\"../comm/index.php3?socid=$objp->idp\">$objp->nom</a></TD>\n";
|
||||
print "<TD><a href=\"../comm/index.php?socid=$objp->idp\">$objp->nom</a></TD>\n";
|
||||
print "<td><a href=\"facture.php3?facid=$objp->facid\">$objp->facnumber</a></TD>\n";
|
||||
|
||||
if ($objp->df > 0 ) {
|
||||
|
||||
@ -149,7 +149,7 @@ if ($socid > 0) {
|
||||
|
||||
print "<td align=\"center\"><a href=\"../compta/fiche.php3?socid=$objsoc->idp\">Compta</a></td>";
|
||||
print "<td align=\"center\"><a href=\"docsoc.php?socid=$objsoc->idp\">Documents</a></td>";
|
||||
print "<td align=\"center\"><a href=\"index.php3?socidp=$objsoc->idp&action=add_bookmark\">[Bookmark]</a></td>";
|
||||
print "<td align=\"center\"><a href=\"index.php?socidp=$objsoc->idp&action=add_bookmark\">[Bookmark]</a></td>";
|
||||
if ($user->rights->projet->creer)
|
||||
print "<td align=\"center\"><a href=\"projet/fiche.php3?socidp=$objsoc->idp&action=create\">[Projet]</a></td>";
|
||||
if (defined("MAIN_MODULE_PROPALE") && MAIN_MODULE_PROPALE)
|
||||
@ -278,7 +278,7 @@ if ($socid > 0) {
|
||||
*/
|
||||
if ($action == 'changevalue') {
|
||||
print "<HR noshade>";
|
||||
print "<form action=\"index.php3?socid=$objsoc->idp\" method=\"post\">";
|
||||
print "<form action=\"index.php?socid=$objsoc->idp\" method=\"post\">";
|
||||
print "<input type=\"hidden\" name=\"action\" value=\"cabrecrut\">";
|
||||
print "Cette société est un cabinet de recrutement : ";
|
||||
print "<select name=\"selectvalue\">";
|
||||
|
||||
@ -41,7 +41,6 @@ function valeur($sql)
|
||||
/*
|
||||
*
|
||||
*/
|
||||
$db = new Db();
|
||||
|
||||
|
||||
if ($action == 'add_bookmark')
|
||||
@ -118,7 +117,7 @@ if ( $db->query($sql) )
|
||||
$var = !$var;
|
||||
print "<tr $bc[$var]>";
|
||||
print '<td><a href="fiche.php3?socid='.$obj->idp.'">'.$obj->nom.'</a></td>';
|
||||
print '<td align="right"><a href="index.php3?action=del_bookmark&bid='.$obj->bid.'">';
|
||||
print '<td align="right"><a href="index.php?action=del_bookmark&bid='.$obj->bid.'">';
|
||||
print '<img src="'.DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/editdelete.png" border="0"></a></td>';
|
||||
print '</tr>';
|
||||
$i++;
|
||||
|
||||
@ -23,8 +23,6 @@ require("./pre.inc.php3");
|
||||
require("./project.class.php3");
|
||||
require("../../propal.class.php3");
|
||||
|
||||
$db = new Db();
|
||||
|
||||
if ($HTTP_POST_VARS["action"] == 'update')
|
||||
{
|
||||
$projet = new Project($db);
|
||||
@ -70,7 +68,7 @@ if ($action == 'create')
|
||||
{
|
||||
print_titre("Nouveau projet");
|
||||
|
||||
print '<form action="index.php3?socidp='.$socidp.'" method="post">';
|
||||
print '<form action="index.php?socidp='.$socidp.'" method="post">';
|
||||
?>
|
||||
<table border="1" cellpadding="4" cellspacing="0">
|
||||
<input type="hidden" name="action" value="create">
|
||||
|
||||
@ -138,75 +138,7 @@ function gljFooter_Cursor ($file, $page, $limit, $i, $parm="") {
|
||||
//
|
||||
//
|
||||
//
|
||||
function gljMenu_PrestaLogged() {
|
||||
print "<DIV align=\"right\">";
|
||||
print "<A href=\"prestas.php3\" class=\"T3\">Liste</A> |\n";
|
||||
|
||||
print "</DIV>";
|
||||
}
|
||||
|
||||
|
||||
function gljMenu_Stat() {
|
||||
print "<DIV align=\"right\">";
|
||||
print "<A href=\"index.php3\" class=\"T3\">" . $GLOBALS["_STAT_HOME"] . "</A> |\n";
|
||||
print "<A href=\"contrat.php3\" class=\"T3\">" . $GLOBALS["_STAT_CONTRAT"] . "</A> |\n";
|
||||
print "<A href=\"effectif.php3\" class=\"T3\">" . $GLOBALS["_STAT_EFFECTIF"] . "</A> |\n";
|
||||
print "<A href=\"poste.php3\" class=\"T3\">" . $GLOBALS["_STAT_POSTE"] . "</A> |\n";
|
||||
print "<A href=\"region.php3\" class=\"T3\">" . $GLOBALS["_STAT_REGION"] . "</A> |\n";
|
||||
print "<A href=\"lang.php3\" class=\"T3\">" . $GLOBALS["_STAT_LANG"] . "</A> |\n";
|
||||
print "<A href=\"secteur.php3\" class=\"T3\">" . $GLOBALS["_STAT_SECTEUR"] . "</A>\n";
|
||||
print "</DIV>";
|
||||
}
|
||||
//
|
||||
//
|
||||
//
|
||||
function gljMenu_Soc() {
|
||||
print "<div align=\"right\">";
|
||||
print "<A href=\"./\" class=\"T3\">" . $GLOBALS["_AFIND"] . "</A> |\n";
|
||||
print "<A href=\"date.php3\" class=\"T3\">" . $GLOBALS["_BYDATE"] . "</A> |\n";
|
||||
print "<A href=\"stat.php3?t=poste\" class=\"T3\">" . $GLOBALS["_BYPOSTE"] . "</A> |\n";
|
||||
print "<A href=\"stat.php3?t=region\" class=\"T3\">" . $GLOBALS["_BYREGION"] . "</A> |\n";
|
||||
print "<A href=\"stat.php3?t=secteur\" class=\"T3\">" . $GLOBALS["_BYSECTEUR"] . "</A> |\n";
|
||||
print "<A href=\"company.php3\" class=\"T3\">" . $GLOBALS["_BYCOMPANY"] . "</A>\n";
|
||||
print "</div>";
|
||||
}
|
||||
/*
|
||||
*
|
||||
*/
|
||||
function gljMenu_SocLogged() {
|
||||
print "<div align=\"right\">";
|
||||
print "<A href=\"/of/fiche.php3\" class=\"T3\">" . $GLOBALS["_COORDENT"] . "</A> | ";
|
||||
print "<A href=\"/of/desc.php3\" class=\"T3\">" . $GLOBALS["_DESC"] . "</A> | ";
|
||||
//print "<A href=\"/of/ent.php3\" class=\"T3\">" . $GLOBALS["_ENT"] . "</A> | ";
|
||||
print "<A href=\"/of/offres.php3\" class=\"T3\">" . $GLOBALS["_OFFRES"] . "</A> | ";
|
||||
print "<A href=\"/of/abo.php3\" class=\"T3\">" . $GLOBALS["_ABO"] . "</A> | ";
|
||||
print "<A href=\"/of/stat.php3\" class=\"T3\">" . $GLOBALS["_STAT"] . "</A> | ";
|
||||
print "<A href=\"/of/pref.php3\" class=\"T3\">" . $GLOBALS["_PREF"] . "</A>";
|
||||
print "</div><P>";
|
||||
}
|
||||
/*
|
||||
*
|
||||
*/
|
||||
function gljMenu_SocSSII() {
|
||||
print "<div align=\"right\">";
|
||||
print "<A href=\"/of/ssii/\" class=\"T3\">Accueil SSII</A> | ";
|
||||
print "<A href=\"/of/ssii/ressources.php3\" class=\"T3\">Ressources</A> | ";
|
||||
print "<A href=\"/of/ssii/prestas.php3\" class=\"T3\">Prestations</A>";
|
||||
print "</div><P>";
|
||||
}
|
||||
/*
|
||||
*
|
||||
*/
|
||||
function gljMenu_Cv() {
|
||||
print "<DIV align=\"right\">";
|
||||
print "<A href=\"./\" class=\"T3\">" . $GLOBALS["_AFIND"] . "</A> |\n";
|
||||
print "<A href=\"date.php3\" class=\"T3\">" . $GLOBALS["_BYDATE"] . "</A> |\n";
|
||||
print "<A href=\"stat.php3?t=poste\" class=\"T3\">" . $GLOBALS["_BYPOSTE"] . "</A> |\n";
|
||||
print "<A href=\"stat.php3?t=region\" class=\"T3\">" . $GLOBALS["_BYREGION"] . "</A> |\n";
|
||||
print "<A href=\"stat.php3?t=secteur\" class=\"T3\">" . $GLOBALS["_BYSECTEUR"] . "</A> |\n";
|
||||
print "<A href=\"stat.php3?t=expert\" class=\"T3\">" . $GLOBALS["_BYEXPERT"] . "</A>\n";
|
||||
print "</DIV>";
|
||||
}
|
||||
/*
|
||||
*
|
||||
* Verif info
|
||||
|
||||
@ -36,15 +36,15 @@ function llxHeader($head = "")
|
||||
|
||||
$menu->add(DOL_URL_ROOT."/compta/facture.php3","Factures");
|
||||
|
||||
$menu->add("index.php3","Charges");
|
||||
$menu->add("index.php","Charges");
|
||||
|
||||
$menu->add_submenu(DOL_URL_ROOT."/compta/sociales/index.php3","Prest. Sociales");
|
||||
$menu->add_submenu(DOL_URL_ROOT."/compta/sociales/index.php","Prest. Sociales");
|
||||
|
||||
$menu->add(DOL_URL_ROOT."/compta/ca.php3","Chiffres d'affaires");
|
||||
|
||||
$menu->add(DOL_URL_ROOT."/compta/resultat/","Résultats");
|
||||
|
||||
$menu->add(DOL_URL_ROOT."/compta/bank/index.php3","Banque");
|
||||
$menu->add(DOL_URL_ROOT."/compta/bank/index.php","Banque");
|
||||
|
||||
left_menu($menu->liste);
|
||||
|
||||
|
||||
@ -44,7 +44,7 @@ function llxHeader($head = "") {
|
||||
$menu->add_submenu("liste.php","Liste complète");
|
||||
$menu->add_submenu("stats.php","Stats");
|
||||
|
||||
$menu->add("/compta/bank/index.php3","Bank");
|
||||
$menu->add("/compta/bank/index.php","Bank");
|
||||
|
||||
left_menu($menu->liste);
|
||||
|
||||
|
||||
@ -85,7 +85,7 @@ if ($result) {
|
||||
print "<TR $bc[$var]>";
|
||||
|
||||
print "<td><a href=\"facture.php3?facid=$objp->facid\">$objp->facnumber</a></TD>\n";
|
||||
print "<TD><a href=\"../comm/index.php3?socid=$objp->idp\">$objp->nom</a></TD>\n";
|
||||
print "<TD><a href=\"../comm/index.php?socid=$objp->idp\">$objp->nom</a></TD>\n";
|
||||
|
||||
if ($objp->df > 0 ) {
|
||||
print "<TD align=\"right\">";
|
||||
|
||||
@ -167,7 +167,7 @@ toto
|
||||
$var=!$var;
|
||||
print "<TR $bc[$var]>";
|
||||
print "<TD>[<a href=\"$PHP_SELF?socidp=$objp->idp\">Filtre</a>]</TD>\n";
|
||||
print "<TD><a href=\"../comm/index.php3?socid=$objp->idp\">$objp->nom</a></TD>\n";
|
||||
print "<TD><a href=\"../comm/index.php?socid=$objp->idp\">$objp->nom</a></TD>\n";
|
||||
|
||||
|
||||
print "<td><a href=\"facture.php3?facid=$objp->facid\">$objp->facnumber</a></TD>\n";
|
||||
|
||||
@ -90,7 +90,7 @@ if ( $db->query($sql) )
|
||||
$var = !$var;
|
||||
print "<tr $bc[$var]>";
|
||||
print '<td>'.strftime("%d %b %y",$obj->de).'</td>';
|
||||
print '<td><a href="index.php3?year='.strftime("%Y",$obj->periode).'">'.strftime("%Y",$obj->periode).'</a></td>';
|
||||
print '<td><a href="index.php?year='.strftime("%Y",$obj->periode).'">'.strftime("%Y",$obj->periode).'</a></td>';
|
||||
print '<td>'.$obj->nom.'</td><td>'.$obj->libelle.'</td>';
|
||||
print '<td align="right">'.price($obj->amount).'</td>';
|
||||
|
||||
@ -114,7 +114,7 @@ else
|
||||
*
|
||||
*
|
||||
*/
|
||||
print '<tr><form method="post" action="index.php3">';
|
||||
print '<tr><form method="post" action="index.php">';
|
||||
print '<input type="hidden" name="action" value="add">';
|
||||
print '<td><input type="text" size="8" name="date"></td>';
|
||||
|
||||
|
||||
@ -35,7 +35,7 @@ function llxHeader($head = "")
|
||||
$menu = new Menu();
|
||||
|
||||
$menu->add("../charges/","Charges");
|
||||
$menu->add_submenu("index.php3","Prest. Sociales");
|
||||
$menu->add_submenu("index.php","Prest. Sociales");
|
||||
// $menu->add_submenu("/compta/sociales/conf.php","Conf");
|
||||
|
||||
left_menu($menu->liste);
|
||||
|
||||
@ -33,7 +33,7 @@ function llxHeader($head = "") {
|
||||
|
||||
$menu = new Menu();
|
||||
|
||||
$menu->add("index.php3","TVA");
|
||||
$menu->add("index.php","TVA");
|
||||
|
||||
$menu->add("reglement.php","Réglements");
|
||||
$menu->add_submenu("fiche.php?action=create","Nouveau réglement");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user