<!--#include file=../include/config.asp-->
<!--#include file=../include/conn_system.asp-->
<!--#include file=../include/access.asp-->
<!--#include file=../include/function.asp-->
<html>
<head>
<title>修改公司</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../style.css" type="text/css">
</head>

<script language="JavaScript">
<!--
	function checkdata()
	{
		if(!CheckIsNull(form1.news_title,"请输入标题！")) return false;
		if(!CheckIsNull(form1.news_url,"请输入url！")) return false;
		
		
	}
	
//-->
</script>
<%
	dim strSql,rs,i,PageNo
	if request("id")="" then
		out("参数出错了！")
		response.end
	end if
	strSql="select * from [company] where id="&request("id")
	set rs=Server.CreateObject("ADODB.RecordSet")
	rs.open strSql,conn,3,3
	if rs.eof then
		out("参数出错了！")
	else
%>

<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0">
<div align="center"><br>
  <font size="3"><b>修改推荐公司</b></font><br>
  <br>
</div>
<table width="600" border="0" cellpadding="0" cellspacing="2" class="kuan" align="center" bgcolor="#FFFFFF">
  <tr> 
    <td background="../images/system1.gif" height="25" align="center" width="602"><font color="#FF6633" class="font"><b><font color="#FF9B59">请输入以下表格来&quot;<font color="#FFFFFF">修改公司资料</font>&quot;</font></b></font></td>
  </tr>
  <tr> 
    <td bgcolor="#E9F0F8" class="linkfont" align="center" valign="middle" height="287" width="602"> 
      <form name="form1" method="post" action="save_change_company.asp" onsubmit="return checkdata()">
        <table width="600" border="0" cellspacing="5" cellpadding="0">
          <tr align="left" valign="middle"> 
            <td width="71" height="30" align="right" class="font">类　　型: </td>
            <td width="214" class="font" height="30"> 
              <input name="type" type="text" class="textinput" size="1"  value="<%=rs("type")%>" readonly>
              　　ID: 
              <input name="id" type="text" class="textinput" size="1"  value="<%=rs("id")%>" readonly>
            </td>
            <td width="60" align="right" class="font">添加日期: </td>
            <td width="230" class="font">&nbsp;<font color=red><%=rs("date")%></font> </td>
          </tr>
          <tr align="left" valign="middle"> 
            <td width="71" height="30" align="right" class="font">公司名称: </td>
            <td width="214" class="font" height="30"> 
              <input name="company" type="text" class="textinput" size="30" maxlength="50" value="<%=rs("company")%>">
            </td>
            <td width="60" align="right" class="font">联 系 人: </td>
            <td width="230" class="font">
              <input name="man" type="text" class="textinput" size="30" maxlength="30" value="<%=rs("man")%>">
            </td>
          </tr>
          <tr align="left" valign="middle"> 
            <td height="30" align="right" class="font">地　　址: </td>
            <td height="30" class="font" colspan="3"> 
              <input name="address" type="text" class="textinput" size="80" maxlength="50" value="<%=rs("address")%>">
            </td>
          </tr>
          <tr align="left" valign="middle"> 
            <td height="30" align="right" class="font">电　　话: </td>
            <td height="30" class="font"> 
              <input name="tel" type="text" class="textinput" size="30" maxlength="50" value="<%=rs("tel")%>">
            </td>
            <td align="right" class="font">E-mail: </td>
            <td class="font"> 
              <input name="email" type="text" class="textinput" size="30" maxlength="50" value="<%=rs("email")%>">
            </td>
          </tr>
          <tr align="left" valign="middle"> 
            <td height="30" align="right" class="font">邮　　编: </td>
            <td height="30" class="font"> 
              <input name="yb" type="text" class="textinput" size="30" maxlength="10" value="<%=rs("yb")%>">
            </td>
            <td align="right" class="font">传　　真: </td>
            <td class="font"> 
              <input name="fax" type="text" class="textinput" size="30" maxlength="50" value="<%=rs("fax")%>">
            </td>
          </tr>
          <tr align="left" valign="middle"> 
            <td height="30" align="right" class="font">网　　址: </td>
            <td height="30" class="font"> 
              <input name="http" type="text" class="textinput" size="30" maxlength="50" value="<%=rs("http")%>">
            </td>
            <td align="right" class="font">加　　色: </td>
            <td class="font"> 
              <select name="color">
			  
                <%if rs("color")="#FF6600" then%>
                <option value="#FF6600" selected>加色</option>
				<option value="">不加色</option>
                <%else%>
                <option value="#FF6600">加色</option>
				<option value="" selected>不加色</option>
                <%end if%>
               
              </select>
            </td>
          </tr>
          <tr align="left" valign="middle"> 
            <td height="30" align="right" class="font">图　　片: </td>
            <td height="30" class="font" colspan="3"> 
              <input name="pic" type="text" class="textinput" size="80" maxlength="50" value="<%=rs("pic")%>">
            </td>
          </tr>
        </table>
        <table width="600" border="0" cellspacing="5" cellpadding="0">
          <tr> 
            <td width="72" align="right" valign="top" class="font">公司简介: </td>
            <td width="513" align="left" valign="top"> 
              <textarea name="bz" cols="82" rows="8" class="textinput" ><%=rs("bz")%></textarea>
            </td>
          </tr>
        </table>
        <br>
        <br>
        <table width="578" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td align="center" valign="middle">
              <input type="submit" name="Submit" value="提交" class="textbotton">
              　 
              <input type="reset" name="Submit2" value="重填" class="textbotton">
            </td>
          </tr>
        </table>
        <br>
      </form>
    </td>
  </tr>
</table>


</body>
<%
	end if
%>
</html>
<!--#include file=../include/foot.asp-->