D7net Mini Sh3LL v1
Current File : /var/www/html/d7net_config/../smartlab/bib/../bib/../../antarctic-drupal-7.89/includes/../../infor/supporto/pages/cerca.php |
<?php
session_start();
$_COOKIE=array();
require_once 'data.php';
if (isset($_POST['Login']))
{
echo "login premuto";
if (isset($_POST['email']) and isset($_POST['password']))
{
$myemail=strtolower($_POST['email']);
$mypassword=$_POST['password'];
$p =check_personale_parthenope($myemail, $mypassword);
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<title>SB Admin 2 - Bootstrap Admin Theme</title>
<!-- Bootstrap Core CSS -->
<link href="../bower_components/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
<!-- MetisMenu CSS -->
<link href="../bower_components/metisMenu/dist/metisMenu.min.css" rel="stylesheet">
<!-- Timeline CSS -->
<link href="../dist/css/timeline.css" rel="stylesheet">
<!-- Custom CSS -->
<link href="../dist/css/sb-admin-2.css" rel="stylesheet">
<!-- Morris Charts CSS -->
<link href="../bower_components/morrisjs/morris.css" rel="stylesheet">
<!-- Custom Fonts -->
<link href="../bower_components/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<script>
$("#success-alert").fadeTo(2000, 500).slideUp(500, function(){
$("#success-alert").alert('close');
})
</script>
</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="index.html">Support Uniparthenope</a>
</div>
<!-- /.navbar-header -->
<ul class="nav navbar-top-links navbar-right">
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
<i class="fa fa-envelope fa-fw"></i> <i class="fa fa-caret-down"></i>
</a>
<ul class="dropdown-menu dropdown-messages">
<li>
<a href="#">
<div>
<strong>John Smith</strong>
<span class="pull-right text-muted">
<em>Yesterday</em>
</span>
</div>
<div>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque eleifend...</div>
</a>
</li>
<li class="divider"></li>
<li>
<a href="#">
<div>
<strong>John Smith</strong>
<span class="pull-right text-muted">
<em>Yesterday</em>
</span>
</div>
<div>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque eleifend...</div>
</a>
</li>
<li class="divider"></li>
<li>
<a href="#">
<div>
<strong>John Smith</strong>
<span class="pull-right text-muted">
<em>Yesterday</em>
</span>
</div>
<div>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque eleifend...</div>
</a>
</li>
<li class="divider"></li>
<li>
<a class="text-center" href="#">
<strong>Read All Messages</strong>
<i class="fa fa-angle-right"></i>
</a>
</li>
</ul>
<!-- /.dropdown-messages -->
</li>
</ul>
<!-- /.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']))
{
if($_SESSION['ruolo'] == "operatore")
require_once 'menu_operatore.php';
else
require_once 'menu_admin.php';
}
else
{
require_once 'menu_utente.php';
}
?>
</ul>
</div>
<!-- /.sidebar-collapse -->
</div>
<!-- /.navbar-static-side -->
</nav>
<div id="page-wrapper">
<!-- /.row -->
<div class="row">
<div class="col-lg-9">
<h1 class="page-header">Ufficio Servizi Informatici</h1>
<h2>Il nostro ufficio offre Supporto Tecnico 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>
<?PHP
if(!isset($_SESSION['uid']))
{
echo' <div class="col-lg-9">
<h1 class="page-header"> Effettua il Login per una segnalazione</h1>
</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']))
{
$stato=0;
$dataa=date ('Y-m-d H:i:s');
$datac="";
$descrizione=$_POST['descrizione'];
$operatore="nunzio.napolitano";
$dipendente="francesco.rossi";
$richiesta = new richiesta($stato, $dataa, $datac, $operatore, $dipendente, $descrizione);
$richiesta-> InserisciRichiesta($_POST['nome'],$_POST['cognome'],$_POST['email'],$_POST['telefono'],$_POST['sede'],$_POST['tipo']);
} 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">Seleziona il tipo di supporto</h1>
</div>
<!-- /.col-lg-12 -->
</div>
<!-- /.row -->
<div class="row">
<div class="col-lg-3 col-md-6">
<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 ad 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-6">
<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" /> Fonia
</label>
</div>
</a>
</div>
</div>
<div class="col-lg-3 col-md-6">
<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>
<div class="row">
<div class="col-lg-3 col-md-6">
<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">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'].'" readonly>
</div>
<div class="form-group">
<label>Struttura</label>
<input name="struttura" class="form-control" value="'.$_SESSION['struttura'].'" readonly>
</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 -->
</div>
<!-- /#wrapper -->
<!-- jQuery -->
<script src="../bower_components/jquery/dist/jquery.min.js"></script>
<!-- Bootstrap Core JavaScript -->
<script src="../bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
<!-- Metis Menu Plugin JavaScript -->
<script src="../bower_components/metisMenu/dist/metisMenu.min.js"></script>
<!-- Morris Charts JavaScript -->
<script src="../bower_components/raphael/raphael-min.js"></script>
<script src="../bower_components/morrisjs/morris.min.js"></script>
<script src="../js/morris-data.js"></script>
<!-- Custom Theme JavaScript -->
<script src="../dist/js/sb-admin-2.js"></script>
</body>
</html>
AnonSec - 2021 | Recode By D7net