-
Notifications
You must be signed in to change notification settings - Fork 0
/
formulariomat.php
216 lines (186 loc) · 7.35 KB
/
formulariomat.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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
<?php
session_start();
if (isset($_POST['cedula'])) {
session_destroy();
} else {
header("Location: index_1.php");
}
if (isset($_SESSION["acceso"])) {
//session_destroy();
unset($_SESSION['acceso']);
} else {
// session_destroy();
header("Location: index_1.php");
}
//session_start();
//if(isset($_SESSION["olvidable"]) and $_SESSION["olvidable"]===1){
// //session_destroy();
// echo "<script languaje=\"javascript\">location.href=\"index_1.php\"; </script>";
// exit();
//}
include_once("DAL/Modelos/Nivel.php");
?>
<html>
<head>
<title>UNIVERSIDAD DISTRITAL</title>
<link rel="stylesheet" type="text/css" href="jqueryui/css/shadowbox.css">
<script type="text/javascript" src="jqueryui/js/shadowbox/shadowbox.js"></script>
<script type="text/javascript" src="jqueryui/js/funciones.js"></script>
<!--<link rel="stylesheet" href="Css/estiloform.css" />-->
<script type="text/javascript">
Shadowbox.init();
</script>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!-- ImageReady Styles (Sin título-1) -->
<style type="text/css">
<!--
#Tabla_01 {
position: relative;
margin:auto;
left:0px;
top:0px;
width:445px;
height:221px;
}
#plantilla-ud-01 {
position:absolute;
left:0px;
top:0px;
width:445px;
height:44px;
}
#plantilla-ud-02 {
position:absolute;
left:0px;
top:44px;
width:445px;
height:177px;
}
#apDiv1 {
position:absolute;
width:227px;
height:115px;
z-index:1;
left: 16px;
top: 27px;
}
.Netscape {
font-family:"Lucida Sans Unicode", "Lucida Grande", sans-serif;
font-size:12px;
color: #000000;
width: 153px;
}
.formula{
width:500px;
border:#ff9900 dotted 1px;
/*background-color:#ffff66;*/
padding-top: 10px;
padding-bottom: 10px;
padding-left: 17px;
margin:auto;
}
.formula h1{
color:#ff9900;
font-family:sans-serif;
font-style:italic;
font-size: 20px;
}
.formula p{
color:#ff9933;
font-family:sans-serif;
font-style:italic;
font-size: 14px;
}
-->
</style>
<!-- End ImageReady Styles -->
</head>
<body style="background-color:#FFFFFF; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px;">
<!-- ImageReady Slices (Sin título-1) -->
<?php
//Para Cambiar
$conn = mysql_connect("10.20.1.253", "servidorilud", "adminilud");
//$conn = mysql_connect("localhost", "root", "");
mysql_query("SET NAMES 'utf8'");
mysql_select_db("bdilud", $conn);
$conperactual = "SELECT nombre_periodo
FROM PERIODOS
WHERE CURDATE()>=fecha_inicio_periodo AND
CURDATE()<=fecha_fin_periodo";
mysql_query("SET NAMES 'utf8'");
$rperactual = mysql_query($conperactual, $conn);
mysql_query("SET NAMES 'utf8'");
$arrperiodoactual = mysql_fetch_array($rperactual);
switch ($arrperiodoactual[0]) {
case "bim1":$peractual = "BIMESTRE 1";
$numperactual = 1;
break;
case "bim2":$peractual = "BIMESTRE 2";
$numperactual = 2;
break;
case "bim3":$peractual = "BIMESTRE 3";
$numperactual = 3;
break;
case "bim4":$peractual = "BIMESTRE 4";
$numperactual = 4;
break;
case "vac1":$peractual = "VACACIONAL";
$numperactual = 5;
break;
}
//
// echo "Periodo Actual=".$numperactual."<br />";
// echo "Cedula:".$_POST[cedula]."<br />";
// echo "nombre:".$_POST[nombre]."<br />";
// echo "Apellido:".$_POST[apellido]."<br />";
// echo "Programa".$_POST[programa]."<br />";
// echo "Nivel".$_POST[nivel]."<br />";
// echo "Id_Programa".$_POST[idprograma]."<br />";
$n = new Nivel();
$idnivel = $n->sel_id_nivel($_POST[idprograma], $_POST[nivel]);
$_SESSION["id_nivel"] = $idnivel;
// echo "Id_nivel ".$idnivel."<br />";
// put your code here
?>
<div id="Tabla_01">
<div id="plantilla-ud-01">
<img src="imagenes/plantilla_ud_01.jpg" width="445" height="44" alt="">
</div>
<div id="plantilla-ud-02">
<img src="imagenes/plantilla_ud_02.jpg" width="445" height="177" alt="">
<div id="apDiv1">
<form id="form1" name="form1" method="post" action="generarecibos.php">
<table width="326" border="0">
<tr>
<td colspan="2" class="Netscape">Grupo:
<input name="cadenagrupo" type="text" class="Netscape" id="campo1" onFocus="this.blur()" /></td>
<td width="152"><a href="selecciongrupos.php?periodo=<?php echo $arrperiodoactual[0]; ?>&idnivel=<?php echo $idnivel; ?>&numperiodo=<?php echo $numperactual; ?>" rel="shadowbox;height=500;width=900"><img src="imagenes/abrir-menu.png" border="0"></a></td>
</tr>
<tr>
<td width="81"> </td>
<td width="79"> </td>
<td> </td>
</tr>
<tr>
<td><input type="image" src="imagenes/enviar.png" onClick="return valformmat();"></td>
<td> </td>
<td> </td>
</tr>
</table>
<input type="hidden" name="idprograma" value="<?php echo $_POST[idprograma]; ?>" />
<input type="hidden" name="cedula" value="<?php echo $_POST[cedula]; ?>" />
<input type="hidden" name="nivel" value="<?php echo $idnivel; ?>" />
</form>
</div>
</div>
</div>
<div class="formula">
<h1>Paso 3:</h1>
<p> Ahora para elegir el horario presione el boton "Elegir Horario"</p>
<p> Una vez que usted ha seleccionado el grupo y horario en la ventana emergente, puede generar el recibo de pago.</p>
<p> <b>Recuerde</b> el recibo solo puede generase <b>y descargarse una vez</b> por bimestre, debe imprimir su recibo en una impresora Laser, si no la tiene puede guardar el recibo en formato adobe .pdf para imprimirlo luego</p>
<p> El paso final es Presionar el botón "Generar Recibo" para descargar el recibo de pago.
</div>
<!-- End ImageReady Slices -->
</body>
</html>