• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

PHP get_game函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



在下文中一共展示了get_game函数的17个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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;
                    ?>
开发者ID:nullog,项目名称:zhanglubao,代码行数:31,代码来源:7c2e051fd11f2ee0450c7a70191797e3.php


示例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';
 }
开发者ID:nullog,项目名称:zhanglubao,代码行数:55,代码来源:ArticleController.class.php


示例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>
开发者ID:sc-yuns,项目名称:zhanglubao,代码行数:31,代码来源:aeaedd05c0fa32bda704dea494569ccb.php


示例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>
开发者ID:nullog,项目名称:zhanglubao,代码行数:31,代码来源:ff665daf6f50bf4722684e9f400637a5.php


示例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>
开发者ID:nullog,项目名称:zhanglubao,代码行数:31,代码来源:ac7ffa9b046535e99009ebafa69474cf.php


示例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>
开发者ID:nullog,项目名称:zhanglubao,代码行数:31,代码来源:69e0ea73ca96f32b0bae7fa390cf328e.php


示例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>
开发者ID:nullog,项目名称:zhanglubao,代码行数:30,代码来源:ab21c9e1b1edc5218b6c5002fad4154b.php


示例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>
开发者ID:akksi,项目名称:jcg,代码行数:23,代码来源:default.php


示例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 "";
}
开发者ID:nullog,项目名称:zhanglubao,代码行数:31,代码来源:28065dcfae8265f44f2746f7dc8afe59.php


示例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>
开发者ID:nullog,项目名称:zhanglubao,代码行数:31,代码来源:01eea104bb77db3b07937a7a1fb8e3f2.php


示例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;
}
开发者ID:nullog,项目名称:zhanglubao,代码行数:31,代码来源:function.php


示例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);
}
开发者ID:shourya07,项目名称:zperfmon,代码行数:19,代码来源:get_ini.php


示例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>
开发者ID:nullog,项目名称:zhanglubao,代码行数:31,代码来源:b0ec720d3fe0d40434b6eef4eaa1c89b.php


示例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>
开发者ID:nullog,项目名称:zhanglubao,代码行数:31,代码来源:2c08e54e04dda21121e859974571739d.php


示例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']) {
开发者ID:sc-yuns,项目名称:zhanglubao,代码行数:31,代码来源:fb866f90d64112075bcf6be7302486e3.php


示例16: op_t

                ?>
<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 
开发者ID:nullog,项目名称:zhanglubao,代码行数:31,代码来源:5e1653128d752a182be7a6cb41fee726.php


示例17: json_decode

<?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);
}
开发者ID:GabieJay,项目名称:CatBoard,代码行数:21,代码来源:Game.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP get_gd_version函数代码示例发布时间:2022-05-15
下一篇:
PHP get_gallery_home_url函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap