|
|
@ -8,106 +8,122 @@
|
|
|
|
// +----------------------------------------------------------------------
|
|
|
|
// +----------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
namespace Media\Controller;
|
|
|
|
namespace Media\Controller;
|
|
|
|
|
|
|
|
|
|
|
|
use Admin\Model\GameModel;
|
|
|
|
use Admin\Model\GameModel;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 文档模型控制器
|
|
|
|
* 文档模型控制器
|
|
|
|
* 文档模型列表和详情
|
|
|
|
* 文档模型列表和详情
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
class ServiceController extends BaseController {
|
|
|
|
class ServiceController extends BaseController
|
|
|
|
|
|
|
|
{
|
|
|
|
public function index($value=''){
|
|
|
|
|
|
|
|
$yidata=M('Kefuquestion')
|
|
|
|
public function index($value = '')
|
|
|
|
->field('title,titleurl')
|
|
|
|
{
|
|
|
|
->where(array('state'=>1,'title'=>array('neq','常见问题')))
|
|
|
|
$yidata = M('Kefuquestion')
|
|
|
|
->group('title')
|
|
|
|
->field('title,titleurl')
|
|
|
|
->select();
|
|
|
|
->where(array('state' => 1, 'title' => array('neq', '常见问题')))
|
|
|
|
$erdata=M('Kefuquestion')
|
|
|
|
->group('title')
|
|
|
|
->where(array('state'=>1,'istitle'=>2,'title'=>'常见问题'))
|
|
|
|
->select();
|
|
|
|
->select();
|
|
|
|
$erdata = M('Kefuquestion')
|
|
|
|
|
|
|
|
->where(array('state' => 1, 'istitle' => 2, 'title' => '常见问题'))
|
|
|
|
$oftendata=M('Kefuquestion')
|
|
|
|
->select();
|
|
|
|
->where(array('state'=>1,'istitle'=>2,'title'=>array('eq','常见问题')))
|
|
|
|
|
|
|
|
->select();
|
|
|
|
$oftendata = M('Kefuquestion')
|
|
|
|
$this->assign('oftendata',$oftendata);
|
|
|
|
->where(array('state' => 1, 'istitle' => 2, 'title' => array('eq', '常见问题')))
|
|
|
|
$this->assign('yidata',$yidata);
|
|
|
|
->select();
|
|
|
|
$this->assign('erdata',$erdata);
|
|
|
|
$this->assign('oftendata', $oftendata);
|
|
|
|
$this->display();
|
|
|
|
$this->assign('yidata', $yidata);
|
|
|
|
}
|
|
|
|
$this->assign('erdata', $erdata);
|
|
|
|
public function detail(){
|
|
|
|
$this->display();
|
|
|
|
$yidata=M('Kefuquestion')
|
|
|
|
}
|
|
|
|
->field('title,titleurl')
|
|
|
|
|
|
|
|
->where(array('status'=>1,'istitle'=>1))
|
|
|
|
public function detail()
|
|
|
|
->group('title')
|
|
|
|
{
|
|
|
|
->order('id asc')
|
|
|
|
$yidata = M('Kefuquestion')
|
|
|
|
->select();
|
|
|
|
->field('title,titleurl')
|
|
|
|
if(I('kefu')!=''){
|
|
|
|
->where(array('status' => 1, 'istitle' => 1))
|
|
|
|
$map1['status']=1;
|
|
|
|
->group('title')
|
|
|
|
$map1['istitle']=2;
|
|
|
|
->order('id asc')
|
|
|
|
$map1['titleurl']=I('kefu');
|
|
|
|
->select();
|
|
|
|
if($_REQUEST['para']!=''){
|
|
|
|
if (I('kefu') != '') {
|
|
|
|
$map1['id']=$_REQUEST['para'];
|
|
|
|
$map1['status'] = 1;
|
|
|
|
}
|
|
|
|
$map1['istitle'] = 2;
|
|
|
|
$erdata=M('Kefuquestion')
|
|
|
|
$map1['titleurl'] = I('kefu');
|
|
|
|
->where($map1)
|
|
|
|
empty(I('get.search')) || $map1['zititle'] = ['like', '%' . I('get.search') . '%'];
|
|
|
|
->order('sort desc')
|
|
|
|
if ($_REQUEST['para'] != '') {
|
|
|
|
->select();
|
|
|
|
$map1['id'] = $_REQUEST['para'];
|
|
|
|
$title=M('Kefuquestion')
|
|
|
|
}
|
|
|
|
->where(array('titleurl'=>I('kefu')))
|
|
|
|
$erdata = M('Kefuquestion')
|
|
|
|
->find();
|
|
|
|
->where($map1)
|
|
|
|
$this->assign('title',$title);
|
|
|
|
->order('sort desc')
|
|
|
|
}
|
|
|
|
->select();
|
|
|
|
$this->assign('yidata',$yidata);
|
|
|
|
$title = M('Kefuquestion')
|
|
|
|
$this->assign('erdata',$erdata);
|
|
|
|
->where(array('titleurl' => I('kefu')))
|
|
|
|
$this->display();
|
|
|
|
->find();
|
|
|
|
}
|
|
|
|
$this->assign('title', $title);
|
|
|
|
public function uploadAvatar() {
|
|
|
|
}
|
|
|
|
// 成功 $this->ajaxReturn(array('state'=>'SUCCESS','url'=>'图片地址'),C('DEFAULT_AJAX_RETURN'));
|
|
|
|
$this->assign('yidata', $yidata);
|
|
|
|
$this->ajaxReturn(array('state'=>'上传失败'),C('DEFAULT_AJAX_RETURN'));
|
|
|
|
$this->assign('erdata', $erdata);
|
|
|
|
}
|
|
|
|
$this->display();
|
|
|
|
|
|
|
|
}
|
|
|
|
public function sask() {
|
|
|
|
|
|
|
|
if(IS_POST) {
|
|
|
|
public function uploadAvatar()
|
|
|
|
|
|
|
|
{
|
|
|
|
}
|
|
|
|
// 成功 $this->ajaxReturn(array('state'=>'SUCCESS','url'=>'图片地址'),C('DEFAULT_AJAX_RETURN'));
|
|
|
|
|
|
|
|
$this->ajaxReturn(array('state' => '上传失败'), C('DEFAULT_AJAX_RETURN'));
|
|
|
|
$this->display();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public function sask()
|
|
|
|
public function sask2() {
|
|
|
|
{
|
|
|
|
if(IS_POST) {
|
|
|
|
if (IS_POST) {
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$this->display();
|
|
|
|
$this->display();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public function sask3() {
|
|
|
|
public function sask2()
|
|
|
|
if(IS_POST) {
|
|
|
|
{
|
|
|
|
|
|
|
|
if (IS_POST) {
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
$this->display();
|
|
|
|
|
|
|
|
}
|
|
|
|
$this->display();
|
|
|
|
|
|
|
|
}
|
|
|
|
public function spwd($p=1) {
|
|
|
|
|
|
|
|
$this->display();
|
|
|
|
public function sask3()
|
|
|
|
}
|
|
|
|
{
|
|
|
|
|
|
|
|
if (IS_POST) {
|
|
|
|
public function spay($p=1) {
|
|
|
|
|
|
|
|
$this->display();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$this->display();
|
|
|
|
public function saccont($p=1) {
|
|
|
|
}
|
|
|
|
$this->display();
|
|
|
|
|
|
|
|
}
|
|
|
|
public function spwd($p = 1)
|
|
|
|
|
|
|
|
{
|
|
|
|
public function sgift($p=1) {
|
|
|
|
$this->display();
|
|
|
|
$this->display();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public function spay($p = 1)
|
|
|
|
public function sother($p=1) {
|
|
|
|
{
|
|
|
|
$this->display();
|
|
|
|
$this->display();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public function saccont($p = 1)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
$this->display();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public function sgift($p = 1)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
$this->display();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public function sother($p = 1)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
$this->display();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|