-
Notifications
You must be signed in to change notification settings - Fork 0
/
headeradmin.php
131 lines (122 loc) · 5.52 KB
/
headeradmin.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<?php
session_start();
ob_start();
$usrname = $_SESSION['nvchusername'];
require_once('include/funciones.php');
conectar('localhost', 'root', '', 'db_gamificame');
$consulta_mysql='SELECT * FROM persona INNER JOIN tb_user ON persona.nvchidpersona = tb_user.intidpersona WHERE tb_user.nvchusername = "'.$usrname.'"';
$resultado_consulta_mysql=mysql_query($consulta_mysql);
while($registro = mysql_fetch_array($resultado_consulta_mysql)){
$usuario_alias = $registro["nvchalias"];
$usuario_name = $registro["nvchnombre"];
$usuario_lastname = $registro["nvchapellido"];
$usuario_description = $registro["nvchintereses"];
$usuario_imgperfil = $registro["vchimg"];
$usuario_banner = $registro["vchimgbanner"];
$usuario_id = $registro['intidpersona'];
//echo $usuario_name." ".$usuario_lastname;
}
function comment_show($usuario_id){
$usuarioid = $usuario_id;
$estado = $_POST['txtestado'];
$fecha = '12/12/2012';
$hora = '12:12';
$meter = @mysql_query('
INSERT INTO tb_estado (intidpersona, nvchestado, dtfecha, nvchhora) values ("'.$usuarioid.'","'.$estado.'","'.$fecha.'","'.$hora.'")
');
if($meter)
{
echo '<div>Registro existoso</div>';
echo '<script>window.location="user.php"</script>';
//echo "Usuario registrado con exito";
//echo "<script type='text/javascript'>alert('$message');</script>";
}else
//echo "Hubo un error en el registro.";
//echo "<script type='text/javascript'>alert('$message2');</script>";
echo '<div>Ocurrio un error</div>';
}
?>
<!doctype html>
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title>PCGamificame | <?php echo $usuario_name." ".$usuario_lastname; ?></title>
<meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0' name='viewport' />
<meta name="viewport" content="width=device-width, user-scalable=no" />
<link rel="icon" type="image/png" href="assets/img/favicon.png">
<link href="assets/css/bootstrap.min.css" rel="stylesheet" />
<link href="assets/css/estilosgmctn.css" rel="stylesheet" />
<link href="assets/css/animate.min.css" rel="stylesheet"/>
<link href="assets/css/light-bootstrap-dashboard.css" rel="stylesheet"/>
<link href="assets/css/demo.css" rel="stylesheet" />
<link href="http://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<link href='http://fonts.googleapis.com/css?family=Roboto:400,700,300' rel='stylesheet' type='text/css'>
<link href="assets/css/pe-icon-7-stroke.css" rel="stylesheet" />
<link rel="stylesheet" href="assets/css/junior.css">
<!--Meta datatable-->
<link id="bootstrap-style" href="assets/css/bootstrap.min.css" rel="stylesheet">
<link href="assets/css/bootstrap-responsive.min.css" rel="stylesheet">
<link id="base-style" href="assets/css/style.css" rel="stylesheet">
<link id="base-style-responsive" href="assets/css/style-responsive.css" rel="stylesheet">
<link href='http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800&subset=latin,cyrillic-ext,latin-ext' rel='stylesheet' type='text/css'>
<!--END Meta datatable-->
</head>
<body>
<div class="wrapper">
<div class="sidebar" data-color="azure" data-image="assets/img/sidebar-5.jpg">
<!-- you can change the color of the sidebar using: data-color="blue | azure | green | orange | red | purple" -->
<div class="sidebar-wrapper">
<div class="logo">
<a href="" class="simple-text">
Control panel
</a>
</div>
<ul class="nav">
<li>
<a href="persona.php">
<i class="pe-7s-users"></i>
<p title="Registro de Docentes/Alumnos/Padres/Director/admin">
Admin Personas</p>
</a>
</li>
<li>
<a href="">
<i class="pe-7s-users"></i>
<p>Admin Usuarios</p>
</a>
</li>
<li>
<a href='adocentes.php'>
<i class='pe-7s-chat'></i>
<p>chat Docentes</p>
</a>
</li>
<li>
<a href='apadres.php'>
<i class='pe-7s-chat'></i>
<p>chat PAdres</p>
</a>
</li>
<li>
<a href='aalumnos.php'>
<i class='pe-7s-chat'></i>
<p> chat Alumnos</p>
</a>
</li>
<li>
<a href="">
<i class='pe-7s-help1'></i>
<p>Ayuda</p>
</a>
</li>
<li>
<a href="index.php">
<i class="pe-7s-close-circle"></i>
<p class="pull-rigth">Cerrar sesion</p>
<p>
</p>
</a>
</li>
</ul>
</div>
</div>