problem with merging with rel600-dynamic-menu
This commit is contained in:
parent
b73d6509ca
commit
03e0464b93
12 changed files with 51 additions and 47 deletions
|
|
@ -21,7 +21,7 @@
|
|||
// Copyright Author Dany De Bontridder ddebontridder@yahoo.fr
|
||||
|
||||
/*!\file
|
||||
* \brief this file respond to an ajax request
|
||||
* \brief this file respond to an ajax request
|
||||
* The parameters are
|
||||
* - gDossier
|
||||
* - $op operation the file has to execute
|
||||
|
|
@ -286,7 +286,7 @@ case 'dl':
|
|||
$r.='<div style="float:left;">';
|
||||
// needed hidden var
|
||||
$r.=dossier::hidden();
|
||||
if ( isset($_REQUEST['p_action'])) $r.=HtmlInput::hidden('p_action',$_REQUEST['p_action']);
|
||||
if ( isset($_REQUEST['ac'])) $r.=HtmlInput::hidden('ac',$_REQUEST['ac']);
|
||||
if ( isset($_REQUEST['sa'])) $r.=HtmlInput::hidden('sa',$_REQUEST['sa']);
|
||||
if ( isset($_REQUEST['acc'])) $r.=HtmlInput::hidden('acc',$_REQUEST['acc']);
|
||||
$r.=HtmlInput::hidden('j_id',$j_id);
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@
|
|||
/* !\file
|
||||
* \brief Main file
|
||||
*/
|
||||
|
||||
require_once 'class_database.php';
|
||||
require_once ('class_dossier.php');
|
||||
require_once('user_common.php');
|
||||
require_once('ac_common.php');
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ if ( $only_plugin != 'P' )
|
|||
$hidden=dossier::hidden();
|
||||
echo '
|
||||
<div style="position:absolute;top:3px;right:30px" class="noprint">
|
||||
<form method="get" action="access.php" style="display:inline">'.
|
||||
<form method="get" action="do.php" style="display:inline">'.
|
||||
$hidden;
|
||||
|
||||
echo HtmlInput::button_anchor(_('Préférence'),'user_pref.php');
|
||||
|
|
@ -72,7 +72,7 @@ else
|
|||
$msg=_('Retour accueil');
|
||||
?>
|
||||
<div style="position:absolute;top:3px;right:30px" class="noprint">
|
||||
<form method="get" action="access.php" style="display:inline">
|
||||
<form method="get" action="do.php" style="display:inline">
|
||||
<?php
|
||||
if ($only_plugin !='P')
|
||||
echo HtmlInput::button_anchor('Retour Accueil','user_login.php');
|
||||
|
|
|
|||
|
|
@ -25,7 +25,6 @@
|
|||
* administration.
|
||||
* The needed variables are
|
||||
* - $cn for the database connection
|
||||
* - $p_action the $_REQUEST['p_action']
|
||||
* - $sub_action sa from suivi courrier but sc from Suivi client, fournisseur...
|
||||
*
|
||||
*/
|
||||
|
|
@ -37,6 +36,7 @@ if( isset($_REQUEST['f_id']))
|
|||
$supl_hidden.=HtmlInput::hidden('f_id',$_REQUEST['f_id']);
|
||||
if( isset($_REQUEST['sb']))
|
||||
$supl_hidden.=HtmlInput::hidden('sb',$_REQUEST['sb']);
|
||||
$supl_hidden.=HtmlInput::hidden('ac',$_REQUEST['ac']);
|
||||
|
||||
/*--------------------------------------------------------------------------- */
|
||||
/* We ask to generate the document */
|
||||
|
|
@ -114,14 +114,14 @@ if ( $sub_action=="update" )
|
|||
echo '<div class="content">';
|
||||
|
||||
// Add hidden tag
|
||||
echo '<form enctype="multipart/form-data" action="commercial.php" method="post"">';
|
||||
echo '<form enctype="multipart/form-data" action="do.php" method="post"">';
|
||||
|
||||
echo dossier::hidden();
|
||||
$act->ag_comment="";
|
||||
if (isset($_REQUEST['qcode_dest'])) $act->qcode_dest=$_REQUEST['qcode_dest'];
|
||||
echo $act->Display('NEW',false,$base,$retour);
|
||||
|
||||
echo '<input type="hidden" name="p_action" value="'.$p_action.'">';
|
||||
echo '<input type="hidden" name="ac" value="'.$_REQUEST['ac'].'">';
|
||||
echo '<input type="hidden" name="sa" value="save_action_st2">';
|
||||
echo '<input type="submit" class="button" name="save_action_st2" value="'._('Enregistrer').'">';
|
||||
echo '<input type="submit" class="button" name="generate" value="'._('Génère le document').'"></p>';
|
||||
|
|
@ -143,12 +143,11 @@ if ( $sub_action=='detail' )
|
|||
$act->ag_id=$ag_id;
|
||||
echo $act->get();
|
||||
$act->ag_comment=Decode($act->ag_comment);
|
||||
echo '<form enctype="multipart/form-data" class="print" action="commercial.php" method="post" >';
|
||||
echo '<form enctype="multipart/form-data" class="print" action="do.php" method="post" >';
|
||||
echo $supl_hidden;
|
||||
echo HtmlInput::hidden('p_action',$_REQUEST['p_action']);
|
||||
echo HtmlInput::hidden('ac',$_REQUEST['ac']);
|
||||
echo dossier::hidden();
|
||||
echo $act->Display('UPD',false,$base,$retour);
|
||||
echo '<input type="hidden" name="p_action" value="'.$p_action.'">';
|
||||
echo '<input type="hidden" name="sa" value="update">';
|
||||
echo HtmlInput::submit("save","Sauve");
|
||||
echo HtmlInput::submit("add_action_here",_("Ajoute une action à celle-ci"));
|
||||
|
|
@ -191,7 +190,7 @@ if ( $sub_action == "add_action" )
|
|||
$act->d_id=0;
|
||||
echo '<div class="content">';
|
||||
// Add hidden tag
|
||||
echo '<form method="post" action="commercial.php" name="form_add" id="form_add" enctype="multipart/form-data" >';
|
||||
echo '<form method="post" action="do.php" name="form_add" id="form_add" enctype="multipart/form-data" >';
|
||||
echo $supl_hidden;
|
||||
echo dossier::hidden();
|
||||
|
||||
|
|
@ -200,7 +199,7 @@ if ( $sub_action == "add_action" )
|
|||
if (isset($_REQUEST['qcode'])) $act->qcode_dest=$_REQUEST['qcode'];
|
||||
echo $act->Display('NEW',false,$base,$retour);
|
||||
|
||||
echo '<input type="hidden" name="p_action" value="'.$p_action.'">';
|
||||
echo '<input type="hidden" name="ac" value="'.$_REQUEST["ac"].'">';
|
||||
echo '<input type="hidden" name="sa" value="save_action_st2">';
|
||||
echo '<input type="hidden" name="save_action_st2" value="save_action_st2">';
|
||||
echo '<input type="submit" class="button" name="save_action_st2" value="'._('Enregistrer').'">';
|
||||
|
|
@ -224,7 +223,7 @@ if ( $sub_action == "save_action_st2" )
|
|||
echo $act->save();
|
||||
$url="?$base&sa=detail&ag_id=".$act->ag_id.'&'.dossier::get();
|
||||
echo '<p><a class="mtitle" href="'.$url.'">'.hb('Action Sauvée : '.$act->ag_ref).'</a></p>';
|
||||
|
||||
|
||||
|
||||
ShowActionList($cn,$base);
|
||||
$url="?$base&sa=detail&ag_id=".$act->ag_id.'&'.dossier::get();
|
||||
|
|
@ -240,7 +239,7 @@ function ShowActionList($cn,$p_base)
|
|||
<legend>
|
||||
<?=_('Recherche avancée')?>
|
||||
</legend>
|
||||
<form method="get" action="commercial.php">
|
||||
<form method="get" action="do.php">
|
||||
<?php
|
||||
echo dossier::hidden();
|
||||
$a=(isset($_GET['query']))?$_GET['query']:"";
|
||||
|
|
@ -257,6 +256,7 @@ function ShowActionList($cn,$p_base)
|
|||
}
|
||||
if( isset($_REQUEST['sb']))
|
||||
$supl_hidden.=HtmlInput::hidden('sb',$_REQUEST['sb']);
|
||||
$supl_hidden.=HtmlInput::hidden('ac',$_REQUEST['ac']);
|
||||
|
||||
$w=new ICard();
|
||||
$w->name='qcode';
|
||||
|
|
@ -284,7 +284,10 @@ function ShowActionList($cn,$p_base)
|
|||
|
||||
$see_all=new ICheckBox('see_all');
|
||||
$my_action=new ICheckBox('all_action');
|
||||
if ( $_REQUEST ['p_action'] != 'suivi_courrier')
|
||||
/**
|
||||
* @todo
|
||||
* if ( $_REQUEST ['p_action'] != 'suivi_courrier')
|
||||
*
|
||||
{
|
||||
$see_all->selected=true;
|
||||
$my_action->selected= true;
|
||||
|
|
@ -294,13 +297,15 @@ function ShowActionList($cn,$p_base)
|
|||
$see_all->selected=(isset($_REQUEST ['see_all']))?true:false;
|
||||
$my_action->selected= (isset($_REQUEST ['all_action']))?true:false;
|
||||
}
|
||||
*
|
||||
*/
|
||||
echo _('les actions fermées aussi:').$see_all->input().'<br/>';
|
||||
|
||||
echo _('affecté à d\'autre:').$my_action->input().'<br/>';
|
||||
?>
|
||||
<input type="submit" class="button" name="submit_query" value="<?=_('recherche')?>">
|
||||
<input type="hidden" name="sa" value="list">
|
||||
<input type="hidden" name="p_action" value="<?=$_REQUEST['p_action']?>">
|
||||
|
||||
<?=$supl_hidden?>
|
||||
</form>
|
||||
|
||||
|
|
@ -309,11 +314,11 @@ function ShowActionList($cn,$p_base)
|
|||
|
||||
<div class="content" >
|
||||
<span style="float:left">
|
||||
<form method="get" action="commercial.php">
|
||||
<form method="get" action="do.php">
|
||||
<?php echo dossier::hidden();
|
||||
?>
|
||||
<input type="submit" class="button" name="submit_query" value="<?=_("Ajout Action")?>">
|
||||
<input type="hidden" name="p_action" value="<?=$_REQUEST['p_action']?>">
|
||||
<input type="hidden" name="ac" value="<?=$_REQUEST['ac']?>">
|
||||
<input type="hidden" name="sa" value="add_action">
|
||||
<?=$supl_hidden?>
|
||||
<input id="bt_search" type="button" class="button" onclick="toggleShow(this,'<?=_('Afficher Recherche')?>','<?=_('Cache Recherche')?>','search_action')" value="">
|
||||
|
|
|
|||
|
|
@ -28,14 +28,15 @@
|
|||
*/
|
||||
require_once('class_contact.php');
|
||||
require_once('class_ipopup.php');
|
||||
$str_dossier=Dossier::get();
|
||||
|
||||
/* $sub_action = sb = detail */
|
||||
/* $cn database conx */
|
||||
$return=new IAction();
|
||||
$return->name='retour';
|
||||
$return->label='Retour';
|
||||
$return->value='?p_action=adm&'.$str_dossier;
|
||||
$root="?p_action=adm&sb=detail&f_id=".$_REQUEST["f_id"].'&'.$str_dossier;
|
||||
$return->value='?ac='.$_REQUEST['ac'].'&'.$str_dossier;
|
||||
$root='?ac='.$_REQUEST['ac']."&sb=detail&f_id=".$_REQUEST["f_id"].'&'.$str_dossier;
|
||||
$ss_action=( isset ($_REQUEST['sc'] ))? $_REQUEST['sc']: '';
|
||||
switch ($ss_action)
|
||||
{
|
||||
|
|
@ -70,7 +71,7 @@ echo ShowItem(array(
|
|||
array($root.'&sc=op',_('Opérations'),_('Toutes les opérations'),4),
|
||||
array($root.'&sc=bal',_('Balance'),_('Balance du fournisseur'),7),
|
||||
array($root.'&sc=let',_('Lettrage'),_('Opérations & Lettrages'),6),
|
||||
array('?p_action=adm&'.dossier::get(),_('Retour liste'),_('Retour à la liste des administration'),5)
|
||||
array('?ac='.$_REQUEST['ac']."&".dossier::get(),_('Retour liste'),_('Retour à la liste des administration'),5)
|
||||
),
|
||||
'H',"mtitle","mtitle",$def,' ');
|
||||
echo '</div>';
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@ class Action
|
|||
*
|
||||
* \param $p_view if set to true the form will be in readonly mode (value: true or false)
|
||||
* \param $p_gen true we show the tag for generating a doc (value : true or false)
|
||||
*\param $p_base is the p_action parameter
|
||||
*\param $p_base is the ac parameter
|
||||
*\param $retour is the html code for the return button
|
||||
* \note update the reference number or the document type is not allowed
|
||||
*
|
||||
|
|
@ -296,7 +296,7 @@ class Action
|
|||
if( isset($_REQUEST['sb']))
|
||||
$supl_hidden.='&sb='.$_REQUEST['sb'];
|
||||
|
||||
$lag_ref_ag_id='<a class="mtitle" href="?p_action='.$_REQUEST['p_action'].$supl_hidden.'&sa=detail&ag_id='.
|
||||
$lag_ref_ag_id='<a class="mtitle" href="?ac='.$_REQUEST['ac'].$supl_hidden.'&sa=detail&ag_id='.
|
||||
$this->ag_ref_ag_id.'&'.dossier::get().'">'.
|
||||
$this->db->get_value("select ag_ref from action_gestion where ag_id=$1",array($this->ag_ref_ag_id)).
|
||||
"</A>";
|
||||
|
|
@ -643,7 +643,7 @@ class Action
|
|||
}
|
||||
/*! myList($p_filter="")
|
||||
* \brief Show list of action by default if sorted on date
|
||||
*\param $p_base base url with p_action...
|
||||
*\param $p_base base url with ac...
|
||||
* \param $p_filter filters on the document_type
|
||||
* \param $p_search must a valid sql command ( ex 'and ag_title like upper('%hjkh%'))
|
||||
* \return string containing html code
|
||||
|
|
@ -821,7 +821,7 @@ class Action
|
|||
//show the sub_action
|
||||
foreach ($a_row as $row )
|
||||
{
|
||||
$href='<A class="document" HREF="commercial.php?'.$p_base.'&sa=detail&ag_id='.$row['ag_id'].'&'.$str_dossier.'">';
|
||||
$href='<A class="document" HREF="do.php?'.$p_base.'&sa=detail&ag_id='.$row['ag_id'].'&'.$str_dossier.'&ac='.$_REQUEST['ac'].'">';
|
||||
$i++;
|
||||
$tr=($i%2==0)?'even':'odd';
|
||||
if ($row['ag_priority'] < 2) $tr='priority1';
|
||||
|
|
@ -857,7 +857,7 @@ class Action
|
|||
{
|
||||
foreach ($retSql as $line)
|
||||
{
|
||||
$ref.='<A href="commercial.php?'.$p_base.'&query='.$line['ag_ref'].'&'.$str_dossier.'">'.
|
||||
$ref.='<A href="do.php?'.$p_base.'&query='.$line['ag_ref'].'&'.$str_dossier.'">'.
|
||||
$line['ag_ref']."<A>";
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1573,8 +1573,8 @@ class Fiche
|
|||
if ( $p_amount && $amount['debit']==0 && $amount['credit'] == 0 && $amount['solde'] == 0 ) continue;
|
||||
|
||||
$r.="<TR $odd>";
|
||||
$e=sprintf('<A HREF="%s?p_action=%s&sb=detail&f_id=%d&%s&sc=sv" title="Détail"> ',
|
||||
$script,$p_action,$tiers->id,$str_dossier);
|
||||
$e=sprintf('<A HREF="%s?ac=%s&sb=detail&f_id=%d&%s&sc=sv" title="Détail"> ',
|
||||
$script,$_REQUEST['ac'],$tiers->id,$str_dossier);
|
||||
|
||||
$r.="<TD> $e".$tiers->strAttribut(ATTR_DEF_QUICKCODE)."</A></TD>";
|
||||
$r.="<TD>".h($tiers->strAttribut(ATTR_DEF_NAME))."</TD>";
|
||||
|
|
|
|||
|
|
@ -32,8 +32,9 @@ require_once('class_ipopup.php');
|
|||
|
||||
/* $sub_action = sb = detail */
|
||||
/* $cn database conx */
|
||||
$str_dossier=Dossier::get();
|
||||
$return= HtmlInput::button_anchor('Retour','?p_action=client&'.$str_dossier);
|
||||
$root="?p_action=client&sb=detail&f_id=".$_REQUEST["f_id"].'&'.$str_dossier;
|
||||
$root="?p_action=client&sb=detail&f_id=".$_REQUEST["f_id"].'&'.$str_dossier."&ac=".$_REQUEST["ac"];
|
||||
$ss_action=( isset ($_REQUEST['sc'] ))? $_REQUEST['sc']: '';
|
||||
switch ($ss_action)
|
||||
{
|
||||
|
|
@ -68,7 +69,7 @@ echo ShowItem(array(
|
|||
array($root.'&sc=op',_('Opérations'),_('Toutes les opérations'),4),
|
||||
array($root.'&sc=bal',_('Balance'),_('Balance du client'),7),
|
||||
array($root.'&sc=let',_('Lettrage'),_('Opérations & Lettrages'),6),
|
||||
array('?p_action=client&'.dossier::get(),_('Retour liste'),_('Retour à la liste des clients'),5)
|
||||
array('?ac='.$_REQUEST['ac'].'&'.dossier::get(),_('Retour liste'),_('Retour à la liste des clients'),5)
|
||||
),
|
||||
'H',"mtitle","mtitle",$def,'');
|
||||
echo '</div>';
|
||||
|
|
|
|||
|
|
@ -22,11 +22,10 @@
|
|||
|
||||
/*!\file
|
||||
* \brief this file is used for the follow up of the customer (mail, meeting...)
|
||||
* - p_action = adm
|
||||
* - sb = detail
|
||||
* - sb = detail
|
||||
* - sc = sv
|
||||
* - sd = this parameter is used here
|
||||
* - $cn = database connection
|
||||
* - $cn = database connection
|
||||
*/
|
||||
require_once('class_action.php');
|
||||
$g_user->can_request(GECOUR);
|
||||
|
|
@ -38,8 +37,8 @@ $g_user->can_request(GECOUR);
|
|||
*/
|
||||
$sub_action=(isset($_REQUEST['sa']))?$_REQUEST['sa']:"list";
|
||||
$ag_id=(isset($_REQUEST['ag_id']))?$_REQUEST['ag_id']:0;
|
||||
$p_action=$_REQUEST['p_action'];
|
||||
$base="p_action=$p_action&sc=sv&sb=detail&f_id=".$_REQUEST['f_id'];
|
||||
$ac=$_REQUEST['ac'];
|
||||
$base="ac=ac&sc=sv&sb=detail&f_id=".$_REQUEST['f_id'];
|
||||
$retour=HtmlInput::button_anchor('Retour','?'.dossier::get().'&'.$base);
|
||||
$fiche=new Fiche($cn,$_REQUEST['f_id']);
|
||||
|
||||
|
|
|
|||
|
|
@ -23,13 +23,12 @@
|
|||
/*!\file
|
||||
* \brief this file is used for the follow up of the customer (mail, meeting...)
|
||||
* - p_action = client
|
||||
* - sb = detail
|
||||
* - sb = detail
|
||||
* - sc = sv
|
||||
* - sd = this parameter is used here
|
||||
* - $cn = database connection
|
||||
* - $cn = database connection
|
||||
*/
|
||||
require_once('class_action.php');
|
||||
$User->can_request(GECOUR);
|
||||
load_all_script();
|
||||
|
||||
/**
|
||||
|
|
@ -39,8 +38,8 @@ load_all_script();
|
|||
*/
|
||||
$sub_action=(isset($_REQUEST['sa']))?$_REQUEST['sa']:"list";
|
||||
$ag_id=(isset($_REQUEST['ag_id']))?$_REQUEST['ag_id']:0;
|
||||
$p_action=$_REQUEST['p_action'];
|
||||
$base="p_action=$p_action&sc=sv&sb=detail&f_id=".$_REQUEST['f_id'];
|
||||
//$p_action=$_REQUEST['p_action'];
|
||||
$base="ac=".$_REQUEST['ac']."&sc=sv&sb=detail&f_id=".$_REQUEST['f_id'];
|
||||
$retour=HtmlInput::button_anchor('Retour','?'.dossier::get().'&'.$base);
|
||||
$fiche=new Fiche($cn,$_REQUEST['f_id']);
|
||||
|
||||
|
|
|
|||
|
|
@ -38,8 +38,7 @@ $g_user->can_request(GECOUR);
|
|||
*/
|
||||
$sub_action=(isset($_REQUEST['sa']))?$_REQUEST['sa']:"list";
|
||||
$ag_id=(isset($_REQUEST['ag_id']))?$_REQUEST['ag_id']:0;
|
||||
$p_action=$_REQUEST['p_action'];
|
||||
$base="p_action=$p_action&sc=sv&sb=detail&f_id=".$_REQUEST['f_id'];
|
||||
$base="ac=".$_REQUEST['ac']."&sc=sv&sb=detail&f_id=".$_REQUEST['f_id'];
|
||||
$retour=HtmlInput::button_anchor('Retour','?'.dossier::get().'&'.$base);
|
||||
$fiche=new Fiche($cn,$_REQUEST['f_id']);
|
||||
|
||||
|
|
|
|||
|
|
@ -28,14 +28,14 @@
|
|||
*/
|
||||
require_once('class_contact.php');
|
||||
|
||||
|
||||
$str_dossier=Dossier::get();
|
||||
/* $sub_action = sb = detail */
|
||||
/* $cn database conx */
|
||||
$return=new IAction();
|
||||
$return->name='retour';
|
||||
$return->label='Retour';
|
||||
$return->value='?p_action=supplier&'.$str_dossier;
|
||||
$root="?p_action=supplier&sb=detail&f_id=".$_REQUEST["f_id"].'&'.$str_dossier;
|
||||
$return->value='?ac='.$_REQUEST['ac'].'&'.$str_dossier;
|
||||
$root='?ac='.$_REQUEST['ac']."&sb=detail&f_id=".$_REQUEST["f_id"].'&'.$str_dossier;
|
||||
$ss_action=( isset ($_REQUEST['sc'] ))? $_REQUEST['sc']: '';
|
||||
switch ($ss_action)
|
||||
{
|
||||
|
|
@ -71,7 +71,7 @@ echo ShowItem(array(
|
|||
array($root.'&sc=op',_('Opérations'),_('Toutes les opérations'),4),
|
||||
array($root.'&sc=bal',_('Balance'),_('Balance du fournisseur'),7),
|
||||
array($root.'&sc=let',_('Lettrage'),_('Opérations & Lettrages'),6),
|
||||
array('?p_action=supplier&'.dossier::get(),_('Retour liste'),_('Retour à la liste des fournisseurs'),5)
|
||||
array('?ac='.$_REQUEST['ac'].'&'.dossier::get(),_('Retour liste'),_('Retour à la liste des fournisseurs'),5)
|
||||
),
|
||||
'H',"mtitle","mtitle",$def,' ');
|
||||
echo '</div>';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue