diff --git a/dev/skeletons/build_class_from_table.php b/dev/skeletons/build_class_from_table.php index 0c0fbb62567..21b30faa6b2 100644 --- a/dev/skeletons/build_class_from_table.php +++ b/dev/skeletons/build_class_from_table.php @@ -14,15 +14,13 @@ * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - * - * $Id$ */ /** \file dev/skeletons/build_class_from_table.php \ingroup core \brief Create a complete class file from a table in database - \version $Revision$ + \version $Id$ */ // Test if batch mode @@ -127,7 +125,9 @@ $skeletonfile='skeleton_class.class.php'; $sourcecontent=file_get_contents($skeletonfile); if (! $sourcecontent) { - print "Error: Failed to read skeleton sample '".$sourcecontent."'\n"; + print "\n"; + print "Error: Failed to read skeleton sample '".$skeletonfile."'\n"; + print "Try to run script from skeletons directory.\n"; exit; } @@ -311,6 +311,7 @@ if ($fp) { fputs($fp, $targetcontent); fclose($fp); + print "\n"; print "File '".$outfile."' has been built in current directory.\n"; return 1; } diff --git a/htdocs/commande/index.php b/htdocs/commande/index.php index a2fea6c4509..d203aaf3aab 100644 --- a/htdocs/commande/index.php +++ b/htdocs/commande/index.php @@ -15,15 +15,13 @@ * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - * - * $Id$ */ /** \file htdocs/commande/index.php \ingroup commande \brief Page acceuil espace commandes - \version $Revision$ + \version $Id$ */ require("./pre.inc.php"); diff --git a/htdocs/compta/index.php b/htdocs/compta/index.php index 492f1b3bebe..556427a9534 100644 --- a/htdocs/compta/index.php +++ b/htdocs/compta/index.php @@ -16,15 +16,13 @@ * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - * - * $Id$ */ /** \file htdocs/compta/index.php \ingroup compta \brief Page accueil zone comptabilité - \version $Revision$ + \version $Id$ */ require("./pre.inc.php"); diff --git a/htdocs/conf/conf.class.php b/htdocs/conf/conf.class.php index 1382d4e9b28..2802da1c1c3 100644 --- a/htdocs/conf/conf.class.php +++ b/htdocs/conf/conf.class.php @@ -257,6 +257,7 @@ class Conf $this->categorie->enabled=defined("MAIN_MODULE_CATEGORIE")?MAIN_MODULE_CATEGORIE:0; // Module contrat $this->contrat->enabled=defined("MAIN_MODULE_CONTRAT")?MAIN_MODULE_CONTRAT:0; + $this->contrat->dir_output=DOL_DATA_ROOT."/contracts"; // Module projet $this->projet->enabled=defined("MAIN_MODULE_PROJET")?MAIN_MODULE_PROJET:0; // Module oscommerce 1 diff --git a/htdocs/contrat/note.php b/htdocs/contrat/note.php index aa623cc2f5a..c116b9ddbbe 100644 --- a/htdocs/contrat/note.php +++ b/htdocs/contrat/note.php @@ -15,15 +15,13 @@ * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - * - * $Id$ */ /** \file htdocs/contrat/note.php \ingroup contrat \brief Fiche de notes sur un contrat - \version $Revision$ + \version $Id$ */ require("./pre.inc.php"); @@ -126,7 +124,7 @@ if ($_GET["id"]) $hselected = 2; - dolibarr_fiche_head($head, $hselected, $langs->trans("Contract")); + dolibarr_fiche_head($head, 'note', $langs->trans("Contract")); print '
| '; + print $ecmdirstatic->getNomUrl(1); + print " | \n"; + + // Type + print ''; + print $langs->trans("ECMTypeManual"); + print " | \n"; + + // Description + print ''.dolibarr_trunc($obj->description,32).' | '; + $userstatic->id=$obj->fk_user_c; + $userstatic->nom=$obj->login; + print ''.$userstatic->getNomUrl(1).' | '; + print ''.dolibarr_print_date($obj->date_c,"dayhour").' | '; + + // Nb of docs + //print ''.$obj->cachenbofdoc.' | '; + print '? | '; + + print ''; + echo 'rowid).'">'.img_delete().''; + print " |
| '; + print img_picto('','object_dir').' '; + print ''; + print $val['label']; + print ''; + print " | \n"; + + // Type + print ''; + print $langs->trans("ECMTypeAuto"); + print " | \n"; + + // Description + print ''.$val['desc'].' | '; + print ''; + print ' | '; + print ' | '; + + print ' | '; + print " |
| '.$langs->trans("Courriers").' | '.$langs->trans("Size").' | '.$langs->trans("Date").' |
| "; - $loc = "courrier/".get_exdir($socid); - echo ''.$file.''; - print " | \n"; - - print ''.filesize($courrier_dir."/".$file). ' '.$langs->trans("bytes").' | '; - print ''.dolibarr_print_date(filemtime($courrier_dir."/".$file),"dayhour").' | '; - print "
| ';
+
+ //print_fiche_titre($langs->trans("ECMManualOrg"));
+
+ print ' "; + //print $langs->trans("ECMManualOrgDesc"); + + print ' | ';
+
+ //print_fiche_titre($langs->trans("ECMAutoOrg"));
+
+ print ' "; + //print $langs->trans("ECMAutoOrgDesc"); + + print ' |
';
+print '
|