';
echo dossier::hidden();
- echo HtmlInput::phpsessid();
$f=new fiche($cn,$_REQUEST['f_id']);
$contact=new Contact($cn);
$contact->company=$f->get_quick_code();
diff --git a/include/balance.inc.php b/include/balance.inc.php
index 66b4a4820..8d523987b 100644
--- a/include/balance.inc.php
+++ b/include/balance.inc.php
@@ -88,7 +88,6 @@ $journal->name="p_jrn";
if ( isset($_POST['p_jrn'])) $journal->selected=$_POST['p_jrn'];
else
$journal->selected=-1;
-echo HtmlInput::phpsessid();
echo "Journal = ".$journal->input();
$from_poste=new IPoste();
$from_poste->name="from_poste";
diff --git a/include/class_acc_ledger.php b/include/class_acc_ledger.php
index 9ed6dc59a..1d705b1db 100644
--- a/include/class_acc_ledger.php
+++ b/include/class_acc_ledger.php
@@ -594,7 +594,7 @@ jr_comment||' ('||c_internal||')'||case when jr_pj_number is not null and jr_pj_
if ($Max==0) return array(0,_("Aucun enregistrement trouvé"));
$r.='
';
- $l_sessid=$_REQUEST['PHPSESSID'];
+
$r.="";
$r.="| Internal | ";
@@ -652,9 +652,9 @@ jr_comment||' ('||c_internal||')'||case when jr_pj_number is not null and jr_pj_
exit (-1);
}
//DEBUG
- // $r.=$l_sessid;
- $r.=sprintf('%s',
- $row['jr_id'], $l_sessid,$gDossier, $row['jrn_def_id'],$vue, $row['jr_internal']);
+
+ $r.=sprintf('%s',
+ $row['jr_id'], $gDossier, $row['jrn_def_id'],$vue, $row['jr_internal']);
$r.="";
if ( $this->type=='') $r.=td($row['jrn_def_name']);
// date
@@ -727,7 +727,7 @@ jr_comment||' ('||c_internal||')'||case when jr_pj_number is not null and jr_pj_
$operation->jr_id=$element;
$l_amount=$this->db->get_value("select jr_montant from jrn ".
" where jr_id=$element");
- $r.= " ".$operation->get_internal()." [ $l_amount € ]";
+ $r.= " ".$operation->get_internal()." [ $l_amount € ]";
}//for
}// if ( $a != null ) {
$r.="";
@@ -740,19 +740,18 @@ jr_comment||' ('||c_internal||')'||case when jr_pj_number is not null and jr_pj_
$r.="";
// cancel operation
if ( $user->check_action(GEOP)==1)
- $r.=sprintf('',
- _("Effacer"),$row['jr_grpt_id'],$l_sessid,$gDossier,$row['jrn_def_id']);
+ $r.=sprintf('',
+ _("Effacer"),$row['jr_grpt_id'],$gDossier,$row['jrn_def_id']);
$r.=" | ";
} // else
//document
if ( $row['jr_pj_name'] != "")
{
$image='
';
- $r.="".sprintf('%s',
+ $r.=" | ".sprintf('%s',
$row['jrn_def_id'],
$row['jr_grpt_id'],
$str_dossier,
- $_REQUEST['PHPSESSID'],
$image)
." | ";
}
@@ -1295,7 +1294,6 @@ jr_comment||' ('||c_internal||')'||case when jr_pj_number is not null and jr_pj_
$ret.=HtmlInput::hidden('p_jrn',$this->id);
$ret.=dossier::hidden();
- $ret.=HtmlInput::hidden('phpsessid',$_REQUEST['PHPSESSID']);
$ret.=HtmlInput::hidden('jrn_type',$this->get_type());
$info= HtmlInput::infobulle(0);
@@ -1308,7 +1306,7 @@ jr_comment||' ('||c_internal||')'||case when jr_pj_number is not null and jr_pj_
''._('Montant').' | '.
''._('Débit').' | '.
'
';
- $l_sessid=$_REQUEST['PHPSESSID'];
+
for ($i = 0 ;$i<$nb_row;$i++){
// Quick Code
@@ -1994,7 +1992,6 @@ function get_last_date()
$f_paid=new ICheckbox('unpaid');
$f_paid->selected=(isset($_REQUEST['unpaid']))?true:false;
- $r.=HtmlInput::hidden('phpsessid',$_REQUEST['PHPSESSID']);
$r.=dossier::hidden();
$r.=HtmlInput::hidden('ledger_type',$this->type);
ob_start();
@@ -2013,7 +2010,6 @@ function get_last_date()
* struct array $p_array
\verbatim
(
- [phpsessid] => 016710a766b3c7b137ce6ee5bfbacc00
[gDossier] => 13
[p_jrn] => -1
[date_start] =>
@@ -2024,7 +2020,6 @@ function get_last_date()
[search] => Rechercher
[p_action] => ven
[sa] => l
- [PHPSESSID] => 016710a766b3c7b137ce6ee5bfbacc00
)
\endverbatim
*\return an array with a valid sql statement, an the where clause => array[sql] array[where]
diff --git a/include/class_acc_ledger_fin.php b/include/class_acc_ledger_fin.php
index 5b5adee53..0a7e0bbe3 100644
--- a/include/class_acc_ledger_fin.php
+++ b/include/class_acc_ledger_fin.php
@@ -210,7 +210,6 @@ class Acc_Ledger_Fin extends Acc_Ledger {
$r="";
$r.=dossier::hidden();
- $r.=HtmlInput::hidden('phpsessid',$_REQUEST['PHPSESSID']);
$f_legend='Banque, caisse';
// Date
//--
@@ -530,7 +529,6 @@ class Acc_Ledger_Fin extends Acc_Ledger {
// Hidden variables
//--------------------------------------------------
$r.=dossier::hidden();
- $r.=HtmlInput::hidden('phpsessid',$_REQUEST['PHPSESSID']);
$r.=HtmlInput::hidden('p_jrn',$this->id);
$r.=HtmlInput::hidden('nb_item',$nb_item);
$r.=HtmlInput::hidden('last_sold',$last_sold);
diff --git a/include/class_acc_ledger_purchase.php b/include/class_acc_ledger_purchase.php
index f842d85c5..5bdc16b61 100644
--- a/include/class_acc_ledger_purchase.php
+++ b/include/class_acc_ledger_purchase.php
@@ -712,7 +712,6 @@ class Acc_Ledger_Purchase extends Acc_Ledger {
$r="";
$r.=dossier::hidden();
- $r.=HtmlInput::hidden('phpsessid',$_REQUEST['PHPSESSID']);
$f_legend=_("En-tête facture fournisseur");
$f_legend_detail=_("Détail articles acheté");
diff --git a/include/class_acc_ledger_sold.php b/include/class_acc_ledger_sold.php
index 537ab6664..067c65ed4 100644
--- a/include/class_acc_ledger_sold.php
+++ b/include/class_acc_ledger_sold.php
@@ -861,7 +861,6 @@ class Acc_Ledger_Sold extends Acc_Ledger {
$r='';
$r.=dossier::hidden();
- $r.=HtmlInput::hidden('phpsessid',$_REQUEST['PHPSESSID']);
$f_legend=_('En-tête facture client');
$Echeance=new IDate();
diff --git a/include/class_acc_parm_code.php b/include/class_acc_parm_code.php
index 0702ea8e5..ea0b2ead8 100644
--- a/include/class_acc_parm_code.php
+++ b/include/class_acc_parm_code.php
@@ -148,7 +148,6 @@ class Acc_Parm_Code {
$r.= ''.$value->input();
$r.=' | ';
$r.='';
- $r.=HtmlInput::phpsessid();
$r.=Dossier::hidden();
return $r;
diff --git a/include/class_acc_report.php b/include/class_acc_report.php
index 9dbacfbbd..d0c4c3609 100644
--- a/include/class_acc_report.php
+++ b/include/class_acc_report.php
@@ -102,7 +102,6 @@ function form($p_line=0) {
$r.= dossier::hidden();
$r.= HtmlInput::hidden('line',$p_line);
$r.= HtmlInput::hidden('fr_id',$this->id);
- $r.=HtmlInput::phpsessid();
$wForm=new IText();
$r.="Nom du rapport : ";
$r.=$wForm->input('form_nom',$this->name);
@@ -156,7 +155,7 @@ function form($p_line=0) {
$r.= "
";
$wButton=new IButton();
- $wButton->javascript=" rapport_add_row('".dossier::id()."','".$_REQUEST['PHPSESSID']."')";
+ $wButton->javascript=" rapport_add_row('".dossier::id()."')";
$wButton->label="Ajout d'une ligne";
$r.=$wButton->input();
return $r;
diff --git a/include/class_action.php b/include/class_action.php
index d5223eceb..297c49543 100644
--- a/include/class_action.php
+++ b/include/class_action.php
@@ -368,8 +368,7 @@ class Action
$upload->name="file_upload[]";
$upload->value="";
$aAttachedFile=$this->db->get_array('select d_id,d_filename,d_mimetype,'.
- '\'show_document.php?PHPSESSID='.
- $_REQUEST['PHPSESSID'].'&'.
+ '\'show_document.php?'.
Dossier::get().'&d_id=\'||d_id as link'.
' from document where ag_id=$1',
array($this->ag_id));
@@ -485,7 +484,6 @@ class Action
/* Add the needed hidden values */
$r.=dossier::hidden();
- $r.=HtmlInput::hidden('phpsessid',$_REQUEST['PHPSESSID']);
/* add the number of item */
$Hid=new IHidden();
@@ -831,8 +829,8 @@ class Action
$qcode_dest=$fexp->strAttribut(ATTR_DEF_QUICKCODE);
$qexp=($qcode_dest=="- ERROR -")?"Interne":$qcode_dest;
- $jsexp=sprintf("javascript:showfiche('%s','%s')",
- $_REQUEST['PHPSESSID'],$qexp);
+ $jsexp=sprintf("javascript:showfiche('%s')",
+ $qexp);
if ( $qexp != 'Interne' )
{
$r.="
$href".$qexp." : ".$fexp->getName().' | ';
diff --git a/include/class_anc_balance_double.php b/include/class_anc_balance_double.php
index dce582836..abc5c89a1 100644
--- a/include/class_anc_balance_double.php
+++ b/include/class_anc_balance_double.php
@@ -285,11 +285,11 @@ class Anc_Balance_Double extends Anc_Print
$choose=new IButton();
$choose->name="Choix Poste";
$choose->label=_("Recherche");
- $choose->javascript="onClick=search_ca('".$_REQUEST['PHPSESSID']."',".dossier::id().",'from_poste2','pa_id2')";
+ $choose->javascript="onClick=search_ca(".dossier::id().",'from_poste2','pa_id2')";
$r.=$choose->input();
$r.=" et le poste ".$poste->input("to_poste2",$this->to_poste2);
- $choose->javascript="onClick=search_ca('".$_REQUEST['PHPSESSID']."',".dossier::id().",'to_poste2','pa_id2')";
+ $choose->javascript="onClick=search_ca("dossier::id().",'to_poste2','pa_id2')";
$r.=$choose->input();
$r.='
'.
_('Selectionnez le plan qui vous intéresse avant de cliquer sur Recherche').
diff --git a/include/class_anc_operation.php b/include/class_anc_operation.php
index d9242f4a7..a3646d195 100644
--- a/include/class_anc_operation.php
+++ b/include/class_anc_operation.php
@@ -189,7 +189,7 @@ class Anc_Operation
{
$efface=new IButton();
- $efface->javascript="op_remove('".$_REQUEST['PHPSESSID']."',".$gDossier.",".$oldgroup.")";
+ $efface->javascript="op_remove('".$gDossier.",".$oldgroup.")";
$efface->name="Efface";
$efface->label="Efface";
$ret.="".$efface->input()." | ";
@@ -200,7 +200,7 @@ class Anc_Operation
if ( $jr_id != 0) {
// get the old jr_id
$detail=new IButton();
- $detail->javascript="viewOperation($jr_id,'".$_REQUEST['PHPSESSID']."',$gDossier)";
+ $detail->javascript="viewOperation($jr_id,$gDossier)";
$detail->name="Detail";
$detail->label="Detail";
$ret.="
".$detail->input()." | ";
@@ -249,7 +249,7 @@ class Anc_Operation
$efface=new IButton();
- $efface->javascript="op_remove('".$_REQUEST['PHPSESSID']."',$gDossier,".$oldgroup.")";
+ $efface->javascript="op_remove('"."$gDossier,".$oldgroup.")";
$efface->name="Efface";
$efface->label="Efface";
$ret.="
".$efface->input()." | ";
@@ -258,7 +258,7 @@ class Anc_Operation
$jr_id=$this->get_jrid();
if ( $jr_id != 0 ){
$detail=new IButton();
- $detail->javascript="viewOperation($jr_id,'".$_REQUEST['PHPSESSID']."',$gDossier)";
+ $detail->javascript="viewOperation($jr_id,'"."$gDossier)";
$detail->name="Detail";
$detail->label="Detail";
$ret.="
".$detail->input()." | ";
diff --git a/include/class_anc_print.php b/include/class_anc_print.php
index c32b67d3d..b8f3ada1b 100644
--- a/include/class_anc_print.php
+++ b/include/class_anc_print.php
@@ -127,11 +127,11 @@ class Anc_Print {
$choose=new IButton();
$choose->name=_("Choix Poste");
$choose->label=_("Recherche");
- $choose->javascript="onClick=search_ca('".$_REQUEST['PHPSESSID']."',".dossier::id().",'from_poste','pa_id')";
+ $choose->javascript="onClick=search_ca(".dossier::id().",'from_poste','pa_id')";
$r.=$choose->input();
$r.=_(" et le poste ").$poste->input("to_poste",$this->to_poste);
- $choose->javascript="onClick=search_ca('".$_REQUEST['PHPSESSID']."',".dossier::id().",'to_poste','pa_id')";
+ $choose->javascript="onClick=search_ca(".dossier::id().",'to_poste','pa_id')";
$r.=$choose->input();
$r.='
'._('Selectionnez le plan qui vous intéresse avant de cliquer sur Recherche').'';
diff --git a/include/class_calendar.php b/include/class_calendar.php
index 890d798ba..bf5b23f0a 100644
--- a/include/class_calendar.php
+++ b/include/class_calendar.php
@@ -96,7 +96,6 @@ class Calendar {
$wMonth->selected=$this->default_periode;
$wMonth->javascript="onchange=change_month(this)";
$wMonth->set_attribute('gDossier',dossier::id());
- $wMonth->set_attribute('phpsessid',$_REQUEST['PHPSESSID']);
$month_year=$wMonth->input().$wMonth->get_js_attr();
ob_start();
diff --git a/include/class_contact.php b/include/class_contact.php
index eedf3c18f..0314837e7 100644
--- a/include/class_contact.php
+++ b/include/class_contact.php
@@ -114,8 +114,7 @@ $back_url=urlencode($_SERVER['REQUEST_URI']);
// add popup for detail
if ( $l_company_name !="")
{
- $l_company_name=sprintf("
%s - %s",
- $_REQUEST['PHPSESSID'],
+ $l_company_name=sprintf("
%s - %s",
$contact->strAttribut(ATTR_DEF_COMPANY),
$contact->strAttribut(ATTR_DEF_COMPANY),
$l_company_name
diff --git a/include/class_document_type.php b/include/class_document_type.php
index 1b56ceca2..f5d6e1a02 100644
--- a/include/class_document_type.php
+++ b/include/class_document_type.php
@@ -63,7 +63,7 @@ class Document_type
$bt=new IButton('X'.$r[$i]['dt_id']);
$bt->label=_('Effacer');
$bt->javascript="if (confirm('"._('Vous confirmez')."')==true) {";
- $bt->javascript.="cat_doc_remove('".$r[$i]['dt_id']."','".$_REQUEST['PHPSESSID']."','".Dossier::id()."');";
+ $bt->javascript.="cat_doc_remove('".$r[$i]['dt_id']."','".Dossier::id()."');";
$bt->javascript.='}';
$tmp['js_remove']=$bt->input();
diff --git a/include/class_html_input.php b/include/class_html_input.php
index 061b8ee6a..5cd793fc8 100755
--- a/include/class_html_input.php
+++ b/include/class_html_input.php
@@ -188,21 +188,18 @@ echo $string => property={'prop':'1','prop2':'2','prop3':'3'};
static function hidden($p_name,$p_value) {
return '
';
}
- static function phpsessid() {
- return self::hidden('phpsessid',$_REQUEST['PHPSESSID']);
- }
+
static function extension() {
return self::hidden('code',$_REQUEST['code']);
}
/*!\brief create a button with a ref
*\param $p_label the text
- *\param $p_value the location of the window, the PHPSESSID is added, but not the gDossier
+ *\param $p_value the location of the window,
*\param $p_name the id of the span
*\return string with htmlcode
*/
static function button_anchor($p_label,$p_value,$p_name="") {
- $str='&PHPSESSID='.$_REQUEST['PHPSESSID'];
$r=sprintf('
%s',
$p_name,
$p_value.$str,
diff --git a/include/class_icard.php b/include/class_icard.php
index 54dbdb490..3b2c67e94 100644
--- a/include/class_icard.php
+++ b/include/class_icard.php
@@ -32,7 +32,7 @@
* - extra contents the type (all, deb or cred, a list of FD_ID between parent. or a SQL clause
* - attribute are the attribute to set (via ajax). The ledger is either a attribute (jrn) or a
* hidden field in the document, if none are set, there is no filter on the ledger
- *\note you must in a hidden field PHPSESSID and the gDossier (dossier::hidden)
+ *\note you must in a hidden field gDossier (dossier::hidden)
*\see ajaxFid
*\see card.js
*\see fid.php
@@ -177,7 +177,7 @@ class ICard extends HtmlInput
$this->value=($p_value==null)?$this->value:$p_value;
if ( $this->readOnly==true) return $this->display();
- $l_sessid=$_REQUEST['PHPSESSID'];
+
$attr=$this->get_js_attr();
@@ -204,7 +204,7 @@ class ICard extends HtmlInput
$div=sprintf('
',
$this->name);
- $query=dossier::get().'&PHPSESSID='.$l_sessid.'&e='.urlencode($this->extra);
+ $query=dossier::get().'&e='.urlencode($this->extra);
$javascript=sprintf('try { new Ajax.Autocompleter("%s","%s_choices","fid_card.php?%s",'.
'{paramName:"FID",minChars:1,indicator:null,'.
diff --git a/include/class_iconcerned.php b/include/class_iconcerned.php
index d9ca66caa..5e89f3768 100644
--- a/include/class_iconcerned.php
+++ b/include/class_iconcerned.php
@@ -34,14 +34,13 @@ require_once('class_html_input.php');
if ( $this->readOnly==true) return $this->display();
$td="";$etd="";
- $l_sessid=$_REQUEST['PHPSESSID'];
+
$r=sprintf("$td
-
+
$etd $td
$etd",
- $l_sessid,
$this->name,
$this->extra,
$this->extra2,
diff --git a/include/class_iposte.php b/include/class_iposte.php
index bf3e208f8..892c8c93c 100644
--- a/include/class_iposte.php
+++ b/include/class_iposte.php
@@ -38,7 +38,6 @@ require_once('function_javascript.php');
* - 3 the button and the text are in the table (TD)
*\note we use the set_attribute for giving parameter to search_account
* attribute are
- * - phpsessid
* - gDossier
* - jrn if set there is a filter on a ledger, in that case, contains the jrn_id (0 for no filter)
* - ipopup ipopup to open
@@ -75,7 +74,6 @@ $text->name('field');
$text->value=$p_res[$i]['pvalue'];
$text->set_attribute('ipopup','ipop_account');
$text->set_attribute('gDossier',Dossier::id());
-$text->set_attribute('phpsessid',$_REQUEST['phpsessid']);
$text->set_attribute('jrn',0);
$text->set_attribute('account','field');
@@ -127,7 +125,7 @@ class IPoste extends HtmlInput
if ( $this->readOnly==true) return $this->display();
//--
if ( ! isset($this->ctrl) ) $this->ctrl='none';
- $l_sessid=$_REQUEST['PHPSESSID'];
+
if ( ! isset($this->javascript)) $this->javascript="";
/* create the text */
diff --git a/include/class_itva.php b/include/class_itva.php
index a2bea38db..d930a2441 100644
--- a/include/class_itva.php
+++ b/include/class_itva.php
@@ -40,10 +40,10 @@ require_once('class_html_input.php');
$this->value,
$this->label,
$this->name);
- $l_sessid=$_REQUEST['PHPSESSID'];
+
$r.=sprintf("
",
- $l_sessid,dossier::id(),$this->name);
+ onClick=\"ShowTva(%d,'%s');\">",
+ dossier::id(),$this->name);
if ( $this->table == 1 ) $r=td($r);
return $r;
diff --git a/include/class_itva_popup.php b/include/class_itva_popup.php
index ed6081b7b..e18d04d8a 100644
--- a/include/class_itva_popup.php
+++ b/include/class_itva_popup.php
@@ -34,9 +34,8 @@ require_once('class_ispan.php');
echo $a->input();
$tva=new ITva_Popup("tva1");
$tva->with_button(true);
- // You must add the attributes gDossier, popup and phpsessid
+ // You must add the attributes gDossier, popup
$tva->set_attribute('popup','popup_tva');
- $tva->set_attribute('phpsessid',$_REQUEST['PHPSESSID']);
$tva->set_attribute('gDossier',dossier::id());
// We can add a label for the code
diff --git a/include/class_lettering.php b/include/class_lettering.php
index da92d187a..32dec1c1b 100644
--- a/include/class_lettering.php
+++ b/include/class_lettering.php
@@ -83,7 +83,6 @@ class Lettering
*@brief save from array
*@param $p_array
@code
- 'phpsessid' => string 'a2c261a2f48b0045a8c28276afd31f5c' (length=32)
'gDossier' => string '13' (length=2)
'letter_j_id' =>
array
diff --git a/include/client.inc.php b/include/client.inc.php
index 113fdb04d..bd7334868 100644
--- a/include/client.inc.php
+++ b/include/client.inc.php
@@ -38,7 +38,6 @@ echo js_include('controls.js');
echo js_include('dragdrop.js');
echo JS_CARD;
echo JS_AJAX_FICHE;
-echo HtmlInput::phpsessid();
echo ICard::ipopup('ipop_newcard');
$ip_cat=new IPopup('ipop_cat');
$ip_cat->title=_('Ajout d\'une catégorie');
diff --git a/include/client_card.inc.php b/include/client_card.inc.php
index e3b34ee06..ebd73d62d 100644
--- a/include/client_card.inc.php
+++ b/include/client_card.inc.php
@@ -104,7 +104,6 @@ if ( $ss_action == 'op') {
if ( $ss_action == 'cn') {
echo '
';
echo dossier::hidden();
- echo HtmlInput::phpsessid();
$f=new fiche($cn,$_REQUEST['f_id']);
$contact=new Contact($cn);
$contact->company=$f->get_quick_code();
diff --git a/include/constant.php b/include/constant.php
index f542f272d..2b1da5fba 100644
--- a/include/constant.php
+++ b/include/constant.php
@@ -163,9 +163,9 @@ define ("JS_COMPUTE_ODS",
"");
define ("JS_SHOW_TVA","