<%@ Language=VBScript %>
<!--#include virtual="/inc-freehost-function/FreeHostFunctionMain.asp"-->
<%
If session("admau")="" Then
	ef=True
	ec="授权非法，有可能是超时造成的。"
elseIf session("canmoneyK")="" Then
	ef=True
	ec="您没有此操作的权限。"
ElseIf not IsNumeric(Request("id"))  Then
	ef=True
	ec="ID应该是数字！"
end if

if not ef then
Set conn=Server.CreateObject("ADODB.Connection")
	conn.Open Application("FreeHostDBlink")
	Set dsICPDB = Server.CreateObject("ADODB.Recordset")	
	Sql="Select * from FreeHost.FreeHost_ICPDB where id ='"&Request("id")&"'"
	dsICPDB.Open Sql,conn,1,1
if dsICPDB.Eof then
	ef=True
	ec="不存在的ID!"
end if
end if

if not ef then
%>
<!--#include virtual="/inc-freehost-function/htmlwrite.asp"--><%=htmlwrite("html8")%>
<%=htmlwrite("html9")%>
<TABLE width="100%" border=0 cellPadding=0 cellSpacing=0 background="img/midtop4.gif">
  <TBODY>
    <TR>
      <TD width=53 align="left" background="img/midtop1.gif"><strong> 　 </strong><font color="#FFFFFF">─<strong>&gt;</strong></font> </TD>
      <TD><table height="59"  border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td width="7" background="img/midtop.gif">&nbsp;</td>
          <td width="150" align="center" valign="middle" background="img/r3.jpg" id="tableTop1" style="Cursor:hand"><a href="admicpdb.asp"><font color="#FFFFFF"><strong>本地备案数据库管理</strong></font></a></td>
          <td width="5" background="img/midtop2.gif">&nbsp;</td>
        </tr>
      </table></TD>
      <TD width="83">&nbsp;</TD>
      <TD width="83" align="left">&nbsp;</TD>
      <TD align="left">&nbsp;</TD>
      <TD width=23 align="right"><IMG height=59 
                  src="img/rtop4.jpg" 
                  width=19></TD>
    </TR>
  </TBODY>
</TABLE>
<TABLE width="100%" border=0 cellPadding=0 cellSpacing=0>
  <TBODY>
    <TR>
      <TD width=19 background="img/midlef.gif" id=rightid>&nbsp;</TD>
      <TD height="300" align="center" vAlign=top bgcolor="#FFFFFF">
<br>
           <DIV class="tableborder" id="imgdivX">
<%
If Not IsNull(dsICPDB("idimg")) then%>
<img src="showimg-icpdb.asp?id=<%=request("id")%>" name="idimg" id="idimg" onreadystatechange=showsize(this)><br>
<br>
<font color="#FF0000">图片大小为：</font>
<input name="IoffsetWidth" type="text" size="4" readonly="true" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px">X<input name="IoffsetHeight" type="text" size="4" readonly="true" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px"> 
<script>
function showsize(object)
{
 if(object.readyState=="complete"){   

IoffsetHeight.value=object.offsetHeight;
IoffsetWidth.value=object.offsetWidth;  
}
}
</script><br>
<br>
<%
Else
response.Write "图片尚未上传。"
End if


%>
		   </div>
  <br>

         <DIV class="tableborder">
           <table width="100%"  border="0" cellspacing="1">
          <tr >
            <td height="24" colspan="2" align="center" background="img/tablebg.gif"><font color="#FFFFFF">上传证件</font></td>
          </tr>
          <tr bgcolor="#E4EAF2">
            <td width="9%" height="40" align="right" bgcolor="#E4EAF2">&nbsp;</td>
            <td width="91%" align="left"><form action="admicpdbupimg2.asp" method="post" enctype="multipart/form-data" name="form2">
    上传　<%=ComX.actoidc_7i24_com(Cstr(dsICPDB("domain")))%>　
    <input name="id" type="hidden" id="id" value="<%=request("id")%>">
    的证件到数据库中：
        <input name="freehostfile" type="file" id="freehostfile">
        <input type="submit" name="Submit" value="提交">
(大小必须在100K以内)            
            </form></td>
          </tr>
        </table>
         </div></TD>
      <TD width=18 background="img/midri.gif">&nbsp;</TD>
    </TR>
  </TBODY>
</TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
  <TBODY>
    <TR>
      <TD width=30><IMG height=19 
                  src="img/rb1.jpg" 
                  width=30></TD>
      <TD 
                background=img/rb2.jpg>&nbsp;</TD>
      <TD width=30><IMG height=19 
                  src="img/rb3.jpg" 
                  width=30></TD>
    </TR>
  </TBODY>
</TABLE>

<%=htmlwrite("html10")%>
<%
end if
if ef then
Response.Redirect "e.asp?e="&ec
end if%>
