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 $forbidden=_("Accès interdit : vous n'avez pas accès à cette information, contactez votre responsable");
00045 ?>
00046 <a href="<?php echo $action?>" target="_blank" class="smallbutton"><?php echo _("Modifier")?> </a>
00047 <?php
00048 endif;
00049 }
00050 else
00051 {
00052 echo h2(_("Ce document n'est pas accessible"),"error");
00053 ?>
00054 <div style="margin:0px;padding:0px;background-color:red;text-align:center;">
00055 <h2 class="error"><?php echo $forbidden ?></h2>;
00056 </div>
00057 <?php
00058 }
00059 echo HtmlInput::button_close($div);
00060 $response = ob_get_clean();
00061 $html=escape_xml($response);
00062 header('Content-type: text/xml; charset=UTF-8');
00063 echo <<<EOF
00064 <?xml version="1.0" encoding="UTF-8"?>
00065 <data>
00066 <ctl></ctl>
00067 <code>$html</code>
00068 </data>
00069 EOF;
00070 exit();
00071
00072 ?>