Fix cosmetic
This commit is contained in:
parent
17a1a7e90a
commit
5a46aa7eca
3 changed files with 30 additions and 26 deletions
|
|
@ -89,7 +89,7 @@ if ( $sub_action == "solde" )
|
|||
or pcm_val like '".$caisse->p_value."%'
|
||||
order by pcm_val::text";
|
||||
$ResAccount=ExecSql($cn,$accountSql);
|
||||
echo '<div class="u_redcontent">';
|
||||
echo '<div class="u_content">';
|
||||
|
||||
echo "<table>";
|
||||
// Filter the saldo
|
||||
|
|
@ -134,7 +134,7 @@ if ( $sub_action == "list")
|
|||
'<td class="cell"><A class="mtitle" HREF="commercial.php?liste&p_action=bank&sa=solde">Solde</A></td>');
|
||||
echo '</div>';
|
||||
|
||||
echo '<div class="u_redcontent">';
|
||||
echo '<div class="u_content">';
|
||||
|
||||
|
||||
echo '<form>';
|
||||
|
|
@ -234,7 +234,7 @@ if ( $sub_action=="use_opd" ) {
|
|||
'<INPUT TYPE="SUBMIT" NAME="view_invoice" VALUE="Enregistrer">';
|
||||
|
||||
$form=FormFin($cn,$_GET['p_jrn'],$User->GetPeriode(),$submit,$p_post,false,$p_post['nb_item']);
|
||||
echo '<div class="u_redcontent">';
|
||||
echo '<div class="u_content">';
|
||||
echo $form;
|
||||
echo '</div>';
|
||||
exit();
|
||||
|
|
@ -261,7 +261,7 @@ if ( isset ($_POST['add_item']) || isset ($_POST['correct']) )
|
|||
$form=FormFin($cn,$p_jrn,$User->GetPeriode(),$submit,$_POST,false, $nb_item);
|
||||
//$form=FormFin($cn,$p_jrn,$User->GetPeriode(),$submit,$_POST,false, $nb_number);
|
||||
|
||||
echo '<div class="u_redcontent">';
|
||||
echo '<div class="u_content">';
|
||||
echo $form;
|
||||
echo JS_CALC_LINE;
|
||||
echo '</div>';
|
||||
|
|
@ -285,7 +285,7 @@ if ( isset($_POST['save']))
|
|||
|
||||
$form=FormFin($cn,$p_jrn,$User->GetPeriode(),$submit,$_POST,true,$nb_number,true);
|
||||
|
||||
echo '<div class="u_redcontent">';
|
||||
echo '<div class="u_content">';
|
||||
echo $form;
|
||||
echo '<hr>';
|
||||
echo '</form>';
|
||||
|
|
@ -342,7 +342,7 @@ if ( $p_jrn != -1 )
|
|||
<INPUT TYPE="SUBMIT" NAME="view_invoice" VALUE="Enregistrer" ID="SubmitButton">';
|
||||
// Show an empty form of invoice
|
||||
$form=FormFin($cn,$p_jrn,$User->GetPeriode(),$submit,null,false,$jrn->GetDefLine('deb'));
|
||||
echo '<div class="u_redcontent">';
|
||||
echo '<div class="u_content">';
|
||||
echo $form;
|
||||
echo '<form method="GET">';
|
||||
$op=new Pre_operation($cn);
|
||||
|
|
|
|||
|
|
@ -23,7 +23,6 @@
|
|||
*/
|
||||
|
||||
echo_debug('user_action_fin.php',__LINE__,"include user_action_fin.php");
|
||||
// include_once("form_input.php");
|
||||
require_once("user_form_fin.php");
|
||||
include_once("class_widget.php");
|
||||
require_once("class_parm_code.php");
|
||||
|
|
@ -37,8 +36,12 @@ if ( ! isset ($_GET['action']) && ! isset ($_POST["action"]) ) {
|
|||
}
|
||||
include_once ("preference.php");
|
||||
include_once ("user_common.php");
|
||||
if ( ! isset($_REQUEST['action'])) {
|
||||
echo "Aucune Action demandée";
|
||||
exit();
|
||||
}
|
||||
|
||||
$action=(isset($_GET['action']))?$_GET['action']:$_POST['action'];
|
||||
$action=$_REQUEST['action'];
|
||||
//--------------------------------------------------------------------------------
|
||||
// use a predefined operation
|
||||
//--------------------------------------------------------------------------------
|
||||
|
|
@ -52,7 +55,7 @@ if ( $action=="use_opd" ) {
|
|||
'<INPUT TYPE="SUBMIT" NAME="view_invoice" VALUE="Enregistrer">';
|
||||
|
||||
$form=FormFin($cn,$_GET['p_jrn'],$User->GetPeriode(),$submit,$p_post,false,$p_post['nb_item']);
|
||||
echo '<div class="u_redcontent">';
|
||||
echo '<div class="u_content">';
|
||||
echo $form;
|
||||
echo '</div>';
|
||||
exit();
|
||||
|
|
@ -78,7 +81,7 @@ if ( $action == 'new' ) {
|
|||
$jrn=new Acc_Ledger($cn, $p_jrn);
|
||||
|
||||
$r=FormFin($cn,$p_jrn,$User->GetPeriode(),$submit,null,false,$jrn->GetDefLine());
|
||||
echo '<div class="u_redcontent">';
|
||||
echo '<div class="u_content">';
|
||||
echo $r;
|
||||
echo "<div>";
|
||||
//--------------------
|
||||
|
|
@ -118,7 +121,7 @@ if ( $action == 'new' ) {
|
|||
<INPUT TYPE="SUBMIT" NAME="view_invoice" VALUE="Enregistrer">';
|
||||
|
||||
$r=FormFin($cn,$_GET['p_jrn'],$User->GetPeriode(),$submit,$_POST,false, $nb_number);
|
||||
echo '<div class="u_redcontent">';
|
||||
echo '<div class="u_content">';
|
||||
echo $r;
|
||||
echo "<div><h4>On-line calculator</h4>".JS_CALC_LINE."</div>";
|
||||
|
||||
|
|
@ -196,7 +199,7 @@ if ( $action == 'voir_jrn' ) {
|
|||
exit -1;
|
||||
}
|
||||
?>
|
||||
<div class="u_redcontent">
|
||||
<div class="u_content">
|
||||
|
||||
<form method= "get" action="user_jrn.php">
|
||||
|
||||
|
|
|
|||
|
|
@ -341,30 +341,31 @@ function ShowMenuJrnUser($p_dossier,$p_type,$p_jrn,$p_extra="")
|
|||
function ShowMenuJrn($p_cn,$p_jrn_type,$p_jrn)
|
||||
{
|
||||
|
||||
$Res=ExecSql($p_cn,"select ja_name,ja_url,ja_action,ja_desc from jrn_action where ja_jrn_type='$p_jrn_type'
|
||||
$Res=ExecSql($p_cn,"select ja_name,ja_url,ja_action,ja_desc from jrn_action ".
|
||||
" where ja_jrn_type='$p_jrn_type'
|
||||
order by ja_id");
|
||||
$num=pg_NumRows($Res);
|
||||
if ($num==0) return "";
|
||||
|
||||
|
||||
// Retrieve in the database the menu
|
||||
$ret="<TABLE>";
|
||||
|
||||
$access_key_list = array();
|
||||
$array_item=array();
|
||||
for ($i=0;$i<$num;$i++) {
|
||||
$action=pg_fetch_array($Res,$i);
|
||||
$access_key=get_quick_key($action['ja_name'],$access_key_list);
|
||||
$lib=str_replace($access_key,'<u>'.$access_key.'</u>',$action['ja_name']);
|
||||
|
||||
$ret.=sprintf('<TR><TD class="cell"><A class="mtitle" accesskey="%s" title="%s" '.
|
||||
'HREF="%s?%s&p_jrn=%s&jrn_type=%s&'.dossier::get().'">%s</A></td></tR>',
|
||||
$access_key,
|
||||
$action['ja_desc'],
|
||||
$action['ja_url'],
|
||||
$action['ja_action'],
|
||||
$p_jrn,
|
||||
$_REQUEST['jrn_type'],
|
||||
$lib);
|
||||
|
||||
$str_url=sprintf('?%s&p_jrn=%s&jrn_type=%s&'.dossier::get(),
|
||||
$action['ja_action'],
|
||||
$p_jrn,
|
||||
$_REQUEST['jrn_type']);
|
||||
|
||||
$str_lib=$action['ja_name'];
|
||||
$array_item[]=array($str_url,$str_lib);
|
||||
}
|
||||
$ret.='</TABLE>';
|
||||
$dir=($p_jrn_type=='FIN')?'H':'V';
|
||||
$ret=ShowItem($array_item,$dir);
|
||||
return $ret;
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue