<?php

include '../../../Conf/Include.php';
set_dependencies(array("PageController", "AdminController"));
$pagecontroller = new PageController();
$pages = $pagecontroller->get_dashboard_database();
echo '<table class="table table-striped table-bordered table-hover" id="io_1">' . '<thead><tr>';
echo '<th></th>';
echo '<th>Nombre</th>';
echo '<th>Pagina</th>';
echo '<th>Seccion</th>';
echo '<th>Privilegios</th>';
echo '<th>Estado</th>';
echo '<th></th>';
echo '</tr></thead>';
echo '<tbody>';
foreach ($pages as $key => $value) {
    echo '<tr class="odd gradeX">';
    echo "<td><span class='" . $value['icono'] . "'></span></td>";
    echo "<td>" . $value['dash_titulo'] . "</td>";
    echo "<td>" . $value['link'] . "</td>";
    echo "<td>" . $value['sec_titulo'] . "</td>";
    echo "<td>" . $value['priv_nombre'] . "</td>";
    if ($value['status'] == 1) {
        echo "<td>Activo</td>";
    } else {
        echo "<td>No Activo</td>";
    }
    echo "<td><a class='btn btn-primary' href='edit_dashboard_page.php?id=" . $value['id'] . "&del=0'><i class='fa fa-pencil'></i></a> <a class='btn green' href='edit_dashboard_page.php?id=" . $value['id'] . "&del=1&status=" . $value['status'] . "'><i class='fa fa-check'></a>" . "</td>";
    echo "</tr>";
}
Example #2
0
   LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
   OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
   SOFTWARE. 
* 
*@version 1.0
*@todo Lieison S.A de C.V 
*/
$id = $_REQUEST['id'] ?: null;
$del = $_REQUEST['del'] ?: null;
if ($id == null && $del == null) {
    echo '<div class="alert alert-danger" role="alert">PAGINA NO ENCONTRADA </div><br>';
    echo "<a class='btn btn-primary' href='index.php'>Regresar </a>";
    exit;
}
$page = new PageController();
$dash = $page->get_dashboard_database($id);
unset($page);
?>

<?php 
if (!$del) {
    ?>

					<div class="portlet box purple ">
						<div class="portlet-title">
							<div class="caption">
								<i class="<?php 
    echo $dash['icono'];
    ?>
"></i> <?php 
    echo $dash['dash_titulo'];