<?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>
<?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">
<?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;
$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>
$arrCustom['phone'] = ''; } if (isset($_GET['created_at']) && $_GET['created_at'] != '') { $arrCustom['created_at'] = $_GET['created_at']; $link .= "&created_at={$created_at}"; } else { $arrCustom['created_at'] = ''; } if (isset($_GET['status']) && $_GET['status'] != '') { $arrCustom['status'] = $_GET['status']; $link .= "&status={$status}"; } else { $arrCustom['status'] = -1; } $table = "reservation"; $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); $arrEvent = $model->getList('events', -1, -1); ?> <div class="row"> <div class="col-md-12"> <div class="box-header"> <h2 class="box-title" style="text-tranform:uppercase !important;color: #B10007">CONTACT LIST</h2> </div><!-- /.box-header --> <div class="box"> <div class="box_search col-md-12" style="text-align:left"> <form method="get" id="form_search" name="form_search">
$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);
<?php require_once "model/Backend.php"; $model = new Backend(); $link = "index.php?mod=seo&act=list"; $list = $model->getList('seo', -1, -1); ?> <div class="row"> <div class="col-md-12"> <div class="box-header"> <h3 class="box-title">SEO List</h3> </div><!-- /.box-header --> <div class="box"> <div class="box_search"> </div> <div class="box-body"> <table class="table table-bordered table-striped" id="tbl_list">
<?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
<?php require_once "model/Backend.php"; $model = new Backend(); $link = "index.php?mod=text&act=list"; if (isset($_GET['status']) && $_GET['status'] > 0) { $lang_id = (int) $_GET['status']; $status .= "&status={$status}"; } else { $status = -1; } $listTotal = $model->getList('text', -1, -1); $total_record = $listTotal['total']; $limit = 100; $total_page = ceil($total_record / $limit); $page = isset($_GET['page']) ? (int) $_GET['page'] : 1; $offset = $limit * ($page - 1); $list = $model->getList('text', $offset, $limit); ?> <div class="row"> <div class="col-md-12"> <button class="btn btn-primary btn-sm right" onclick="location.href='index.php?mod=text&act=form'">Tạo mới</button> <div class="box-header"> <h3 class="box-title">Danh sách text</h3> </div><!-- /.box-header --> <div class="box"> <div class="box-body"> <table class="table table-bordered table-striped"> <tbody><tr> <th style="width: 10px">No.</th>
<?php require_once "model/Backend.php"; $model = new Backend(); $link = "index.php?mod=page&act=list"; $arrList = $model->getList("pages", -1, -1); ?> <div class="row"> <div class="col-md-12"> <button class="btn btn-primary btn-sm right" onclick="location.href='index.php?mod=page&act=form'">Tạo mới</button> <div class="box-header"> <h3 class="box-title">Danh sách trang</h3> </div><!-- /.box-header --> <div class="box"> <div class="box_search"> </div> <div class="box-body">
<?php require_once "model/Backend.php"; $model = new Backend(); $link = "index.php?mod=doanhthu&act=list"; if (isset($_GET['contract_id']) && $_GET['contract_id'] > 0) { $contract_id = (int) $_GET['contract_id']; $detail = $model->getDetail('contract', $contract_id); } else { $contract_id = -1; } $limit = "100"; $table = "doanh_thu"; $listTotal = $model->getList($table, -1, -1, array('contract_id' => $contract_id)); $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, array('contract_id' => $contract_id)); ?> <div class="row"> <div class="col-md-12"> <?php if ($detail['status'] == 1) { ?> <button class="btn btn-primary btn-sm right" onclick="location.href='index.php?mod=doanhthu&act=form&contract_id=<?php echo $contract_id; ?> '">Thêm mới doanh thu tháng</button> <?php }
<?php require_once "model/Backend.php"; $model = new Backend(); $link = $link_back = "index.php?mod=pages&act=list"; $link_form = "index.php?mod=pages&act=form"; $table = "pages"; $list = $model->getList($table, 0, 100); ?> <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=pages&act=list">Trang nội dung</a></li> </ol> </section> <a class="btn btn-primary btn-sm right" href="<?php echo $link_form; ?> ">Tạo mới</a> <div class="box-header"> <h2 class="box-title" style="text-tranform:uppercase !important;color: #B10007"> Danh sách trang nội dung </h2> </div><!-- /.box-header --> <div class="box"> <div class="box-body"> <table class="table table-bordered table-striped" id="tbl_list"> <tbody><tr> <th width="1%">No.</th>
<?php require_once "model/Backend.php"; $model = new Backend(); $link = $link_back = "index.php?mod=footer&act=list"; $link_form = "index.php?mod=footer&act=form"; $table = "footer"; $listTotal = $model->getList($table, -1, -1, array(), 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, array(), 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=footer&act=list">Nội dung footer</a></li> </ol> </section> <a class="btn btn-primary btn-sm right" href="<?php echo $link_form; ?> ">Tạo mới</a> <div class="box-header"> <h2 class="box-title" style="text-tranform:uppercase !important;color: #B10007"> Danh sách nội dung footer </h2> </div><!-- /.box-header -->
} else { $user_id = $_SESSION['user_id']; } require_once "model/Backend.php"; $model = new Backend(); $link = "index.php?mod=doanhthu&act=list"; if (isset($_GET['contract_id']) && $_GET['contract_id'] > 0) { $contract_id = (int) $_GET['contract_id']; $detail = $model->getDetail('contract', $contract_id); } else { $contract_id = -1; } $month = isset($_GET['month']) ? (int) $_GET['month'] : -1; $year = isset($_GET['year']) ? (int) $_GET['year'] : -1; $arrList = $model->getDoanhThuTotalUser($user_id, $month, $year); $modArr = $model->getList('users', -1, -1, array('level' => 2)); ?> <form id="exportForm" action="export.php"> <input type="hidden" name="user_id" value="<?php echo $user_id; ?> "> <input type="hidden" name="year" value="<?php echo $year; ?> "> <input type="hidden" name="month" value="<?php echo $month; ?> "> </form>
<?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
<?php require_once "model/Backend.php"; $model = new Backend(); $link = "index.php?mod=convenient&act=list"; if (isset($_GET['status']) && $_GET['status'] > 0) { $lang_id = (int) $_GET['status']; $status .= "&status={$status}"; } else { $status = -1; } $table = "convenient"; $listTotal = $model->getList($table, -1, -1); $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); ?> <div class="row"> <div class="col-md-12"> <button class="btn btn-primary btn-sm right" onclick="location.href='index.php?mod=convenient&act=form'">Tạo mới</button> <div class="box-header"> <h3 class="box-title">Danh sách tiện nghi</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>
<?php require_once "model/Backend.php"; $model = new Backend(); $link = "index.php?mod=block&act=list"; $arrList = $model->getList("block", -1, -1); ?> <div class="row"> <div class="col-md-12"> <button class="btn btn-primary btn-sm right" onclick="location.href='index.php?mod=block&act=form'">Tạo mới</button> <div class="box-header"> <h3 class="box-title">Danh sách block</h3> </div><!-- /.box-header --> <div class="box"> <div class="box_search"> </div> <div class="box-body">