Skip to content

Instantly share code, notes, and snippets.

View renatoschroepfer's full-sized avatar
😃
I may be slow to respond.

Renato Schroepfer renatoschroepfer

😃
I may be slow to respond.
  • Vitória, ES Brasil
View GitHub Profile
<!DOCTYPE html>
<html>
</script>
<a href="#" onclick="$('#loadbookmark').dialog('open');">
<img src="/glpi/pics/bookmark.png" title="Carregar um favorito" alt="Carregar um favorito" class="button-icon">
</a>
</li>
<li id="help_link">
<a href="http://glpi-project.org/help-helpdesk" target="_blank" title="Ajuda">
// 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
/* 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');
})
});