-
Notifications
You must be signed in to change notification settings - Fork 1
/
contacto.php
executable file
·98 lines (86 loc) · 2.59 KB
/
contacto.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
<?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-envelope"></i>
<a>Sistema</a>
<i class="fa fa-angle-right"></i>
</li>
<li>
<a href="contacto.php">Contacto</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> Contacto
</div>
</div>
<div class="portlet-body form">
<?php
if(intval($_GET['e']==1)) {
echo crear_alerta("error", "<strong>Error:</strong> al modificar la información");
} else if(intval($_GET['e']==2)) {
echo crear_alerta("success", "<strong>Exito:</strong> al modificar la información");
}
$database = new Database();
$sql="SELECT * FROM posts WHERE posts_section=:section";
$database->query($sql);
$database->bind(':section', 'contacto');
$row = $database->single();
$forma = array(
"action" => "contacto_proc.php",
"id" => "contacto_form",
"method" => "post",
"enctype" => 0,
"edit" => 0,
"edit_values" => array(),
"submit" => "Guardar"
);
$fields = array (
array(
"type" => "email",
"label" => "Email",
"icon" => "fa-envelope",
"required" => true,
"name" => "posts_extra",
"value" => utf8_decode($row['posts_extra']),
"placeholder" => "Email de contacto",
"disabled" => false,
"data_values" => array(),
"editor" => false
)
);
echo create_form($forma, $fields);
?>
</div>
</div>
<!-- end content -->
</div>
</div>
<!-- END CONTENT -->
</div>
<!-- END CONTAINER -->
<?php include("includes/footer.php"); ?>