';
echo '
';
// Show the predef operation
// Don't forget the p_jrn
$p_post=$_POST;
if ( isset ($_GET['action']) && ! isset($_POST['correct']) && ! isset($correct) )
{
if ( $_GET['action']=='use_opd')
{
// get data from predef. operation
$op=new Pre_operation($cn);
$p_post=null;
if ( isset($_REQUEST['pre_def']) && $_REQUEST['pre_def'] != '')
{
$op->set_od_id($http->request('pre_def','number'));
$p_post=$op->compute_array();
// operation description are not in the same variable
$p_post['desc']=$p_post['e_comm'];
}
}
}
$p_msg=(isset($p_msg))?$p_msg:"";
if ( !empty ($p_msg))
{
print ''.$p_msg.'';
}
echo '';
echo "";
echo create_script(" update_name()");
$e_date=$http->request("e_date","string","");
if ($e_date=="" && $g_parameter->MY_DATE_SUGGEST=='Y') {
echo create_script(" get_last_date()");
}
echo '