<!--#include file="../inc/DAL.asp"-->
<!--#include file="Check.asp"-->
<%
dim objXML,xml,strSourceFile
strSourceFile = Server.MapPath("/_Config.xml")
Set objXML =Server.CreateObject("Microsoft.XMLDOM") '创建一个XML对像
objXML.load(strSourceFile) '把XML文件读入内存
Set xml=objXML.documentElement '选取节点 Advertisement

if request.form("Method")="SetFlash" then
	xml.childNodes.item(0).text=request.form("RtmfpUrl")
	xml.childNodes.item(1).text=request.form("DeveloperKey")
	xml.childNodes.item(2).text=request.form("BufferTime")
	xml.childNodes.item(3).text=request.form("JsReceiveFunName")
	xml.childNodes.item(4).text=request.form("DisplayLogo")
	xml.childNodes.item(5).text=request.form("SwfUrl")
	xml.childNodes.item(6).text=request.form("SnKey")
	xml.childNodes.item(7).text=request.form("CameraQuality")
	xml.childNodes.item(8).text=request.form("VideoWidth")
	xml.childNodes.item(9).text=request.form("VideoHeight")
	xml.childNodes.item(10).text=request.form("KeyFrame")
	
	xml.childNodes.item(15).text=request.form("HDCameraQuality")
	xml.childNodes.item(16).text=request.form("HDWidth")
	xml.childNodes.item(17).text=request.form("HDHeight")
	xml.childNodes.item(19).text=request.form("GroupCameraQuality")
	xml.childNodes.item(20).text=request.form("GroupWidth")
	xml.childNodes.item(21).text=request.form("GroupHeight")
	xml.childNodes.item(22).text=request.form("GroupKeyFrame")
	objXML.save(strSourceFile)
	Set xml=nothing
	Set objXML =nothing
    RW "<script>alert('修改成功!');location.href='SetFlash.asp';</script>"
end if
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>iShow Manage System</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="styles/layoutContent.css" rel="stylesheet" type="text/css" />
<link href="themes/blue/styles.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="contentcontainer">
    <div class="headings alt">
        <h2>功能设置</h2>
    </div>
    <div class="contentbox">
        <form action="#" method="post" >
            <table class="CB" width="100%" cellpadding="0" cellspacing="0" border="0">
                <tr>
                    <td width="350">
                        <label for="RtmfpUrl"><strong>是否仅在企业内部局域网中使用:</strong></label>
                        <select id="RtmfpUrl" name="RtmfpUrl">
                            <option value="rtmfp://223.4.240.170/" <%if xml.childNodes.item(0).text<>"rtmfp:" then response.write "selected"%>>关闭</option>
                            <option value="rtmfp:" <%if xml.childNodes.item(0).text="rtmfp:" then response.write "selected"%>>开启</option>
                        </select>
                    </td>
                    <td>
                        <label for="DeveloperKey"><strong>开发者Key(无需特别设置,请保留默认值):</strong></label>
                        <input type="text" id="DeveloperKey" name="DeveloperKey" class="inputbox"  value="<%=xml.childNodes.item(1).text%>"/>
                    </td>
                </tr>
                <tr>
                    <td >
                        <label for="BufferTime"><strong>视频直播缓存时间(数字):</strong></label>
                        <input type="text" id="BufferTime" name="BufferTime" class="inputbox"  value="<%=xml.childNodes.item(2).text%>"/>
                    </td>
                    
                    <td >
                        <label for="JsReceiveFunName"><strong>JS接受消息函数名:</strong></label>
                        <input type="text" id="JsReceiveFunName" name="JsReceiveFunName" class="inputbox"  value="<%=xml.childNodes.item(3).text%>"/>
                    </td>
                </tr>
		<tr>
                    <td >
                        <label for="DisplayLogo"><strong>直播Flash中是否显示Logo图标:</strong></label>
                        <select id="DisplayLogo" name="DisplayLogo">
                            <option value="1" <%if xml.childNodes.item(4).text="1" then response.write "selected"%>>开启</option>
                            <option value="0" <%if xml.childNodes.item(4).text="0" then response.write "selected"%>>关闭</option>
                        </select>
                    </td>
                    
                    <td >
                        <label for="SwfUrl"><strong>直播Flash路径:</strong></label>
						<input type="text" id="SwfUrl" name="SwfUrl" class="inputbox"  value="<%=xml.childNodes.item(5).text%>"/>
                    </td>
                </tr>
		<tr>
                    <td >
                        <label for="VideoWidth"><strong>标清分辨率(宽):</strong></label>
                        <input type="text" id="VideoWidth" name="VideoWidth" class="inputbox"  value="<%=xml.childNodes.item(8).text%>"/>
                    </td>
                    
                    <td >
                        <label for="VideoHeight"><strong>标清分辨率(高):</strong></label>
						<input type="text" id="VideoHeight" name="VideoHeight" class="inputbox"  value="<%=xml.childNodes.item(9).text%>"/>
                    </td>
                </tr>
		<tr>
                    <td >
                        <label for="HDWidth"><strong>高清分辨率(宽):</strong></label>
                        <input type="text" id="HDWidth" name="HDWidth" class="inputbox"  value="<%=xml.childNodes.item(16).text%>"/>
                    </td>
                    
                    <td >
                        <label for="HDHeight"><strong>高清分辨率(高):</strong></label>
						<input type="text" id="HDHeight" name="HDHeight" class="inputbox"  value="<%=xml.childNodes.item(17).text%>"/>
                    </td>
                </tr>
		<tr>
                    <td >
                        <label for="GroupWidth"><strong>三视频标清分辨率(宽):</strong></label>
                        <input type="text" id="GroupWidth" name="GroupWidth" class="inputbox"  value="<%=xml.childNodes.item(20).text%>"/>
                    </td>
                    
                    <td >
                        <label for="GroupHeight"><strong>三视频标清分辨率(高):</strong></label>
						<input type="text" id="GroupHeight" name="GroupHeight" class="inputbox"  value="<%=xml.childNodes.item(21).text%>"/>
                    </td>
                </tr>
		<tr>
                    <td>
                        <label for="KeyFrame"><strong>关键帧率:</strong></label>
                        <input type="text" id="KeyFrame" name="KeyFrame" class="inputbox"  value="<%=xml.childNodes.item(10).text%>"/>
                    </td>
                    <td>
                        <label for="GroupKeyFrame"><strong>三视频关键帧率:</strong></label>
                        <input type="text" id="GroupKeyFrame" name="GroupKeyFrame" class="inputbox"  value="<%=xml.childNodes.item(22).text%>"/>
                    </td>
                </tr>
                <tr>
                    <td >
                        <label for="CameraQuality"><strong>标清直播清晰度(数字):</strong></label>
						<input type="text" id="CameraQuality" name="CameraQuality" class="inputbox"  value="<%=xml.childNodes.item(7).text%>"/>
                    </td>
                    <td >
                        <label for="HDCameraQuality"><strong>高清直播清晰度(数字):</strong></label>
						<input type="text" id="HDCameraQuality" name="HDCameraQuality" class="inputbox"  value="<%=xml.childNodes.item(15).text%>"/>
                    </td>
                </tr>
                <tr>
                    <td >
                        <label for="GroupCameraQuality"><strong>三视频直播清晰度(数字):</strong></label>
						<input type="text" id="GroupCameraQuality" name="GroupCameraQuality" class="inputbox"  value="<%=xml.childNodes.item(19).text%>"/>
                    </td>
                    <td >
                        <label for="SnKey"><strong>官方16位授权码:</strong></label>
                        <input type="text" id="SnKey" name="SnKey" class="inputbox"  value="<%=xml.childNodes.item(6).text%>"/>
                    </td>
                </tr>
                
                <tr>
                    <td colspan="2">
                        <input type="hidden" value="SetFlash" name="Method"/>
                        <input type="submit" value="提交" class="btn" />
                    </td>
                </tr>
            </table>
        </form>
    </div>
</div>
</body>
</html>
