Example #1
0
							</div>
							
						</div>
						<div class="portlet-body flip-scroll">
                        <?php 
if (intval($_GET['e'] == 1)) {
    echo crear_alerta("error", "<strong>Error:</strong> de dashboard");
} else {
    if (intval($_GET['e'] == 2)) {
        echo crear_alerta("success", "<strong>Exito:</strong> de dashboard");
    } else {
        if (intval($_GET['e'] == 3)) {
            echo crear_alerta("success", "<strong>Exito:</strong> eliminar dashboard");
        } else {
            if (intval($_GET['e'] == 2)) {
                echo crear_alerta("success", "<strong>Exito:</strong> editar dashboard");
            }
        }
    }
}
?>
		
                        
							<table class="table table-bordered table-striped">
							<thead>
							<tr>
								<th>Nombre</th>
                               	<th>Otro</th>
                                <th style="text-align:center">Acciones</th>
							</tr>
							</thead>
Example #2
0
           <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 -->           
            
Example #3
0
File: admins.php Project: Zilus/cms
				<div class="col-md-12">
					<!-- BEGIN SAMPLE TABLE PORTLET-->
					<div class="portlet box red">
						<div class="portlet-title">
							<div class="caption">
								<i class="fa fa-users"></i>Usuarios del sistema
							</div>
							
						</div>
						<div class="portlet-body flip-scroll">
                        	<?php 
if (intval($_GET['e'] == 1)) {
    echo crear_alerta("error", "<strong>Error:</strong> al crear el usuario");
} else {
    if (intval($_GET['e'] == 2)) {
        echo crear_alerta("success", "<strong>Exito:</strong> usuario creado correctamente");
    }
}
?>
							<table class="table table-bordered table-striped">
							<thead>
                                <tr>
                                   <th>Nombre</th>
                                   <th>Nivel</th>
                                   <th>Email</th>
                                   <th style="text-align:center">Acciones</th>
                                </tr>  
							</thead>
                            
							<tbody>
							<?php 
Example #4
0
				<div class="col-md-12 ">
					<!-- BEGIN SAMPLE FORM PORTLET-->
					<div class="portlet box blue">
						<div class="portlet-title">
							<div class="caption">
								<i class="fa fa-cogs"></i> Sección: Consorcio
							</div>
						</div>
						<div class="portlet-body form">
                        <?php 
$e = intval($_GET['e']);
if ($e == 1) {
    echo crear_alerta("error", "<strong>Error!</strong> Algo fallo, por favor intenta de nuevo.");
} else {
    if ($e == 2) {
        echo crear_alerta("success", "<strong>Exito!</strong> Los cambios se han guardado con exito.");
    }
}
$database = new Database();
$sql = "SELECT * FROM posts WHERE posts_section=:posts_section";
$database->query($sql);
$database->bind(':posts_section', 'posts_section');
$row = $database->single();
$forma = array("action" => "posts_edit_proc.php", "id" => "", "method" => "post", "enctype" => 0, "edit" => 1, "edit_values" => array(array("name" => "posts_id", "value" => $row['posts_id'])), "submit" => "Guardar cambios");
$fields = array(array("type" => "text", "label" => "Titulo", "icon" => "fa-cogs", "required" => true, "name" => "posts_title", "value" => $row['posts_title'], "placeholder" => "Placeholder", "disabled" => false, "data_values" => array(), "editor" => false), array("type" => "textarea", "label" => "Contenido", "icon" => "fa-cogs", "required" => true, "name" => "posts_content", "value" => $row['posts_content'], "placeholder" => "", "disabled" => false, "data_values" => array(), "editor" => true));
echo create_form($forma, $fields);
?>
						</div>
					</div>
            <!-- end content -->           
            
Example #5
0
File: files.php Project: Zilus/cms
				<div class="col-md-12">
					<!-- BEGIN SAMPLE TABLE PORTLET-->
					<div class="portlet box red">
						<div class="portlet-title">
							<div class="caption">
								<i class="fa fa-th"></i>Archivos
							</div>
							
						</div>
						<div class="portlet-body flip-scroll">
                        <?php 
if (intval($_GET['e'] == 1)) {
    echo crear_alerta("error", "<strong>Error:</strong> al procesar el archivo");
} else {
    if (intval($_GET['e'] == 2)) {
        echo crear_alerta("success", "<strong>Exito:</strong> archivo cargado correctamente");
    }
}
?>
							<table class="table table-bordered table-striped">
							<thead>
							<tr>
								<th>Titulo</th>
                               	<th>Fecha</th>
                                <th>Autor</th>
                                <th class="text-center">Ver detalles</th>
                                <th class="text-center">Descargar</th>
                                <th class="text-center">Eliminar</th>
							</tr>
							</thead>
                            
Example #6
0
File: blog.php Project: Zilus/cms
							</div>
							
						</div>
						<div class="portlet-body flip-scroll">
                        <?php 
if (intval($_GET['e'] == 1)) {
    echo crear_alerta("error", "<strong>Error:</strong> en la entrada");
} else {
    if (intval($_GET['e'] == 2)) {
        echo crear_alerta("success", "<strong>Exito:</strong> al crear entrada");
    } else {
        if (intval($_GET['e'] == 3)) {
            echo crear_alerta("success", "<strong>Exito:</strong> al eliminar entrada");
        } else {
            if (intval($_GET['e'] == 4)) {
                echo crear_alerta("success", "<strong>Exito:</strong> al editar entrada");
            }
        }
    }
}
?>
		
                        
							<table class="table table-bordered table-striped table-condensed flip-content">
							<thead class="flip-content">
							<tr>
                               	<th>Titulo</th>
                                <th>Fecha</th>
                                <th style="text-align:center">Acciones</th>
							</tr>
							</thead>
Example #7
0
           <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> Mantenimiento del sitio
							</div>
						</div>
						<div class="portlet-body form">
						<?php 
if (intval($_GET['e'] == 1)) {
    echo crear_alerta("error", "<strong>Error:</strong> al poner el sitio bajo mantenimiento");
} else {
    if (intval($_GET['e'] == 2)) {
        echo crear_alerta("success", "<strong>Exito:</strong> al poner el sitio bajo mantenimiento");
    }
}
$database = new Database();
$database->query('SELECT * FROM settings WHERE settings_desc= :settings_desc');
$database->bind(':settings_desc', 'ambulance');
$row = $database->single();
$forma = array("action" => "ambulance_proc.php", "id" => "", "method" => "post", "enctype" => 0, "edit" => 0, "edit_values" => array(), "submit" => "Guardar cambios");
$fields = array(array("type" => "radio", "label" => "Poner el sitio bajo mantenimiento", "icon" => "fa-ambulance", "required" => true, "name" => "settings_value", "value" => "", "placeholder" => "", "disabled" => false, "data_values" => array(array("value" => 1, "option" => "Si", "checked" => 0), array("value" => 0, "option" => "No", "checked" => 0)), "editor" => false));
$clave = multidimensional_search($fields, array('name' => "settings_value"));
$subclave = multidimensional_search($fields[$clave]["data_values"], array('value' => $row['settings_value']));
$fields[$clave]["data_values"][$subclave]["checked"] = 1;
echo create_form($forma, $fields);
?>
	
						</div>
Example #8
0
					<div class="portlet box red">
						<div class="portlet-title">
							<div class="caption">
								<i class="fa fa-th"></i>Fotos del album: <?php 
echo $row_a['album_name'];
?>
							</div>
							
						</div>
						<div class="portlet-body flip-scroll">
                        	<?php 
if (intval($_GET['e'] == 1)) {
    echo crear_alerta("error", "<strong>Error:</strong> al guardar la foto");
} else {
    if (intval($_GET['e'] == 2)) {
        echo crear_alerta("success", "<strong>Exito:</strong> foto guardada correctamente");
    }
}
?>
							<table class="table table-bordered table-striped">
							<thead>
							<tr>
								<th>Foto</th>
                                <th style="text-align:center">Acciones</th>
							</tr>
							</thead>
                            
							<tbody>
							<?php 
$sql = "SELECT * FROM fotos WHERE foto_album= :album_id ORDER BY foto_id ASC";
$database->query($sql);