D7net Mini Sh3LL v1
Current File : /var/www/html/d7net_config/../smartlab/bib/../bib/../../antarctic-drupal-7.89/includes/../../infor/supporto/pages/index.php |
<?php
session_start();
$_COOKIE=array();
require_once 'data.php';
if (isset($_POST['Login']))
{
if (isset($_POST['email']) and isset($_POST['password']))
{
$myemail=strtolower($_POST['email']);
$mypassword=$_POST['password'];
$p =check_personale_parthenope($myemail, $mypassword);
if (!$p)
redirect("index.php");
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<?php
require 'header.php';
?>
</head>
<body>
<div id="wrapper">
<!-- Navigation -->
<nav class="navbar navbar-default navbar-static-top" role="navigation" style="margin-bottom: 0">
<div class="navbar-header">
<!-- <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>-->
<a class="navbar-brand" href="www.centro.uniparthenope.it">Ufficio Servizi Informatici</a><br><br>
</div>
<?php
require_once 'avvisi.php';
?>
<!-- /.navbar-top-links -->
<div class="navbar-default sidebar" role="navigation">
<div class="sidebar-nav navbar-collapse">
<ul class="nav" id="side-menu">
<li class="sidebar-search">
<div class="input-group custom-search-form">
<!-- <input type="text" class="form-control" placeholder="Search...">
<span class="input-group-btn">
<button class="btn btn-default" type="button">
<i class="fa fa-search"></i>
</button>
</span>-->
</div>
<!-- /input-group -->
</li>
<?PHP
if(isset($_SESSION['uid']))
{
switch (check_ruolo($_SESSION['uid'])) {
case 0:
require_once 'menu_utente.php';
break;
case 1:
require_once 'menu_operatore.php';
break;
case 2:
require_once 'menu_admin.php';
break;
}
}
else
{ require_once 'menu.php';
}
?>
</ul>
</div>
<!-- /.sidebar-collapse -->
</div>
<!-- /.navbar-static-side -->
</nav>
<div id="page-wrapper">
<!-- /.row -->
<div class="row">
<?PHP
if(!isset($_SESSION['uid']))
{
echo'
<div class="col-lg-9">
<h1 class="page-header">HelpDesk Servizi Informatici</h1>
<h2 class="text-primary">Il personale dell\'Ateneo può richiedere assistenza per:</h2>
<div class="col-lg-6">
<h3><i class="fa fa-signal fa-1x"></i> Connessione ad Internet</h3>
<h3><i class="fa fa-phone fa-1x"></i> Telefonia</h3>
</div>
<div class="col-lg-6">
<h3><i class="fa fa-envelope-o fa-1x"></i> Posta Elettronica</h3>
<h3><i class="fa fa-desktop fa-1x"></i> Assitenza PC Hardware/Software</h3>
</div>
</div>
<div class="col-lg-9">
<h1 class="page-header">Richiedi assistenza</h1>
<h2 class="text-primary">Per accedere al servizio eseguire il login con il proprio indirizzo di posta istituzionale (@uniparthenope.it) e la corrispondente password</h2>
</div>
<div class="col-lg-4">
<div >
<div class="login-panel panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Please Sign In</h3>
</div>
<div class="panel-body">
<form role="form" method="POST" action="login.php">
<fieldset>
<div class="form-group">
<input class="form-control" placeholder="E-mail" name="email" type="email" autofocus>
</div>
<div class="form-group">
<input class="form-control" placeholder="Password" name="password" type="password" value="">
</div>
<div class="checkbox">
<label>
<input name="remember" type="checkbox" value="Remember Me">Remember Me
</label>
</div>
<!-- Change this to a button or input when using this as a form -->
<button type="submit" name="Login" class="btn btn-lg btn-success btn-block">Login</button>
</fieldset>
</form>
</div>
</div>
</div>
</div>
';
}
?>
</div>
<form id="formrichiesta" method="post" action="./index.php">
<?php
if (isset($_POST['submit'])){
if(isset($_POST['nome'])&& isset($_POST['tipo']) && isset($_POST['descrizione']) && isset($_SESSION['uid']) && isset($_POST['sede'])&& isset($_POST['telefono']) && isset($_POST['cognome']) && isset($_POST['email']) && isset($_POST['struttura']))
{
$stato=0;
$dataa=date ('d-m-Y');
$datac="";
$descrizione=$_POST['descrizione'];
$operatore=trovaoperatore($_POST['sede'],$_POST['tipo']);
// $dipendente=$_SESSION['uid'];
$sede = $_POST['sede'];
$tipo = $_POST['tipo'];
$nome = $_POST['nome'];
$cognome = $_POST['cognome'];
$email = $_POST['email'];
$telefono = $_POST['telefono'];
$dipendente=$nome.' '.$cognome;
$richiesta = new richiesta($stato, $dataa, $datac, $operatore, $dipendente, $descrizione, $sede,$tipo,$nome,$cognome,$email,$telefono);
$richiesta-> inserisciRichiesta();
unset($richiesta);
} else
{
alert("Compila tutti i campi!!","alert-warning");
}
}
if(isset($_SESSION['uid']))
{
echo
'
<div class="row">
<div class="col-lg-9">
<h1 class="page-header"><b>Passo 1)</b> Seleziona il tipo di intervento tecnico</h1>
</div>
<!-- /.col-lg-12 -->
</div>
<!-- /.row -->
<div class="row">
<div class="col-lg-3 col-md-3">
<div class="panel panel-primary panel-transparent">
<div class="panel-heading">
<div class="row">
<div class="col-xs-3">
<i class="fa fa-signal fa-5x"></i>
</div>
<!-- <div class="col-xs-9 text-right">
<div class="huge">26</div>
<div>Accesso Internet</div>
</div> -->
</div>
</div>
<a href="#">
<div class="panel-footer">
<!-- <span class="pull-left">View Details</span>
<span class="pull-right"><i class="fa fa-arrow-circle-right"></i></span>
<div class="clearfix"></div>
<button type="button" class="btn btn-outline btn-primary">Seleziona</button>-->
<label class="btn btn-outline btn-primary">
<input type="radio" name="tipo" id="optionsRadios1"'; if(!isset($_SESSION['uid'])) echo 'disabled'; echo 'value="Internet" /> Accesso ad Internet
</label>
</div>
</a>
</div>
</div>
<div class="col-lg-3 col-md-3">
<div class="panel panel-green">
<div class="panel-heading">
<div class="row">
<div class="col-xs-3">
<i class="fa fa-phone fa-5x"></i>
</div>
<!-- <div class="col-xs-9 text-right">
<div class="huge">12</div>
<div>Fonia</div>
</div>-->
</div>
</div>
<a href="#">
<div class="panel-footer">
<!-- <span class="pull-left">View Details</span>
<span class="pull-right"><i class="fa fa-arrow-circle-right"></i></span>
<div class="clearfix"></div>-->
<label class="btn btn-outline btn-success">
<input type="radio" name="tipo" id="optionsRadios2"'; if(!isset($_SESSION['uid'])) echo 'disabled'; echo 'value="Fonia" /> Installazione Fonia
</label>
</div>
</a>
</div>
</div>
<div class="col-lg-3 col-md-3">
<div class="panel panel-yellow">
<div class="panel-heading">
<div class="row">
<div class="col-xs-3">
<i class="fa fa-envelope-o fa-5x"></i>
</div>
<!-- <div class="col-xs-9 text-right">
<div class="huge">124</div>
<div>Posta Elettronica</div>
</div>-->
</div>
</div>
<a href="#">
<div class="panel-footer">
<!-- <span class="pull-left">View Details</span>
<span class="pull-right"><i class="fa fa-arrow-circle-right"></i></span>
<div class="clearfix"></div>-->
<label class="btn btn-outline btn-warning">
<input type="radio" name="tipo" class="btn btn-outline btn-warning"'; if(!isset($_SESSION['uid'])) echo 'disabled'; echo 'value="Posta" /> Posta Elettronica
</label>
</div>
</a>
</div>
</div>
<div class="row">
<div class="col-lg-3 col-md-3">
<div class="panel panel-red">
<div class="panel-heading">
<div class="row">
<div class="col-xs-3">
<i class="fa fa-desktop fa-5x"></i>
</div>
</div>
</div>
<a href="#">
<div class="panel-footer">
<label class="btn btn-outline btn-danger">
<input type="radio" name="tipo" id="optionsRadios3"'; if(!isset($_SESSION['uid'])) echo 'disabled'; echo 'value="PC" /> PC Hardware/Software
</label>
</div>
</a>
</div>
</div>
</div>
';
echo '
<div class="row">
<div class="col-lg-12">
<h1 class="page-header"><b>Passo 2)</b> Completa la tua richiesta</h1>
</div>
<div class="col-lg-6">
<div class="panel panel-default">
<div class="panel-heading">
Dati segnalazione
</div>
<div class="panel-body">
<div class="row">
<div class="col-lg-6">
<div class="form-group">
<label>Nome</label>
<input name="nome" class="form-control" value="'.$_SESSION['nome'].'" readonly>
</div>
<div class="form-group">
<label>Cognome</label>
<input name="cognome" class="form-control" value="'.$_SESSION['cognome'].'" readonly>
</div>
<div class="form-group">
<label>Email</label>
<input name="email" class="form-control" value="'.$_SESSION['email'].'" readonly>
</div>
<div class="form-group">
<label>Telefono</label>
<input name="telefono" class="form-control" value="'.$_SESSION['telefono'].'" >
</div>
<div class="form-group">
<label>Struttura</label>
<input name="struttura" class="form-control" value="'.$_SESSION['struttura'].'" >
</div>
<div class="form-group">
<label>Descrizione</label>
<textarea name="descrizione" class="form-control" rows="3"></textarea>
</div>
<div class="form-group">
<label>Sede Intervento</label>
<select name="sede" class="form-control">
<option>Centro Direzionale</option>
<option>Monte di Dio</option>
<option>Via Acton</option>
<option>Via Medina</option>
<option>Nola</option>
</select>
</div>
<div class="form-group">
<input type="submit" class="btn btn-success" value="Invia" name="submit" >
<input type="reset" class="btn btn-danger" value="Annulla" name="btnDelete" >
</div>
</div>
</div>
<!-- /.row (nested) -->
</div>
<!-- /.panel-body -->
</div>
<!-- /.panel -->
</div>
<!-- /.col-lg-12 -->
</div>';
}
else
{
$_SESSION['nome']='';
$_SESSION['cognome']='';
$_SESSION['nomecompleto']='';
$_SESSION['email']='';
$_SESSION['struttura']='';
$_SESSION['telefono']='';
$_SESSION['sede']='';
$_SESSION['ruolo']='';
}
?>
</form>
<!-- /.row -->
</div>
<!-- /#page-wrapper -->
<?php
require 'footer.php';
?>
</body>
</html>
AnonSec - 2021 | Recode By D7net