-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnew_course.php
More file actions
executable file
·38 lines (38 loc) · 1.17 KB
/
new_course.php
File metadata and controls
executable file
·38 lines (38 loc) · 1.17 KB
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
<?php require("includes/session.php");?>
<?php verificar_sesion(); ?>
<?php require_once("includes/connection_db.php"); ?>
<?php require_once("includes/functions.php"); ?>
<?php obtener_pagina(); ?>
<?php include("includes/header.php"); ?>
<table id="estructura">
<tr>
<td id="menu">
<?php echo menu($curso_reg,$capitulo_reg); ?>
</td>
<td id="pagina">
<h2>Agregar un nuevo curso</h2>
<form action="create_course.php" method="post">
<p>Nombre de Curso: <input name="nombre"/></p>
<p>Posición:
<select name="posicion">
<?php
$todos_los_cursos = obtener_cursos();
$num_cursos = mysql_num_rows($todos_los_cursos);
for($i=1;$i<=$num_cursos+1;$i++)
{
echo "<option value=\"{$i}\">{$i}</option>";
}
?>
</select>
</p>
<p>Visible:
<input type="radio" name="visibilidad" value="0">No</input>
<input type="radio" name="visibilidad" value="1">Si</input>
</p>
<input type="submit" value="Agregar curso"/>
</form>
<a href="content.php">Cancelar</a>
</td>
</tr>
</table>
<?php require_once("includes/footer.php"); ?>