This repository was archived by the owner on Dec 10, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadd_nuevos.php
More file actions
66 lines (55 loc) · 2.62 KB
/
add_nuevos.php
File metadata and controls
66 lines (55 loc) · 2.62 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
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
<?php
session_start();
if (!isset($_SESSION['loggedin']) || $_SESSION['loggedin'] != true) {
echo "Acceso denegado. Inicie sesión como administrador para ver esta página";
die();
}
?>
<html lang="es">
<head>
<meta charset="UTF-8">
<title>Sistema de Postulación a ayudantías: Sección Administrador</title>
<link type="text/css" rel="stylesheet" href="css/bootstrap.css" media="screen,projection"/>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.12.4/css/bootstrap-select.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<!-- Latest compiled and minified JavaScript -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.12.4/js/bootstrap-select.min.js"></script>
<!-- (Optional) Latest compiled and minified JavaScript translation files -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.12.4/js/i18n/defaults-*.min.js"></script>
<?php include("cabecera.php");?>
</head>
<?php
include("connect_db.php");
$sql_ramos="SELECT codigo FROM ramo";
$sql_profes="SELECT rut,nombre FROM profesor";
$ramos = $mysqli->query($sql_ramos);
$profes = mysqli_query($mysqli,$sql_profes);
?>
<!-- tabla-->
<body>
<div class="container-fluid">
<div class="row">
<div class="col-sm-6" style="background-color:lavender;"> <h2>Añadir Docente</h2>
<form action='submit-docente.php' method=post>
<div class="form-group">
<label>Indicar datos</label>
<p>El rut debe ir con puntos y guión</p>
<p>Rut docente: <input type=text name=rut /></p>
<p>Nombre docente: <input type=text name=nombre /></p></div>
<button align="right" type=" button" class="btn">Añadir docente</button></form></div>
<div class="col-sm-6" style="background-color:#bbded6;"><h2> <p>Añadir Ramo</p></h2>
<form action="submit-ramo.php", method=post>
<div class="form-group">
<label>Indicar datos</label>
<p>Código Ramo: <input type=text name=codigo /></p>
<p>Nombre Ramo: <input type=text name=nombre /></p></div>
<button align="right" type=" button" class="btn">Añadir ramo</button>
</form></div>
</div>
</div>
</body>
<?php include("pie-de-pag.php");?>
</html>