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 if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
00029 ob_start();
00030 require_once 'class_follow_up.php';
00031 require_once 'class_default_menu.php';
00032
00033 echo HtmlInput::title_box(_("Détail action"), $div);
00034 $act = new Follow_Up($cn);
00035 $act->ag_id = $ag_id;
00036 $act->get();
00037 if ($g_user->can_write_action($ag_id) == true || $g_user->can_read_action($ag_id) == true || $act->ag_dest == -1)
00038 {
00039 $menu=new Default_Menu();
00040 echo $act->Display('READ', false, "ajax", "");
00041
00042 $action= "do.php?".http_build_query(array("gDossier"=>Dossier::id(),"ag_id"=>$ag_id,"ac"=>$menu->get('code_follow'),"sa"=>"detail"));
00043 if ( $_GET['mod']== 1) :
00044 ?>
00045 <a href="<?php echo $action?>" target="_blank" class="smallbutton"><?php echo _("Modifier")?> </a>
00046 <?php
00047 endif;
00048 }
00049 else
00050 {
00051 echo h2(_("Ce document n'est pas accessible"),"error");
00052 ?>
00053 <div style="margin:0px;padding:0px;background-color:red;text-align:center;">
00054 <h2 class="error">Accès interdit : vous n'avez pas accès à cette information, contactez votre responsable</h2>;
00055 </div>
00056 <?php
00057 }
00058 echo HtmlInput::button_close($div);
00059 $response = ob_get_clean();
00060 $html=escape_xml($response);
00061 header('Content-type: text/xml; charset=UTF-8');
00062 echo <<<EOF
00063 <?xml version="1.0" encoding="UTF-8"?>
00064 <data>
00065 <ctl></ctl>
00066 <code>$html</code>
00067 </data>
00068 EOF;
00069 exit();
00070
00071 ?>