diff --git a/application/api/controller/Product.php b/application/api/controller/Productcar.php similarity index 81% rename from application/api/controller/Product.php rename to application/api/controller/Productcar.php index 100c7063..41229e04 100644 --- a/application/api/controller/Product.php +++ b/application/api/controller/Productcar.php @@ -1,23 +1,24 @@ model = model('Order'); + $this->model = model('product_airport'); } /** * 读取产品信息 @@ -26,13 +27,14 @@ class Product extends Api { //设置过滤方法 $this->request->filter(['strip_tags']); - if ($this->request->isAjax()) - { +// if ($this->request->isAjax()) +// { //如果发送的来源是Selectpage,则转发到Selectpage if ($this->request->request('pkey_name')) { return $this->selectpage(); } + list($where, $sort, $order, $offset, $limit) = $this->buildparams(); $total = $this->model ->where($where) @@ -48,8 +50,11 @@ class Product extends Api $result = array("total" => $total, "rows" => $list); return json($result); - } - return $this->view->fetch(); + + // } +// return $this->view->fetch(); } + + } \ No newline at end of file diff --git a/application/api/controller/Productcarrental.php b/application/api/controller/Productcarrental.php new file mode 100644 index 00000000..6aa80964 --- /dev/null +++ b/application/api/controller/Productcarrental.php @@ -0,0 +1,60 @@ +model = model('product_day'); + } + /** + * 读取产品信息 + */ + public function index() + { + //设置过滤方法 + $this->request->filter(['strip_tags']); +// if ($this->request->isAjax()) +// { + //如果发送的来源是Selectpage,则转发到Selectpage + if ($this->request->request('pkey_name')) + { + return $this->selectpage(); + } + + list($where, $sort, $order, $offset, $limit) = $this->buildparams(); + $total = $this->model + ->where($where) + ->order($sort, $order) + ->count(); + + $list = $this->model + ->where($where) + ->order($sort, $order) + ->limit($offset, $limit) + ->select(); + + $result = array("total" => $total, "rows" => $list); + + return json($result); + // $this->success('','',json(),$result); + // } +// return $this->view->fetch(); + } + + + +} \ No newline at end of file diff --git a/application/api/controller/Productexperience.php b/application/api/controller/Productexperience.php new file mode 100644 index 00000000..9641f952 --- /dev/null +++ b/application/api/controller/Productexperience.php @@ -0,0 +1,60 @@ +model = model('product_day'); + } + /** + * 读取产品信息 + */ + public function index() + { + //设置过滤方法 + $this->request->filter(['strip_tags']); +// if ($this->request->isAjax()) +// { + //如果发送的来源是Selectpage,则转发到Selectpage + if ($this->request->request('pkey_name')) + { + return $this->selectpage(); + } + + list($where, $sort, $order, $offset, $limit) = $this->buildparams(); + $total = $this->model + ->where($where) + ->order($sort, $order) + ->count(); + + $list = $this->model + ->where($where) + ->order($sort, $order) + ->limit($offset, $limit) + ->select(); + + $result = array("total" => $total, "rows" => $list); + + return json($result); + // $this->success('','',json(),$result); + // } +// return $this->view->fetch(); + } + + + +} \ No newline at end of file diff --git a/application/api/controller/Productfood.php b/application/api/controller/Productfood.php new file mode 100644 index 00000000..16424110 --- /dev/null +++ b/application/api/controller/Productfood.php @@ -0,0 +1,60 @@ +model = model('product_day'); + } + /** + * 读取产品信息 + */ + public function index() + { + //设置过滤方法 + $this->request->filter(['strip_tags']); +// if ($this->request->isAjax()) +// { + //如果发送的来源是Selectpage,则转发到Selectpage + if ($this->request->request('pkey_name')) + { + return $this->selectpage(); + } + + list($where, $sort, $order, $offset, $limit) = $this->buildparams(); + $total = $this->model + ->where($where) + ->order($sort, $order) + ->count(); + + $list = $this->model + ->where($where) + ->order($sort, $order) + ->limit($offset, $limit) + ->select(); + + $result = array("total" => $total, "rows" => $list); + + return json($result); + // $this->success('','',json(),$result); + // } +// return $this->view->fetch(); + } + + + +} \ No newline at end of file diff --git a/application/api/controller/Producthotels.php b/application/api/controller/Producthotels.php new file mode 100644 index 00000000..c284b570 --- /dev/null +++ b/application/api/controller/Producthotels.php @@ -0,0 +1,60 @@ +model = model('product_day'); + } + /** + * 读取产品信息 + */ + public function index() + { + //设置过滤方法 + $this->request->filter(['strip_tags']); +// if ($this->request->isAjax()) +// { + //如果发送的来源是Selectpage,则转发到Selectpage + if ($this->request->request('pkey_name')) + { + return $this->selectpage(); + } + + list($where, $sort, $order, $offset, $limit) = $this->buildparams(); + $total = $this->model + ->where($where) + ->order($sort, $order) + ->count(); + + $list = $this->model + ->where($where) + ->order($sort, $order) + ->limit($offset, $limit) + ->select(); + + $result = array("total" => $total, "rows" => $list); + + return json($result); + // $this->success('','',json(),$result); + // } +// return $this->view->fetch(); + } + + + +} \ No newline at end of file diff --git a/application/api/controller/Productlocal.php b/application/api/controller/Productlocal.php new file mode 100644 index 00000000..4148cd2f --- /dev/null +++ b/application/api/controller/Productlocal.php @@ -0,0 +1,60 @@ +model = model('product_day'); + } + /** + * 读取产品信息 + */ + public function index() + { + //设置过滤方法 + $this->request->filter(['strip_tags']); +// if ($this->request->isAjax()) +// { + //如果发送的来源是Selectpage,则转发到Selectpage + if ($this->request->request('pkey_name')) + { + return $this->selectpage(); + } + + list($where, $sort, $order, $offset, $limit) = $this->buildparams(); + $total = $this->model + ->where($where) + ->order($sort, $order) + ->count(); + + $list = $this->model + ->where($where) + ->order($sort, $order) + ->limit($offset, $limit) + ->select(); + + $result = array("total" => $total, "rows" => $list); + + return json($result); + // $this->success('','',json(),$result); + // } +// return $this->view->fetch(); + } + + + +} \ No newline at end of file diff --git a/application/api/controller/Productmanydays.php b/application/api/controller/Productmanydays.php new file mode 100644 index 00000000..99276b32 --- /dev/null +++ b/application/api/controller/Productmanydays.php @@ -0,0 +1,60 @@ +model = model('product_day'); + } + /** + * 读取产品信息 + */ + public function index() + { + //设置过滤方法 + $this->request->filter(['strip_tags']); +// if ($this->request->isAjax()) +// { + //如果发送的来源是Selectpage,则转发到Selectpage + if ($this->request->request('pkey_name')) + { + return $this->selectpage(); + } + + list($where, $sort, $order, $offset, $limit) = $this->buildparams(); + $total = $this->model + ->where($where) + ->order($sort, $order) + ->count(); + + $list = $this->model + ->where($where) + ->order($sort, $order) + ->limit($offset, $limit) + ->select(); + + $result = array("total" => $total, "rows" => $list); + + return json($result); + // $this->success('','',json(),$result); + // } +// return $this->view->fetch(); + } + + + +} \ No newline at end of file diff --git a/application/api/controller/Productshow.php b/application/api/controller/Productshow.php new file mode 100644 index 00000000..ad86d223 --- /dev/null +++ b/application/api/controller/Productshow.php @@ -0,0 +1,60 @@ +model = model('product_day'); + } + /** + * 读取产品信息 + */ + public function index() + { + //设置过滤方法 + $this->request->filter(['strip_tags']); +// if ($this->request->isAjax()) +// { + //如果发送的来源是Selectpage,则转发到Selectpage + if ($this->request->request('pkey_name')) + { + return $this->selectpage(); + } + + list($where, $sort, $order, $offset, $limit) = $this->buildparams(); + $total = $this->model + ->where($where) + ->order($sort, $order) + ->count(); + + $list = $this->model + ->where($where) + ->order($sort, $order) + ->limit($offset, $limit) + ->select(); + + $result = array("total" => $total, "rows" => $list); + + return json($result); + // $this->success('','',json(),$result); + // } +// return $this->view->fetch(); + } + + + +} \ No newline at end of file diff --git a/application/api/controller/Producttickets.php b/application/api/controller/Producttickets.php new file mode 100644 index 00000000..3fc058ae --- /dev/null +++ b/application/api/controller/Producttickets.php @@ -0,0 +1,60 @@ +model = model('product_day'); + } + /** + * 读取产品信息 + */ + public function index() + { + //设置过滤方法 + $this->request->filter(['strip_tags']); +// if ($this->request->isAjax()) +// { + //如果发送的来源是Selectpage,则转发到Selectpage + if ($this->request->request('pkey_name')) + { + return $this->selectpage(); + } + + list($where, $sort, $order, $offset, $limit) = $this->buildparams(); + $total = $this->model + ->where($where) + ->order($sort, $order) + ->count(); + + $list = $this->model + ->where($where) + ->order($sort, $order) + ->limit($offset, $limit) + ->select(); + + $result = array("total" => $total, "rows" => $list); + + return json($result); + // $this->success('','',json(),$result); + // } +// return $this->view->fetch(); + } + + + +} \ No newline at end of file diff --git a/application/api/controller/Producttraffic.php b/application/api/controller/Producttraffic.php new file mode 100644 index 00000000..be27dd72 --- /dev/null +++ b/application/api/controller/Producttraffic.php @@ -0,0 +1,60 @@ +model = model('product_day'); + } + /** + * 读取产品信息 + */ + public function index() + { + //设置过滤方法 + $this->request->filter(['strip_tags']); +// if ($this->request->isAjax()) +// { + //如果发送的来源是Selectpage,则转发到Selectpage + if ($this->request->request('pkey_name')) + { + return $this->selectpage(); + } + + list($where, $sort, $order, $offset, $limit) = $this->buildparams(); + $total = $this->model + ->where($where) + ->order($sort, $order) + ->count(); + + $list = $this->model + ->where($where) + ->order($sort, $order) + ->limit($offset, $limit) + ->select(); + + $result = array("total" => $total, "rows" => $list); + + return json($result); + // $this->success('','',json(),$result); + // } +// return $this->view->fetch(); + } + + + +} \ No newline at end of file