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


PHP Help_Page::show方法代码示例

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


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

示例1: main

 public function main($UrlAppend = NULL, $get = NULL, $post = NULL)
 {
     if (!$_REQUEST['server_id']) {
         return array();
     }
     if ($_GET["WorldID"] == "" && $_POST["WorldID"] == "") {
         $_GET["WorldID"] = $this->_getServerID();
         $_POST["WorldID"] = $this->_getServerID();
     }
     $_GET["WorldID"] = $_POST["WorldID"];
     $this->_assign["_GET"] = $_GET;
     $getData = $this->_gameObject->getGetData($get);
     $getData["Page"] = max(0, intval($_GET['page']) - 1);
     $getData["WorldID"] = max(0, intval($_POST["WorldID"]));
     $data = $this->getResult($UrlAppend, $getData);
     if ($data['Result'] == '0') {
         $this->_assign['dataList'] = $data["ClassTable"];
         $this->_loadCore('Help_Page');
         $helpPage = new Help_Page(array('total' => $data["Count"], 'perpage' => PAGE_SIZE));
         $this->_assign['pageBox'] = $helpPage->show();
     }
     $this->_assign['Add_Url'] = $this->_urlAdd();
     $this->_assign['Del_Url'] = $this->_urlDel();
     return $this->_assign;
 }
开发者ID:huangwei2wei,项目名称:kfxt,代码行数:25,代码来源:zhanlong.class.php

示例2: main

 public function main($UrlAppend = NULL, $get = NULL, $post = NULL)
 {
     if (!$_REQUEST['server_id']) {
         return array();
     }
     $postData = array();
     if ($post) {
         $postData = array_merge($post, $postData);
     }
     $postData = array_filter($postData);
     //		$postData = $this->_gameObject->getPostData($post);
     $get = $this->_gameObject->getGetData($get);
     $data = $this->getResult($UrlAppend, $get);
     if ($data['status'] == '1' && $data['data']['list']) {
         foreach ($data['data']['list'] as &$sub) {
             $sub['URL_del'] = $this->_urlNoticeDel($sub['id']);
             $sub['URL_edit'] = $this->_urlNoticeEdit($sub['id']);
         }
         $this->_assign['dataList'] = $data['data']['list'];
     }
     $total = $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,代码行数:27,代码来源:Default_1_1.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']) {
         return $this->_assign;
     }
     $this->_assign['server_id'] = $_REQUEST['server_id'];
     if ($_REQUEST['sbm']) {
         $postData = $this->getPostData($post);
         $getData = $this->_gameObject->getGetData($get);
         //echo $this->_getUrl()."$UrlAppend?".http_build_query($getData).'&'.http_build_query($postData);
         $data = $this->getResult($UrlAppend, $getData, $postData);
         //print_r($data);
         $pageMoneyTotal = 0;
         if ($data['status'] == 1 && is_array($data['data']['recharges'])) {
             foreach ($data['data']['recharges'] as &$sub) {
                 $sub['playerId'] = $this->_d2s($sub['playerId']);
                 $pageMoneyTotal += $sub['money'];
             }
             $this->_assign['dataList'] = $data['data']['recharges'];
             $this->_assign['pageMoneyTotal'] = $pageMoneyTotal;
             $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,代码行数:28,代码来源:GongFu.class.php

示例5: 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);
     // 		print_r($data);exit;
     if ($data['status'] == '1') {
         foreach ($data['data']['list'] as &$sub) {
             $sub['prolename'] = $data['data']['player']['prolename'];
             $sub['pname'] = $data['data']['player']['pname'];
             $sub['playerType'] = $playerLogTypes[$sub['rootId']]['rootTypeName'] . '-->' . $playerLogTypes[$sub['rootId']]['subTypeList'][$sub['typeId']]['subTypeName'];
         }
         $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->_assign['connectError'] = 'Error Message:' . $data['info'];
     }
     return $this->_assign;
 }
开发者ID:huangwei2wei,项目名称:kfxt,代码行数:26,代码来源:LuanShi.class.php

示例6: main

 public function main($UrlAppend = NULL, $get = NULL, $post = NULL)
 {
     if (!$_REQUEST['server_id']) {
         return array();
     }
     $getData = $this->_gameObject->getGetData($get);
     $type = $this->getResult("player_action_log.php?act=getLogType", $getData);
     $this->_assign["playerLogTypes"] = json_encode($type["data"]);
     $getData["page"] = max(0, intval($_GET['page']));
     $getData["User"] = urlencode($_GET['user']);
     //max(0,intval($_GET['user']));
     $getData["userType"] = max(0, intval($_GET['userType']));
     $getData['objectId'] = max(0, intval($_GET['rootid']));
     //日志大类
     $getData['eventId'] = max(0, intval($_GET['typeid']));
     //日志分类
     $data = $this->getResult($UrlAppend, $getData);
     if ($data["status"] == 1) {
         foreach ($data["data"]["list"] as &$v) {
             $v["addTime"] = date("Y-m-d H:m:s", $v["addTime"]);
         }
         $this->_assign["dataList"] = $data["data"]["list"];
         $this->_loadCore('Help_Page');
         $helpPage = new Help_Page(array('total' => $data["data"]["total"], 'perpage' => PAGE_SIZE));
         $this->_assign['pageBox'] = $helpPage->show();
     }
     return $this->_assign;
 }
开发者ID:huangwei2wei,项目名称:kfxt,代码行数:28,代码来源:Default_1.class.php

示例7: _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

示例8: main

 public function main($UrlAppend = NULL, $get = NULL, $post = NULL)
 {
     if (!$_REQUEST['server_id'] || !$_REQUEST['sbm']) {
         return $this->_assign;
     }
     $postData = array('playerId' => trim($_GET['playerId']), 'playerName' => base64_encode(trim($_GET['playerName'])), 'accountName' => trim($_GET['accountName']), 'regBeginTime' => trim($_GET['regBeginTime']), 'regEndTime' => trim($_GET['regEndTime']), 'loginBeginTime' => trim($_GET['loginBeginTime']), 'loginEndTime' => trim($_GET['loginEndTime']), 'pageSize' => PAGE_SIZE, 'pageCount' => max(1, intval($_GET['page'])));
     $data = $this->_gameObject->result($this->_getUrl(), $postData, $UrlAppend);
     $data = base64_encode($data);
     $data = base64_decode($data);
     $data = json_decode($data, true);
     $status = 0;
     $info = null;
     if (!empty($data)) {
         $status = 1;
         foreach ($data as &$player) {
             $player['playerId'] = $this->_d2s($player['playerId']);
             $player['vocationId'] = $this->_vocationId($player['vocationId']);
         }
         $this->_loadCore('Help_Page');
         //载入分页工具
         $helpPage = new Help_Page(array('total' => 2000, 'perpage' => PAGE_SIZE));
         $this->_assign['dataList'] = $data;
         $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,代码行数:32,代码来源:chunqiu.class.php

示例9: _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

示例10: 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

示例11: 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

示例12: _lockUserIndex

 public function _lockUserIndex()
 {
     $this->_checkOperatorAct();
     $this->_createCenterServer();
     if ($_REQUEST['server_id']) {
         //如果设置了服务器id
         $this->getApi()->setUrl($_REQUEST['server_id'], 'forbidden/forbidden0');
         if (empty($_GET["page"])) {
             $_GET["page"] = 1;
         }
         $dataList = $this->getApi()->queryForbidden($_GET["page"], PAGE_SIZE);
         // 			print_r($dataList);
         // 			foreach($dataList->page->data as $value){
         // 				echo $value->succInsertIpList;
         // 				$value->succInsertIpList	=	str_replace(",","<br>",$value->succInsertIpList);
         // 			}
         foreach ($dataList->page->data as &$sub) {
             $id = $sub->id;
             $sub->URL_Detail = Tools::url(CONTROL, ACTION, array('zp' => self::PACKAGE, 'playerId' => $id, 'server_id' => $_REQUEST['server_id'], 'doaction' => 'detail'));
             $sub->URL_TimeEnd = Tools::url(CONTROL, ACTION, array('zp' => self::PACKAGE, 'doaction' => 'del', 'playerId' => $id, 'server_id' => $_REQUEST['server_id']));
         }
         // 			print_r($dataList->page->data);
         // 			$this->_view->assign('dataList',$dataList['plist']);
         $this->_loadCore('Help_Page');
         $this->_helpPage = new Help_Page(array('total' => $dataList->page->totalCount, 'perpage' => PAGE_SIZE));
         $this->_view->assign('dataList', $dataList->page->data);
         $this->_view->assign('pageBox', $this->_helpPage->show());
     }
     $UrlLockUserAdd = Tools::url(CONTROL, 'LockUser', array('zp' => self::PACKAGE, 'doaction' => 'add', 'server_id' => $_REQUEST['server_id']));
     $this->_view->assign('UrlLockUserAdd', $UrlLockUserAdd);
     $this->_utilMsg->createPackageNavBar();
     $this->_view->display();
 }
开发者ID:huangwei2wei,项目名称:kfxt,代码行数:33,代码来源:XunXiaUser.class.php

示例13: actionOperategoldflow

 /**
  *  玩家行为(元宝/礼券消费)日志查询功能
  */
 public function actionOperategoldflow()
 {
     $this->_checkOperatorAct();
     $this->_createServerList();
     if ($_REQUEST['server_id']) {
         if ($_REQUEST['sbm']) {
             $post = array('costType' => trim($_GET['costType']), 'startTime' => trim($_GET['startTime']), 'endTime' => trim($_GET['endTime']), 'playerId' => trim($_GET['playerId']), 'playerName' => trim($_GET['playerName']), 'playerAccount' => trim($_GET['playerAccount']), 'pageIndex' => max(1, intval($_GET['page'])), 'pageSize' => PAGE_SIZE);
             $playerTmp = $post['playerId'] . $post['playerName'] . $post['playerAccount'];
             if (empty($playerTmp)) {
                 $this->_utilMsg->showMsg('玩家不能为空', -1);
             }
             //$post = array_filter($post);
             $dataList = $this->getResult($_REQUEST['server_id'], 'user/operategoldflow', array(), $post);
             if (is_array($dataList)) {
                 $this->_view->assign('dataList', $dataList['plist']);
                 $this->_loadCore('Help_Page');
                 $this->_helpPage = new Help_Page(array('total' => $dataList['logCount'], 'perpage' => PAGE_SIZE));
                 $this->_view->assign('pageBox', $this->_helpPage->show());
             } else {
                 $this->_view->assign('errorInfo', $dataList);
             }
         }
     }
     $this->_view->assign('costType', array('-1' => '所有', '0' => '礼券', '1' => '元宝'));
     $this->_utilMsg->createPackageNavBar();
     $this->_view->display();
 }
开发者ID:huangwei2wei,项目名称:kfxt,代码行数:30,代码来源:DaTangMaster.class.php

示例14: 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

示例15: 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 = array('playerId' => trim($_GET['playerId']), 'playerName' => trim($_GET['playerName']), 'accountName' => trim($_GET['accountName']), 'BeginTime' => strtotime(trim($_GET['loginBeginTime'])), 'EndTime' => strtotime(trim($_GET['loginEndTime'])), 'ps' => PAGE_SIZE, 'page' => max(1, intval($_GET['page'])));
     if ($post) {
         $postData = array_merge($post, $postData);
     }
     $data = $this->getResult($UrlAppend, $getData, $postData);
     $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']['total'], '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,代码行数:31,代码来源:HuanJL.class.php


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