Change appearance --> do not work, do not use it !!
This commit is contained in:
parent
29c0a870bc
commit
93be0c3ddc
12 changed files with 2373 additions and 59 deletions
2241
doc/function.txt
2241
doc/function.txt
File diff suppressed because it is too large
Load diff
|
|
@ -11,11 +11,11 @@ echo '<!DOCTYPE HTML PUBLIC "-//W3C/DTD HTML 3.2 FINAL//EN">
|
|||
<TABLE BGCOLOR="#4851FF"><TR><TD>
|
||||
<TABLE Bgcolor="white" BORDER=0 CELLSPACING=0>
|
||||
<TR>
|
||||
<TD><FONT COLOR="blue" size="-1"> LOGIN</FONT> </TD>
|
||||
<TD><FONT COLOR="blue" size="-1"> Login</FONT> </TD>
|
||||
<TD><input type=text name=p_user></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD><FONT color="blue" size="-1"> PASSWORD</FONT></TD>
|
||||
<TD><FONT color="blue" size="-1"> Password</FONT></TD>
|
||||
<TD><INPUT TYPE=PASSWORD NAME=p_pass></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
|
|
|
|||
|
|
@ -65,36 +65,41 @@ if ( $g_UserProperty['use_admin'] == 0 ) {
|
|||
// a journal is selected
|
||||
// then we show the available journals of this type
|
||||
if ( isset ($_GET['JRN_TYPE'] ) ) {
|
||||
$p_array=array(array("user_jrn.php?JRN_TYPE=VEN" ,"Entrée"),
|
||||
$p_array=array(array("user_jrn.php?JRN_TYPE=VEN" ,"Entrée"),
|
||||
array("user_jrn.php?JRN_TYPE=ACH","Dépense"),
|
||||
array("user_jrn.php?JRN_TYPE=FIN","Financier"),
|
||||
array("user_jrn.php?JRN_TYPE=OD","Op. Diverses")
|
||||
);
|
||||
$result=ShowItem($p_array,'H');
|
||||
echo "<DIV>";
|
||||
array("user_jrn.php?JRN_TYPE=OD","Op. Diverses"),
|
||||
array("","Impression"),
|
||||
array("","Recherche")
|
||||
);
|
||||
$result=ShowItem($p_array,'H',"cell");
|
||||
echo "<DIV class=\"u_subtmenu\">";
|
||||
echo $result;
|
||||
echo "</DIV>";
|
||||
|
||||
$jrn_type=$_GET['JRN_TYPE'];
|
||||
echo_debug(__FILE__,__LINE__,"jrn_type = $jrn_type");
|
||||
session_register("jrn_type");
|
||||
if ( $jrn_type=='VEN' ) include('user_action_ven.php');
|
||||
if ( $jrn_type=='ACH' ) include('user_action_ach.php');
|
||||
if ( $jrn_type=='FIN' ) include('user_action_fin.php');
|
||||
if ( $jrn_type=='OD ' ) include('user_action_ods.php');
|
||||
// ShowMenuJrnUser($g_dossier,$g_UserProperty,$_GET['JRN_TYPE'],$g_jrn);
|
||||
if ( $jrn_type=='OD' ) include('user_action_ods.php');
|
||||
|
||||
}
|
||||
|
||||
// the parameters show is given
|
||||
// in that case we should a submenu
|
||||
if ( isset ($_GET['show']) ) {
|
||||
$g_jrn=-1;
|
||||
$p_array=array(array("user_jrn.php?JRN_TYPE=VEN" ,"Entrée"),
|
||||
array("user_jrn.php?JRN_TYPE=ACH","Dépense"),
|
||||
array("user_jrn.php?JRN_TYPE=FIN","Financier"),
|
||||
array("user_jrn.php?JRN_TYPE=OD","Op. Diverses")
|
||||
$p_array=array(array("user_jrn.php?JRN_TYPE=VEN" ,"Entrée"),
|
||||
array("user_jrn.php?JRN_TYPE=ACH","Dépense"),
|
||||
array("user_jrn.php?JRN_TYPE=FIN","Financier"),
|
||||
array("user_jrn.php?JRN_TYPE=OD","Op. Diverses"),
|
||||
array("","Impression"),
|
||||
array("","Recherche")
|
||||
);
|
||||
$result=ShowItem($p_array,'H');
|
||||
echo "<DIV>";
|
||||
$result=ShowItem($p_array,'H',"cell");
|
||||
echo "<DIV class=\"u_subtmenu\">";
|
||||
echo $result;
|
||||
echo "</DIV>";
|
||||
|
||||
|
|
@ -107,10 +112,12 @@ if ( isset ($_GET['action']) ) {
|
|||
$p_array=array(array("user_jrn.php?JRN_TYPE=VEN" ,"Entrée"),
|
||||
array("user_jrn.php?JRN_TYPE=ACH","Dépense"),
|
||||
array("user_jrn.php?JRN_TYPE=FIN","Financier"),
|
||||
array("user_jrn.php?JRN_TYPE=OD","Op. Diverses")
|
||||
array("user_jrn.php?JRN_TYPE=OD","Op. Diverses"),
|
||||
array("","Impression"),
|
||||
array("","Recherche")
|
||||
);
|
||||
$result=ShowItem($p_array,'H');
|
||||
echo "<DIV>";
|
||||
$result=ShowItem($p_array,'H',"cell");
|
||||
echo "<DIV class=\"u_subtmenu\">";
|
||||
echo $result;
|
||||
echo "</DIV>";
|
||||
|
||||
|
|
@ -123,7 +130,7 @@ if ( isset ($_GET['action']) ) {
|
|||
echo '<div class="searchmenu">';
|
||||
echo $menu_jrn;
|
||||
echo '</DIV>';
|
||||
|
||||
echo_debug(__FILE__,__LINE__,"jrn_type = $jrn_type");
|
||||
// Execute Action for g_jrn
|
||||
if ( $jrn_type=='VEN' ) include('user_action_ven.php');
|
||||
if ( $jrn_type=='ACH' ) include('user_action_ach.php');
|
||||
|
|
|
|||
|
|
@ -279,13 +279,13 @@ function Redirect($p_profile,$php_session) {
|
|||
/* used to display the menu */
|
||||
/* parameter : array */
|
||||
/* return : string */
|
||||
function ShowItem($p_array,$p_dir='V')
|
||||
function ShowItem($p_array,$p_dir='V',$class="mtitle")
|
||||
{
|
||||
$ret="<TABLE>";
|
||||
// direction Vertical
|
||||
if ( $p_dir == 'V') {
|
||||
foreach ($p_array as $all=>$href){
|
||||
$ret.='<TR><TD CLASS="mtitle"><A class="mtitle" HREF="'.$href[0].'">'.$href[1].'</A></TD></TR>';
|
||||
$ret.='<TR><TD CLASS="'.$class.'"><A class="'.$class.'" HREF="'.$href[0].'">'.$href[1].'</A></TD></TR>';
|
||||
}
|
||||
}
|
||||
//direction Horizontal
|
||||
|
|
@ -293,7 +293,7 @@ function ShowItem($p_array,$p_dir='V')
|
|||
$ret.="<TR>";
|
||||
foreach ($p_array as $all=>$href){
|
||||
|
||||
$ret.='<TD CLASS="mtitle"><A class="mtitle" HREF="'.$href[0].'">'.$href[1].'</A></TD>';
|
||||
$ret.='<TD CLASS="'.$class.'"><A class="'.$class.'" HREF="'.$href[0].'">'.$href[1].'</A></TD>';
|
||||
}
|
||||
$ret.="</TR>";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -71,6 +71,23 @@ function InputType($p_label,$p_type,$p_name,$p_value,$p_viewonly=false,$p_list=n
|
|||
$r.="</SELECT></TD>";
|
||||
return $r;
|
||||
}
|
||||
// Input type == select2
|
||||
if ( strtolower($p_type)=="select2" ) {
|
||||
$r="<TD> $p_label</TD><TD>";
|
||||
$r.=sprintf('<SELECT NAME="%s">',$p_name);
|
||||
foreach ($p_list as $item) {
|
||||
$selected="";
|
||||
if ( $p_value == $item['value'] ) {
|
||||
$selected="SELECTED";
|
||||
}
|
||||
$r.=sprintf('<OPTION VALUE="%s" %s>%s',
|
||||
$item['value'],
|
||||
$selected,
|
||||
$item['label']);
|
||||
}
|
||||
$r.="</SELECT></TD>";
|
||||
return $r;
|
||||
}
|
||||
|
||||
// input type == TEXT
|
||||
if ( strtolower($p_type)=="text") {
|
||||
|
|
@ -245,6 +262,7 @@ function FormVente($p_cn,$p_jrn,$p_user,$p_array=null,$view_only=true,$p_article
|
|||
list ($l_date_start,$l_date_end)=GetPeriode($p_cn,$userPref);
|
||||
$op_date=( ! isset($e_date) ) ?substr($l_date_start,2,8):$e_date;
|
||||
$e_ech=(isset($e_ech))?$e_ech:"";
|
||||
$e_jrn=(isset($e_jrn))?$e_jrn:"";
|
||||
// Save old value and set a new one
|
||||
echo_debug(__FILE__,__LINE__,"form_input.php.FormVentep_op_date is $op_date");
|
||||
$r="";
|
||||
|
|
@ -256,8 +274,12 @@ function FormVente($p_cn,$p_jrn,$p_user,$p_array=null,$view_only=true,$p_article
|
|||
|
||||
|
||||
}
|
||||
// $list=GetJrn($p_cn,$p_jrn);
|
||||
$sql="select jrn_def_id as value,jrn_def_name as label from jrn_def where jrn_def_type='VEN'";
|
||||
$list=GetArray($p_cn,$sql);
|
||||
$r.='<TABLE>';
|
||||
$r.='<TR>'.InputType("Date ","Text","e_date",$op_date,$view_only).'</TR>';
|
||||
$r.="<TR>".InputType("Journal","select2","e_jrn",$e_jrn,$view_only,$list).'<TR>';
|
||||
$r.='<TR>'.InputType("Echeance","Text","e_ech",$e_ech,$view_only).'</TR>';
|
||||
include_once("fiche_inc.php");
|
||||
// Display the customer
|
||||
|
|
|
|||
|
|
@ -393,4 +393,18 @@ function GetModeleId($p_cn,$p_modname) {
|
|||
return $name['mod_id'];
|
||||
}
|
||||
|
||||
?>
|
||||
/* function GetArray
|
||||
* purpose return the result of a sql statment
|
||||
* in a array
|
||||
* param : $p_cn database connection
|
||||
* $p_sql sql query
|
||||
*/
|
||||
function GetArray($p_cn,$p_sql) {
|
||||
echo_debug(__FILE__,__LINE__,"GetArray");
|
||||
$r=ExecSql($p_cn,$p_sql);
|
||||
if ( ($Max= pg_NumRows($r)) == 0 ) return null;
|
||||
$array=pg_fetch_all($r);
|
||||
echo_debug(__FILE__,__LINE__,var_export($array,true));
|
||||
return $array;
|
||||
}
|
||||
?>
|
||||
|
|
@ -20,15 +20,18 @@
|
|||
/* $Revision$ */
|
||||
echo_debug(__FILE__,__LINE__,"include user_action_ach.php");
|
||||
include_once("form_input.php");
|
||||
// phpinfo();
|
||||
if ( ! isset ($_GET['action']) && ! isset ($_POST["action"]) ) {
|
||||
return;
|
||||
}
|
||||
include_once ("preference.php");
|
||||
include_once ("user_common.php");
|
||||
|
||||
$dossier=sprintf("dossier%d",$g_dossier);
|
||||
$cn=DbConnect($dossier);
|
||||
|
||||
// phpinfo();
|
||||
if ( ! isset ($_GET['action']) && ! isset ($_POST["action"]) ) {
|
||||
echo u_ShowMenuJrn($cn,$jrn_type);
|
||||
exit;
|
||||
|
||||
}
|
||||
$action=(isset($_GET['action']))?$_GET['action']:$_POST['action'];
|
||||
|
||||
// action = new
|
||||
|
|
|
|||
|
|
@ -21,14 +21,18 @@
|
|||
echo_debug(__FILE__,__LINE__,"include user_action_fin.php");
|
||||
include_once("form_input.php");
|
||||
// phpinfo();
|
||||
$dossier=sprintf("dossier%d",$g_dossier);
|
||||
$cn=DbConnect($dossier);
|
||||
|
||||
if ( ! isset ($_GET['action']) && ! isset ($_POST["action"]) ) {
|
||||
echo u_ShowMenuJrn($cn,$jrn_type);
|
||||
exit;
|
||||
|
||||
return;
|
||||
}
|
||||
include_once ("preference.php");
|
||||
include_once ("user_common.php");
|
||||
|
||||
$dossier=sprintf("dossier%d",$g_dossier);
|
||||
$cn=DbConnect($dossier);
|
||||
$action=(isset($_GET['action']))?$_GET['action']:$_POST['action'];
|
||||
|
||||
// action = new
|
||||
|
|
|
|||
|
|
@ -18,17 +18,20 @@
|
|||
*/
|
||||
// Copyright Author Dany De Bontridder ddebontridder@yahoo.fr
|
||||
/* $Revision$ */
|
||||
echo_debug(__FILE__,__LINE__,"include user_action_ach.php");
|
||||
echo_debug(__FILE__,__LINE__,"include user_action_ods.php");
|
||||
include_once("form_input.php");
|
||||
// phpinfo();
|
||||
|
||||
$dossier=sprintf("dossier%d",$g_dossier);
|
||||
$cn=DbConnect($dossier);
|
||||
|
||||
if ( ! isset ($_GET['action']) && ! isset ($_POST["action"]) ) {
|
||||
return;
|
||||
echo u_ShowMenuJrn($cn,$jrn_type);
|
||||
exit;
|
||||
|
||||
}
|
||||
include_once ("preference.php");
|
||||
include_once ("user_common.php");
|
||||
|
||||
$dossier=sprintf("dossier%d",$g_dossier);
|
||||
$cn=DbConnect($dossier);
|
||||
$action=(isset($_GET['action']))?$_GET['action']:$_POST['action'];
|
||||
|
||||
// action = new
|
||||
|
|
|
|||
|
|
@ -22,20 +22,16 @@ echo_debug(__FILE__,__LINE__,"include user_action_ven.php");
|
|||
include_once("form_input.php");
|
||||
$dossier=sprintf("dossier%d",$g_dossier);
|
||||
$cn=DbConnect($dossier);
|
||||
// default action is insert_vente
|
||||
if ( ! isset ($_GET['action']) && ! isset ($_POST["action"]) ) {
|
||||
echo u_ShowMenuJrn($cn,$jrn_type);
|
||||
exit;
|
||||
$action='insert_vente';
|
||||
$blank=1;
|
||||
} else {
|
||||
$action=(isset($_GET['action']))?$_GET['action']:$_POST['action'];
|
||||
$blank=(isset($_GET["blank"]))?1:0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
$action=(isset($_GET['action']))?$_GET['action']:$_POST['action'];
|
||||
if ( $action == 'insert_vente' ) {
|
||||
// Check privilege
|
||||
if ( CheckJrn($g_dossier,$g_user,$g_jrn) != 2 ) {
|
||||
NoAccess();
|
||||
exit -1;
|
||||
}
|
||||
|
||||
// Add item
|
||||
if (isset($_POST["add_item"]) ) {
|
||||
|
|
@ -66,7 +62,7 @@ if ( $action == 'insert_vente' ) {
|
|||
}
|
||||
|
||||
// We want a blank form
|
||||
if ( isset($_GET["blank"]))
|
||||
if ( $blank==1)
|
||||
{
|
||||
echo_debug(__FILE__,__LINE__,"Blank form");
|
||||
// Show an empty form of invoice
|
||||
|
|
|
|||
|
|
@ -153,6 +153,7 @@ function u_ShowMenuCompta($p_dossier)
|
|||
echo "<P> <H2 class=\"info2\"> $l_name </H2></P>";
|
||||
|
||||
$p_array=array(array("user_jrn.php?show","Journaux"),
|
||||
array("recherche.php?p_dossier=$p_dossier","Recherche"),
|
||||
array("fiche.php?p_dossier=$p_dossier","Fiche"),
|
||||
array("user_advanced.php","Avancé"),
|
||||
array("dossier_prefs.php","Paramètre"),
|
||||
|
|
|
|||
|
|
@ -28,7 +28,6 @@ h1.title {
|
|||
}
|
||||
div.mtitle {
|
||||
position: absolute;
|
||||
top:15px;
|
||||
right:300px;
|
||||
width:100px;
|
||||
|
||||
|
|
@ -43,15 +42,23 @@ div.tmenu {
|
|||
}
|
||||
div.u_tmenu {
|
||||
position: absolute;
|
||||
top:10px;
|
||||
top:40px;
|
||||
left:150px;
|
||||
width:800px;
|
||||
width:600px;
|
||||
|
||||
}
|
||||
div.u_subtmenu {
|
||||
|
||||
position: absolute;
|
||||
top:70px;
|
||||
left:10px;
|
||||
width:600px;
|
||||
text-align:text;
|
||||
}
|
||||
|
||||
div.lmenu {
|
||||
position: absolute;
|
||||
top:50px;
|
||||
top:80px;
|
||||
left:30px;
|
||||
width:100px;
|
||||
font-size:10px;
|
||||
|
|
@ -64,9 +71,11 @@ div.lextmenu {
|
|||
width:200px;
|
||||
}
|
||||
div.searchmenu {
|
||||
font-size:11pt;
|
||||
left:30px;
|
||||
width:210px;
|
||||
border:solid 1px blue;
|
||||
left:30px;
|
||||
width:95px;
|
||||
top:95px;
|
||||
position:absolute;
|
||||
}
|
||||
div.credit{
|
||||
border-style:solid;
|
||||
|
|
@ -131,8 +140,8 @@ td.mltitle {
|
|||
}
|
||||
td.mtitle {
|
||||
text-align:center;
|
||||
width:75px;
|
||||
font-size:12px;
|
||||
/* width:75px; */
|
||||
font-size:10px;
|
||||
border: 1px solid;
|
||||
background-color:#DDE6FF;
|
||||
}
|
||||
|
|
@ -165,9 +174,7 @@ td.odd{
|
|||
border:Opt
|
||||
}
|
||||
td.cell{
|
||||
border-style:solid;
|
||||
border-width:1pt;
|
||||
font-size:11pt;
|
||||
border:1px solid blue;
|
||||
}
|
||||
td.selectedcell{
|
||||
border-style:solid;
|
||||
|
|
@ -178,13 +185,29 @@ td.selectedcell{
|
|||
}
|
||||
|
||||
a.mtitle {
|
||||
font-size:11px;
|
||||
text-decoration:none;
|
||||
display:block;
|
||||
color:blue;
|
||||
}
|
||||
color:blue;
|
||||
}
|
||||
|
||||
a.mtitle:hover {
|
||||
font-size:11px;
|
||||
color:white;
|
||||
background-color:#5D90CD;
|
||||
text-decoration:none;
|
||||
display:block;
|
||||
}
|
||||
a.cell {
|
||||
text-decoration:none;
|
||||
display:block;
|
||||
color:blue;
|
||||
background-color:white;
|
||||
font-size:9px;
|
||||
}
|
||||
|
||||
a.cell:hover {
|
||||
font-size:9px;
|
||||
color:white;
|
||||
background-color:#5D90CD;
|
||||
text-decoration:none;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue