📄 program.php
字号:
<?php
include_once 'functions.php';
// ls = 0 shuffle, 1 order by times, 2 order by name
$sort = preg_match("/^[012]$/", $_GET['ls']) ? $_GET['ls'] : 1;
?>
<!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>
[排序 -
<?php
if ($sort!=0){
?>
<a href="program.php?ls=0">缺省顺序</a>
<?php
}
else{
?>
缺省顺序
<?php
}
?>
|
<?php
if ($sort!=1){
?>
<a href="program.php?ls=1">按时间逆序</a>
<?php
}
else{
?>
按时间逆序
<?php
}
?>
|
<?php
if ($sort!=2){
?>
<a href="program.php?ls=2">按节目名顺序</a>
<?php
}
else{
?>
按节目名顺序
<?php
}
?>
]
</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 + -