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


PHP Backend::getList方法代码示例

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


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

示例1: Backend

<?php

require_once "model/Backend.php";
$model = new Backend();
$link = "index.php?mod=customers&act=list";
$table = "customers";
if ($_SESSION['level'] == 1) {
    $arrCustom['user_id'] = -1;
} else {
    $arrCustom['user_id'] = $_SESSION['user_id'];
}
$arrCustom['is_main'] = 1;
$listTotal = $model->getList($table, -1, -1, $arrCustom);
$total_record = $listTotal['total'];
$total_page = ceil($total_record / LIMIT);
$page = isset($_GET['page']) ? (int) $_GET['page'] : 1;
$offset = LIMIT * ($page - 1);
$list = $model->getList($table, $offset, LIMIT, $arrCustom);
?>
<div class="row">
    <div class="col-md-12">
    <button class="btn btn-primary btn-sm right" onclick="location.href='index.php?mod=customers&act=form'">Tạo mới</button>
         <div class="box-header">
                <h3 class="box-title">Danh sách khách hàng</h3>
            </div><!-- /.box-header -->
        <div class="box">

            <div class="box-body">
                <table class="table table-bordered table-striped">
                    <tbody><tr>
                        <th width="1%">No.</th>                        
开发者ID:hoangnhonline,项目名称:bds-sth,代码行数:31,代码来源:list.php

示例2: Backend

<?php

require_once "model/Backend.php";
$model = new Backend();
$cityArr = $model->getList('city', -1, -1);
$districtArr = $model->getList('district', -1, -1);
$wardArr = $model->getList('ward', -1, -1);
$houseArr = $model->getList('house', -1, -1);
$link = "index.php?mod=contract&act=list";
$arrCustom = array('code' => '');
if ($_SESSION['level'] == 1) {
    $arrCustom['user_id'] = -1;
} else {
    $arrCustom['user_id'] = $_SESSION['user_id'];
}
foreach ($arrCustom as $key => $value) {
    if (isset($_GET[$key]) && $_GET[$key] > 0 || isset($_GET[$key]) && $_GET[$key] != '' && $_GET[$key] != '-1' && $_GET[$key] != '0') {
        $tmp = $_GET[$key];
        $link .= "&" . $key . "=" . $tmp;
        $arrCustom[$key] = $tmp;
    }
}
$table = "contract";
$listTotal = $model->getList($table, -1, -1, $arrCustom);
$total_record = $listTotal['total'];
$total_page = ceil($total_record / LIMIT);
$page = isset($_GET['page']) ? (int) $_GET['page'] : 1;
$offset = LIMIT * ($page - 1);
$list = $model->getList($table, $offset, LIMIT, $arrCustom);
?>
<div class="row">
开发者ID:hoangnhonline,项目名称:phong-tro-sg,代码行数:31,代码来源:list.php

示例3: Backend

<?php

require_once "model/Backend.php";
$model = new Backend();
$link = $link_back = "index.php?mod=cate-articles&act=list";
$link_form = "index.php?mod=cate-articles&act=form";
if (isset($_GET['name_vi']) && $_GET['name_vi'] != '') {
    $arrCustom['name_vi'] = $_GET['name_vi'];
    $link .= "&name=" . $arrCustom['name_vi'];
    $link_back .= "&name=" . $arrCustom['name_vi'];
} else {
    $arrCustom['name_vi'] = '';
}
$table = "articles_cate";
$listTotal = $model->getList($table, -1, -1, $arrCustom, 1);
$total_record = $listTotal['total'];
$total_page = ceil($total_record / 100);
$page = isset($_GET['page']) ? (int) $_GET['page'] : 1;
$offset = 100 * ($page - 1);
$list = $model->getList($table, $offset, 100, $arrCustom, 1);
?>
<div class="row">
    <div class="col-md-12">
        <section class="content-header">     
      <ol class="breadcrumb">
        <li><a href="index.php"><i class="fa fa-dashboard"></i> Dashboard</a></li>
        <li><a href="index.php?mod=cate-articles&act=list">Danh mục tin tức</a></li>       
      </ol>
    </section>
    <a class="btn btn-primary btn-sm right" href="<?php 
echo $link_form;
开发者ID:hoangnhonline,项目名称:hoa-tuoi,代码行数:31,代码来源:list.php

示例4: ceil

    $link_form .= "&cate_id=" . $cate_id;
    $arrCustom['cate_id'] = $cate_id;
    $detailParent = $model->getDetail('articles_cate', $cate_id);
} else {
    $cate_id = -1;
}
if (isset($_GET['is_hot'])) {
    $is_hot = $_GET['is_hot'];
    $link .= "&is_hot=" . $is_hot;
    $link_form .= "&is_hot=" . $is_hot;
    $arrCustom['is_hot'] = $is_hot;
} else {
    $is_hot = -1;
}
$table = "articles";
$listTotal = $model->getList($table, -1, -1, $arrCustom);
$total_record = $listTotal['total'];
$total_page = ceil($total_record / 100);
$page = isset($_GET['page']) ? (int) $_GET['page'] : 1;
$offset = 100 * ($page - 1);
$list = $model->getList($table, $offset, 100, $arrCustom);
$cateArr = $model->getList('articles_cate', -1, -1);
?>
<div class="row">
    <div class="col-md-12">
        <section class="content-header">     
      <ol class="breadcrumb">
        <li><a href="index.php"><i class="fa fa-dashboard"></i> Dashboard</a></li>
        <li><a href="index.php?mod=articles&act=list">Tin tức</a></li>       
      </ol>
    </section>
开发者ID:hoangnhonline,项目名称:hoa-tuoi,代码行数:31,代码来源:list.php

示例5: array

$detail = array();
if (isset($_GET['house_id']) && $_GET['house_id'] > 0) {
    $house_id = (int) $_GET['house_id'];
    $detail = $model->getDetail('house', $house_id);
} else {
    $house_id = -1;
}
$month = isset($_GET['month']) ? (int) $_GET['month'] : -1;
$year = isset($_GET['year']) ? (int) $_GET['year'] : -1;
if ($_SESSION['level'] == 1) {
    $user_id = -1;
} else {
    $user_id = $_SESSION['user_id'];
}
$arrList = $model->getChiPhiTotalHouse($house_id, $user_id, $month, $year);
$modArr = $model->getList('users', -1, -1, array('level' => 2));
/* get list house */
$arrCustom = array('type' => 1);
if ($_SESSION['level'] == 1) {
    $arrCustom['user_id'] = -1;
} else {
    $arrCustom['user_id'] = $_SESSION['user_id'];
}
foreach ($arrCustom as $key => $value) {
    if (isset($_GET[$key]) && $_GET[$key] > 0 || $_GET[$key] != '' && $_GET[$key] != '-1' && $_GET[$key] != '0') {
        $tmp = $_GET[$key];
        $link .= "&" . $key . "=" . $tmp;
        $arrCustom[$key] = $tmp;
    }
}
$houseArr = $model->getList('house', -1, -1, $arrCustom);
开发者ID:hoangnhonline,项目名称:bds-sth,代码行数:31,代码来源:list-chi-phi.php

示例6: Backend

<?php

$id = 0;
$is_detail = false;
if (isset($_GET['id'])) {
    $id = (int) $_GET['id'];
    require_once "model/Backend.php";
    $model = new Backend();
    $detail = $model->getDetail("articles", $id);
    $is_detail = true;
}
$cateArr = $model->getList('articles_cate', -1, -1);
?>
<div class="row">
    <div class="col-md-12">
        <section class="content-header">     
          <ol class="breadcrumb">
            <li><a href="index.php"><i class="fa fa-dashboard"></i> Dashboard</a></li>
            <li><a href="index.php?mod=articles&act=list">Tin tức</a></li>              
          </ol>
        </section>
        <!-- Custom Tabs -->
        <button class="btn btn-primary btn-sm" onclick="location.href='index.php?mod=articles&act=list'">
            Danh sách
        </button>
        <div style="clear:both;margin-bottom:10px"></div>

        <div class="box box-primary">
            <div class="box-header">
                <h2 class="box-title" style="text-tranform:uppercase !important;color: #B10007">
                    <?php 
开发者ID:hoangnhonline,项目名称:hoa-tuoi,代码行数:31,代码来源:form.php

示例7: Backend

<?php

$id = 0;
if (isset($_GET['id'])) {
    $id = (int) $_GET['id'];
    $contract_id = (int) $_GET['contract_id'];
    require_once "model/Backend.php";
    $model = new Backend();
    $detail = $model->getDetail("doanh_thu", $id);
    $detailHD = $model->getDetail('contract', $contract_id);
    $arrPriceDT = $model->getDoanhThuThang($id, 1);
    $arrServiceDT = $model->getDoanhThuThang($id, 2);
    $arrConvenientDT = $model->getDoanhThuThang($id, 3);
    $arrService = $model->getList('services', -1, -1);
    $arrCon = $model->getList('convenient', -1, -1);
}
?>
<div class="row">   
   
    <div class="col-md-12">

        <!-- Custom Tabs -->

        <button class="btn btn-default btn-sm" onclick="location.href='index.php?mod=doanhthu&act=list&contract_id=<?php 
echo $contract_id;
?>
'">Quay lại</button>
        <?php 
if ($detailHD['status'] == 1) {
    ?>
        <button class="btn btn-primary btn-sm" onclick="location.href='index.php?mod=doanhthu&act=form&id=<?php 
开发者ID:hoangnhonline,项目名称:bds-sth,代码行数:31,代码来源:view.php


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