30 lines
695 B
PHP
30 lines
695 B
PHP
<?php
|
|
ob_Start();
|
|
use Glpi\Event;
|
|
include ('../inc/includes.php');
|
|
Session::checkLoginUser();
|
|
|
|
function get_Detail_titre($tickets_id){
|
|
|
|
global $DB;
|
|
|
|
$query = "SELECT * FROM `ticket_conge` WHERE `tickets_id` = ".$tickets_id." ";
|
|
$result = $DB->query($query);
|
|
|
|
if ($result->num_rows > 0) {
|
|
$res = array();
|
|
while($row = $result->fetch_assoc()) {
|
|
$res[] = $row;
|
|
}
|
|
return $res[0] ;
|
|
}
|
|
return null;
|
|
}
|
|
|
|
if(isset($_SESSION['tickets_id_conge'])){
|
|
$response = get_Detail_titre($_SESSION['tickets_id_conge']);
|
|
|
|
if($response != null){
|
|
include ('../lib/tcpdf/templates/titre.conge.php');
|
|
}
|
|
} |