本文整理汇总了PHP中get_game函数的典型用法代码示例。如果您正苦于以下问题:PHP get_game函数的具体用法?PHP get_game怎么用?PHP get_game使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了get_game函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: U
} 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;
?>
示例2: indexOfArticle
/**
* 默认文档列表方法
* @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';
}
示例3: U
} 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>
示例4: get_game
"><?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>
示例5: get_game
" 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>
示例6: U
<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>
示例7: get_game
<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>
示例8: defined
<?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>
示例9: foreach
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 "";
}
示例10: get_game
?>
" 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>
示例11: get_parent_game
/**
* 获取参数的所有父级分类
* @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;
}
示例12: generate_ini
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);
}
示例13: get_game
?>
" 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>
示例14: get_game
?>
" 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>
示例15: get_username
" 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']) {