program.php
资源名称:p2p_vod.rar [点击查看]
上传用户:liguizhu
上传日期:2015-11-01
资源大小:2422k
文件大小:2k
源码类别:
P2P编程
开发平台:
Visual C++
- <?php
- include_once 'functions.php';
- $sort = preg_match("/^[01]$/", $_GET['ls']) ? $_GET['ls'] : 1;
- if($sort == 1) $btn_value = 'Order by MD5';
- else $btn_value = 'Order by name';
- ?>
- <!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="channel.php">频道列表</a></p>
- <p align="center" >
- </p>
- <center>
- <input type='button' value='<?=$btn_value?>' onclick='window.location="<?=$_SERVER['PHP_SELF'].'?ls='.intval(!$sort)?>"'>
- </center>
- <table width="80%" border="1" align="center">
- <tr>
- <td nowrap><strong>编号</strong></td>
- <td nowrap><strong>节目名</strong></td>
- <td nowrap><strong>MD5</strong></td>
- <td nowrap><strong>码率</strong></td>
- <td nowrap><strong>操作</strong></td>
- </tr>
- <?php
- $listTable = getProgramInfoTable();
- $gramTable = getProgramTable($sort);
- $i=0;
- foreach ($gramTable as $md5 => $name){
- $infoarray = $listTable[$md5];
- $i++;
- ?>
- <tr>
- <td><?php print($i); ?> </td>
- <td><?php print($name); ?> </td>
- <td><?php print($md5); ?> </td>
- <td><?php print($infoarray["BitRate"]); ?> </td>
- <td><a href="programdel.php?program=<?php print($md5); ?>" onClick="return confirm('确定你想要删除这个节目么?删除之后不能恢复!');">删除</a></td>
- </tr>
- <?php
- }
- ?>
- </table>
- </body>
- </html>