当前位置: 首页>>代码示例>>PHP>>正文


PHP PageController::get_dashboard_database方法代码示例

本文整理汇总了PHP中PageController::get_dashboard_database方法的典型用法代码示例。如果您正苦于以下问题:PHP PageController::get_dashboard_database方法的具体用法?PHP PageController::get_dashboard_database怎么用?PHP PageController::get_dashboard_database使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在PageController的用法示例。


在下文中一共展示了PageController::get_dashboard_database方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: PageController

<?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>";
}
开发者ID:E89son,项目名称:LieisonCMS,代码行数:31,代码来源:ResponsiveControlPaginas.php

示例2: PageController

   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'];
开发者ID:E89son,项目名称:LieisonCMS,代码行数:31,代码来源:view_edit_paginas.php


注:本文中的PageController::get_dashboard_database方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。