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


PHP _fetch_array_list函数代码示例

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


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

示例1: _wrap

			<dl>
				<dt><strong class="cooking">做法</strong><strong class="comment" >评价</strong></dt>
				<p class="line"></p>
				<dd><?php 
echo _wrap($_html['content']);
?>
</dd>
			</dl>
		</div>
		<div id="comment">
			<dl>
				<dt><strong class="cooking">做法</strong><strong class="comment" >评价</strong></dt>
			</dl>
			<p class="line"></p>		
				<?php 
while (!!($_rows2 = _fetch_array_list($_result2))) {
    $_html2 = array();
    $_html2['id'] = $_rows2['id'];
    $_html2['order_id'] = $_rows2['order_id'];
    $_html2['food_id'] = $_rows2['food_id'];
    $_html2['username'] = $_rows2['username'];
    $_html2['content'] = $_rows2['content'];
    $_html2['date_time'] = $_rows2['date_time'];
    $_html2 = _html($_html2);
    ?>
					<span>回复</span>
					<dl class="con"><?php 
    echo $_html2['content'];
    ?>
</dl>
					<dl class="username"><?php 
开发者ID:zhangshuhui2014,项目名称:foodcool,代码行数:31,代码来源:comment_detail.php

示例2: array

require ROOT_PATH . 'includes/header.inc.php';
?>
 

<div id="member">
<?php 
require ROOT_PATH . 'includes/member.inc.php';
?>
	<div id="member_main">
		<h2>花朵管理中心</h2>
		<form method="post" action="?action=delete">
		<table cellspacing="1">
			<tr><th>送花人</th><th>花朵数目</th><th>感言</th><th>时间</th><th>操作</th></tr>
			<?php 
$_html = array();
while (!!($_rows = _fetch_array_list($_result))) {
    $_html['id'] = $_rows['tg_id'];
    $_html['fromuser'] = $_rows['tg_fromuser'];
    $_html['content'] = $_rows['tg_content'];
    $_html['flower'] = $_rows['tg_flower'];
    $_html['date'] = $_rows['tg_date'];
    $_html = _html($_html);
    $_html['count'] += $_html['flower'];
    ?>
			<tr><td><?php 
    echo $_html['fromuser'];
    ?>
</td><td><img src="images/x4.gif" alt="花朵" /> x <?php 
    echo $_html['flower'];
    ?>
朵</td><td><?php 
开发者ID:xiaohuazheng,项目名称:twbm1.0,代码行数:31,代码来源:member_flower.php

示例3: _fetch_array_list

		<dd><a href="stu_date.php">共有<?php 
echo $stu_num;
?>
个研究生信息</a></dd>
		<dd><a href="teacher_data.php">共有<?php 
echo $teacher_num;
?>
个导师信息</a></dd>	
	</dl>
</div>
<div id="right">
	<dl>
		<dt> 最新留言</dt>
		<?php 
for ($i = 0; $i < 8; $i++) {
    $message_row = _fetch_array_list($message_res);
    if ($message_row['gm_id'] == '') {
        break;
    }
    echo '<dd><span class="stu"><a href="stu_date_one.php?num=' . $message_row['gm_num'] . '">' . $message_row['gm_username'] . '</a></span><span class="time">于' . date('Y-m-d H:i', strtotime($message_row['gm_systime'])) . ' </span><a href="message_edit_admin.php?action=edit&id=' . $message_row['gm_id'] . '">' . _cut($message_row['gm_content'], 25) . '</a>';
    if ($message_row['gm_replytime'] == NULL) {
        echo ' [<i>未回复</i>]';
    }
    echo '</dd>';
}
?>

	</dl>
</div>    
</div>
<?php 
开发者ID:bboot9001,项目名称:phpbeginner_gmanage,代码行数:31,代码来源:admin.php

示例4: _fetch_array_list

				<th class="sortableCol" valuetype="number">序号</th>
				<th class="sortableCol">姓名</th>
				<th class="sortableCol" valuetype="number">学号</th>
				<th class="sortableCol">导师</th>
				<th class="sortableCol">性别</th>
				<th class="sortableCol">年级</th>				
				<th class="sortableCol">专业</th>
				<th class="sortableCol">培养类型</th>
				<th class="sortableCol">家庭住址</th>
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
		<?php 
for ($i = 1; $i <= $pagesize; $i++) {
    $row = _fetch_array_list($res);
    $address = _cut($row['gm_address'], 15);
    if (!$row['gm_teacher']) {
        $row['gm_teacher'] = '<a href="teacher_match.php?action=one&num=' . $row['gm_num'] . '">分配</a>';
    }
    if ($row['gm_num'] == '') {
        break;
    }
    echo "<tr><td>{$i}</td><td>{$row['gm_username']}</td><td>{$row['gm_num']}</td><td>{$row['gm_teacher']}</td><td>{$row['gm_sex']}</td><td>{$row['gm_grade']}</td><td>{$row['gm_subject']}</td><td>{$row['gm_type']}</td><td title='{$row['gm_address']}'>{$address}</td><td><a href='stu_date_one.php?num={$row['gm_num']}'>详细</a> <a href='stu_data_edit.php?num={$row['gm_num']}'>修改</a>";
    if ($_SESSION['level'] == 3) {
        echo " <a href='###' onclick=_confirm('确定删除该同学资料吗?','stu_date.php?action=del&num={$row['gm_num']}')>删除</a>";
    }
    echo "</td></tr>";
}
?>
		</tbody>
开发者ID:bboot9001,项目名称:phpbeginner_gmanage,代码行数:31,代码来源:stu_date.php

示例5: _query

    echo $_html2['content'];
    ?>
</dd>
				<dd class="username"><?php 
    echo $_html2['username'];
    ?>
</dd>
				<dd class="time"><?php 
    echo $_html2['date_time'];
    ?>
</dd>
			</dl>
				<?php 
    //获取该评论下所有回复
    $_result3 = _query("SELECT username,content,date_time FROM tb_reply WHERE to_comment_id = '{$_html2['id']}'");
    while (!!($_rows3 = _fetch_array_list($_result3))) {
        $_html3 = array();
        $_html3['username'] = $_rows3['username'];
        $_html3['content'] = $_rows3['content'];
        $_html3['date_time'] = $_rows3['date_time'];
        $_html3 = _html($_html3);
        ?>
					<p class="line"></p>
					<dl class="reply">
						<dd class="con"><?php 
        echo $_html3['content'];
        ?>
</dd>
						<dd class="username"><?php 
        echo $_html3['username'];
        ?>
开发者ID:zhangshuhui2014,项目名称:foodcool,代码行数:31,代码来源:food_detail.php

示例6: _query

				        	</div>
				        </form>
		    	    </div>
			    	<div class="community_talk_off">
			    	<?php 
$_comment = _query("SELECT * FROM community_comment");
$page = ceil(mysql_num_rows($_comment) / 5);
$_min = 0;
$_max = 5;
$_zan = 0;
if (!!isset($_GET['page'])) {
    $_min = -5 + 5 * $_GET['page'];
    $_max = 5 * $_GET['page'];
}
$_comment = _query("SELECT * FROM community_comment ORDER BY time DESC limit {$_min},{$_max}");
while ($_comments = _fetch_array_list($_comment)) {
    $_html = array();
    $_html['id'] = $_comments['id'];
    $_html['name'] = $_comments['name'];
    $_html['username'] = $_comments['username'];
    $_html['content'] = $_comments['content'];
    $_html['time'] = $_comments['time'];
    $_zan++;
    ?>
			    		<div class="community_comment">
			    			<div class="comment_author">
			    				<img src="face/face10.jpg">
			    				<span>
			    					hua1995116
			    				</span>
			    			</div>
开发者ID:hua1995116,项目名称:testgit,代码行数:31,代码来源:community_content.php

示例7: _fetch_array_list

<body>

<?php 
require ROOT_PATH . 'includes/header.inc.php';
?>
<div id="member">
	<?php 
require ROOT_PATH . 'includes/member.inc.php';
?>
	<div id="member_main">
		<div id="new_comment">
			<dl>
					<dt><strong>新消息</strong></dt>
					
			</dl>
		</div>
		<span>上次登录时间:
				<?php 
$_rows = _fetch_array_list($_result);
echo $_rows['last_time'];
?>
		</span>

	</div>
</div>
<?php 
require ROOT_PATH . 'includes/footer.inc.php';
?>

</body>
</html>
开发者ID:zhangshuhui2014,项目名称:foodcool,代码行数:31,代码来源:member.php

示例8: _query

                <!-- Start of Page Container -->
                <div class="page-container">
                        <div class="container">
                                <div class="row">

                                        <!-- start of page content -->
                                        <div class="span8 page-content">

                                                <!-- Basic Home Page Template -->
                                                <div class="row separator">
                                                        <section class="span4 articles-list">
                                                                <h3>推荐文章</h3>
                                                                <ul class="articles">
                                                                <?php 
$_row = _query("SELECT * FROM artical LIMIT 3");
while (!!($_rows = _fetch_array_list($_row))) {
    $_html = array();
    $_html['title'] = $_rows['titile'];
    $_html['commont'] = $_rows['commont'];
    $_html['type'] = $_rows['type'];
    $_html['time'] = $_rows['time'];
    $_html['view'] = $_rows['view'];
    print_r($_html);
    if ($_html['type'] == "问答") {
        $_type = 'standard';
    }
    if ($_html['type'] == "教学") {
        $_type = 'video';
    }
    if ($_html['type'] == "分享") {
        $_type = 'image';
开发者ID:hua1995116,项目名称:testgit,代码行数:31,代码来源:talk_index.php

示例9: _fetch_array_list

echo $row['gm_num'];
?>
" disabled="disabled"/>
						<input type="hidden" name="num" value="<?php 
echo $row['gm_num'];
?>
" />
			</dd>
			<dd>导  师:<select name="teacher">
			<?php 
if ($row['gm_active'] == 0) {
    echo '<option value="">未审核无法分配</option>';
} else {
    echo '<option value="">无</option>';
    for ($i = 0; $i < $nums_t; $i++) {
        $rows_t = _fetch_array_list($res_t);
        if ($row['gm_teacher'] == $rows_t['gm_username']) {
            echo '<option selected="selected">' . $rows_t['gm_username'] . '</option>';
        } else {
            echo '<option>' . $rows_t['gm_username'] . '</option>';
        }
    }
}
?>
</select></dd>
			<dd>性  别:<input type="radio" name="sex" class="radio" value="男" <?php 
if ($row['gm_sex'] == '男') {
    echo "checked='checked'";
}
?>
/> 男<input type="radio" name="sex" class="radio" value="女" <?php 
开发者ID:bboot9001,项目名称:phpbeginner_gmanage,代码行数:31,代码来源:stu_data_edit.php


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