-
Notifications
You must be signed in to change notification settings - Fork 1
/
admin_new.php
154 lines (144 loc) · 4.17 KB
/
admin_new.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
<?php include("includes/header.php"); ?>
<body class="page-header-fixed">
<?php include("includes/head.php"); ?>
<!-- BEGIN CONTAINER -->
<div class="page-container">
<?php include("includes/sidebar.php"); ?>
<!-- BEGIN CONTENT -->
<div class="page-content-wrapper">
<div class="page-content">
<!-- BEGIN PAGE HEADER-->
<div class="row">
<div class="col-md-12">
<!-- BEGIN PAGE TITLE & BREADCRUMB-->
<h3 class="page-title">
<?php echo CMS_TITULO; ?>
</h3>
<ul class="page-breadcrumb breadcrumb">
<li>
<i class="fa fa-cogs"></i>
<a>Sistema</a>
<i class="fa fa-angle-right"></i>
</li>
<li>
<i class="fa fa-users"></i>
<a href="admins.php">Usuarios</a>
<i class="fa fa-angle-right"></i>
</li>
<li>
<a href="admin_new.php">Nuevo Usuario</a>
</li>
</ul>
<!-- END PAGE TITLE & BREADCRUMB-->
</div>
</div>
<!-- END PAGE HEADER-->
<!-- content -->
<div class="row">
<div class="col-md-6 ">
<!-- BEGIN SAMPLE FORM PORTLET-->
<div class="portlet box blue">
<div class="portlet-title">
<div class="caption">
<i class="fa fa-cogs"></i> Nuevo Usuario
</div>
</div>
<div class="portlet-body form">
<?php
$forma = array(
"action" => "admin_new_proc.php",
"id" => "admin_new_form",
"method" => "post",
"enctype" => 0,
"edit" => 0,
"edit_values" => array(),
"submit" => "Guardar"
);
$fields = array (
array(
"type" => "text",
"label" => "Nombre del usuario",
"icon" => "fa-user",
"required" => true,
"name" => "user_fullname",
"value" => "",
"placeholder" => "Nombre del usuario",
"disabled" => false,
"data_values" => array(),
"editor" => false
),
array(
"type" => "text",
"label" => "Login",
"icon" => "",
"required" => true,
"name" => "user_login",
"value" => "",
"placeholder" => "Acceso",
"disabled" => false,
"data_values" => array(),
"editor" => false
),
array(
"type" => "email",
"label" => "Email",
"icon" => "fa-envelope",
"required" => true,
"name" => "user_email",
"value" => "",
"placeholder" => "Email",
"disabled" => false,
"data_values" => array(),
"editor" => false
),
array(
"type" => "password",
"label" => "Contraseña",
"icon" => "fa-lock",
"required" => true,
"name" => "user_passwd",
"value" => "",
"placeholder" => "Contraseña",
"disabled" => false,
"data_values" => array(),
"editor" => false
),
array(
"type" => "password",
"label" => "Confirma contraseña",
"icon" => "fa-lock",
"required" => true,
"name" => "user_passwd2",
"value" => "",
"placeholder" => "Confirma contraseña",
"disabled" => false,
"data_values" => array(),
"editor" => false
),
array(
"type" => "dropdown",
"label" => "Nivel de acceso",
"icon" => "fa-cogs",
"required" => true,
"name" => "user_level",
"value" => "",
"placeholder" => "",
"disabled" => false,
"data_values" => array(
array("value"=>2,"option"=>"Usuario", "checked"=>0),
array("value"=>1,"option"=>"Administrador", "checked"=>0),
),
"editor" => false
)
);
echo create_form($forma, $fields);
?>
</div>
</div>
<!-- end content -->
</div>
</div>
<!-- END CONTENT -->
</div>
<!-- END CONTAINER -->
<?php include("includes/footer.php"); ?>