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


PHP Help_Page类代码示例

本文整理汇总了PHP中Help_Page的典型用法代码示例。如果您正苦于以下问题:PHP Help_Page类的具体用法?PHP Help_Page怎么用?PHP Help_Page使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


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

示例1: main

 public function main($UrlAppend = NULL, $get = NULL, $post = NULL)
 {
     if (!$_REQUEST['server_id']) {
         return $this->_assign;
     }
     $this->_assign['server_id'] = $_REQUEST['server_id'];
     if ($_REQUEST['sbm']) {
         $postData = $this->getPostData($post);
         // 			print_r($postData);
         $getData = $this->_gameObject->getGetData($get);
         $sendData = array_merge($getData, $postData);
         $data = $this->_gameObject->getResult($UrlAppend, $sendData);
         //  			echo json_encode($sendData);
         // 			print_r($data);exit;
         $pageMoneyTotal = 0;
         if ($data['status'] == 1) {
             if (is_array($data['data']['list'])) {
                 foreach ($data['data']['list'] as &$sub) {
                     // 					$sub['playerId'] = $this->_d2s($sub['playerId']);
                     $pageMoneyTotal += $sub['RMB'];
                 }
             }
             $this->_assign['dataList'] = $data['data']['list'];
             $this->_assign['pageMoneyTotal'] = $pageMoneyTotal;
             $this->_loadCore('Help_Page');
             //载入分页工具
             $helpPage = new Help_Page(array('total' => intval($data['data']['total']), 'perpage' => PAGE_SIZE));
             $this->_assign['pageBox'] = $helpPage->show();
         } else {
             $this->jump($data['info'], -1);
         }
     }
     return $this->_assign;
 }
开发者ID:huangwei2wei,项目名称:kfxt,代码行数:34,代码来源:NuFengZhanChui.class.php

示例2: main

 public function main($UrlAppend = NULL, $get = NULL, $post = NULL)
 {
     if (!$_REQUEST['server_id']) {
         return $this->_assign;
     }
     $this->_assign['server_id'] = $_REQUEST['server_id'];
     if ($_REQUEST['sbm']) {
         $getGetData = $this->_gameObject->getGetData($get);
         $postData = $this->getPostData($post);
         $data = $this->_gameObject->result('RechargeRecord', $getGetData, $postData);
         if ($data['status'] == 1) {
             $this->_assign['dataList'] = $data['data']['list'];
             $this->_loadCore('Help_Page');
             //载入分页工具
             $helpPage = new Help_Page(array('total' => intval($data['data']['total']), 'perpage' => PAGE_SIZE));
             $this->_assign['pageBox'] = $helpPage->show();
         } else {
             $this->_assign['ConnectErrorInfo'] = $data['info'];
         }
         $this->_assign['select'] = $postData;
     }
     $this->_assign['userType'] = array(0 => '玩家ID', 1 => '玩家账号', 2 => '玩家昵称');
     $this->_assign['exchangeTypes'] = array(0 => '所有', 1 => '失败', 2 => '成功');
     return $this->_assign;
 }
开发者ID:huangwei2wei,项目名称:kfxt,代码行数:25,代码来源:StarDream.class.php

示例3: main

 public function main($UrlAppend = NULL, $get = NULL, $post = NULL)
 {
     if (!$_REQUEST['server_id']) {
         return $this->_assign;
     }
     if ($_REQUEST["sbm"] == "") {
         return $this->_assign;
     }
     $getData = $this->_gameObject->getGetData($get);
     if ($_GET["WorldID"] != "") {
         $WorldID = $_GET["WorldID"];
     }
     $postData = array('PlayerID' => trim($_GET['PlayerID']), 'AccountName' => trim($_GET['AccountName']), 'AccountID' => trim($_GET['AccountID']), 'WorldID' => trim($WorldID), 'PlayerName' => urlencode(trim($_GET['PlayerName'])), 'Page' => max(0, intval($_GET['page'] - 1)));
     $getData = array_merge($getData, $postData);
     $account = $this->getResult($UrlAppend, $getData);
     if ($account['Result'] === 0) {
         $status = 1;
         if ($account['PlayerList']) {
             $this->_loadCore('Help_Page');
             //载入分页工具
             $helpPage = new Help_Page(array('total' => $account['Count'], 'perpage' => PAGE_SIZE));
             $this->_assign['data'] = $account;
             $this->_assign['dataList'] = $account['PlayerList'];
             $this->_assign['pageBox'] = $helpPage->show();
         }
     } else {
         $this->_assign['connectError'] = 'Error Message:' . $data['info'];
         $info = $data['info'];
     }
     $this->_assign['ajax'] = Tools::url(CONTROL, 'PlayerRoleList', array('zp' => PACKAGE, '__game_id' => $this->_gameObject->_gameId, 'server_id' => $_REQUEST['server_id']));
     return $this->_assign;
 }
开发者ID:huangwei2wei,项目名称:kfxt,代码行数:32,代码来源:zhanlong.class.php

示例4: main

 public function main($UrlAppend = null, $get = null, $post = null)
 {
     if (!$_REQUEST['server_id'] || !$_REQUEST['sbm']) {
         return $this->_assign;
     }
     $getData = $this->_gameObject->getGetData($get);
     $postData = $this->getPostData($post);
     $sendData = array_merge($getData, $postData);
     $data = $this->getResult($UrlAppend, $sendData);
     if (is_array($data) && $data['status'] == 1) {
         if ($data['data']['list']) {
             foreach ($data['data']['list'] as &$_msg) {
                 $_msg["title"] = urldecode($_msg["title"]);
                 $_msg["content"] = urldecode($_msg["content"]);
                 $_msg['time'] = date('Y-m-d H:i:s', $_msg['time']);
             }
             $this->_assign['dataList'] = $data['data']['list'];
             $this->_loadCore('Help_Page');
             //载入分页工具
             $helpPage = new Help_Page(array('total' => $data['data']['count'], 'perpage' => PAGE_SIZE));
             $this->_assign['pageBox'] = $helpPage->show();
         }
     } else {
         $this->jump('服务器返回错误:' . $data['info'], -1);
     }
     return $this->_assign;
 }
开发者ID:huangwei2wei,项目名称:kfxt,代码行数:27,代码来源:MingXing.class.php

示例5: main

 public function main($UrlAppend = NULL, $get = NULL, $post = NULL)
 {
     $this->_assign['playerType'] = array(1 => '玩家id', 2 => '玩家账号', 3 => '玩家昵称');
     if (!$_REQUEST['server_id'] || !$_REQUEST['sbm']) {
         return $this->_assign;
     }
     $getData = $this->_gameObject->getGetData($get);
     $postData = array('playerType' => $_GET['playerType'], 'playerId' => base64_encode($_GET['playerName'] ? trim($_GET['playerName']) : 0), 'registStart' => urlencode(trim($_GET['regBeginTime'])), 'registEnd' => urlencode(trim($_GET['regEndTime'])), 'loginStart' => urlencode(trim($_GET['loginBeginTime'])), 'loginEnd' => urlencode(trim($_GET['loginEndTime'])), 'pageSize' => PAGE_SIZE, 'page' => max(1, intval($_GET['page'])));
     if ($post) {
         $postData = array_merge($post, $postData);
     }
     $postData = array_merge($getData, $postData);
     $data = $this->getResult($UrlAppend, $postData, null);
     // var_dump($data);
     $status = 0;
     $info = null;
     if ($data['status'] == 1) {
         $status = 1;
         if ($data['data']['list']) {
             $this->_loadCore('Help_Page');
             //载入分页工具
             $helpPage = new Help_Page(array('total' => $data['data']['totalNum'], 'perpage' => PAGE_SIZE));
             $this->_assign['dataList'] = $data['data']['list'];
             $this->_assign['pageBox'] = $helpPage->show();
         }
     } else {
         $this->_assign['connectError'] = 'Error Message:' . $data['info'];
         $info = $data['info'];
     }
     if ($this->_isAjax()) {
         $this->ajaxReturn(array('status' => $status, 'info' => $info, 'data' => $this->_assign));
     }
     return $this->_assign;
 }
开发者ID:huangwei2wei,项目名称:kfxt,代码行数:34,代码来源:WangZhe.class.php

示例6: main

 public function main($UrlAppend = null, $get = null, $post = null)
 {
     if (!$_REQUEST['server_id']) {
         return array();
     }
     $getData = $getData = $this->_gameObject->getGetData($get);
     $postData = $this->getPostData($post);
     $data = $this->getResult($UrlAppend, $getData, $postData);
     if ($data['status'] == '1') {
         $dataList = $data['data']['list'];
         if (count($dataList) > 0) {
             foreach ($dataList as &$v) {
                 $v['del_url'] = $this->_DelLockIP($v['IP']);
             }
         }
         $this->_assign['dataList'] = $dataList;
     } else {
         $this->jump('接口调用失败', 0, -1);
     }
     $total = intval($data['data']['total']);
     $this->_loadCore('Help_Page');
     //载入分页工具
     $helpPage = new Help_Page(array('total' => $total, 'perpage' => PAGE_SIZE));
     $this->_assign['pageBox'] = $helpPage->show();
     return $this->_assign;
 }
开发者ID:huangwei2wei,项目名称:kfxt,代码行数:26,代码来源:HuanJL.class.php

示例7: main

 public function main($UrlAppend = null, $get = null, $post = null)
 {
     if (!$_REQUEST['server_id'] || !$_REQUEST['submit']) {
         return $this->_assign;
     }
     $playerLogTypes = $this->_playerLogTypes;
     $getData = $this->_gameObject->getGetData($get);
     $postData = $this->getPostData($post);
     $data = $this->getResult($UrlAppend, $getData, $postData);
     if ($data['status'] == '1' && is_array($data['data'])) {
         $this->_assign['playerName'] = $data['data']['playerName'];
         $this->_assign['playerAccount'] = $data['data']['playerAccount'];
         foreach ($data['data'] as &$sub) {
             $sub['createTime'] = date('Y-m-d H:i:s', $sub['createTime'] / 1000);
         }
         $this->_assign['dataList'] = $data['data'];
         $this->_loadCore('Help_Page');
         //载入分页工具
         $helpPage = new Help_Page(array('total' => $data['total'], 'perpage' => PAGE_SIZE));
         $this->_assign['pageBox'] = $helpPage->show();
     } else {
         $this->_assign['connectError'] = 'Error Message:' . $data['info'];
     }
     return $this->_assign;
 }
开发者ID:huangwei2wei,项目名称:kfxt,代码行数:25,代码来源:ZhiDouXing.class.php

示例8: main

 public function main($UrlAppend = NULL, $get = NULL, $post = NULL)
 {
     if (!$_REQUEST['server_id']) {
         return array();
     }
     if ($this->_isPost()) {
         $sendData["BadWord"] = explode(",", $_POST["BadWord"]);
         $PostData["data"] = json_encode($sendData);
         $post["data"] = json_encode($sendData);
         //			echo $PostData["data"];
         $getData = $this->_gameObject->getGetData();
         $data = $this->getResult("UpdateSystem/BadWord", $getData, $PostData);
         if ($data["Result"] === 0) {
             $jumpUrl = $this->_url();
             $this->jump('操作成功', 1, $jumpUrl);
         } else {
             $errorInfo = '操作失败:';
             $this->jump($errorInfo . $data['info'], -1);
         }
     }
     $getData = $this->_gameObject->getGetData($get);
     $getData["Page"] = max(0, intval($_GET['page'] - 1));
     $data = $this->getResult($UrlAppend, $getData);
     if ($data['Result'] === 0) {
         $this->_assign['dataList'] = $data['BadWord'];
         $this->_loadCore('Help_Page');
         //载入分页工具
         $helpPage = new Help_Page(array('total' => $data["Count"], 'perpage' => "50"));
         $this->_assign['pageBox'] = $helpPage->show();
     }
     return $this->_assign;
 }
开发者ID:huangwei2wei,项目名称:kfxt,代码行数:32,代码来源:zhanlong.class.php

示例9: main

 public function main($UrlAppend = null, $get = null, $post = null)
 {
     if (!$_REQUEST['server_id'] || !$_REQUEST['sbm']) {
         return $this->_assign;
     }
     $getData = $this->_gameObject->getGetData($get);
     $postData = $this->getPostData($post);
     $sendData = array_merge($getData, $postData);
     $data = $this->getResult($UrlAppend, $sendData, null);
     // 		print_r($data);exit;
     $realCostSum = 0;
     if (is_array($data) && $data['status'] == 1) {
         if ($data['data']['list']) {
             foreach ($data['data']['list'] as &$list) {
                 $list["toolMallName"] = $data['data']['mallTool'][$list['toolId']]['toolMallName'];
                 $realCostSum += $list['realCost'];
             }
             $this->_assign['realCostSum'] = $realCostSum;
             $this->_assign['dataList'] = $data['data']['list'];
             $this->_loadCore('Help_Page');
             //载入分页工具
             $helpPage = new Help_Page(array('total' => $data['data']['count'], 'perpage' => PAGE_SIZE));
             $this->_assign['pageBox'] = $helpPage->show();
         }
     } else {
         $this->jump('服务器返回错误:' . $data['info'], -1);
     }
     return $this->_assign;
 }
开发者ID:huangwei2wei,项目名称:kfxt,代码行数:29,代码来源:LuanShi.class.php

示例10: main

 public function main($UrlAppend = NULL, $get = NULL, $post = NULL)
 {
     if (!$_REQUEST['server_id']) {
         return array();
     }
     $getData = $this->_gameObject->getGetData($get);
     $postData = array('pageSize' => PAGE_SIZE, 'pageNo' => max(1, intval($_GET['page'])));
     if ($post) {
         $postData = array_merge($post, $postData);
     }
     $data = $this->getResult($UrlAppend, $getData, $postData);
     //如果游戏有自定义接口,可以使用
     //var_dump($data);exit;
     if ($data['result'] == 0 && $data['data']) {
         $noticeType = array(0 => '跑马灯', 1 => '游戏信息公告', 2 => '喇叭', 3 => '跑马灯+聊天(紧急公告)', 4 => ' 聊天公告');
         $status = array(0 => '未审核', 1 => '已审核');
         foreach ($data['data'] as &$sub) {
             $sub['noticeType'] = $noticeType[$sub['noticeType']];
             $sub['status'] = $status[$sub['status']];
             $sub['URL_del'] = $this->_urlNoticeDel($sub['id']);
             $sub['URL_edit'] = $this->_urlNoticeEdit($sub['id']);
         }
         $this->_assign['dataList'] = $data['data'];
     }
     $total = $data['totals'];
     $this->_loadCore('Help_Page');
     //载入分页工具
     $helpPage = new Help_Page(array('total' => $total, 'perpage' => PAGE_SIZE));
     $this->_assign['pageBox'] = $helpPage->show();
     return $this->_assign;
 }
开发者ID:huangwei2wei,项目名称:kfxt,代码行数:31,代码来源:DaoJian.class.php

示例11: main

 public function main($UrlAppend = NULL, $get = NULL, $post = NULL)
 {
     if (!$_REQUEST['server_id']) {
         return array();
     }
     $getData = $this->_gameObject->getGetData($get);
     $getData["Page"] = max(1, intval($_GET['page']));
     if (!empty($_GET["regBeginTime"]) && !empty($_GET["regEndTime"])) {
         $getData["regBeginTime"] = strtotime($_GET["regBeginTime"]);
         $getData["regEndTime"] = strtotime($_GET["regEndTime"]);
     }
     if (!empty($_GET["loginBeginTime"]) && !empty($_GET["loginEndTime"])) {
         $getData["loginBeginTime"] = strtotime($_GET["loginBeginTime"]);
         $getData["loginEndTime"] = strtotime($_GET["loginEndTime"]);
     }
     if (!empty($_GET["User"])) {
         $getData["User"] = urlencode($_GET["User"]);
         $getData["userType"] = $_GET["userType"];
     }
     $data = $this->getResult($UrlAppend, $getData);
     //		print_r($data);
     if ($data['states'] == '1') {
         $Column = $data["Column"];
         $this->_assign['Column'] = $Column;
         $this->_assign['dataList'] = $data['List'];
         $this->_loadCore('Help_Page');
         $helpPage = new Help_Page(array('total' => $data["Count"], 'perpage' => PAGE_SIZE));
         $this->_assign['pageBox'] = $helpPage->show();
     }
     $this->_assign['GET'] = $_GET;
     return $this->_assign;
 }
开发者ID:huangwei2wei,项目名称:kfxt,代码行数:32,代码来源:Default_1.class.php

示例12: _getCardlist

 private function _getCardlist($UrlAppend = null, $get = null, $post = null)
 {
     $postData = $this->getPostData($post);
     $get = $this->_gameObject->getGetData($get);
     $data = $this->getResult($UrlAppend, $get, $postData);
     if ($data['status'] == 1) {
         $list = $data['data']['list'];
         if (is_array($list)) {
             foreach ($list as &$sub) {
                 $sub['URL_itemCardFailure'] = Tools::url(CONTROL, ACTION, array('zp' => PACKAGE, '__game_id' => $this->_gameObject->_gameId, 'server_id' => $_REQUEST['server_id'], 'cardId' => $sub['cardId'], 'do' => 'failure'));
                 $sub['goods'] = $this->_getGoodsInfo($sub['goods']);
                 $sub['type'] = $this->cardType[$sub['type']];
             }
             $this->_assign['dataList'] = $list;
             $total = intval($data['data']['total']);
             $this->_loadCore('Help_Page');
             //载入分页工具
             $helpPage = new Help_Page(array('total' => $total, 'perpage' => PAGE_SIZE));
             $this->_assign['pageBox'] = $helpPage->show();
         }
     } else {
         $this->_assign['connectError'] = 'Error Info:' . $data['info'];
         return $this->_assign;
     }
     return $this->_assign;
 }
开发者ID:huangwei2wei,项目名称:kfxt,代码行数:26,代码来源:Default_1_1.class.php

示例13: main

 public function main($UrlAppend = NULL, $get = NULL, $post = NULL)
 {
     if (!$_REQUEST['server_id']) {
         return array();
     }
     $getData = $this->_gameObject->getGetData($get);
     $postData = array();
     if (isset($_POST['page'])) {
         $postData['page'] = intval($_POST['page']);
         $postData['pageSize'] = 1;
     } else {
         $postData['page'] = 1;
         $postData['pageSize'] = 1;
     }
     $postData['id'] = 0;
     //默认传全部
     $data = $this->_gameObject->result('Notice', $getData, $postData);
     if ($data['status'] == '1') {
         $this->_loadCore('Help_Page');
         //载入分页工具
         $helpPage = new Help_Page(array('total' => $data['data']['total'], 'perpage' => PAGE_SIZE));
         foreach ($data['data']['list'] as &$one) {
             $one['content'] = $one['content'];
             $one['URL_edit'] = $this->_urlNoticeEdit($one['id']);
             $one['URL_del'] = $this->_urlNoticeDel($one['id']);
         }
         $this->_assign['dataList'] = $data['data']['list'];
         $this->_assign['pageBox'] = $helpPage->show();
     } else {
         $this->_assign['connectError'] = 'Error Message:' . $data['info'];
     }
     $this->assing['URL_noticeAdd'] = $this->_urlNoticeAdd();
     return $this->_assign;
 }
开发者ID:huangwei2wei,项目名称:kfxt,代码行数:34,代码来源:StarDream.class.php

示例14: _ls

 /**
  * 问卷列表
  */
 private function _ls()
 {
     $this->_modelAskform = $this->_getGlobalData('Model_Askform', 'object');
     $users = $this->_getGlobalData('user');
     #------分页生成sql------#
     $helpSqlSearch = $this->_loadCore('Help_SqlSearch');
     $helpSqlSearch = new Help_SqlSearch();
     $helpSqlSearch->set_tableName($this->_modelAskform->tName());
     $helpSqlSearch->setPageLimit($_GET['page'], PAGE_SIZE);
     $sql = $helpSqlSearch->createSql();
     $this->_loadCore('Help_Page');
     #------分页生成sql------#
     $dataList = $this->_modelAskform->select($sql);
     if ($dataList) {
         $helpPage = new Help_Page(array('total' => $this->_modelAskform->findCount(), 'perpage' => PAGE_SIZE));
         $this->_view->assign('pageBox', $helpPage->show());
         foreach ($dataList as &$list) {
             $list['word_user_id'] = $users[$list['user_id']]['nick_name'];
             $list['start_time'] = date('Y-m-d H:i:s', $list['start_time']);
             $list['end_time'] = date('Y-m-d H:i:s', $list['end_time']);
             $list['word_status'] = $this->_askStatus[$list['status']];
             $list['url_del'] = Tools::url(CONTROL, ACTION, array('Id' => $list['Id'], 'doaction' => 'del'));
             $list['url_addoption'] = Tools::url(CONTROL, ACTION, array('Id' => $list['Id'], 'doaction' => 'addOption'));
             $list['url_show'] = Tools::url(CONTROL, ACTION, array('Id' => $list['Id'], 'doaction' => 'show'));
         }
         $this->_view->assign("dataList", $dataList);
     }
     $this->_utilMsg->createNavBar();
     $this->_view->set_tpl(array('body' => 'Askform/Ls.html'));
     $this->_view->display();
 }
开发者ID:huangwei2wei,项目名称:kfxt,代码行数:34,代码来源:Askform.class.php

示例15: main

 public function main($UrlAppend = NULL, $get = NULL, $post = NULL)
 {
     if (!$_REQUEST['server_id']) {
         return $this->_assign;
     }
     $this->_assign['server_id'] = $_REQUEST['server_id'];
     if ($_REQUEST['sbm']) {
         $postData = $this->getPostData($post);
         $getData = $this->_gameObject->getGetData($get);
         // 			$getData = array_merge($getData,$postData);
         $data = $this->getResult($UrlAppend, $getData, $postData);
         // 			print_r($getData);
         // 			print_r(array_merge($getData,$postData));
         // 			print_r($data);
         // 			exit;
         $pageMoneyTotal = 0;
         if ($data['status'] == 1) {
             //  			$PlayerLogType = $this->partner('PlayerLogType');
             foreach ($data['data']['logs'] as &$sub) {
                 $sub['playerId'] = $this->_d2s($sub['playerId']);
             }
             $this->_assign['dataList'] = $data['data']['logs'];
             $this->_loadCore('Help_Page');
             //载入分页工具
             $helpPage = new Help_Page(array('total' => intval($data['data']['totals']), 'perpage' => PAGE_SIZE));
             $this->_assign['pageBox'] = $helpPage->show();
         }
     }
     return $this->_assign;
 }
开发者ID:huangwei2wei,项目名称:kfxt,代码行数:30,代码来源:GongFu.class.php


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