Commit 29ac888e by biao

1

parent e95245a4
...@@ -152,7 +152,8 @@ CREATE TABLE IF NOT EXISTS circle_dat( ...@@ -152,7 +152,8 @@ CREATE TABLE IF NOT EXISTS circle_dat(
title varchar(64) NOT NULL, title varchar(64) NOT NULL,
member_count int8 NOT NULL DEFAULT '0', member_count int8 NOT NULL DEFAULT '0',
need_check tinyint(1) NOT NULL DEFAULT '0', need_check tinyint(1) NOT NULL DEFAULT '0',
comment text NOT NULL, front_image text,
comment text,
longitude text NOT NULL, longitude text NOT NULL,
latitude text NOT NULL, latitude text NOT NULL,
address text NOT NULL, address text NOT NULL,
......
...@@ -11,6 +11,7 @@ class CircleDat extends CompassDynamicData ...@@ -11,6 +11,7 @@ class CircleDat extends CompassDynamicData
var $title; var $title;
var $member_count; var $member_count;
var $need_check; var $need_check;
var $front_image;
var $comment; var $comment;
var $longitude; var $longitude;
var $latitude; var $latitude;
...@@ -31,6 +32,7 @@ class CircleDat extends CompassDynamicData ...@@ -31,6 +32,7 @@ class CircleDat extends CompassDynamicData
$this->title = $record["title"]; $this->title = $record["title"];
$this->member_count = $record["member_count"]; $this->member_count = $record["member_count"];
$this->need_check = $record["need_check"]; $this->need_check = $record["need_check"];
$this->front_image = $record["front_image"];
$this->comment = $record["comment"]; $this->comment = $record["comment"];
$this->longitude = $record["longitude"]; $this->longitude = $record["longitude"];
$this->latitude = $record["latitude"]; $this->latitude = $record["latitude"];
...@@ -103,7 +105,8 @@ class CircleDat extends CompassDynamicData ...@@ -103,7 +105,8 @@ class CircleDat extends CompassDynamicData
ParamUtil::copyObj2Array($v_param, $this, "title"); ParamUtil::copyObj2Array($v_param, $this, "title");
ParamUtil::copyObj2Array($v_param, $this, "member_count"); ParamUtil::copyObj2Array($v_param, $this, "member_count");
ParamUtil::copyObj2Array($v_param, $this, "need_check"); ParamUtil::copyObj2Array($v_param, $this, "need_check");
ParamUtil::copyObj2Array($v_param, $this, "comment"); ParamUtil::copyObj2ArrayNullField($v_param, $this, "front_image");
ParamUtil::copyObj2ArrayNullField($v_param, $this, "comment");
ParamUtil::copyObj2Array($v_param, $this, "longitude"); ParamUtil::copyObj2Array($v_param, $this, "longitude");
ParamUtil::copyObj2Array($v_param, $this, "latitude"); ParamUtil::copyObj2Array($v_param, $this, "latitude");
ParamUtil::copyObj2Array($v_param, $this, "address"); ParamUtil::copyObj2Array($v_param, $this, "address");
......
...@@ -29,7 +29,6 @@ require_once(COMPASS_LIB_ROOT . "/cn/compass/entity/UserCommentDat.inc"); ...@@ -29,7 +29,6 @@ require_once(COMPASS_LIB_ROOT . "/cn/compass/entity/UserCommentDat.inc");
require_once(COMPASS_LIB_ROOT . "/cn/compass/entity/UserFavoriteDat.inc"); require_once(COMPASS_LIB_ROOT . "/cn/compass/entity/UserFavoriteDat.inc");
require_once(COMPASS_LIB_ROOT . "/cn/compass/entity/UserMst.inc"); require_once(COMPASS_LIB_ROOT . "/cn/compass/entity/UserMst.inc");
require_once(COMPASS_LIB_ROOT . "/cn/compass/entity/UserPointLog.inc"); require_once(COMPASS_LIB_ROOT . "/cn/compass/entity/UserPointLog.inc");
require_once(COMPASS_LIB_ROOT . "/cn/compass/entity/UserSignDat.inc");
require_once(COMPASS_LIB_ROOT . "/cn/compass/entity/MediaTagDat.inc"); require_once(COMPASS_LIB_ROOT . "/cn/compass/entity/MediaTagDat.inc");
require_once(COMPASS_LIB_ROOT . "/cn/compass/entity/UserMediaDat.inc"); require_once(COMPASS_LIB_ROOT . "/cn/compass/entity/UserMediaDat.inc");
require_once(COMPASS_LIB_ROOT . "/cn/compass/entity/SystemConstDat.inc"); require_once(COMPASS_LIB_ROOT . "/cn/compass/entity/SystemConstDat.inc");
......
<?php
// 获取证书列表
require_once ("../user_include.inc");
ErrorLogger::doOutput("Compass...ajax_get_certificates.php....Start.", 0);
//获取参数
$page = ParamUtil::getRequestNumber("page", 0);
//每页显示条数
$rowCount = 10;
$result = array();
$offset = $page * $rowCount;
//检索数据库
$param = array();
$param['delete_flg'] = false;
$certificateList = CertificateMst::getList($param,'display_order','desc', $offset, $rowCount);
$allCount = CertificateMst::getListCount($param);
//接口返回数据
$result["allCount"] = $allCount;
$result["page"] = $page;
$result["rowCount"] = $rowCount;
$result["list"] = $certificateList;
ErrorLogger::doOutput("Compass...ajax_get_certificates.php....End.", 0);
//返回结果
responseOK($result);
function responseNG($result) {
$result = array("status"=>"NG", "result"=>$result);
print json_encode($result);
exit;
}
function responseOK($result) {
$result = array("status"=>"OK", "result"=>$result);
print json_encode($result);
exit;
}
?>
\ No newline at end of file
...@@ -36,8 +36,10 @@ $userMediaList = array(); ...@@ -36,8 +36,10 @@ $userMediaList = array();
if(!empty($tmpUserMediaList)) { if(!empty($tmpUserMediaList)) {
foreach($tmpUserMediaList as $tmpUserMediaDat) { foreach($tmpUserMediaList as $tmpUserMediaDat) {
$tmpMediaDat = CourseMediaDat::getById($tmpUserMediaDat->media_id); $tmpMediaDat = CourseMediaDat::getById($tmpUserMediaDat->media_id);
$tmp = Array("courseId"=>$tmpMediaDat->course_id,"mediaId"=>$tmpMediaDat->id,"title"=>$tmpMediaDat->title, "media"=>$tmpMediaDat->media); if(!empty($tmpMediaDat)) {
$userMediaList[] = $tmp; $tmp = Array("courseId"=>$tmpMediaDat->course_id,"mediaId"=>$tmpMediaDat->id,"title"=>$tmpMediaDat->title, "media"=>$tmpMediaDat->media);
$userMediaList[] = $tmp;
}
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment