Improve test
This commit is contained in:
parent
fbe06a8003
commit
e5762224f6
5 changed files with 41 additions and 33 deletions
|
|
@ -113,13 +113,13 @@ if ( isset ($annul) ) {
|
|||
$Res=ExecSql($cn,$sql);
|
||||
|
||||
// delete from jrnx & jrn
|
||||
$sql="delete from jrnx where j_grpt=".$_POST['p_id'];
|
||||
$sql="update jrnx set j_montant = 0 where j_grpt=".$_POST['p_id'];
|
||||
|
||||
$Res=ExecSql($cn,$sql);
|
||||
|
||||
|
||||
// build the sql stmt for jrn
|
||||
$sql= "delete from jrn where jr_grpt_id=".$_POST['p_id'];
|
||||
$sql= "update jrn set jr_montant = 0, jr_valid='f',jr_comment='Erreur:'||jr_comment where jr_grpt_id=".$_POST['p_id'];
|
||||
$Res=ExecSql($cn,$sql);
|
||||
|
||||
echo '<h2 class="info"> Opération Effacée</h2>';
|
||||
|
|
@ -142,7 +142,7 @@ $a=InputType("Date","text", "op_date",$e_op_date,false);
|
|||
//echo 'Date : '.$e_op_date;
|
||||
echo $a;
|
||||
echo '<div style="border-style:solid;border-width:1pt;">';
|
||||
$a=InputType("Description:","text","comment",$e_comment,false);
|
||||
$a=InputType("Description:","text_big","comment",$e_comment,false);
|
||||
echo $a;
|
||||
echo '</DIV>';
|
||||
|
||||
|
|
|
|||
|
|
@ -147,6 +147,7 @@ td.odd{
|
|||
border:Opt
|
||||
}
|
||||
td.cell{
|
||||
|
||||
border-style:solid;
|
||||
border-width:1pt;
|
||||
font-size:11pt;
|
||||
|
|
@ -167,7 +168,6 @@ a.mtitle:link {
|
|||
a.mtitle:visited {
|
||||
text-decoration:none;
|
||||
color:black;
|
||||
|
||||
width:100px;
|
||||
}
|
||||
a.mtitle2:active {
|
||||
|
|
|
|||
|
|
@ -102,15 +102,15 @@ div.debit{
|
|||
}
|
||||
div.redcontent{
|
||||
position: absolute;
|
||||
top:130px;
|
||||
top:150px;
|
||||
left:250px;
|
||||
width:600px;
|
||||
font-size:12px;
|
||||
overflow:auto;
|
||||
|
||||
}
|
||||
div.u_redcontent{
|
||||
position: absolute;
|
||||
top:130px;
|
||||
top:160px;
|
||||
left:150px;
|
||||
width:700px;
|
||||
font-size:9pt;
|
||||
|
|
@ -159,6 +159,7 @@ td.mtitle {
|
|||
width:75px;
|
||||
font-size:10px;
|
||||
border: 1px solid;
|
||||
padding:3px;
|
||||
background-color:#DDE6FF;
|
||||
}
|
||||
span.mtitle2 {
|
||||
|
|
@ -190,7 +191,8 @@ td.odd{
|
|||
border:0px;
|
||||
}
|
||||
td.cell{
|
||||
border:1px solid blue;
|
||||
// border:1px solid blue;
|
||||
padding: 4px;
|
||||
}
|
||||
td.selectedcell{
|
||||
border-style:solid;
|
||||
|
|
|
|||
|
|
@ -41,6 +41,33 @@ if ( $a==false) {
|
|||
}
|
||||
if ( ($Res=ExecSql($a,"select * from ac_users") ) == false ) {
|
||||
exit ("<h2 class=\"error\">__LINE__ test has failed !!!</h2>");
|
||||
} else
|
||||
print "Connect to database success <br>";
|
||||
|
||||
// Verify some PHP parameters
|
||||
// magic_quotes_gpc = Off
|
||||
// magic_quotes_runtime = Off
|
||||
// magic_quotes_sybase = Off
|
||||
// include_path
|
||||
// register_global
|
||||
foreach (array('magic_quotes_gpc','magic_quotes_runtime') as $a) {
|
||||
|
||||
if ( ini_get($a) == false ) print $a.': Ok <br>';
|
||||
else {
|
||||
print ("<h2 class=\"error\">$a has a bad value !!!</h2>");
|
||||
}
|
||||
|
||||
}
|
||||
if ( ini_get('register_globals') != true )
|
||||
print ("<h2 class=\"error\">register_globals has a bad value !!!</h2>");
|
||||
else
|
||||
print 'register_globals : Ok <br>';
|
||||
|
||||
if ( ereg("\.\.\/include",ini_get('include_path')) == false )
|
||||
print ("<h2 class=\"error\">include_path incorrect !!!".ini_get('include_path')."</h2>");
|
||||
else
|
||||
print 'include_path : ok ('.ini_get('include_path').')<br>';
|
||||
|
||||
echo "<h2 class=\"info\"> Congratulation : Test successfull</h2>";
|
||||
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -64,15 +64,7 @@ if ( $g_UserProperty['use_admin'] == 0 ) {
|
|||
}
|
||||
// if show
|
||||
if ( isset ($_GET['show'])) {
|
||||
|
||||
$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("impress.php","Impression"),
|
||||
array("","Recherche")
|
||||
);
|
||||
$result=ShowItem($p_array,'H',"cell","mtitle");
|
||||
$result=ShowJrn();
|
||||
echo "<DIV class=\"u_subtmenu\">";
|
||||
echo $result;
|
||||
echo "</DIV>";
|
||||
|
|
@ -82,14 +74,7 @@ if ( isset ($_GET['show'])) {
|
|||
if ( isset ($_GET['JRN_TYPE'] ) ) {
|
||||
$jrn_type=$_GET['JRN_TYPE'];
|
||||
|
||||
$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("impress.php","Impression"),
|
||||
array("","Recherche")
|
||||
);
|
||||
$result=ShowItem($p_array,'H',"cell","mtitle","user_jrn.php?JRN_TYPE=".$jrn_type);
|
||||
$result=ShowJrn("user_jrn.php?JRN_TYPE=".$jrn_type);
|
||||
echo "<DIV class=\"u_subtmenu\">";
|
||||
echo $result;
|
||||
ShowMenuJrnUser($g_dossier,$g_UserProperty,$_GET['JRN_TYPE'],$g_jrn);
|
||||
|
|
@ -105,14 +90,8 @@ if ( isset ($_GET['JRN_TYPE'] ) ) {
|
|||
$jrn_type=$JrnProp['jrn_def_type'];
|
||||
echo_debug("Type is $jrn_type");
|
||||
echo_debug("Jrn_def_type = $jrn_type");
|
||||
$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("impress.php","Impression"),
|
||||
array("","Recherche")
|
||||
);
|
||||
$result=ShowItem($p_array,'H',"cell","mtitle","user_jrn.php?JRN_TYPE=".$jrn_type);
|
||||
|
||||
$result=ShowJrn("user_jrn.php?JRN_TYPE=".$jrn_type);
|
||||
echo '<div class="u_subtmenu">';
|
||||
echo $result;
|
||||
ShowMenuJrnUser($g_dossier,$g_UserProperty,$jrn_type,$g_jrn);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue