<?php 
include '../comm/conn.php';
include '../comm/config.php';
include '../comm/checkpostandget.php';
include 'check.php';
$id=$_GET['id'];

$link = mysql_connect($dbserver, $dbuser, $dbpass);
if (!$link) {
	die('数据库链接出错: ' . mysql_error());
}
else
{
	mysql_query("set names gbk");
	$sql="select * from yflink where linkid=".$id;
	mysql_select_db($dbname);
	$rs = mysql_query($sql);

}	
?><!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>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>新增友情链接-管理中心</title>
<link href="../images/style1.css" rel="stylesheet" type="text/css">
<link href="../images/sty.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.STYLE1 {
	color: #FFFFFF;
	font-weight: bold;
	font-size:14px;
	text-decoration:none;
}
.STYLE2 {
	color: #555555;
	font-weight: bold;
	font-size:14px;
	text-decoration:none;
}
-->
</style>
</head>

<?php
include("../comm/head.php");
?>
<body topmargin="5" leftmargin="0">
<table width="950" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="6"></td>
  </tr>
</table>
<table width="950" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="282" valign="top"><table width="950" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td>
          <table cellspacing="0" width="950" height="207" style="border:1px  solid #DCEAF7;">
            <tr>
              <td height="30" colspan="2" bgcolor="E9F2FB" class="bigtext"><strong>&nbsp;<img src="../images/arrow.gif" width="16" height="22" align="absmiddle" /> 新增友情链接</strong></td>
            </tr>
            <tr>
              <td width="950" colspan="2" valign="top"><table width="950" height="300" border="0" cellpadding="0" cellspacing="0">
                <tr>
                  <td valign="top"><form id="form1" name="form1" method="post" action="saveadchglink.php">
                    <table width="527" border="0" align="center" cellpadding="0" cellspacing="0">
                      <tr>
                        <td width="105" height="30">&nbsp;</td>
                        <td width="262" height="30">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;新增友情链接</td>
                      </tr>
					   <tr>
                        <td height="30" align="right" class="bigtext">链接名称：</td>
                        <td height="30">&nbsp;
                          <input type="text" name="linkname" class="btn3" value="" /></td>
                      </tr>
					   <tr>
                        <td height="104" align="right" class="bigtext">链接网址：</td>
                        <td height="104">&nbsp;
                          <textarea name="linkurl" cols="50" rows="5" ></textarea></td>
                      </tr>					   
					   <tr>
                        <td height="30" align="right" class="bigtext">&nbsp;</td>
                        <td height="30">&nbsp;<input type="submit" name="Submit" value=" 新增该友情链接" class="btn2" /></td>
                      </tr>
                    </table>
                                    </form>
                  </td>
                </tr>
              </table></td>
            </tr>
          </table></td>
        </tr>
      
    </table></td>
  </tr>
</table>
<?php
include("footer.php");
?>
</body>
</html>
<?php mysql_close($link);?>
