📄 program.php
字号:
<?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>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -