} else { ?> 弃权<?php } ?> </li> </ul> </div> <div class="match-item-des"> <ul> <li><span class="pull-left"><a href="<?php echo U('/matchgame/' . $match['id']); ?> "><?php echo get_game($match['game_id'], 'title'); ?> </a></span> <span class="pull-right"> <?php switch ($match['game_status']) { case "0": ?> 未开始<?php break; ?> <?php case "1": ?> 正在进行<?php break; ?>
/** * 默认文档列表方法 * @param $cate_id 分类id * @author Rocks */ protected function indexOfArticle($cate_id) { /* 查询条件初始化 */ $map = array(); if (isset($_GET['title'])) { $map['title'] = array('like', '%' . (string) I('title') . '%'); } if (isset($_GET['status'])) { $map['status'] = I('status'); $status = $map['status']; } else { $status = null; $map['status'] = array('in', '0,1,2'); } if (!isset($_GET['pid'])) { $map['pid'] = 0; } if (isset($_GET['time-start'])) { $map['update_time'][] = array('egt', strtotime(I('time-start'))); } if (isset($_GET['time-end'])) { $map['update_time'][] = array('elt', 24 * 60 * 60 + strtotime(I('time-end'))); } if (isset($_GET['nickname'])) { $map['uid'] = M('Member')->where(array('nickname' => I('nickname')))->getField('uid'); } // 构建列表数据 $Document = M('Document'); $map['game_id'] = $cate_id; $map['pid'] = I('pid', 0); if ($map['pid']) { // 子文档列表忽略分类 unset($map['game_id']); } $list = $this->lists($Document, $map, 'level DESC,id DESC'); int_to_string($list); if ($map['pid']) { // 获取上级文档 $article = $Document->field('id,title,type')->find($map['pid']); $this->assign('article', $article); } //检查该分类是否允许发布内容 $allow_publish = get_game($cate_id, 'allow_publish'); $this->assign('status', $status); $this->assign('list', $list); $this->assign('allow', $allow_publish); $this->assign('pid', $map['pid']); $this->meta_title = '文档列表'; return 'index'; }
} else { ?> 弃权<?php } ?> </li> </ul> </div> <div class="guess-item-des"> <ul> <li><span class="pull-left"><a href="<?php echo U('/matchgame/' . $guess['id']); ?> "><?php echo get_game($guess['game_id'], 'title'); ?> </a></span> <span class="pull-right"><?php echo date('m-d H:i', $guess['start_time']); ?> </span></li> <li><span class="pull-left"><a href="<?php echo U('/matchgame/' . $guess['id']); ?> "><?php echo query_match('title', $guess['match_id']); ?> </a></span>
"><?php echo $lol['host']['username']; ?> </a><?php } ?> </div> </div> <div class="fight-des"> <span class="fight-coin">金币: <?php echo $lol['fight_coins']; ?> </span> <span class="fight-game"><?php echo get_game($lol['game_id'], 'title'); ?> </span> </div> </li><?php } } } else { echo ""; } ?> </ul> </div> </div>
" width="216px" height="120px"> </a> <div class="live-name"> <span><?php echo $live["title"]; ?> </span> </div> </div> <div class="live-des"> <span class="pull-left"> <span class="glyphicon glyphicon-user "></span> <span class="game-des-online"><?php echo $live['online_membes']; ?> 人</span></span> <span class="pull-right "> <?php echo get_game($live['game_id'], 'title'); ?> </span> </div> </li><?php } } } else { echo ""; } ?> </ul> </div> </div>
<div><a href="<?php echo U('/team/' . $team['id']); ?> "><?php echo $team["name"]; ?> </a></div> <div class="pull-left"> <div>成员: <?php echo $team["members"]; ?> 人 </div> <div>游戏: <?php echo get_game($team['game_id'], 'title'); ?> </div> </div> </div> </div> </li><?php } } } else { echo ""; } ?> </ul> </div>
<span><?php echo $series['title']; ?> </span> </div> </div> <div class="series-des"> <span class="pull-left"> <span class="glyphicon glyphicon-facetime-video "></span> <span class="game-des-online"><?php echo $series['match_count']; ?> 个赛季</span></span> <span class="pull-right "> <?php echo get_game($series['game_id'], 'title'); ?> </span> </div> </li><?php } } } else { echo ""; } ?> </ul> </div> </div>
<?php /** * @version SVN: $Id$ * @package clarogames * @subpackage Views * @author EasyJoomla {@link http://www.easy-joomla.org Easy-Joomla.org} * @author David Bac {@link } * @author Created on 29-Jun-2011 * @license GNU/GPL */ //-- No direct access defined('_JEXEC') or die('=;)'); ?> <h1><?php //echo $this->greeting; ?> </h1> Plataforma de juegos <?php echo get_game(); ?> <br>
if (is_array($albums)) { $i = 0; $__LIST__ = $albums; if (count($__LIST__) == 0) { echo ""; } else { foreach ($__LIST__ as $key => $album) { $mod = $i % 2; ++$i; ?> <li><span class="album-item-name"><a href="<?php echo U('/game/' . $album['game_id']); ?> ">[<?php echo get_game($album['game_id'], 'title'); ?> ]</a></span><span class="album-item-title"> <a href="<?php echo U('/album/' . $album['id']); ?> "><?php echo $album['title']; ?> </a></span></li><?php } } } else { echo ""; }
?> " width="216px" height="120px"> </a> <div class="video-name"> <span><?php echo $dota['title']; ?> </span> </div> </div> <div class="video-des"> <span class="pull-left"> <span class="glyphicon glyphicon-user "></span> <span class="game-des-online"><?php echo $dota['views']; ?> 人</span></span> <span class="pull-right "> <?php echo get_game($dota['game_id'], 'title'); ?> </span> </div> </li><?php } } } else { echo ""; } ?> </ul> </div>
/** * 获取参数的所有父级分类 * @param int $cid 分类id * @return array 参数分类和父类的信息集合 * @author Rocks */ function get_parent_game($cid) { if (empty($cid)) { return false; } $cates = M('Game')->where(array('status' => 1))->field('id,title,pid')->order('sort')->select(); $child = get_game($cid); //获取参数分类的信息 $pid = $child['pid']; $temp = array(); $res[] = $child; while (true) { foreach ($cates as $key => $cate) { if ($cate['id'] == $pid) { $pid = $cate['pid']; array_unshift($res, $cate); //将父分类插入到数组第一个元素前 } } if ($pid == 0) { break; } } return $res; }
function generate_ini($server_cfg) { global $ip; $game = get_game(); $game_cfg = load_game_config($game); if ($game == null or empty($game_cfg) or !in_array($game, $server_cfg["auto_ini_games"]) or !ip_in_candidates($ip, $server_cfg, $game)) { send_fail("ini generation criteria not satisfied"); return; } $ini_file_path = sprintf($server_cfg['ini_file_path'], $game); $ini = file_get_contents($ini_file_path); if (empty($ini)) { send_fail("Could not read ini file at {$ini_file_path}"); return; } $md5_digest = md5($ini); $ini_header = sprintf(INI_HEADER_TEMPLATE, $md5_digest); send_ini($ini_header, $ini); }
?> " width="216px" height="120px"> </a> <div class="video-name"> <span><?php echo $heartstone['title']; ?> </span> </div> </div> <div class="video-des"> <span class="pull-left"> <span class="glyphicon glyphicon-user "></span> <span class="game-des-online"><?php echo $heartstone['views']; ?> 人</span></span> <span class="pull-right "> <?php echo get_game($heartstone['game_id'], 'title'); ?> </span> </div> </li><?php } } } else { echo ""; } ?> </ul> </div>
?> " width="216px" height="120px"> </a> <div class="video-name"> <span><?php echo $hot['title']; ?> </span> </div> </div> <div class="video-des"> <span class="pull-left"> <span class="glyphicon glyphicon-user "></span> <span class="game-des-online"><?php echo $hot['views']; ?> 人</span></span> <span class="pull-right "> <?php echo get_game($hot['game_id'], 'title'); ?> </span> </div> </li><?php } } } else { echo ""; } ?> </ul> </div>
" height="83" width="83" /> </a> <div class="fihght-des"><?php echo get_username($fight['host_uid']); ?> </div> </div> </div> <div class="fight-info"> <div class="fight-info-line"> <span class="pull-left info-name"><a href="<?php echo U('/fight/' . $fight['id']); ?> "><?php echo get_game($fight['game_id'], 'title'); ?> </a></span> <span class="pull-right"><?php echo $fight['game_area']; ?> </span> </div> <div class="fight-info-line"> <span class="pull-left info-name"><?php echo get_username($fight['host_uid']); ?> </span> <span class="pull-right info-name "> <?php switch ($fight['fight_type']) {
?> <tr> <td><input class="ids" type="checkbox" name="id[]" value="<?php echo $vo["id"]; ?> "/></td> <td><?php echo $vo["id"]; ?> </td> <td><?php echo op_t($vo["title"]); ?> </td> <td><?php echo get_game($vo['game_id'], 'title'); ?> </td> <td><?php echo date('Y-m-d H:i:s', $vo['update_time']); ?> </td> <td><?php echo $vo["status"]; ?> </td> <td> <?php if ($vo["status"] == "1") { ?> <a href="<?php
<?php $postedData = json_decode(file_get_contents("php://input")); get_game($postedData->game_id); function get_game($data) { $results = array(); $conn = oci_connect('malz', '1Qaz2wsx', '(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(Host=db1.chpc.ndsu.nodak.edu)(Port=1521)))(CONNECT_DATA=(SID=cs)))'); //Select customer with last name from field $query = 'select * from Game where gameId = :data'; $stid = oci_parse($conn, $query); oci_bind_by_name($stid, ':data', $data); oci_execute($stid, OCI_DEFAULT); //iterate through each row while ($row = oci_fetch_array($stid, OCI_ASSOC)) { $results[] = $row; } echo json_encode($results); oci_free_statement($stid); oci_close($conn); }