<?php if (isset($_GET['nhaxe_id'])) { $nhaxe_id = (int) $_GET['nhaxe_id']; require_once "model/Nhaxe.php"; $model = new Nhaxe(); $detail = $model->getDetailNhaxe($nhaxe_id); } ?> <script type="text/javascript" src="static/ckeditor/ckeditor.js"></script> <script type="text/javascript" src="static/ckfinder/ckfinder.js"></script> <script type="text/javascript"> function BrowseServer( startupPath, functionData ){ var finder = new CKFinder(); finder.basePath = 'ckfinder/'; //Đường path nơi đặt ckfinder finder.startupPath = startupPath; //Đường path hiện sẵn cho user chọn file finder.selectActionFunction = SetFileField; // hàm sẽ được gọi khi 1 file được chọn finder.selectActionData = functionData; //id của text field cần hiện địa chỉ hình //finder.selectThumbnailActionFunction = ShowThumbnails; //hàm sẽ được gọi khi 1 file thumnail được chọn finder.popup(); // Bật cửa sổ CKFinder } //BrowseServer function BrowseServer2( startupPath, functionData ){ var finder = new CKFinder(); finder.basePath = 'ckfinder/'; //Đường path nơi đặt ckfinder finder.startupPath = startupPath; //Đường path hiện sẵn cho user chọn file finder.selectActionFunction = SetFileField2; // hàm sẽ được gọi khi 1 file được chọn finder.selectActionData = functionData; //id của text field cần hiện địa chỉ hình //finder.selectThumbnailActionFunction = ShowThumbnails; //hàm sẽ được gọi khi 1 file thumnail được chọn finder.popup(); // Bật cửa sổ CKFinder } //BrowseServer
<?php require_once "model/Image.php"; $model = new Image(); $link = "index.php?mod=image&act=list"; if (isset($_GET['nhaxe_id']) && $_GET['nhaxe_id'] > 0) { $nhaxe_id = (int) $_GET['nhaxe_id']; $link .= "&nhaxe_id={$nhaxe_id}"; } else { $nhaxe_id = -1; } require_once "model/Nhaxe.php"; $modelNhaxe = new Nhaxe(); $detailNhaxe = $modelNhaxe->getDetailNhaxe($nhaxe_id); $listTotal = $model->getListImageByNhaxe($nhaxe_id, -1, -1); $total_record = mysql_num_rows($listTotal); $total_page = ceil($total_record / 8); $page = isset($_GET['page']) ? (int) $_GET['page'] : 1; $offset = 8 * ($page - 1); $list = $model->getListImageByNhaxe($nhaxe_id, $offset, 8); ?> <div class="row"> <div class="col-md-12"> <button class="btn btn-primary btn-sm right" onclick="location.href='index.php?mod=nhaxe&act=form&nhaxe_id=<?php echo $nhaxe_id; ?> '">Chi tiết</button> <button class="btn btn-primary btn-sm right" onclick="location.href='index.php?mod=branch&act=list&nhaxe_id=<?php echo $nhaxe_id;
<?php if (isset($_GET['place_id'])) { $place_id = (int) $_GET['place_id']; require_once "model/Place.php"; $model = new Place(); $detail = $model->getDetailPlace($place_id); } require_once "model/Tinh.php"; $modelTinh = new Tinh(); // list nha xe require_once "model/Nhaxe.php"; $modelNhaxe = new Nhaxe(); $arrListNhaxe = $modelNhaxe->getListNhaxe('', -1, -1, -1); ?> <div class="row"> <div class="col-md-8"> <form method="post" action="controller/Place.php"> <!-- Custom Tabs --> <button class="btn btn-primary btn-sm">Danh sách</button> <div style="clear:both;margin-bottom:10px"></div> <div class="box-header"> <h3 class="box-title"><?php
<?php require_once "model/Nhaxe.php"; $model = new Nhaxe(); $link = "index.php?mod=nhaxe&act=list"; if (isset($_GET['hot']) && $_GET['hot'] > -1) { $hot = (int) $_GET['hot']; $link .= "&hot={$hot}"; } else { $hot = -1; } if (isset($_GET['keyword'])) { $keyword = $model->processData($_GET['keyword']); $link .= '&keyword=' . $keyword; } else { $keyword = ''; } $limit = 100; $arrTotal = $model->getListNhaxe($keyword, $hot, -1, -1); $total_page = ceil($arrTotal['total'] / $limit); $page = isset($_GET['page']) ? (int) $_GET['page'] : 1; $offset = $limit * ($page - 1); $arrList = $model->getListNhaxe($keyword, $hot, $offset, $limit); ?> <div class="row"> <div class="col-md-12"> <button class="btn btn-primary btn-sm right" onclick="location.href='index.php?mod=nhaxe&act=form'">Tạo mới</button> <button class="btn btn-primary btn-sm right" id="capnhat_thutu">Cập nhật thứ tự</button> <div class="box-header"> <h3 class="box-title">Danh sách nhà xe</h3>
$nhaxe_id = -1; } if (isset($_GET['keyword']) && trim($_GET['keyword']) != '') { $keyword = $_GET['keyword']; $link .= "&keyword={$keyword}"; } else { $keyword = ''; } $arrTotal = $model->getListPlace($nhaxe_id, $keyword, -1, -1); $total_page = ceil($arrTotal['total'] / LIMIT); $page = isset($_GET['page']) ? (int) $_GET['page'] : 1; $offset = LIMIT * ($page - 1); $arrList = $model->getListPlace($nhaxe_id, $keyword, $offset, LIMIT); // list nha xe require_once "model/Nhaxe.php"; $modelNhaxe = new Nhaxe(); $arrListNhaxe = $modelNhaxe->getListNhaxe('', -1, -1, -1); ?> <div class="row"> <div class="col-md-12"> <button class="btn btn-primary btn-sm right" onclick="location.href='index.php?mod=place&act=form'">Tạo mới</button>