-
Notifications
You must be signed in to change notification settings - Fork 0
/
home.php
77 lines (63 loc) · 1.34 KB
/
home.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
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<title>Bienvenidos</title>
<?php include('header.php'); ?>
<style type="text/css">
input{
display: inline-block;
width: 300px;
border-radius: 5px;
}
button{
display: inline-block;
font-family: monospace;
border-radius: 5px;
background-color: #3C1BE2;
color: white;
}
em{
font-size: 45px;
font-style: normal;
color: red;
}
</style>
</head>
<body>
<div class="container">
<div class="row clearfix">
<div class="col-md-12 column">
<div class="jumbotron">
<?php
$link=Conectarse();
$sql="SELECT usuario,date_format(fecha,'%d-%m-%Y')as
fecha FROM valores_fecha WHERE usuario=$_SESSION[idusuario]";
$result =mysql_query($sql,$link);
if ($row =mysql_fetch_array($result)) {
mysql_field_seek($result,0);
while ($field =mysql_fetch_field($result)) {
}do {
$FECHA=$row[fecha];
} while ($row =mysql_fetch_array($result));
}else {
echo "";
}
?>
<h2>FECHA ACTUAL DE TRABAJO: <em><?php echo $FECHA; ?></em></h2>
<form action="registrar/fecha_proceso.php" method="POST">
<input type="date" name="fecha" max="<?php echo date('Y-m-d'); ?>" required>
<button>DEFINIR FECHA DE TRABAJO</button>
</form>
</div>
</div>
</div>
</div>
</body>
<footer class="footer">
<div class="container">
<p class="text-muted text-center">Área de TI Overprime</p>
</div>
</footer>
</body>
</html>