Go to the documentation of this file.00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
00030
00031 require_once ('constant.php');
00032 require_once ('class_database.php');
00033 require_once('class_dossier.php');
00034 require_once('class_pre_operation.php');
00035
00036 extract ($_GET);
00037 foreach (array('l','t','d','gDossier') as $a)
00038 {
00039 if ( ! isset (${$a}) )
00040 {
00041 echo "error $a is not set ";
00042 exit();
00043 }
00044
00045 }
00046 $cn=new Database(dossier::id());
00047 $op=new Pre_operation_detail($cn);
00048 $op->set('ledger',$l);
00049 $op->set('ledger_type',$t);
00050 $op->set('direct',$d);
00051 $url=http_build_query(array('action'=>'use_opd','p_jrn_predef'=>$l,'ac'=>$_GET['ac'],'gDossier'=>dossier::id()));
00052 $html="";
00053
00054 $html.=HtmlInput::title_box(_("Modèle d'opérations"), 'modele_op_div', 'hide');
00055 $html.=$op->show_button('do.php?'.$url);
00056
00057 $html=escape_xml($html);
00058 header('Content-type: text/xml; charset=UTF-8');
00059 echo <<<EOF
00060 <?xml version="1.0" encoding="UTF-8"?>
00061 <data>
00062 <code></code>
00063 <value>$html</value>
00064 </data>
00065 EOF;
00066
00067 ?>
00068