channeladd2.php
资源名称:p2p_vod.rar [点击查看]
上传用户:liguizhu
上传日期:2015-11-01
资源大小:2422k
文件大小:3k
源码类别:
P2P编程
开发平台:
Visual C++
- <?php
- include_once 'functions.php';
- $cfile = cache_programlist();
- ?>
- <!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>
- <script type="text/javascript" src="prototype.js"></script>
- <script type="text/javascript">
- document.write("<style type='text/css'>");
- document.write(".cPopText{font-family:Tahoma,Verdana;background-color:#FFFFFF;border:1px #00529F solid;font-size:12px;padding-right:4px;padding-left:4px;line-height:18px;padding-top:2px;padding-bottom:2px;visibility:hidden;filter:Alpha(Opacity=80)}");
- document.write("</style>");
- document.write("<div id='popLayer' style='position:absolute;z-index:1000' class='cPopText'></div>");
- function srhList(keyword) {
- var keyword = keyword || '';
- var url = 'srhProglist.php';
- var pars = 'f=<?=$cfile?>&k='+keyword;
- updateList(url+'?'+pars);
- //var myAjax = new Ajax.Request(url, {method: 'get', parameters: pars, onComplete: updateList});
- }
- function updateList(s) {
- try{
- var xslDoc = new ActiveXObject("Microsoft.XMLDOM");
- xslDoc.async="false";
- xslDoc.load(s);
- var str='';
- var nodelist=xslDoc.documentElement.getElementsByTagName("program");
- if(nodelist!=null) {
- for(var i=0;i<nodelist.length;i++) {
- str += nodelist[i].getAttribute("md5")+'|'+nodelist[i].getAttribute("name");
- }
- alert(str);
- }
- } catch(e) {}
- }
- </script>
- </head>
- <body>
- <p align="center" class="style1">输入频道信息</p>
- <form name="form1" method="post" action="channeladddo.php">
- <table border="0" align="center" cellspacing="5">
- <tr>
- <td width="62">频道名</td>
- <td width="122"><input name="channel" type="text" id="channel"></td>
- </tr>
- <tr>
- <td>码率</td>
- <td><input name="bitrate" type="text" id="bitrate" value="40" size="10"></td>
- </tr>
- <tr>
- <td>添加节目</td>
- <td>
- <?php
- $programnum = $_REQUEST["programnum"];
- for($j=0; $j<$programnum; $j++){
- ?>
- <input type="text" name="programlist[]" id="programlist[]" size="45" onclick="srhList()" onchange="srhList(this.value)" />
- <br />
- <?php
- }
- ?>
- </td>
- </tr>
- <tr>
- <td colspan="2" align="center"><input type="submit" name="Submit" value="提交">
- <input type="reset" name="Submit2" value="重置"></td>
- </tr>
- </table>
- <p align="center" ><a href="channel.php">返回频道列表</a></p>
- <p> </p>
- </form>
- </body>
- </html>