<!--#include file="../inc/Conn.asp"-->
<!--#include file="Inc/Admin.Asp"-->
<%
if Request.QueryString("mark")="operate" then%>
<%
id=request("id")
Readme=server.htmlencode(Trim(Request("Readme")))
Types=server.htmlencode(Trim(Request("Types")))
MovieAddr=server.htmlencode(Trim(Request("MovieAddr")))
%>

<%
If Readme="" Then
response.write "SORRY <br>"
response.write "视频说明不能为空!<a href=""javascript:history.go(-1)"">返回重输</a>"
response.end
end if
If MovieAddr="" Then
response.write "SORRY <br>"
response.write "视频地址不能为空!<a href=""javascript:history.go(-1)"">返回重输</a>"
response.end
end if

Set rs = Server.CreateObject("ADODB.Recordset")
sql="select * from Movie where id="&id
rs.open sql,conn,1,3
rs("Readme")=Readme
rs("Types")=Types
rs("MovieAddr")=MovieAddr
rs.update
rs.close
response.redirect "Admin_Movie.asp"
end if
%>
<%
id=request.querystring("id")
Set rs = Server.CreateObject("ADODB.Recordset")
rs.Open "Select * From Movie where id="&id, conn,1,1
%>
<!-- #include file="Inc/Head.asp" -->
<table width="100%"  border="0" cellpadding="0" cellspacing="0">
  <tr> 
    <td align="center" valign="top"><table width="560" border="0" cellpadding="2" cellspacing="1" class="border">
        <tr> 
          <td class="topbg"> <div align="center"><strong>添加视频
              </strong></div></td>
        </tr>
        <tr> 
          <form method="post" name="myform" action="Admin_MovieEdit.asp?mark=operate">
            <td><div align="center"> 
                <table width="100%" border="0" cellspacing="1" cellpadding="0">
                  <tr class=tdbg> 
                    <td width="27%" height="25"> <div align="center">视频说明</div></td>
                    <td width="73%"> <textarea name="Readme" cols="40" rows="5" id="Readme"><%=rs("Readme")%></textarea></td>
                  </tr>
                  <tr class=tdbg>
                    <td height="22" class=tdbg><div align="center">类别</div></td>
                    <td><select name="Types" id="Types">
                  <option <% if rs("Types")="在线视听" then response.Write "selected" %> value="在线视听">在线视听</option>                     
                      </select></td>
                  </tr>
                  <tr class=tdbg> 
                    <td height="22" class=tdbg> <div align="center">视频地址</div></td>
                    <td> <input name="MovieAddr" type="text" value="<%=rs("MovieAddr")%>"  size="40" maxlength="50">
                      <font color="#FF0000"> 视频地址</font></td>
                  </tr>
                  <tr class=tdbg> 
                    <td height="25" colspan="2"> <div align="center"> 
                        <input name="submit" type="submit" value="确定">
                        &nbsp; 
                        <input name="reset" type="reset" value="取消">
                      </div></td>
                  </tr>
                  <tr> 
                    <td colspan="2" class="tdbg">视频上传</td>
                  </tr>
                  <tr> 
                    <td colspan="2" class="tdbg"> <div align="left"> 
                        <iframe style="top:2px" ID="UploadFiles" src="../upload_Photo.asp?PhotoUrlID=7" frameborder=0 scrolling=no width="300" height="25"></iframe>
                    </div></td>
                  </tr>
                </table>
              </div></td>
          </form>
        </tr>
      </table>
    </td>
  </tr>
</table>
<!-- #include file="Inc/Foot.asp" -->
<%
%>