Main Page | Namespace List | Class Hierarchy | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

action.inc.php File Reference

Page who manage the different action (meeting, letter). More...

Go to the source code of this file.

Functions

 ShowActionList ($cn, $retour, $h_url)
 Show the list of action, this code should be common to several webpage. But for the moment we keep like that because it is used only by this file.

Variables

 $sub_action = (isset($_REQUEST['sa']))?$_REQUEST['sa']:""
 $retour = ""
 $h_url = ""
 $act = new action($cn)
$act ag_id = $_POST['ag_id']
$act ag_comment = $_POST['ag_comment']
$act ag_timestamp = $_POST['ag_timestamp']
$act d_state = $_POST['d_state']
$act dt_id = (isset($_POST['dt_id']))?$_POST['dt_id']:0
 class for the table document_type pk document_type
$act qcode_exp = $_POST['qcode_exp']
$act qcode_dest = $_POST['qcode_dest']
$act ag_title = $_POST['ag_title']
$act d_id = (isset($_POST['d_id']))?$_POST['d_id']:0
$act ag_ref_ag_id = $_POST['ag_id']
$act f_id_dest = (isset($_POST['f_id_dest']))?$_POST['f_id_dest']:0
$act f_id_exp = (isset($_POST['f_id_exp']))?$_POST['f_id_exp']:0
$act ag_ref = ""
 $upload = new widget("file")
$upload name = "file_upload"
$upload value = ""
$act md_id = (isset($_POST['gen_doc']))?$_POST['gen_doc']:0
$act gen = isset($_POST['p_gen'])?'on':'off'
$act ag_ref_ag_idid = $_POST['ag_ref_ag_id']
 $d_id = (isset($_POST['d_id']))?$_POST['d_id']:0


Detailed Description

Page who manage the different action (meeting, letter).

Definition in file action.inc.php.


Function Documentation

ShowActionList cn,
retour,
h_url
 

Show the list of action, this code should be common to several webpage. But for the moment we keep like that because it is used only by this file.

Parameters:
$cn database connection
$retour button for going back
$h_url calling url
Note:
The field 'recherche' is about a part of the title or a ref. number

Definition at line 39 of file action.inc.php.

References $a, $act, $fiche, $h_url, $qcode, $r, $retour, $sp, $w, FormatString(), name, and value.

00040 {
00041   // show the search menu
00042   ?>
00043 <div>
00044 <span style="position:float;float:left">
00045 <form method="get" action="commercial.php">
00046 <?
00047    $a=(isset($_GET['query']))?$_GET['query']:"";
00048    printf ('<span>Titre ou référence: <input type="text" name="query" value="%s"></span>',
00049            $a);
00050    $qcode=(isset($_GET['qcode_query']))?$_GET['qcode_query']:"";
00051    echo JS_SEARCH_CARD;
00052    $w=new widget('js_search_only');
00053    $w->name='qcode_query';
00054    $w->value=$qcode;
00055    $w->label='Quick Code';
00056    $w->extra='4,9,14,16,8';
00057    $w->table=0;
00058    $sp= new widget("span");
00059 
00060    echo $sp->IOValue("qcode_query_label","",$qcode);
00061    echo $w->IOValue();
00062 ?>
00063 <input type="submit" name="submit_query" value="recherche">
00064 <input type="hidden" name="sa" value="list">
00065 <input type="hidden" name="p_action" value="suivi_courrier">
00066 </form>
00067 </span>
00068 
00069 <?
00070 ?>
00071 <form  style="position:float;float:left" method="get" action="commercial.php">
00072 <input type="submit" name="submit_query" value="Ajout Action">
00073 <input type="hidden" name="p_action" value="suivi_courrier">
00074 <input type="hidden" name="sa" value="add_action">
00075 <!--    <input type="hidden" name="qcode_dest" value=<? echo '"'.$qcode_dest.'"';?> -->
00076    <? // if called from another menu, url is set
00077    echo $h_url;
00078    echo $retour; ?>
00079 </form>
00080 </div>
00081 <div class="u_content">
00082 
00083 <?
00084     // show the  action in 
00085     $act=new action($cn);
00089    $query="";
00090 
00091    if ( isset($_REQUEST['query']) )
00092    {
00093 
00094      // if a query is request build the sql stmt
00095      $query="and (ag_title ~* '".FormatString($_REQUEST['query'])."' ".
00096        "or ag_ref ='".trim(FormatString($_REQUEST['query']))."'".
00097        ")"; 
00098    }
00099  
00100    $str="";
00101    if ( isset($_GET['qcode_query'] )) 
00102      {
00103 
00104         // verify that qcode is not empty
00105         if ( strlen(trim($_REQUEST['qcode_query'] )) != 0 )
00106          { 
00107 
00108            $fiche=new Fiche($cn);
00109            $fiche->GetByQCode($_REQUEST['qcode_query']);
00110            $str=" and (f_id_exp= ".$fiche->id." or ".
00111              "f_id_dest=".$fiche->id.")";
00112 
00113          }
00114      }
00115 
00116    $r=$act->myList(ACTION,$query.$str);
00117    echo $r;
00118  }


Variable Documentation

$act = new action($cn)
 

Definition at line 157 of file action.inc.php.

Referenced by Document::Replace(), and ShowActionList().

$d_id = (isset($_POST['d_id']))?$_POST['d_id']:0
 

Definition at line 364 of file action.inc.php.

Referenced by action::Display(), and action::SaveStage3().

$h_url = ""
 

Definition at line 140 of file action.inc.php.

Referenced by action::Confirm(), and ShowActionList().

$retour = ""
 

Definition at line 139 of file action.inc.php.

Referenced by action::Confirm(), and ShowActionList().

$sub_action = (isset($_REQUEST['sa']))?$_REQUEST['sa']:""
 

Definition at line 125 of file action.inc.php.

$upload = new widget("file")
 

Definition at line 239 of file action.inc.php.

Referenced by action::SaveStage2().

act ag_comment = $_POST['ag_comment']
 

Definition at line 160 of file action.inc.php.

Referenced by action::Confirm(), action::get(), action::SaveStage2(), and action::Update().

act ag_id = $_POST['ag_id']
 

Definition at line 159 of file action.inc.php.

Referenced by Document::blank(), action::Display(), Document::get(), Document::Replace(), action::SaveStage2(), action::SaveStage3(), and action::Update().

act ag_ref = ""
 

Definition at line 200 of file action.inc.php.

Referenced by action::Display(), action::get(), action::myList(), and action::SaveStage2().

act ag_ref_ag_id = $_POST['ag_id']
 

Definition at line 182 of file action.inc.php.

Referenced by action::Display(), action::get(), and action::myList().

$act ag_ref_ag_idid = $_POST['ag_ref_ag_id']
 

Definition at line 355 of file action.inc.php.

act ag_timestamp = $_POST['ag_timestamp']
 

Definition at line 161 of file action.inc.php.

Referenced by action::Confirm(), action::Display(), and action::get().

act ag_title = $_POST['ag_title']
 

Definition at line 166 of file action.inc.php.

Referenced by action::get(), action::myList(), and action::SaveStage2().

act d_id = (isset($_POST['d_id']))?$_POST['d_id']:0
 

Definition at line 167 of file action.inc.php.

Referenced by Document::blank(), action::Display(), Document::Document(), action::get(), action::myList(), Document::remove(), Document::SaveGenerated(), action::SaveStage3(), and action::Update().

act d_state = $_POST['d_state']
 

Definition at line 162 of file action.inc.php.

Referenced by action::Confirm(), action::Display(), Document::get(), action::get(), action::SaveStage2(), and action::Update().

act dt_id = (isset($_POST['dt_id']))?$_POST['dt_id']:0
 

class for the table document_type pk document_type

Definition at line 163 of file action.inc.php.

Referenced by action::Confirm(), action::Display(), Document_type::document_type(), Document_modele::form(), Document_type::get(), action::get(), action::SaveStage2(), action::SaveStage3(), and action::Update().

act f_id_dest = (isset($_POST['f_id_dest']))?$_POST['f_id_dest']:0
 

Definition at line 190 of file action.inc.php.

Referenced by action::Confirm(), action::Display(), action::get(), action::myList(), and action::Update().

act f_id_exp = (isset($_POST['f_id_exp']))?$_POST['f_id_exp']:0
 

Definition at line 191 of file action.inc.php.

Referenced by action::Confirm(), action::Display(), action::get(), action::myList(), and action::Update().

$act gen = isset($_POST['p_gen'])?'on':'off'
 

Definition at line 340 of file action.inc.php.

doc md_id = (isset($_POST['gen_doc']))?$_POST['gen_doc']:0
 

Definition at line 338 of file action.inc.php.

Referenced by Document_modele::Document_modele(), Document_modele::myList(), Document_modele::Save(), and action::SaveStage2().

w name = "file_upload"
 

Definition at line 240 of file action.inc.php.

Referenced by ChangeStock(), cl_user::Check(), cl_user::cl_user(), action::Confirm(), ConfirmTransfert(), EncodeFiche(), EncodeForm(), EncodeModele(), form_verify_input(), FormAchView(), FormFin(), FormODS(), FormVenteView(), Supplier::GetFromPoste(), Customer::GetFromPoste(), cl_user::GetGlobalPref(), rapport::GetName(), poste::GetName(), jrn::GetName(), fiche::insert(), cl_user::insert_default_global_pref(), widget::IOValue(), jrn_navigation_bar(), MakeListingVat(), new_fiche(), Cpdf::o_font(), Cpdf::openFont(), rapport::rapport(), RecordJrn(), Document_modele::Save(), save_upload_document(), action::SaveStage2(), Cpdf::selectFont(), ShowActionList(), ShowBox(), ShowFormTransfert(), contact::Summary(), u_ShowMenuRecherche(), fiche::update(), UpdateJrn(), Document::Upload(), Customer::VatListing(), VerifData(), ViewFiche(), and ViewImp().

act qcode_dest = $_POST['qcode_dest']
 

Definition at line 165 of file action.inc.php.

Referenced by action::Display(), action::get(), and Document::Replace().

act qcode_exp = $_POST['qcode_exp']
 

Definition at line 164 of file action.inc.php.

Referenced by action::Display(), and action::get().

x value = ""
 

Definition at line 241 of file action.inc.php.

Referenced by ChangeStock(), action::Confirm(), ConfirmTransfert(), widget::debug(), fiche_def_ref::Display(), DisplayDetailModele(), EncodeFiche(), EncodeForm(), Cezpdf::ezTable(), FormFin(), FormODS(), FormVenteView(), jrn::GetDefLine(), fiche::insert(), cl_user::insert_default_global_pref(), widget::IOValue(), jrn_navigation_bar(), fiche_def_ref::LoadAll(), make_array(), new_fiche(), Cpdf::o_fontDescriptor(), Document::ParseDocument(), RecordJrn(), action::SaveStage2(), ShowActionList(), ShowBox(), contact::Summary(), u_ShowMenuRecherche(), fiche::update(), cl_user::update_global_pref(), UpdateJrn(), ViewFiche(), ViewImp(), and widget::widget().