Modif des fichiers php3 en php

This commit is contained in:
Rodolphe Quiedeville 2003-09-11 16:30:47 +00:00
parent 1ffbc1cfb7
commit 8c7628343d
9 changed files with 53 additions and 53 deletions

View File

@ -19,8 +19,8 @@
* $Source$ * $Source$
* *
*/ */
require("./pre.inc.php3"); require("./pre.inc.php");
require("./propal_model_pdf.class.php3"); require("./propal_model_pdf.class.php");
if (defined("PROPALE_ADDON") && is_readable(DOL_DOCUMENT_ROOT ."/includes/modules/propale/".PROPALE_ADDON.".php")) if (defined("PROPALE_ADDON") && is_readable(DOL_DOCUMENT_ROOT ."/includes/modules/propale/".PROPALE_ADDON.".php"))
{ {
@ -66,12 +66,12 @@ if ($action == 'create')
} }
} }
print "<form action=\"propal.php3?socidp=$socidp\" method=\"post\">"; print "<form action=\"propal.php?socidp=$socidp\" method=\"post\">";
print "<input type=\"hidden\" name=\"action\" value=\"add\">"; print "<input type=\"hidden\" name=\"action\" value=\"add\">";
print '<table border="1" cellspacing="0" cellpadding="3" width="100%">'; print '<table border="1" cellspacing="0" cellpadding="3" width="100%">';
print '<tr><td>Société</td><td><a href="fiche.php3?socid='.$socidp.'">'.$objsoc->nom.'</a></td>'; print '<tr><td>Société</td><td><a href="fiche.php?socid='.$socidp.'">'.$objsoc->nom.'</a></td>';
print '<td valign="top" colspan="2">'; print '<td valign="top" colspan="2">';
print "Commentaires</td></tr>"; print "Commentaires</td></tr>";
@ -119,7 +119,7 @@ if ($action == 'create')
if ($numdest==0) if ($numdest==0)
{ {
print 'Cette societe n\'a pas de contact, veuillez en creer un avant de faire de propale</b><br>'; print 'Cette societe n\'a pas de contact, veuillez en creer un avant de faire de propale</b><br>';
print '<a href=people.php3?socid='.$socidp.'&action=addcontact>Ajouter un contact</a>'; print '<a href=people.php?socid='.$socidp.'&action=addcontact>Ajouter un contact</a>';
} }
print '</td></tr>'; print '</td></tr>';
/* /*
@ -152,7 +152,7 @@ if ($action == 'create')
if ($numprojet==0) if ($numprojet==0)
{ {
print 'Cette societe n\'a pas de projet.<br>'; print 'Cette societe n\'a pas de projet.<br>';
print '<a href=projet/fiche.php3?socidp='.$socidp.'&action=create>Créer un projet</a>'; print '<a href=projet/fiche.php?socidp='.$socidp.'&action=create>Créer un projet</a>';
} }
print '</td>'; print '</td>';
print '<td>Modèle</td>'; print '<td>Modèle</td>';

View File

@ -19,7 +19,7 @@
* $Source$ * $Source$
* *
*/ */
require("./pre.inc.php3"); require("./pre.inc.php");
llxHeader(); llxHeader();

View File

@ -19,11 +19,11 @@
* $Source$ * $Source$
* *
*/ */
require("./pre.inc.php3"); require("./pre.inc.php");
require("../contact.class.php3"); require("../contact.class.php");
require("../lib/webcal.class.php3"); require("../lib/webcal.class.php");
require("../cactioncomm.class.php3"); require("../cactioncomm.class.php");
require("../actioncomm.class.php3"); require("../actioncomm.class.php");
/* /*
* Sécurité accés client * Sécurité accés client
@ -91,7 +91,7 @@ if ($result)
if ($num == 1) if ($num == 1)
{ {
$obj = $db->fetch_object(0); $obj = $db->fetch_object(0);
Header("Location: fiche.php3?socid=$obj->idp"); Header("Location: fiche.php?socid=$obj->idp");
} }
else else
{ {
@ -127,7 +127,7 @@ if ($result)
$var=!$var; $var=!$var;
print "<TR $bc[$var]>"; print "<TR $bc[$var]>";
print "<TD><a href=\"fiche.php3?socid=$obj->idp\">$obj->nom</A></td>\n"; print "<TD><a href=\"fiche.php?socid=$obj->idp\">$obj->nom</A></td>\n";
print "<TD>".$obj->ville."&nbsp;</TD>\n"; print "<TD>".$obj->ville."&nbsp;</TD>\n";
print "<TD align=\"center\">$obj->prefix_comm&nbsp;</TD>\n"; print "<TD align=\"center\">$obj->prefix_comm&nbsp;</TD>\n";
@ -135,7 +135,7 @@ if ($result)
{ {
if ($user->rights->propale->creer) if ($user->rights->propale->creer)
{ {
print "<TD align=\"center\"><a href=\"addpropal.php3?socidp=$obj->idp&action=create\">[Propal]</A></td>\n"; print "<TD align=\"center\"><a href=\"addpropal.php?socidp=$obj->idp&action=create\">[Propal]</A></td>\n";
} }
else else
{ {
@ -143,7 +143,7 @@ if ($result)
} }
if ($conf->fichinter->enabled) if ($conf->fichinter->enabled)
{ {
print "<TD align=\"center\"><a href=\"../fichinter/fiche.php3?socidp=$obj->idp&action=create\">[Fiche Inter]</A></td>\n"; print "<TD align=\"center\"><a href=\"../fichinter/fiche.php?socidp=$obj->idp&action=create\">[Fiche Inter]</A></td>\n";
} }
else else
{ {

View File

@ -20,7 +20,7 @@
* $Source$ * $Source$
* *
*/ */
require("./pre.inc.php3"); require("./pre.inc.php");
/* /*
* Sécurité accés client * Sécurité accés client
@ -115,19 +115,19 @@ if ($result)
print "<TR $bc[$var]>"; print "<TR $bc[$var]>";
print '<TD><a href="'.DOL_URL_ROOT.'/comm/people.php3?contactid='.$obj->cidp.'&socid='.$obj->idp.'">'.$obj->name.'</a></TD>'; print '<TD><a href="'.DOL_URL_ROOT.'/comm/people.php?contactid='.$obj->cidp.'&socid='.$obj->idp.'">'.$obj->name.'</a></TD>';
print "<TD>$obj->firstname</TD>"; print "<TD>$obj->firstname</TD>";
print '<TD><a href="contact.php3?socid='.$obj->idp.'"><img src="'.DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/filter.png" border="0" alt="filtrer"></a>&nbsp;'; print '<TD><a href="contact.php?socid='.$obj->idp.'"><img src="'.DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/filter.png" border="0" alt="filtrer"></a>&nbsp;';
print "<a href=\"fiche.php3?socid=$obj->idp\">$obj->nom</A></td>\n"; print "<a href=\"fiche.php?socid=$obj->idp\">$obj->nom</A></td>\n";
print '<td><a href="action/fiche.php3?action=create&actionid=4&contactid='.$obj->cidp.'&socid='.$obj->idp.'">'.$obj->email.'</a>&nbsp;</td>'; print '<td><a href="action/fiche.php?action=create&actionid=4&contactid='.$obj->cidp.'&socid='.$obj->idp.'">'.$obj->email.'</a>&nbsp;</td>';
print '<td><a href="action/fiche.php3?action=create&actionid=1&contactid='.$obj->cidp.'&socid='.$obj->idp.'">'.$obj->phone.'</a>&nbsp;</td>'; print '<td><a href="action/fiche.php?action=create&actionid=1&contactid='.$obj->cidp.'&socid='.$obj->idp.'">'.$obj->phone.'</a>&nbsp;</td>';
if ($user->societe_id == 0) if ($user->societe_id == 0)
{ {
print "<TD><a href=\"addpropal.php3?socidp=$obj->idp&setcontact=$obj->cidp&action=create\">[Propal]</A></td>\n"; print "<TD><a href=\"addpropal.php?socidp=$obj->idp&setcontact=$obj->cidp&action=create\">[Propal]</A></td>\n";
} }
else else
{ {

View File

@ -18,7 +18,7 @@
* $Id$ * $Id$
* $Source$ * $Source$
*/ */
require("./pre.inc.php3"); require("./pre.inc.php");
llxHeader(); llxHeader();
@ -83,8 +83,8 @@ if ($socid > 0)
print "<table width=\"100%\" border=\"0\" cellspacing=\"1\">\n"; print "<table width=\"100%\" border=\"0\" cellspacing=\"1\">\n";
print "<tr><td><div class=\"titre\">Documents associés à l'entreprise : $societe->nom</div></td>"; print "<tr><td><div class=\"titre\">Documents associés à l'entreprise : $societe->nom</div></td>";
print "<td align=\"center\"><a href=\"fiche.php3?socid=$societe->id\">Commercial</a></td>"; print "<td align=\"center\"><a href=\"fiche.php?socid=$societe->id\">Commercial</a></td>";
print "<td align=\"center\"><a href=\"../compta/fiche.php3?socid=$societe->id\">Compta</a></td>"; print "<td align=\"center\"><a href=\"../compta/fiche.php?socid=$societe->id\">Compta</a></td>";
print "</tr></table>"; print "</tr></table>";
/* /*
* *

View File

@ -19,11 +19,11 @@
* $Source$ * $Source$
* *
*/ */
require("./pre.inc.php3"); require("./pre.inc.php");
require("../contact.class.php3"); require("../contact.class.php");
require("../lib/webcal.class.php3"); require("../lib/webcal.class.php");
require("../cactioncomm.class.php3"); require("../cactioncomm.class.php");
require("../actioncomm.class.php3"); require("../actioncomm.class.php");
llxHeader(); llxHeader();
$user->getrights('propale'); $user->getrights('propale');
@ -146,7 +146,7 @@ if ($socid > 0) {
if ($user->societe_id == 0) if ($user->societe_id == 0)
{ {
print "<td align=\"center\"><a href=\"../compta/fiche.php3?socid=$objsoc->idp\">Compta</a></td>"; print "<td align=\"center\"><a href=\"../compta/fiche.php?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=\"docsoc.php?socid=$objsoc->idp\">Documents</a></td>";
print "<td align=\"center\"><a href=\"index.php?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) if ($user->rights->projet->creer)
@ -154,10 +154,10 @@ if ($socid > 0) {
if (defined("MAIN_MODULE_FICHEINTER") && MAIN_MODULE_FICHEINTER) if (defined("MAIN_MODULE_FICHEINTER") && MAIN_MODULE_FICHEINTER)
{ {
print "<td align=\"center\"><a href=\"../fichinter/fiche.php3?socidp=$objsoc->idp&action=create\">[Intervention]</a></td>"; print "<td align=\"center\"><a href=\"../fichinter/fiche.php?socidp=$objsoc->idp&action=create\">[Intervention]</a></td>";
} }
print "<td><a href=\"socnote.php3?socid=$objsoc->idp\">Notes</a></td>"; print "<td><a href=\"socnote.php?socid=$objsoc->idp\">Notes</a></td>";
print "<td align=\"center\">[<a href=\"../soc.php3?socid=$objsoc->idp&action=edit\">Editer</a>]</td></tr>"; print "<td align=\"center\">[<a href=\"../soc.php?socid=$objsoc->idp&action=edit\">Editer</a>]</td></tr>";
} }
print "</table>"; print "</table>";
/* /*
@ -211,14 +211,14 @@ if ($socid > 0) {
if ( $db->query($sql) ) { if ( $db->query($sql) ) {
$num = $db->num_rows(); $num = $db->num_rows();
if ($num >0 ) { if ($num >0 ) {
print "<tr $bc[$var]><td colspan=\"4\"><a href=\"propal.php3?socidp=$objsoc->idp\">Liste des propales ($num)</td></tr>"; print "<tr $bc[$var]><td colspan=\"4\"><a href=\"propal.php?socidp=$objsoc->idp\">Liste des propales ($num)</td></tr>";
} }
$i = 0; $now = time(); $lim = 3600 * 24 * 15 ; $i = 0; $now = time(); $lim = 3600 * 24 * 15 ;
while ($i < $num && $i < 4) { while ($i < $num && $i < 4) {
$objp = $db->fetch_object( $i); $objp = $db->fetch_object( $i);
$var=!$var; $var=!$var;
print "<TR $bc[$var]>"; print "<TR $bc[$var]>";
print "<TD><a href=\"propal.php3?propalid=$objp->propalid\">$objp->ref</a>\n"; print "<TD><a href=\"propal.php?propalid=$objp->propalid\">$objp->ref</a>\n";
if ( ($now - $objp->dp) > $lim && $objp->statutid == 1 ) { if ( ($now - $objp->dp) > $lim && $objp->statutid == 1 ) {
print " <b>&gt; 15 jours</b>"; print " <b>&gt; 15 jours</b>";
} }
@ -274,7 +274,7 @@ if ($socid > 0) {
print '<td align="center" width="20%">-</td>'; print '<td align="center" width="20%">-</td>';
if (defined("MAIN_MODULE_PROPALE") && MAIN_MODULE_PROPALE && $user->rights->propale->creer) if (defined("MAIN_MODULE_PROPALE") && MAIN_MODULE_PROPALE && $user->rights->propale->creer)
{ {
print "<td align=\"center\"><a href=\"addpropal.php3?socidp=$objsoc->idp&action=create\">Créer une proposition</a></td>"; print "<td align=\"center\"><a href=\"addpropal.php?socidp=$objsoc->idp&action=create\">Créer une proposition</a></td>";
} }
else else
{ {
@ -314,7 +314,7 @@ if ($socid > 0) {
print '<tr class="liste_titre"><td>Pr&eacute;nom Nom</td>'; print '<tr class="liste_titre"><td>Pr&eacute;nom Nom</td>';
print '<td>Poste</td><td>T&eacute;l</td>'; print '<td>Poste</td><td>T&eacute;l</td>';
print "<td>Fax</td><td>Email</td>"; print "<td>Fax</td><td>Email</td>";
print "<td align=\"center\"><a href=\"people.php3?socid=$objsoc->idp&action=addcontact\">Ajouter</a></td></tr>"; print "<td align=\"center\"><a href=\"people.php?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 llx_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 llx_socpeople as p WHERE p.fk_soc = $objsoc->idp ORDER by p.datec";
$result = $db->query($sql); $result = $db->query($sql);
@ -327,7 +327,7 @@ if ($socid > 0) {
print '<td>'; print '<td>';
print '<a href="action/fiche.php3?action=create&actionid=5&contactid='.$obj->idp.'&socid='.$objsoc->idp.'">'.$obj->firstname.' '. $obj->name.'</a>&nbsp;'; print '<a href="action/fiche.php?action=create&actionid=5&contactid='.$obj->idp.'&socid='.$objsoc->idp.'">'.$obj->firstname.' '. $obj->name.'</a>&nbsp;';
if ($obj->note) if ($obj->note)
{ {
@ -335,10 +335,10 @@ if ($socid > 0) {
} }
print "</td>"; print "</td>";
print "<td>$obj->poste&nbsp;</td>"; print "<td>$obj->poste&nbsp;</td>";
print '<td><a href="action/fiche.php3?action=create&actionid=1&contactid='.$obj->idp.'&socid='.$objsoc->idp.'">'.$obj->phone.'</a>&nbsp;</td>'; print '<td><a href="action/fiche.php?action=create&actionid=1&contactid='.$obj->idp.'&socid='.$objsoc->idp.'">'.$obj->phone.'</a>&nbsp;</td>';
print '<td><a href="action/fiche.php3?action=create&actionid=2&contactid='.$obj->idp.'&socid='.$objsoc->idp.'">'.$obj->fax.'</a>&nbsp;</td>'; print '<td><a href="action/fiche.php?action=create&actionid=2&contactid='.$obj->idp.'&socid='.$objsoc->idp.'">'.$obj->fax.'</a>&nbsp;</td>';
print '<td><a href="action/fiche.php3?action=create&actionid=4&contactid='.$obj->idp.'&socid='.$objsoc->idp.'">'.$obj->email.'</a>&nbsp;</td>'; print '<td><a href="action/fiche.php?action=create&actionid=4&contactid='.$obj->idp.'&socid='.$objsoc->idp.'">'.$obj->email.'</a>&nbsp;</td>';
print "<td align=\"center\"><a href=\"people.php3?socid=$objsoc->idp&action=editcontact&contactid=$obj->idp\">Modifier</a></td>"; print "<td align=\"center\"><a href=\"people.php?socid=$objsoc->idp&action=editcontact&contactid=$obj->idp\">Modifier</a></td>";
print "</tr>\n"; print "</tr>\n";
$i++; $i++;
$tag = !$tag; $tag = !$tag;
@ -353,7 +353,7 @@ if ($socid > 0) {
* *
*/ */
print '<table width="100%" cellspacing=0 border=0 cellpadding=2>'; print '<table width="100%" cellspacing=0 border=0 cellpadding=2>';
print '<tr class="liste_titre"><td>Actions à faire</td><td align="right"> [<a href="action/fiche.php3?action=create&socid='.$socid.'&afaire=1">Nouvelle action</a>]</td></tr>'; print '<tr class="liste_titre"><td>Actions à faire</td><td align="right"> [<a href="action/fiche.php?action=create&socid='.$socid.'&afaire=1">Nouvelle action</a>]</td></tr>';
print '<tr>'; print '<tr>';
print '<td colspan="2" valign="top">'; print '<td colspan="2" valign="top">';
@ -395,11 +395,11 @@ if ($socid > 0) {
if ($obj->propalrowid) if ($obj->propalrowid)
{ {
print '<td width="40%"><a href="propal.php3?propalid='.$obj->propalrowid.'">'.$obj->libelle.'</a></td>'; print '<td width="40%"><a href="propal.php?propalid='.$obj->propalrowid.'">'.$obj->libelle.'</a></td>';
} }
else else
{ {
print '<td width="40%"><a href="action/fiche.php3?id='.$obj->id.'">'.$obj->libelle.'</a></td>'; print '<td width="40%"><a href="action/fiche.php?id='.$obj->id.'">'.$obj->libelle.'</a></td>';
} }
/* /*
* Contact pour cette action * Contact pour cette action
@ -408,13 +408,13 @@ if ($socid > 0) {
if ($obj->fk_contact) { if ($obj->fk_contact) {
$contact = new Contact($db); $contact = new Contact($db);
$contact->fetch($obj->fk_contact); $contact->fetch($obj->fk_contact);
print '<td width="40%"><a href="people.php3?socid='.$objsoc->idp.'&contactid='.$contact->id.'">'.$contact->fullname.'</a></td>'; print '<td width="40%"><a href="people.php?socid='.$objsoc->idp.'&contactid='.$contact->id.'">'.$contact->fullname.'</a></td>';
} else { } else {
print '<td width="40%">&nbsp;</td>'; print '<td width="40%">&nbsp;</td>';
} }
/* /*
*/ */
print '<td width="20%"><a href="../user/fiche.php3?id='.$obj->fk_user_author.'">'.$obj->code.'</a></td>'; print '<td width="20%"><a href="../user/fiche.php?id='.$obj->fk_user_author.'">'.$obj->code.'</a></td>';
print "</tr>\n"; print "</tr>\n";
$i++; $i++;
} }
@ -485,11 +485,11 @@ if ($socid > 0) {
if ($obj->propalrowid) if ($obj->propalrowid)
{ {
print '<td width="40%"><a href="propal.php3?propalid='.$obj->propalrowid.'">'.$obj->libelle.'</a></td>'; print '<td width="40%"><a href="propal.php?propalid='.$obj->propalrowid.'">'.$obj->libelle.'</a></td>';
} }
else else
{ {
print '<td width="40%"><a href="action/fiche.php3?id='.$obj->id.'">'.$obj->libelle.'</a></td>'; print '<td width="40%"><a href="action/fiche.php?id='.$obj->id.'">'.$obj->libelle.'</a></td>';
} }
/* /*
* Contact pour cette action * Contact pour cette action
@ -499,7 +499,7 @@ if ($socid > 0) {
{ {
$contact = new Contact($db); $contact = new Contact($db);
$contact->fetch($obj->fk_contact); $contact->fetch($obj->fk_contact);
print '<td width="40%"><a href="people.php3?socid='.$objsoc->idp.'&contactid='.$contact->id.'">'.$contact->fullname.'</a></td>'; print '<td width="40%"><a href="people.php?socid='.$objsoc->idp.'&contactid='.$contact->id.'">'.$contact->fullname.'</a></td>';
} }
else else
{ {
@ -507,7 +507,7 @@ if ($socid > 0) {
} }
/* /*
*/ */
print '<td width="20%"><a href="../user/fiche.php3?id='.$obj->fk_user_author.'">'.$obj->code.'</a></td>'; print '<td width="20%"><a href="../user/fiche.php?id='.$obj->fk_user_author.'">'.$obj->code.'</a></td>';
print "</tr>\n"; print "</tr>\n";
$i++; $i++;
} }