本文整理汇总了PHP中PageController::get_seccion_dashboard方法的典型用法代码示例。如果您正苦于以下问题:PHP PageController::get_seccion_dashboard方法的具体用法?PHP PageController::get_seccion_dashboard怎么用?PHP PageController::get_seccion_dashboard使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PageController
的用法示例。
在下文中一共展示了PageController::get_seccion_dashboard方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: PageController
<?php
include '../../../Conf/Include.php';
set_dependencies(array("PageController", "AdminController"));
$pagecontroller = new PageController();
$pages = $pagecontroller->get_seccion_dashboard(2);
echo "<thead>";
echo '<th></th>';
echo '<th>Nombre</th>';
echo '<th>Inicio</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['titulo'] . "</td>";
echo "<td>" . $value['numero'] . "</td>";
echo "<td>" . $pagecontroller->ConvertPrivToString($value['privilegios']) . "</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_seccion.php?id=" . $value['id_seccion'] . "'><i class='fa fa-pencil'></i></a> <a class='btn green' href='add_dashboard_seccion.php?id=" . $value['id_seccion'] . "" . "'><i class='fa fa-check'></a>" . "</td>";
echo "</tr>";
}
echo "</tbody>";
示例2: PageController
<div class="form-group">
<label class="col-md-3 control-label">Direccion (Link)</label>
<div class="col-md-9">
<input type="text" id="txt_link" class="form-control input-sm" placeholder="Default Input" value="<?php
echo $dash['link'];
?>
">
</div>
</div>
<div class="form-group">
<label class="col-md-3 control-label">Seccion de la pagina</label>
<div class="col-md-9">
<select id="cmd_seccion" class="selectpicker">
<?php
$page = new PageController();
$seccion = $page->get_seccion_dashboard();
foreach ($seccion as $val) {
$sec_title = $val['titulo'];
$sec_icono = $val['icono'];
$sec_id = $val['id_seccion'];
if ((int) $dash['id_seccion'] === (int) $sec_id) {
echo '<option selected value="' . $sec_id . '" data-content="' . "<i class='" . $sec_icono . "'></i> <b>{$sec_title}</b>" . '"></option>';
} else {
echo '<option value="' . $sec_id . '" data-content="' . "<i class='" . $sec_icono . "'></i> <b>{$sec_title}</b>" . '"></option>';
}
}
unset($page);
?>
</select>
</div>