當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。