-
Notifications
You must be signed in to change notification settings - Fork 10
/
modifysubprocedure.php
88 lines (88 loc) · 3.78 KB
/
modifysubprocedure.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
<?php
session_start();
include('modules/dbhandler.php');
include('modules/functions.php');
if(isset($_SESSION['id'])){
if(!($_SESSION['privileges'] == 'man' || $_SESSION['privileges'] == 'web')){
header('Location:denied.php');
}
}
else{
header('Location:index.php');
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Dental: Modificar Subprocedimiento</title>
<link rel="shortcut icon" type="image/x-icon" href="images/favicon.ico" />
<?php include('includes/styles.php');?>
<?php include('includes/jquery.php');?>
<script type="text/javascript" src="js/modifysubprocedure.js"></script>
</head>
<body>
<div id="header">
<div class="center"><a href="menu.php"><img alt="logo" src="images/logo.png" /></a></div>
<ul class="innerlinks">
<li><a href="addsubprocedure.php">Agregar Subprocedimiento</a></li>
<li><a href="consultsubprocedure.php">Consultar Subprocedimiento</a></li>
<li><a href="modifysubprocedure.php">Modificar Subprocedimiento</a></li>
</ul>
<div class="usersession">
<img alt="user" src="images/user.png" />
Registrado como <?php echo $_SESSION['firstname'] . ' ' . $_SESSION['firstlastname'] . ' ' . $_SESSION['secondlastname'];?> |
<a href="logout.php" class="session">Cerrar Sesión</a>
</div>
</div>
<div id="outer-wrapper">
<fieldset>
<legend>Modificar Subprocedimiento</legend>
<form action="#" id="searchform">
<p class="form">
<label for="searchid">Nombre</label>
<select id="searchid" name="id"><?php writeSubprocedureList();?></select>
</p>
<p class="form center">
<img alt="loader" id="searchloader" src="images/loader.gif" style="display:none;" />
<input id="searchbutton" type="button" value="Buscar Subprocedimiento" />
</p>
</form>
</fieldset>
<fieldset id="modifycontainer" style="display:none;">
<legend>Datos del Subprocedimiento</legend>
<form action="#" id="modifyform">
<p class="form">
<label for="id">Id Subprocedimiento</label>
<input id="id" name="id" readonly="readonly" type="text" style="width:10%;" />
</p>
<p class="form">
<label for="code">*Código</label>
<input id="code" name="code" type="text" />
</p>
<p class="form">
<label for="name">*Nombre</label>
<input id="name" name="name" type="text" />
</p>
<p class="form">
<label for="price">*Precio($)</label>
<input id="price" name="price" style="width:10%;" type="text" />
</p>
<p class="form">
<label for="procedure">*Procedimiento</label>
<select id="procedure" name="procedure"><?php writeProcedureList();?></select>
</p>
<p class="form">
<label for="description">Descripción</label>
<textarea id="description" name="description" rows="120" cols="120"></textarea>
</p>
<p class="form center">
<img alt="loader" id="modifyloader" src="images/loader.gif" style="display:none;" />
<input id="modifybutton" type="button" value="Modificar Subprocedimiento" />
</p>
</form>
</fieldset>
<div id="message" style="display:none;"></div>
</div>
</body>
</html>