diff --git a/htdocs/comm/action/fiche.php b/htdocs/comm/action/fiche.php index 78f65036ff8..7cafc6a3177 100644 --- a/htdocs/comm/action/fiche.php +++ b/htdocs/comm/action/fiche.php @@ -275,10 +275,23 @@ if ($_GET["action"] == 'create') if ($_GET["afaire"] == 1) { print $html->select_date('','ac'); - } else if ($_GET["afaire"] == 2) { + print ''.$langs->trans("Hour").''; + print_heure_select("heure",8,20); + print ''; + } + else if ($_GET["afaire"] == 2) + { print $html->select_date('','ac',1,1); - } else { + print ''.$langs->trans("Hour").''; + print_heure_select("heure",8,20); + print ''; + } + else + { print $html->select_date('','ac',1,1); + print ''.$langs->trans("Hour").''; + print_heure_select("heure",8,20); + print ''; } print ''; diff --git a/htdocs/comm/fiche.php b/htdocs/comm/fiche.php index b06a6c253c3..cbf27297485 100644 --- a/htdocs/comm/fiche.php +++ b/htdocs/comm/fiche.php @@ -489,16 +489,24 @@ if ($_socid > 0) $obj = $db->fetch_object( $i); print ""; - if ($oldyear == strftime("%Y",$obj->da) ) { - print '|'; - } else { + if ($oldyear == strftime("%Y",$obj->da) ) + { + //print '|'; + print "" .strftime("%Y",$obj->da)."\n"; + } + else + { print "" .strftime("%Y",$obj->da)."\n"; $oldyear = strftime("%Y",$obj->da); } - if ($oldmonth == strftime("%Y%b",$obj->da) ) { - print '|'; - } else { + if ($oldmonth == strftime("%Y%b",$obj->da) ) + { + //print '|'; + print "" .strftime("%Y",$obj->da)."\n"; + } + else + { print "" .strftime("%b",$obj->da)."\n"; $oldmonth = strftime("%Y%b",$obj->da); } diff --git a/htdocs/install/etape1.php b/htdocs/install/etape1.php index 222e7c24b4f..ba8a0e5545f 100644 --- a/htdocs/install/etape1.php +++ b/htdocs/install/etape1.php @@ -137,6 +137,7 @@ if ($_POST["action"] == "set") $dir[5] = "$main_data_dir/rapport"; $dir[6] = "$main_data_dir/images"; $dir[7] = "$main_data_dir/rsscache"; + $dir[8] = "$main_data_dir/logo"; if (! is_dir($main_dir)) { diff --git a/htdocs/product/stats/fiche.php b/htdocs/product/stats/fiche.php index 9971e1c3389..b99e1c0011a 100644 --- a/htdocs/product/stats/fiche.php +++ b/htdocs/product/stats/fiche.php @@ -65,12 +65,13 @@ if ($_GET["id"]) if ( $result ) { - $dir = DOL_DOCUMENT_ROOT."/document/produit/".$product->id; + $dir = DOL_DOCUMENT_ROOT."/documents/produit/".$product->id; if (! file_exists($dir)) { umask(0); - mkdir(DOL_DOCUMENT_ROOT."/document"); - mkdir(DOL_DOCUMENT_ROOT."/document/produit"); + rmdir(DOL_DOCUMENT_ROOT."/documents/produits"); + //mkdir(DOL_DOCUMENT_ROOT."/documents"); + mkdir(DOL_DOCUMENT_ROOT."/documents/produit"); if (! mkdir($dir, 0755)) { $mesg = $langs->trans("ErrorCanNotCreateDir",$dir); @@ -152,10 +153,10 @@ if ($_GET["id"]) print 'Nombre de pièces vendues'; print ''; - print 'Ventes sur les 12 derniers mois'; + print 'Ventes sur les 12 derniers mois'; print ''; - print 'Ventes sur les 12 derniers mois'; + print 'Ventes sur les 12 derniers mois'; print ''; if (file_exists($filenbvente) && filemtime($filenbvente)) @@ -182,7 +183,7 @@ if ($_GET["id"]) print '-'; print ''; - print 'Propales sur les 12 derniers mois'; + print 'Propales sur les 12 derniers mois'; print 'TODO AUTRE GRAPHIQUE'; diff --git a/htdocs/propal.class.php b/htdocs/propal.class.php index c1865da1fad..9a1c3d5ee11 100644 --- a/htdocs/propal.class.php +++ b/htdocs/propal.class.php @@ -480,7 +480,7 @@ class Propal { if ($user->rights->propale->valider) { - + $sql = "UPDATE ".MAIN_DB_PREFIX."propal SET fk_statut = 1, date_valid=now(), fk_user_valid=$user->id"; $sql .= " WHERE rowid = $this->id AND fk_statut = 0 ;"; diff --git a/htdocs/societe/notify/fiche.php b/htdocs/societe/notify/fiche.php index 3ef0034cded..64d57508fa4 100644 --- a/htdocs/societe/notify/fiche.php +++ b/htdocs/societe/notify/fiche.php @@ -26,7 +26,8 @@ require("pre.inc.php"); */ if ($user->societe_id > 0) { - $socid = $user->societe_id; + //$socid = $user->societe_id; + $socid = $_GET["socid"]; } $socid = $_GET["socid"]; @@ -62,10 +63,10 @@ if ($_GET["action"] == 'delete') $sql = "DELETE FROM ".MAIN_DB_PREFIX."notify_def where rowid=".$_GET["actid"].";"; $db->query($sql); - if ($db->query($sql)) - { + // if ($db->query($sql)) + // { // TODO ajouter une sécu pour la suppression - } + //} } /*