Task #4359 : Fix problem in annulation.php
This commit is contained in:
parent
718ddc351a
commit
ff2fc65106
3 changed files with 7 additions and 9 deletions
|
|
@ -39,11 +39,9 @@ if ( ! isset ( $_SESSION['g_dossier'] ) ) {
|
|||
exit -2;
|
||||
}
|
||||
|
||||
if ( isset( $p_jrn )) {
|
||||
$p_jrn=$p_jrn;
|
||||
$_SESSION["p_jrn"]=$p_jrn;
|
||||
|
||||
}
|
||||
if ( isset( $_GET['p_jrn'] )) {
|
||||
$p_jrn=$_GET['p_jrn'];
|
||||
}
|
||||
|
||||
// Check privilege
|
||||
// CheckJrn verify that the user is not an admin
|
||||
|
|
|
|||
|
|
@ -168,9 +168,9 @@ define ("JS_VIEW_JRN_DETAIL","<script language=\"javascript\">function viewDetai
|
|||
}
|
||||
|
||||
</script>");
|
||||
define ("JS_VIEW_JRN_CANCEL","<script language=\"javascript\" >function cancelOperation(p_value,p_sessid)
|
||||
define ("JS_VIEW_JRN_CANCEL","<script language=\"javascript\" >function cancelOperation(p_value,p_sessid,p_jrn)
|
||||
{
|
||||
var win=window.open('annulation.php?jrn_op='+p_value+'&PHPSESSID='+p_sessid,'Annule','toolbar=no,width=400,height=400,scrollbars=yes,resizable=yes');
|
||||
var win=window.open('annulation.php?p_jrn='+p_jrn+'&jrn_op='+p_value+'&PHPSESSID='+p_sessid,'Annule','toolbar=no,width=400,height=400,scrollbars=yes,resizable=yes');
|
||||
}
|
||||
function RefreshMe() {
|
||||
window.location.reload();
|
||||
|
|
|
|||
|
|
@ -405,8 +405,8 @@ function ListJrn($p_cn,$p_jrn,$p_where="",$p_array=null)
|
|||
// TODO Add print
|
||||
$r.="<TD>";
|
||||
// cancel operation
|
||||
$r.=sprintf('<input TYPE="BUTTON" VALUE="%s" onClick="cancelOperation(\'%s\',\'%s\')">',
|
||||
"Annuler",$row['jr_grpt_id'],$l_sessid);
|
||||
$r.=sprintf('<input TYPE="BUTTON" VALUE="%s" onClick="cancelOperation(\'%s\',\'%s\',\'%s\')">',
|
||||
"Annuler",$row['jr_grpt_id'],$l_sessid,$p_jrn);
|
||||
$r.="</TD>";
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue