<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
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
<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
<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>
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']; ?>
</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>
<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>
<!-- 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';
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