<?php
/**
 * 推广广告表
 * $Id: worldcup_schedule_list.inc,v 1.1 2016-9-22 09:58:31 cuixl Exp $
 * @author cuixl
 * @access public
 * @package manager.templates
 */

?>
<br /><b>流量渠道列表</b><br />
<br />
<form name="search_input" method="post" action="?">
	<input type="button" value="添加渠道" class="button_width_normal" onClick="addChannel()"/>
</form>
<br />
<div id="result_list">
	<table>
		<tr>
			<th class="contents_title" width="5%" nowrap>渠道编号</th>
			<th class="contents_title" width="15%" nowrap>名称</th>
			<th class="contents_title" width="25%" nowrap>说明</th>
			<th class="contents_title" width="35%" nowrap>推广路径</th>
			<th class="contents_title" >编辑</th>
		</tr>

		<?
		if (count($channel_list) > 0) {
			foreach($channel_list as $channel_mst) {
				$path = "";
				$path = SCHOOL_TOP . "?cno=" . $channel_mst->channel_no;
				
		?>
				<tr>
					<td align="center" nowrap><?=htmlspecialchars($channel_mst->channel_no) ?></td>
					<td align="center" nowrap><?=htmlspecialchars($channel_mst->title) ?></td>
					<td align="left" nowrap><?=htmlspecialchars($channel_mst->comment) ?></td>
					<td align="left" nowrap><?=htmlspecialchars($path) ?></td>
					<td align="center">
						<a class="flatbutton" href="channel_edit.php?rand=<?=$rand?>&id=<?=$channel_mst->id ?>&action_type=edit">编集</a>
						<!--<a class="flatbutton" href="channel_mst_creat_qr.php?rand=<?=$rand?>&id=<?=$channel_mst->id ?>" target="view_window">获取二维码</a>-->
					</td>
				</tr>
				<?
			}
		}
		?>
	</table>
</div>