channel.php
资源名称:p2p_vod.rar [点击查看]
上传用户:liguizhu
上传日期:2015-11-01
资源大小:2422k
文件大小:2k
源码类别:
P2P编程
开发平台:
Visual C++
- <?php
- include_once 'functions.php';
- ?>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
- <title>频道管理</title>
- <style type="text/css">
- <!--
- .style1 {
- font-size: 18px;
- font-weight: bold;
- }
- -->
- </style>
- </head>
- <body>
- <p align="center" class="style1">频道列表 <a href="program.php">节目列表</a></p>
- <p align="center" >
- <form name="form1" method="post" action="channeladd.php">
- <div align="center">请输入节目数:
- <input name="programnum" type="text" id="programnum" value="5" size="5">
- <input type="submit" name="Submit" value="增加新频道">
- </div>
- </form>
- </p>
- <table width="80%" border="1" align="center">
- <tr>
- <td nowrap><strong>编号</strong></td>
- <td nowrap><strong>频道信息</strong></td>
- <td nowrap><strong>码率</strong></td>
- <td nowrap><strong>节目列表</strong></td>
- <td nowrap><strong>操作</strong></td>
- </tr>
- <?php
- $listTable = getChannelTable();
- $gramTable = getProgramTable();
- $i=0;
- foreach ($listTable as $listmd5 => $listarray){
- $i++;
- ?>
- <tr>
- <td><?php print($i); ?> </td>
- <td><?php print("<b>".$listarray[1]."</b>[".$listmd5."]"); ?> </td>
- <td><?php print($listarray[0]); ?> </td>
- <td>
- <?php
- $size = count($listarray);
- for ($j=2; $j<$size; $j++){
- print("<b>".$gramTable[trim($listarray[$j])]."</b>[".trim($listarray[$j])."]<br/>");
- }
- ?>
- </td>
- <td><a href="channeldel.php?channel=<?php print($listmd5); ?>" onClick="return confirm('确定你想要删除这个频道么?删除之后不能恢复!');">删除</a></td>
- </tr>
- <?php
- }
- ?>
- </table>
- <form name="form1" method="post" action="channeladd.php">
- <div align="center">请输入节目数:
- <input name="programnum" type="text" id="programnum" value="5" size="5">
- <input type="submit" name="Submit" value="增加新频道">
- </div>
- </form>
- </body>
- </html>