';
+
/*
*
*
*/
- print '';
- print ' ';
- print '';
+ print '';
print '| Nom | '.$objsoc->nom.' | ';
print '| Adresse | '.nl2br($objsoc->adresse)." $objsoc->cp $objsoc->ville | ";
print '| Tel | '.$objsoc->tel.' | Fax | '.$objsoc->fax.' | ';
@@ -273,21 +272,21 @@ if ($socid > 0)
{
$objp = $db->fetch_object( $i);
$var=!$var;
- print "";
- print "| facid\">$objp->facnumber | \n";
+ print " ";
+ print "| facid\">$objp->facnumber | \n";
if ($objp->df > 0 )
{
- print "".strftime("%d %B %Y",$objp->df)." | \n";
+ print "".dolibarr_print_date($objp->df)." | \n";
}
else
{
- print "!!! | \n";
+ print "!!! | \n";
}
- print "".number_format($objp->amount, 2, ',', ' ')." | \n";
+ print "".number_format($objp->amount, 2, ',', ' ')." | \n";
$fac = new Facture($db);
- print "".($fac->LibStatut($objp->paye,$objp->statut))." | \n";
- print " \n";
+ print "".($fac->LibStatut($objp->paye,$objp->statut))." | \n";
+ print "\n";
$i++;
}
$db->free();
@@ -345,17 +344,16 @@ if ($socid > 0)
if ($user->societe_id == 0)
{
- if ($user->rights->facture->creer)
- print "idp\">".translate("Facturer")."";
+ if ($user->rights->facture->creer) {
+ print "idp\">".translate("Créer Facture")."";
+ }
print "idp&action=create\">Créer Déplacement";
}
print 'Ajouter un contact';
- print 'Notifications';
-
print '';
- print ' ';
+ print " \n";
/*
*
@@ -381,7 +379,7 @@ if ($socid > 0)
* Liste des contacts
*
*/
- print '';
+ print '';
print '| Prénom Nom | ';
print 'Poste | Tél | ';
@@ -402,18 +400,17 @@ if ($socid > 0)
print '';
//print '';
//print ' ';
- print ''.$obj->firstname.' '. $obj->name.' | ';
-
+ print ''.$obj->firstname.' '. $obj->name.'';
if ($obj->note)
{
- print " ".nl2br($obj->note);
+ print " ".nl2br($obj->note);
}
print "";
print "$obj->poste | ";
print ''.$obj->phone.' | ';
print ''.$obj->fax.' | ';
print ''.$obj->email.' | ';
- print "idp&action=editcontact&contactid=$obj->idp\">".img_edit()." | ";
+ print "idp\">".img_edit()." | ";
print " \n";
$i++;
$tag = !$tag;
diff --git a/htdocs/compta/sociales/index.php b/htdocs/compta/sociales/index.php
index 60b2b426da8..15ef9dec937 100644
--- a/htdocs/compta/sociales/index.php
+++ b/htdocs/compta/sociales/index.php
@@ -92,14 +92,15 @@ print " \n";
// print " \n";
//}
-print "";
+print "";
print "";
print '| ';
print_liste_field_titre("Num",$PHP_SELF,"id");
+print ' | ';
+print '';
+print_liste_field_titre("Echéance",$PHP_SELF,"de");
print ' | ';
-print_liste_field_titre("Echéance/Date",$PHP_SELF,"de");
-print ' | ';
-print_liste_field_titre("Période",$PHP_SELF,"periode");
+print ' ';
print ' | ';
print_liste_field_titre("Type",$PHP_SELF,"type");
print ' | ';
@@ -150,7 +151,7 @@ if ( $db->query($sql) )
$var = !$var;
print " | ";
print '| '.$obj->id.' | ';
- print ''.strftime("%d %b %y",$obj->de).' | ';
+ print ''.dolibarr_print_date($obj->de).' | ';
print '';
if ($obj->periode) {
print 'periode).'">'.strftime("%Y",$obj->periode).'';
@@ -159,11 +160,11 @@ if ( $db->query($sql) )
}
print ' | ';
print ''.$obj->type_lib.' | '.$obj->libelle.' | ';
- print ''.price($obj->amount).' | ';
+ print ''.price($obj->amount).' | ';
if ($obj->paye)
{
- print ''.strftime("%d/%m/%y",$obj->dp).' | ';
+ print 'Oui | ';
print ' | ';
} else {
print 'Non | ';
@@ -208,7 +209,7 @@ if ( $db->query($sql) )
}
print '';
print '';
-print ' | ';
+print ' | ';
print ' | ';
print ' | ';
diff --git a/htdocs/contact/fiche.php b/htdocs/contact/fiche.php
index 64c2cc5b6ba..82aa05d2173 100644
--- a/htdocs/contact/fiche.php
+++ b/htdocs/contact/fiche.php
@@ -1,5 +1,6 @@
+ * Copyright (C) 2004 Laurent Destailleur
*
* 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
@@ -25,25 +26,25 @@ require (DOL_DOCUMENT_ROOT."/lib/vcard/vcard.class.php");
$error = array();
-if ($HTTP_POST_VARS["action"] == 'add')
+if ($_POST["action"] == 'add')
{
$contact = new Contact($db);
- $contact->socid = $HTTP_POST_VARS["socid"];
+ $contact->socid = $_POST["socid"];
- $contact->name = $HTTP_POST_VARS["name"];
- $contact->firstname = $HTTP_POST_VARS["firstname"];
- $contact->poste = $HTTP_POST_VARS["poste"];
- $contact->address = $HTTP_POST_VARS["adresse"];
- $contact->cp = $HTTP_POST_VARS["cp"];
- $contact->ville = $HTTP_POST_VARS["ville"];
- $contact->fax = $HTTP_POST_VARS["fax"];
- $contact->note = $HTTP_POST_VARS["note"];
- $contact->email = $HTTP_POST_VARS["email"];
- $contact->phone_pro = $HTTP_POST_VARS["phone_pro"];
- $contact->phone_perso = $HTTP_POST_VARS["phone_perso"];
- $contact->phone_mobile = $HTTP_POST_VARS["phone_mobile"];
- $contact->jabberid = $HTTP_POST_VARS["jabberid"];
+ $contact->name = $_POST["name"];
+ $contact->firstname = $_POST["firstname"];
+ $contact->poste = $_POST["poste"];
+ $contact->address = $_POST["adresse"];
+ $contact->cp = $_POST["cp"];
+ $contact->ville = $_POST["ville"];
+ $contact->fax = $_POST["fax"];
+ $contact->note = $_POST["note"];
+ $contact->email = $_POST["email"];
+ $contact->phone_pro = $_POST["phone_pro"];
+ $contact->phone_perso = $_POST["phone_perso"];
+ $contact->phone_mobile = $_POST["phone_mobile"];
+ $contact->jabberid = $_POST["jabberid"];
$_GET["id"] = $contact->create($user);
}
@@ -52,8 +53,8 @@ if ($_GET["action"] == 'delete')
{
$contact = new Contact($db);
- $contact->old_name = $HTTP_POST_VARS["old_name"];
- $contact->old_firstname = $HTTP_POST_VARS["old_firstname"];
+ $contact->old_name = $_POST["old_name"];
+ $contact->old_firstname = $_POST["old_firstname"];
$result = $contact->delete($_GET["id"]);
@@ -65,27 +66,27 @@ if ($action == 'update')
{
$contact = new Contact($db);
- $contact->old_name = $HTTP_POST_VARS["old_name"];
- $contact->old_firstname = $HTTP_POST_VARS["old_firstname"];
+ $contact->old_name = $_POST["old_name"];
+ $contact->old_firstname = $_POST["old_firstname"];
- $contact->socid = $HTTP_POST_VARS["socid"];
- $contact->name = $HTTP_POST_VARS["name"];
- $contact->firstname = $HTTP_POST_VARS["firstname"];
- $contact->poste = $HTTP_POST_VARS["poste"];
+ $contact->socid = $_POST["socid"];
+ $contact->name = $_POST["name"];
+ $contact->firstname = $_POST["firstname"];
+ $contact->poste = $_POST["poste"];
- $contact->address = $HTTP_POST_VARS["adresse"];
- $contact->cp = $HTTP_POST_VARS["cp"];
- $contact->ville = $HTTP_POST_VARS["ville"];
+ $contact->address = $_POST["adresse"];
+ $contact->cp = $_POST["cp"];
+ $contact->ville = $_POST["ville"];
- $contact->phone_pro = $HTTP_POST_VARS["phone_pro"];
- $contact->phone_perso = $HTTP_POST_VARS["phone_perso"];
- $contact->phone_mobile = $HTTP_POST_VARS["phone_mobile"];
- $contact->fax = $HTTP_POST_VARS["fax"];
- $contact->note = $HTTP_POST_VARS["note"];
- $contact->email = $HTTP_POST_VARS["email"];
- $contact->jabberid = $HTTP_POST_VARS["jabberid"];
+ $contact->phone_pro = $_POST["phone_pro"];
+ $contact->phone_perso = $_POST["phone_perso"];
+ $contact->phone_mobile = $_POST["phone_mobile"];
+ $contact->fax = $_POST["fax"];
+ $contact->note = $_POST["note"];
+ $contact->email = $_POST["email"];
+ $contact->jabberid = $_POST["jabberid"];
- $result = $contact->update($HTTP_POST_VARS["contactid"], $user);
+ $result = $contact->update($_POST["contactid"], $user);
$error = $contact->error;
}
@@ -107,11 +108,21 @@ if ($action == 'create_user')
llxHeader();
+/*
+ * Onglets
+ */
print '';
if ($mesg)
@@ -135,7 +146,7 @@ if ($_GET["action"] == 'create')
print " |
|