diff --git a/doc/developper/account_repository.html b/doc/developper/account_repository.html index b2cb80a1a..fe59aa39c 100644 --- a/doc/developper/account_repository.html +++ b/doc/developper/account_repository.html @@ -111,7 +111,7 @@
-
Dumped on 2006-06-24
Dumped on 2006-06-25
Dumped on 2006-06-24
Dumped on 2006-06-25
Contains about invoice for customer
+| + + | qs_id | integer |
+ PRIMARY KEY
+
+
+
+
DEFAULT nextval('s_quantity'::text)
@@ -4993,84 +5050,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
- - Index - - Schema public - - -- Table: - user_pref -- - - -
Language: PLPGSQL--- account_add (p_id tmp_pcmn.pcm_val%type,p_name varchar) --- parameter --- p_id id of the account --- name account's name --- purpose insert a new account if it doesn't exist yet declare nParent tmp_pcmn.pcm_val_parent%type; nCount integer; begin select count(*) into nCount from tmp_pcmn where pcm_val=p_id; - if nCount != 0 then + if nCount = 0 then nParent=account_parent(p_id); insert into tmp_pcmn (pcm_val,pcm_lib,pcm_val_parent) values (p_id, p_name,nParent); @@ -7275,9 +7249,6 @@ end ; |
+Referenced by AddFiche(), AddForm(), AddModele(), DeleteRapt(), ExecSql(), form_verify_input(), FormAchInput(), FormAchView(), FormatString(), FormFin(), FormODS(), FormVenInput(), FormVenteView(), GetFicheJrn(), getPeriodeName(), GetTvaPoste(), Imp(), InsertRapt(), isValid(), Remove(), Document_modele::Save(), save_upload_document(), fiche::update(), UpdateFiche(), UpdateJrn(), UpdateModele(), VerifData(), and VerifyOperationDate().
@@ -203,9 +204,9 @@ warns
-Definition at line 268 of file ac_common.php. +Definition at line 269 of file ac_common.php.
-Referenced by GetFicheJrn(), and IsFicheOfJrn().
@@ -238,7 +239,7 @@ call cmpDate
-Definition at line 119 of file ac_common.php. +Definition at line 120 of file ac_common.php.
References isDate().
-Definition at line 207 of file ac_common.php. +Definition at line 208 of file ac_common.php.
References echo_error().
-Referenced by AddFiche(), AddForm(), AddModele(), action::Confirm(), fiche::CountByDef(), action::Display(), fiche::GetByQCode(), fiche::insert(), InsertJrn(), ListJrn(), RecordFin(), RecordInvoice(), RecordSell(), Remove(), parm_code::Save(), Document_modele::Save(), action::SaveStage2(), Supplier::Summary(), Customer::Summary(), contact::Summary(), Admin::Summary(), fiche::update(), UpdateComment(), UpdateFiche(), UpdateForm(), Own::UpdateRow(), and ViewJrn(). +Referenced by AddFiche(), AddForm(), AddModele(), action::Confirm(), fiche::CountByDef(), action::Display(), fiche::GetByQCode(), fiche::insert(), InsertJrn(), ListJrn(), RecordFin(), RecordInvoice(), RecordSell(), Remove(), parm_code::Save(), Document_modele::Save(), action::SaveStage2(), ShowActionList(), Supplier::Summary(), Customer::Summary(), contact::Summary(), Admin::Summary(), fiche::update(), UpdateComment(), UpdateFiche(), UpdateForm(), Own::UpdateRow(), and ViewJrn().
@@ -333,9 +334,9 @@ Return the period corresponding to the date.
-Definition at line 354 of file ac_common.php. +Definition at line 355 of file ac_common.php.
-References $a, and ExecSql(). +References $a, and ExecSql().
@@ -383,9 +384,9 @@ Return the period corresponding to the date.
-Definition at line 334 of file ac_common.php. +Definition at line 335 of file ac_common.php.
-References $a, and ExecSql(). +References $a, and ExecSql().
Referenced by ParseFormula(). @@ -442,9 +443,9 @@ Show the periode which found thanks its id.
-Definition at line 314 of file ac_common.php. +Definition at line 315 of file ac_common.php.
-References $a, $ret, and echo_error(). +References $a, $ret, and echo_error().
@@ -476,7 +477,7 @@ Button logout.
-Definition at line 181 of file ac_common.php. +Definition at line 182 of file ac_common.php.
@@ -531,9 +532,9 @@ Default page header for each page.
-Definition at line 132 of file ac_common.php. +Definition at line 133 of file ac_common.php.
-References $cn, $Res, $style, DbConnect(), and ExecSql(). +References $cn, $Res, $style, DbConnect(), and ExecSql().
@@ -564,7 +565,7 @@ end tag
-Definition at line 169 of file ac_common.php. +Definition at line 170 of file ac_common.php.
@@ -608,7 +609,9 @@ Verifie qu'une date est bien format
Definition at line 97 of file ac_common.php.
-Referenced by cmpDate(), action::Confirm(), form_verify_input(), formatDate(), ListJrn(), VerifData(), VerifyOperationDate(), and ViewJrn(). +References echo_debug(). +
+Referenced by cmpDate(), action::Confirm(), form_verify_input(), formatDate(), ListJrn(), VerifData(), VerifyOperationDate(), and ViewJrn().
@@ -636,11 +639,21 @@ Referenced by cmpDate()<
+check if the argument is a number +
+
| $p_int | number to test |
Definition at line 76 of file ac_common.php.
-Referenced by AddFiche(), AddModele(), ComputeTotalVat(), ComputeVat(), DeleteRapt(), form_verify_input(), FormAchInput(), FormAchView(), FormODS(), FormVenInput(), FormVenteView(), fiche::insert(), InsertRapt(), RecordFin(), RecordInvoice(), RecordODS(), RecordSell(), Remove(), Document_modele::Save(), and fiche::update().
@@ -694,11 +707,11 @@ make a array with the sql
-Definition at line 281 of file ac_common.php. +Definition at line 282 of file ac_common.php.
-References $a, $i, $r, $row, label, and value. +References $a, $i, $r, $row, label, and value.
-Referenced by action::Confirm(), action::Display(), Document_modele::form(), FormAchInput(), FormVenInput(), FormVenteView(), and ShowFormTransfert(). +Referenced by action::Confirm(), action::Display(), Document_modele::form(), FormAchInput(), FormVenInput(), FormVenteView(), and ShowFormTransfert().
@@ -730,9 +743,9 @@ Echo no access and stop.
-Definition at line 191 of file ac_common.php. +Definition at line 192 of file ac_common.php.
-References exit. +References exit.
@@ -797,14 +810,14 @@ store the string which print
/*
-Definition at line 227 of file ac_common.php. +Definition at line 228 of file ac_common.php.
-References $ret, and $title. +References $ret, and $title.
-Referenced by MenuAdmin(), ShowJrn(), ShowMenuAdvanced(), ShowMenuCompta(), ShowMenuDocument(), and ShowMenuParam(). +Referenced by MenuAdmin(), ShowJrn(), ShowMenuAdvanced(), ShowMenuCompta(), ShowMenuDocument(), and ShowMenuParam(). -
1.4.4
diff --git a/doc/developper/html/action_8inc_8php-source.html b/doc/developper/html/action_8inc_8php-source.html
index ed9065de7..4dfe8b326 100644
--- a/doc/developper/html/action_8inc_8php-source.html
+++ b/doc/developper/html/action_8inc_8php-source.html
@@ -39,229 +39,253 @@
00042 <span>
00043 <form method="get" action="commercial.php">
00044 <?
-00045 $a=(isset($_GET['query']))?$_GET['query']:"";
-00046 printf ('<span>Titre : <input type="text" name="query" value="%s"></span>',
+00045 $a=(isset($_GET['query']))?$_GET['query']:"";
+00046 printf ('<span>Titre ou référence: <input type="text" name="query" value="%s"></span>',
00047 $a);
-00048 $qcode=(isset($_GET['qcode']))?$_GET['qcode']:"";
-00049 printf ('<span>Tiers QuickCode: <input type="text" name="qcode" value="%s"></span>',
-00050 $qcode);
-00051
-00052 ?>
-00053 <input type="submit" name="submit_query" value="recherche">
-00054 <input type="hidden" name="sa" value="list">
-00055 <input type="hidden" name="p_action" value="suivi_courrier">
-00056 </form>
-00057 </span>
-00058
-00059 <?
-00060 ?>
-00061 <span>
-00062 <form method="get" action="commercial.php">
-00063 <input type="submit" name="submit_query" value="Ajout Action">
-00064 <input type="hidden" name="p_action" value="suivi_courrier">
-00065 <input type="hidden" name="sa" value="add_action">
-00066 <input type="hidden" name="tiers" value=<? echo '"'.$qcode.'"';?>>
-00067 <? // if called from another menu, url is set
-00068 echo $h_url;
-00069 echo $retour; ?>
-00070 </form>
-00071
-00072
-00073 </span>
-00074 <?
-00075 // show the action in
-00076 $act=new action($cn);
-00077
-00078 $query=(isset ($_REQUEST['query']))?"and ag_title ~* '".FormatString($_REQUEST['query'])."'":"";
-00079 $str="";
-00080 if ( isset($_REQUEST['qcode'] ))
-00081 {
-00082 // verify that qcode is not empty
-00083 if ( strlen(trim($_REQUEST['qcode'] )) != 0 )
-00084 {
-00085 $fiche=new Fiche($cn);
-00086 $fiche->GetByQCode($_REQUEST['qcode']);
-00087 $str=" and f_id= ".$fiche->id;
-00088 }
-00089 }
-00090
-00091 $r=$act->myList(ACTION,$query.$str);
-00092 echo $r;
-00093 }
-00094
-00095 // We need a sub action (3rd level)
-00096 // show a list of already taken action
-00097 // propose to add one
-00098 // permit also a search
-00099 // show detail
-00100 $sub_action=(isset($_REQUEST['sa']))?$_REQUEST['sa']:"";
-00101 var_dump($_REQUEST);echo '<hr>';
-00102 if ( $sub_action == "" ) $sub_action="list";
+00048 $qcode=(isset($_GET['qcode']))?$_GET['qcode']:"";
+00049 echo JS_SEARCH_CARD;
+00050 $w=new widget('js_search_only');
+00051 $w->name='qcode';
+00052 $w->value=$qcode;
+00053 $w->label='Quick Code';
+00054 $w->extra='4,9,14,16,8';
+00055 $w->table=0;
+00056 $sp= new widget("span");
+00057 echo $sp->IOValue("qcode_label","",$qcode);
+00058 echo $w->IOValue();
+00059
+00060 // printf ('<span>Tiers QuickCode: <input type="text" name="qcode" value="%s"></span>',
+00061 // $qcode);
+00062
+00063 ?>
+00064 <input type="submit" name="submit_query" value="recherche">
+00065 <input type="hidden" name="sa" value="list">
+00066 <input type="hidden" name="p_action" value="suivi_courrier">
+00067 </form>
+00068 </span>
+00069
+00070 <?
+00071 ?>
+00072 <span>
+00073 <form method="get" action="commercial.php">
+00074 <input type="submit" name="submit_query" value="Ajout Action">
+00075 <input type="hidden" name="p_action" value="suivi_courrier">
+00076 <input type="hidden" name="sa" value="add_action">
+00077 <input type="hidden" name="tiers" value=<? echo '"'.$qcode.'"';?>>
+00078 <? // if called from another menu, url is set
+00079 echo $h_url;
+00080 echo $retour; ?>
+00081 </form>
+00082
+00083
+00084 </span>
+00085 <?
+00086 // show the action in
+00087 $act=new action($cn);
+00088
+00089 $query=(isset ($_REQUEST['query']))?"and (ag_title ~* '".FormatString($_REQUEST['query'])."' or ag_ref ='".trim(FormatString($_REQUEST['query']))."')":"";
+00090 $str="";
+00091 if ( isset($_REQUEST['qcode'] ))
+00092 {
+00093
+00094 // verify that qcode is not empty
+00095 if ( strlen(trim($_REQUEST['qcode'] )) != 0 )
+00096 {
+00097
+00098 $fiche=new Fiche($cn);
+00099 $fiche->GetByQCode($_REQUEST['qcode']);
+00100 $str=" and f_id= ".$fiche->id;
+00101 }
+00102 }
00103
-00104 // if correction is asked go to directly to add_action
-00105 if (isset($_POST['corr'] ))
-00106 $sub_action="add_action";
+00104 $r=$act->myList(ACTION,$query.$str);
+00105 echo $r;
+00106 }
00107
-00108 // if this page is called from another menu (customer, supplier,...)
-00109 // a button back is added
-00110 // TODO add function for generating url, hidden tags...
-00111 $retour="";
-00112 $h_url="";
-00113
-00114 if ( isset ($_REQUEST['url']))
-00115 {
-00116 $retour=sprintf('<A HREF="%s"><input type="button" value="Retour"></A>',urldecode($_REQUEST['url']));
-00117 $h_url=sprintf('<input type="hidden" name="url" value="%s">',urldecode($_REQUEST['url']));
-00118 }
-00119
-00121 // Show a list of the action
-00122 if ( $sub_action == "list" )
-00123 ShowActionList($cn,$retour,$h_url);
-00124
-00126 // Add an action
-00127 if ( $sub_action == "add_action" )
+00108 // We need a sub action (3rd level)
+00109 // show a list of already taken action
+00110 // propose to add one
+00111 // permit also a search
+00112 // show detail
+00113 $sub_action=(isset($_REQUEST['sa']))?$_REQUEST['sa']:"";
+00114
+00115 if ( $sub_action == "" ) $sub_action="list";
+00116
+00117 // if correction is asked go to directly to add_action
+00118 if (isset($_POST['corr'] ))
+00119 $sub_action="add_action";
+00120
+00121 // if this page is called from another menu (customer, supplier,...)
+00122 // a button back is added
+00123 // TODO add function for generating url, hidden tags...
+00124 $retour='<A HREF="commercial.php?p_action=suivi_courrier"><input type="button" value="Retour"></A>';
+00125 $h_url="";
+00126
+00127 if ( isset ($_REQUEST['url']))
00128 {
-00129 echo $retour;
-00130
-00131 echo '<div class="u_redcontent">';
-00132 echo JS_SEARCH_CARD;
-00133 // Add hidden tag
-00134 echo '<form name="RTEDemo" action="commercial.php?p_action=suivi_courrier" method="post" onsubmit="return submitForm();">';
-00135 echo $h_url;
-00136 $date=new widget("text");
-00137 $date->name="ag_date";
-00138 $date->value=(isset($_POST['ag_date']))?$_POST['ag_date']:"";
-00139 echo "<p>Date : ";
-00140 echo $date->IOValue()."</p>";
-00141 // Tiers
-00142 $W1=new widget("js_search");
-00143 $W1->label="Tiers";
-00144 $W1->name="tiers";
-00145 $W1->value=isset($_REQUEST['tiers'])?$_REQUEST['tiers']:"";
-00146 $W1->extra="8,9,14"; // filter on frd_id
-00147 $W1->extra2=0; // jrn = 0
-00148 echo "<div class=\"no\">".$W1->IOValue();
-00149 $client_label=new widget("span");
-00150 $tiers_label="";
-00151 // Retrieve name
-00152 if ( $W1->value != "" )
-00153 {
-00154 $tiers=new fiche($cn);
-00155 $tiers->GetByQCode($W1->value);
-00156 $tiers_label=$tiers->strAttribut(1);
-00157
-00158 }
-00159 echo $client_label->IOValue("tiers_label",$tiers_label)."</div>";
-00160
-00161 $doc_type=new widget("select");
-00162 $doc_type->name="dt_id";
-00163 $doc_type->value=make_array($cn,"select dt_id,dt_value from document_type where dt_id in (".ACTION.")");
-00164 echo 'Type d\' action';
-00165 $doc_type->selected=(isset($_POST['dt_id']))?$_POST['dt_id']:"";
-00166 echo $doc_type->IOValue();
-00167
-00168 // state
-00169 $doc_state=new widget("select");
-00170 $doc_state->name="d_state";
-00171 $doc_state->value=make_array($cn,"select s_id,s_value from document_state");
-00172 $doc_state->selected=(isset($_POST['d_state']))?$_POST['d_state']:"";
-00173 echo "Etat : ".$doc_state->IOValue();
-00174 echo '<input type="hidden" name="p_action" value="suivi_courrier">';
-00175 echo '<input type="hidden" name="sa" value="save_action_st1">';
-00176 $title=new widget("text");
-00177 $title->name="ag_title";
-00178 $title->value=(isset($_POST['ag_title']))?$_POST['ag_title']:"";
-00179 echo "<p>Titre : ";
-00180 echo $title->IOValue()."</p>";
-00181
-00182 ?>
+00129 $retour=sprintf('<A HREF="%s"><input type="button" value="Retour"></A>',urldecode($_REQUEST['url']));
+00130 $h_url=sprintf('<input type="hidden" name="url" value="%s">',urldecode($_REQUEST['url']));
+00131 }
+00133 // Show the detail of an action
+00134 if ( $sub_action=='detail' )
+00135 {
+00136 $act=new action($cn);
+00137 $act->ag_id=$_REQUEST['ag_id'];
+00138 echo $act->get();
+00139 echo $act->display();
+00140 echo $retour;
+00141
+00142 }
+00144 // Show a list of the action
+00145 if ( $sub_action == "list" )
+00146 ShowActionList($cn,$retour,$h_url);
+00147
+00149 // Add an action
+00150 if ( $sub_action == "add_action" )
+00151 {
+00152 echo $retour;
+00153
+00154 echo '<div class="u_redcontent">';
+00155 echo JS_SEARCH_CARD;
+00156 // Add hidden tag
+00157 echo '<form name="RTEDemo" action="commercial.php?p_action=suivi_courrier" method="post" onsubmit="return submitForm();">';
+00158 echo $h_url;
+00159 $date=new widget("text");
+00160 $date->name="ag_timestamp";
+00161 $date->value=(isset($_POST['ag_timestamp']))?$_POST['ag_timestamp']:"";
+00162 echo "<p>Date : ";
+00163 echo $date->IOValue()."</p>";
+00164 // Tiers
+00165 $W1=new widget("js_search");
+00166 $W1->label="Tiers";
+00167 $W1->name="tiers";
+00168 $W1->value=isset($_REQUEST['tiers'])?$_REQUEST['tiers']:"";
+00169 $W1->extra="8,9,14"; // filter on frd_id
+00170 $W1->extra2=0; // jrn = 0
+00171 echo "<div class=\"no\">".$W1->IOValue();
+00172 $client_label=new widget("span");
+00173 $tiers_label="";
+00174 // Retrieve name
+00175 if ( $W1->value != "" )
+00176 {
+00177 $tiers=new fiche($cn);
+00178 $tiers->GetByQCode($W1->value);
+00179 $tiers_label=$tiers->strAttribut(1);
+00180
+00181 }
+00182 echo $client_label->IOValue("tiers_label",$tiers_label)."</div>";
00183
-00184 <?
-00186 // add here for who the action is taken (contact, client or supplier)
-00187
-00188 ?>
-00189
+00184 $doc_type=new widget("select");
+00185 $doc_type->name="dt_id";
+00186 $doc_type->value=make_array($cn,"select dt_id,dt_value from document_type where dt_id in (".ACTION.")");
+00187 echo 'Type d\' action';
+00188 $doc_type->selected=(isset($_POST['dt_id']))?$_POST['dt_id']:"";
+00189 echo $doc_type->IOValue();
00190
-00191
-00192 <script language="JavaScript" type="text/javascript">
-00193 <!--
-00194 function submitForm() {
-00195 //make sure hidden and iframe values are in sync before submitting form
-00196 //to sync only 1 rte, use updateRTE(rte)
-00197 //to sync all rtes, use updateRTEs
-00198 updateRTE('ag_desc');
-00199 //updateRTE();
-00200 //change the following line to true to submit form
-00201 return true;
-00202 }
-00203
-00204 //Usage: initRTE(imagesPath, includesPath, cssFile)
-00205 initRTE("images/", "", "");
-00206 //-->
-00207 </script>
-00208 <noscript><p><b>Javascript must be enabled to use this form.</b></p></noscript>
-00209 Note Interne :
-00210 <script language="JavaScript" type="text/javascript">
-00211 <!--
-00212 //Usage: writeRichText(fieldname, html, width, height, buttons, readOnly)
-00213 <? $a=(isset($_POST['ag_desc']))?FormatString(urldecode($_POST['ag_desc'])):""; ?>
-00214 writeRichText('ag_desc', <? printf ("'%s'",$a); ?>, 520, 200, true, false);
-00215 <? echo_debug('action.inc',__LINE__, " A = ".$a); ?>
-00216 //-->
-00217 </script>
-00218
-00219 <input type="submit" name="save_action_st1" value="Sauver"></p>
-00220 </form>
-00221 </div>
-00222 <?
-00223 }
-00225 // Save Action
-00226 // Stage 1 : show the result and confirm
-00228 if ( $sub_action == "save_action_st1" )
-00229 {
-00230 $act=new action($cn);
-00231 $act->ag_desc=$_POST['ag_desc'];
-00232 $act->ag_date=$_POST['ag_date'];
-00233 $act->d_state=$_POST['d_state'];
-00234 $act->dt_id=$_POST['dt_id'];
-00235 $act->qcode=$_POST['tiers'];
-00236 $act->ag_title=$_POST['ag_title'];
-00237 echo $act->Confirm();
-00238 }
-00240 // Save Action
-00241 // Stage 2 : Save the action and propose to save a file
-00243 if ( $sub_action == "save_action_st2" )
-00244 {
-00245 $act=new action($cn);
-00246 $act->ag_desc=$_POST['ag_desc'];
-00247 $act->ag_date=$_POST['ag_date'];
-00248 $act->d_state=$_POST['d_state'];
-00249 $act->dt_id=$_POST['dt_id'];
-00250 $act->qcode=$_POST['tiers'];
-00251 $act->ag_title=$_POST['ag_title'];
-00252 $act->md_id=(isset($_POST['gen_doc']))?$_POST['gen_doc']:0;
-00253
-00254 $act->gen=isset($_POST['p_gen'])?'on':'off';
-00255
-00256 echo $act->SaveStage2();
-00257 echo '<A HREF="commercial.php?p_action=suivi_courrier"><INPUT TYPE="BUTTON" VALUE="Retour Liste"></A>';
-00258 }
-00259
-00261 // Save Document
-00262 // Stage 3 : Save the document
-00264 if ( $sub_action == "save_action_st3" )
-00265 {
-00266 echo_debug("action.inc.php",__LINE__,'Stage 3');
-00267 $act=new action($cn);
-00268 $act->ag_id=$_POST['ag_id'];
-00269 $d_id=(isset($_POST['d_id']))?$_POST['d_id']:0;
-00270 echo $act->SaveStage3($d_id);
-00271
-00272 ShowActionList($cn,$retour,$h_url);
-00273
-00274 }
+00191 // state
+00192 $doc_state=new widget("select");
+00193 $doc_state->name="d_state";
+00194 $doc_state->value=make_array($cn,"select s_id,s_value from document_state");
+00195 $doc_state->selected=(isset($_POST['d_state']))?$_POST['d_state']:"";
+00196 echo "Etat : ".$doc_state->IOValue();
+00197 echo '<input type="hidden" name="p_action" value="suivi_courrier">';
+00198 echo '<input type="hidden" name="sa" value="save_action_st1">';
+00199 $title=new widget("text");
+00200 $title->name="ag_title";
+00201 $title->value=(isset($_POST['ag_title']))?$_POST['ag_title']:"";
+00202 echo "<p>Titre : ";
+00203 echo $title->IOValue()."</p>";
+00204
+00205 ?>
+00206
+00207 <?
+00209 // add here for who the action is taken (contact, client or supplier)
+00210
+00211 ?>
+00212
+00213
+00214
+00215 <script language="JavaScript" type="text/javascript">
+00216 <!--
+00217 function submitForm() {
+00218 //make sure hidden and iframe values are in sync before submitting form
+00219 //to sync only 1 rte, use updateRTE(rte)
+00220 //to sync all rtes, use updateRTEs
+00221 updateRTE('ag_comment');
+00222 //updateRTE();
+00223 //change the following line to true to submit form
+00224 return true;
+00225 }
+00226
+00227 //Usage: initRTE(imagesPath, includesPath, cssFile)
+00228 initRTE("images/", "", "");
+00229 //-->
+00230 </script>
+00231 <noscript><p><b>Javascript must be enabled to use this form.</b></p></noscript>
+00232 Note Interne :
+00233 <script language="JavaScript" type="text/javascript">
+00234 <!--
+00235 //Usage: writeRichText(fieldname, html, width, height, buttons, readOnly)
+00236 <? $a=(isset($_POST['ag_comment']))?FormatString(urldecode($_POST['ag_comment'])):""; ?>
+00237 writeRichText('ag_comment', <? printf ("'%s'",$a); ?>, 520, 200, true, false);
+00238 <? echo_debug('action.inc',__LINE__, " A = ".$a); ?>
+00239 //-->
+00240 </script>
+00241
+00242 <input type="submit" name="save_action_st1" value="Sauver"></p>
+00243 </form>
+00244 </div>
+00245 <?
+00246 }
+00248 // Save Action
+00249 // Stage 1 : show the result and confirm
+00251 if ( $sub_action == "save_action_st1" )
+00252 {
+00253 $act=new action($cn);
+00254 $act->ag_comment=$_POST['ag_comment'];
+00255 $act->ag_timestamp=$_POST['ag_timestamp'];
+00256 $act->d_state=$_POST['d_state'];
+00257 $act->dt_id=$_POST['dt_id'];
+00258 $act->qcode=$_POST['tiers'];
+00259 $act->ag_title=$_POST['ag_title'];
+00260 echo $act->Confirm();
+00261 }
+00263 // Save Action
+00264 // Stage 2 : Save the action and propose to save a file
+00266 if ( $sub_action == "save_action_st2" )
+00267 {
+00268 $act=new action($cn);
+00269 $act->ag_comment=$_POST['ag_comment'];
+00270 $act->ag_timestamp=$_POST['ag_timestamp'];
+00271 $act->d_state=$_POST['d_state'];
+00272 $act->dt_id=$_POST['dt_id'];
+00273 $act->qcode=$_POST['tiers'];
+00274 $act->ag_title=$_POST['ag_title'];
00275
-
1.4.4