本文整理匯總了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'];