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


PHP Frontend::getList方法代码示例

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


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

示例1: Frontend

<?php

require_once "../backend/model/Frontend.php";
$model = new Frontend();
$city_id = $_POST['city_id'];
$type_id = $_POST['type_id'];
$price_id = $_POST['price_id'];
$district_id = $_POST['district_id'];
$roomTotalArr = $model->getList("objects", -1, -1, array('city_id' => $city_id, 'type_id' => $type_id, 'price_id' => $price_id));
$total_record_room = $roomTotalArr['total'];
$total_page_room = ceil($total_record_room / 24);
$page = isset($_POST['page']) ? (int) $_POST['page'] : 1;
$offset = 24 * ($page - 1);
$roomArr = $model->getList("objects", $offset, 24, array('city_id' => $city_id, 'type_id' => $type_id, 'price_id' => $price_id));
?>

  <?php 
if (!empty($roomArr['data'])) {
    foreach ($roomArr['data'] as $key => $value) {
        //var_dump("<pre>", $value);
        ?>
   <li class="col-md-3 col-sm-4 col-sx-4 li_content_room">
      <div class="room-item">
        <div class="thumb view-first" style="position:relative">
        <?php 
        if ($value['status'] == 1) {
            ?>
        <label class="label label-success lable-lg" style="position:absolute; top : 5px; right: 5px;font-size:15px">Đang trống</label>                            
        <?php 
        }
        ?>
开发者ID:hoangnhonline,项目名称:phong-tro-sg,代码行数:31,代码来源:cate.php

示例2: array

     $seo = $model->getDetailSeo(3);
     break;
 case "info":
     $seo = $model->getDetailSeo(8);
     break;
 case "detail":
     $detail = $imageHouseArr = array();
     $product_alias = $tmp_uri[2];
     $tmp = explode("-", $product_alias);
     $id = (int) end($tmp);
     $seo = $detail = $model->getDetail("objects", $id);
     $object_type = $detail['object_type'];
     $type_id = $detail['type_id'];
     $detailType = $model->getDetail('type_bds', $type_id);
     if ($object_type == 1) {
         $convenientArr = $model->getList('convenient', -1, -1);
         $arrAddonSelected = $model->getListRoomInfo($id, 1);
         $arrConvenientSelected = $model->getListRoomInfo($id, 2);
         $imageArr = $model->getChild("images", "object_id", $id, 2);
         $houseDetail = $model->getDetail("house", $detail['house_id']);
         $imageHouseArr = $model->getChild("images", "object_id", $detail['house_id'], 1);
         $detailMod = $model->getDetail('users', $houseDetail['user_id']);
         $houseServiceArr = $model->getHouseServices($detail['house_id']);
     } else {
         $type_images = $object_type == 3 ? 4 : 1;
         $imageHouseArr = $model->getChild("images", "object_id", $id, $type_images);
         $detailMod = $model->getDetail('users', $detail['user_id']);
         $houseServiceArr = $model->getHouseServices($detail['id']);
     }
     /*
     $data = $seo = $arrDetailProduct['data'];
开发者ID:hoangnhonline,项目名称:phong-tro-sg,代码行数:31,代码来源:routes.php

示例3: Frontend

<?php

session_start();
date_default_timezone_set('Asia/Saigon');
require_once 'routes.php';
require_once "backend/models/Frontend.php";
$model = new Frontend();
$cateArr = $model->getList('cate');
?>
<!DOCTYPE html>
<html lang="en">
	<head>
		<title><?php 
echo $seo['meta_title'];
?>
</title>
        <base href="http://<?php 
echo $_SERVER["SERVER_NAME"];
?>
">   
        <meta name="description" content="<?php 
echo $seo['meta_description'];
?>
">
        <meta name="keyword" content="<?php 
echo $seo['meta_keyword'];
?>
">
		<meta charset="utf-8">
		<!--[if IE]>
		<meta http-equiv='X-UA-Compatible' content='IE=edge,chrome=1'>
开发者ID:hoangnhonline,项目名称:lam-dep,代码行数:31,代码来源:index.php

示例4: Frontend

<?php

require_once "../backend/model/Frontend.php";
$model = new Frontend();
$city_id = $_POST['city_id'];
$object_type = $_POST['object_type'];
$roomTotalArr = $model->getList("objects", -1, -1, array('city_id' => $city_id, 'object_type' => $object_type));
$total_record_room = $roomTotalArr['total'];
$total_page_room = ceil($total_record_room / 24);
$page = isset($_POST['page']) ? (int) $_POST['page'] : 1;
$offset = 24 * ($page - 1);
$roomArr = $model->getList("objects", $offset, 24, array('city_id' => $city_id, 'object_type' => $object_type));
?>

  <?php 
if (!empty($roomArr['data'])) {
    foreach ($roomArr['data'] as $key => $value) {
        //var_dump("<pre>", $value);
        ?>
  <li class="col-md-3 col-sm-4 col-sx-4 li_content_room">
    <div class="room-item">
   <a href="chi-tiet/<?php 
        echo $value['alias'];
        ?>
-<?php 
        echo $value['id'];
        ?>
.html" class="info">
      <div class="thumb view-first" style="position:relative">
      <?php 
        if ($value['status'] == 1) {
开发者ID:hoangnhonline,项目名称:phong-tro-sg,代码行数:31,代码来源:list.php


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