This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Create ticket | |
| if (Session::haveRight("ticket", CREATE)) { | |
| $menu['create_ticket']['id'] = "menu2"; | |
| /* Isaac Costa - Custom - Restrição de abertura de chamado (com a colaboração de Renato Lázaro e Ana Costa) */ | |
| $usuarioIDString = Session::getLoginUserID(); | |
| $usuarioID = (int)$usuarioIDString; | |
| $conectaGLPI = mysqli_connect("localhost", "root", "Luk3Skyw@lk3r") or print (mysqli_error()); /* Isaac Costa - Custom - Substituir SERVIDOR, USUARIO e SENHA pelos dados de conexão ao banco do GLPI*/ | |
| mysql_select_db("glpi", $conectaGLPI) or print(mysqli_error()); /* Isaac Costa - Custom - Substituir BANCO pelo banco de dados utilizado pelo GLPI*/ | |
| $sql = "select count(*) from glpi_ticketsatisfactions S inner join glpi_tickets T on S.tickets_id = T.id inner join glpi_users U on T.users_id_lastupdater = U.id | |
| where T.status = 6 and S.date_begin is not null and S.date_answered is null and U.id = {$usua |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Renato Lazaro - Custom - Alerta para o menu "Criar Chamado"*/ | |
| echo "<script type='text/javascript'> | |
| $(document).ready(function(){ | |
| $('#menu2').click(function(event){ | |
| event.preventDefault(); | |
| alert('Por favor, preencha nossa pesquisa de satisfação antes de abrir um novo chamado'); | |
| }) | |
| }); |
NewerOlder