本文整理汇总了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>";
}
示例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'];