diff --git a/include/action.common.inc.php b/include/action.common.inc.php
index 8508b95e2..3f9db4987 100644
--- a/include/action.common.inc.php
+++ b/include/action.common.inc.php
@@ -89,9 +89,11 @@ if ( $sub_action=="update" )
}
else
{
- ShowActionList($cn,$base);
$url="?$base&sa=detail&ag_id=".$act2->ag_id.'&'.dossier::get();
echo '
'.hb(_('Action sauvée').' : '.$act2->ag_ref).'
';
+
+ ShowActionList($cn,$base);
+ echo ''.hb(_('Action sauvée').' : '.$act2->ag_ref).'
';
}
}
//----------------------------------------------------------------------
@@ -220,6 +222,10 @@ if ( $sub_action == "save_action_st2" )
// insert into action_gestion
echo $act->save();
+ $url="?$base&sa=detail&ag_id=".$act2->ag_id.'&'.dossier::get();
+ echo ''.hb('Action Sauvée : '.$act->ag_ref).'
';
+
+
ShowActionList($cn,$base);
$url="?$base&sa=detail&ag_id=".$act->ag_id.'&'.dossier::get();
echo ''.hb('Action Sauvée : '.$act->ag_ref).'
';
diff --git a/include/audit_log.php b/include/audit_log.php
index c4d1c7753..faec99f5a 100644
--- a/include/audit_log.php
+++ b/include/audit_log.php
@@ -29,7 +29,7 @@
exec_sql("select ac_user,ac_ip,to_char(ac_date,'DD.MM.YYYY HH24:MI') as fmt_date,ac_state,ac_module from audit_connect order by 3");
+$cn->exec_sql("select ac_user,ac_ip,to_char(ac_date,'DD.MM.YYYY HH24:MI') as fmt_date,ac_state,ac_module from audit_connect order by ac_datedesc ");
?>
@@ -81,4 +81,4 @@ switch ( $r['ac_state'] )
endfor;
?>
-
\ No newline at end of file
+
diff --git a/include/class_action.php b/include/class_action.php
index 1b0de9ff6..024782417 100644
--- a/include/class_action.php
+++ b/include/class_action.php
@@ -525,7 +525,7 @@ class Action
*/
function get()
{
- $sql="select ag_id, ag_comment,to_char (ag_timestamp,'DD-MM-YYYY') as ag_timestamp,".
+ $sql="select ag_id, ag_comment,to_char (ag_timestamp,'DD.MM.YYYY') as ag_timestamp,".
" f_id_dest,ag_title,ag_comment,ag_ref,d_id,ag_type,ag_state, ".
" ag_ref_ag_id, ag_dest, ag_hour, ag_priority, ag_cal,ag_contact ".
" from action_gestion left join document using (ag_id) where ag_id=".$this->ag_id;
@@ -610,7 +610,7 @@ class Action
$sql="insert into action_gestion".
"(ag_id,ag_timestamp,ag_type,ag_title,f_id_dest,ag_comment,ag_ref,ag_ref_ag_id, ag_dest, ".
" ag_hour, ag_priority,ag_cal,ag_owner,ag_contact,ag_state) ".
- " values ($1,to_date($2,'DD-MM-YYYY'),$3,$4,$5,$6,$7,$8,$9,$10,$11,$12,$13,$14,$15)";
+ " values ($1,to_date($2,'DD.MM.YYYY'),$3,$4,$5,$6,$7,$8,$9,$10,$11,$12,$13,$14,$15)";
$this->db->exec_sql($sql,array($this->ag_id, /* 1 */
$this->ag_timestamp, /* 2 */
$this->dt_id, /* 3 */
@@ -776,7 +776,7 @@ class Action
$p_filter_doc=" 1=1 ";
$sql="
- select ag_id,to_char(ag_timestamp,'DD-MM-YYYY') as my_date,ag_ref_ag_id,f_id_dest".
+ select ag_id,to_char(ag_timestamp,'DD.MM.YYYY') as my_date,ag_ref_ag_id,f_id_dest".
",ag_title,md_type,dt_value,ag_ref, ag_priority,ag_state
from action_gestion
left outer join document_modele on (ag_type=md_type)
@@ -817,7 +817,7 @@ class Action
return $r;
}
- $today=date('d-m-Y');
+ $today=date('d.m.Y');
$i=0;
//show the sub_action
foreach ($a_row as $row )
@@ -1015,7 +1015,7 @@ class Action
$this->qcode_dest=(isset($p_array['qcode_dest']))?$p_array['qcode_dest']:"";
$this->f_id_dest=(isset($p_array['f_id_dest']))?$p_array['f_id_dest']:0;
$this->ag_ref_ag_id=(isset($p_array['ag_ref_ag_id']))?$p_array['ag_ref_ag_id']:0;
- $this->ag_timestamp=(isset($p_array['ag_timestamp']))?$p_array['ag_timestamp']:date('d-m-Y');
+ $this->ag_timestamp=(isset($p_array['ag_timestamp']))?$p_array['ag_timestamp']:date('d.m.Y');
$this->qcode_dest=(isset($p_array['qcode_dest']))?$p_array['qcode_dest']:"";
$this->dt_id=(isset($p_array['dt_id']))?$p_array['dt_id']:"";
$this->ag_state=(isset($p_array['ag_state']))?$p_array['ag_state']:2;
diff --git a/include/class_document.php b/include/class_document.php
index f564f0ce5..889ca390d 100644
--- a/include/class_document.php
+++ b/include/class_document.php
@@ -492,8 +492,8 @@ class Document
$r=' Date inconnue ';
// Date are in $_REQUEST['ag_date']
// or $_POST['e_date']
- if ( isset ($_REQUEST['ag_date']))
- $r=$_REQUEST['ag_date'];
+ if ( isset ($_REQUEST['ag_timestamp']))
+ $r=$_REQUEST['ag_timestamp'];
if ( isset ($_REQUEST['e_date']))
$r=$_REQUEST['e_date'];
diff --git a/include/class_fiche_def.php b/include/class_fiche_def.php
index 91cdad647..09bd9f6fb 100644
--- a/include/class_fiche_def.php
+++ b/include/class_fiche_def.php
@@ -502,7 +502,7 @@ class Fiche_Def
$Res=$this->cn->exec_sql("select ad_id,ad_text from attr_def
where
ad_id not in (select ad_id from fiche_def natural join jnt_fic_attr
- where fd_id=".$this->id.")");
+ where fd_id=$1) order by ad_text",array($this->id) );
$M=Database::num_row($Res);
// Show the unused attribute
diff --git a/include/dossier.inc.php b/include/dossier.inc.php
index bbc707adf..843fa5d9e 100644
--- a/include/dossier.inc.php
+++ b/include/dossier.inc.php
@@ -194,7 +194,7 @@ if ( $sa == 'list' )
$size=$cn->get_value("select pg_database_size($1)/(1024*1024)::float",
array($str_name));
echo "| ".h($Dossier['dos_description'])." | ";
- echo td(nbm($size)."MB");
+ echo td(nbm($size)."MB",' style="text-align:right"');
echo td($str_name);
echo "";
diff --git a/include/forecast.inc.php b/include/forecast.inc.php
index eb7950611..b1ab99e72 100644
--- a/include/forecast.inc.php
+++ b/include/forecast.inc.php
@@ -46,12 +46,13 @@ if ( isset($_GET['del']))
/*
* Cloning
*/
-if (isset ($_POST['clone']))
+if (isset ($_REQUEST ['clone']))
{
+ echo " cloning";
/*
* We need to clone the forecast
*/
- $anti=new Forecast($cn,$_POST['f_id']);
+ $anti=new Forecast($cn,$_REQUEST ['f_id']);
$anti->object_clone();
}
diff --git a/include/payment_middle.inc.php b/include/payment_middle.inc.php
index 4a6d3e525..b6cf1824d 100644
--- a/include/payment_middle.inc.php
+++ b/include/payment_middle.inc.php
@@ -172,5 +172,3 @@ echo HtmlInput::button_anchor(_('Ajout'),'?p_action=divers&sa=mp&sb=ins&'.dossie
echo '';
?>
-?>
-?>
\ No newline at end of file
|