-
Notifications
You must be signed in to change notification settings - Fork 0
/
agregar_carrera1.php
74 lines (67 loc) · 3.11 KB
/
agregar_carrera1.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
<div class="row-fluid">
<!-- block -->
<div class="block">
<div class="navbar navbar-inner block-header">
<div class="muted pull-left"><i class="icon-plus-sign icon-large"></i> Agregar Curso</div>
</div>
<div class="block-content collapse in">
<div class="span12">
<form method="post" id="add_class1">
<div class="control-group">
<div class="controls">
<label>Categoria de Curso</label>
<select name="curso" placeholder = "Curso">
<option></option>
<option value ="primer_año">1er Año </option>
<option value ="segundo_año">2do Año </option>
<option value ="tercer_año">3er Año </option>
</select>
</div>
</div>
<div class="control-group">
<div class="controls">
<label>Curso</label>
<input class="input focused" name="carrera_nombre" id="focusedInput" type="text" placeholder = "Nombre Carrera" required>
</div>
</div>
<div class="control-group">
<div class="controls">
<label>Cuota mes</label>
<input class="input focused" name="fee" id="focusedInput" type="text" placeholder = "Cuota" required>
</div>
</div>
<div class="control-group">
<div class="controls">
<button data-placement="right" title="Click para Salvar" id="save" name="save" class="btn btn-inverse"><i class="icon-save icon-large"></i> Guardar</button>
<script type="text/javascript">
$(document).ready(function(){
$('#save').tooltip('show');
$('#save').tooltip('hide');
});
</script>
</div>
</div>
</form>
</div>
</div>
</div>
<!-- /block -->
</div>
<script>
jQuery(document).ready(function($){
$("#agregar_carrera1").submit(function(e){
e.preventDefault();
var _this = $(e.target);
var formData = $(this).serialize();
$.ajax({
type: "POST",
url: "guardar_carrera.php",
data: formData,
success: function(html){
$.jGrowl("Class Successfully Added", { header: 'Class Added' });
window.location = 'agregar_carrera.php';
}
});
});
});
</script>