<!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=<?php echo $cfg_soft_lang; ?>">
<title>友情链接管理</title>
<script src="../static/web/js/jquery.min.js" language="javascript" type="text/javascript"></script>
<script src="../static/web/js/bootstrap.bundle.min.js"></script>
<script language="javascript" src="js/main.js"></script>
<script language='javascript'>
function CheckSubmit()
{
	if(document.form1.url.value=="http://"||document.form1.url.value=="")
	{
   		document.form1.url.focus();
   		ShowMsg("网址不能为空");
   		return false;
	}
	if(document.form1.webname.value=="")
	{
   		document.form1.webname.focus();
   		ShowMsg("网站名称不能为空");
   		return false;
	}
	return true;
}
</script>
<link rel="stylesheet" href="../static/web/css/bootstrap.min.css">
<link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css">
<link rel="stylesheet" href="../static/web/css/admin.css">
</head>
<body background='../static/web/img/allbg.gif' leftmargin='8' topmargin='8'>
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table maintable table-bordered mt-3">
  <tr>
    <td height="26" background="../static/web/img/tbg.gif" style="padding-left:10px"><a href="friendlink_main.php">友情链接管理</a> &gt; 增加链接</td>
</tr>
<tr>
    <td height="200" bgcolor="#FFFFFF" valign="top">
	<form action="friendlink_add.php" method="post" enctype="multipart/form-data" name="form1" onSubmit="return CheckSubmit();";>
	<input type="hidden" name="dopost" value="add">
	<table width="80%"  border="0" cellspacing="1" cellpadding="3" class="table table-borderless">
	  <tr>
        <td width="19%" height="26">网址：</td>
        <td width="81%">
        	<input name="url" type="text" id="url" value="http://" size="30" class='pubinputs' />
        </td>
      </tr>
      <tr>
        <td height="26">网站名称：</td>
        <td>
        	<input name="webname" type="text" id="webname" size="30" class='pubinputs' />
        </td>
      </tr>
      <tr>
        <td width="19%" height="26">排列位置：</td>
        <td width="81%">
        <input name="sortrank" type="text" id="sortrank" value="1" size="10" class='pubinputs' style='width:60px' />
        (由小到大排列)
        </td>
      </tr>
      <tr>
        <td height="26">网站Logo：</td>
        <td>
        	<input name="logo" type="text" id="logo" size="30" class='pubinputs' />
          (88*31 gif或jpg)
        </td>
      </tr>
      <tr>
        <td height="26">上传Logo：</td>
        <td>
        	<input name="logoimg" type="file" id="logoimg" size="30">
        </td>
      </tr>
      <tr>
        <td height="26">网站简况：</td>
        <td><textarea name="msg" cols="50" rows="4" id="msg"></textarea></td>
      </tr>
      <tr>
        <td height="26">站长Email：</td>
        <td>
        	<input name="email" type="text" id="email" size="30" class='pubinputs' />
        </td>
      </tr>
      <tr>
        <td height="26">网站类型：</td>
        <td>
        <select name="typeid" id="typeid">
        <?php
        $dsql->SetQuery("select * from #@__flinktype");
        $dsql->Execute();
        while($row=$dsql->GetObject())
        {
        	echo " <option value='".$row->id."'>".$row->typename."</option>\r\n";
        }
        ?>
        </select>
        </td>
      </tr>
      <tr>
        <td height="26">链接位置：</td>
        <td>
        <label><input type='radio' name='ischeck' value="1" checked='1' /> 内页</label>
        <label><input type='radio' name='ischeck' value="2"/> 首页 </label>
        </td>
      </tr>
      <tr>
        <td height="50"></td>
        <td>
        	<button type="submit" name="Submit" class="btn btn-success"> 提 交 </button>
          <button type="reset" name="Submit" class="btn btn-success"> 重 置 </button>
         </td>
      </tr>
    </table>
	</form>
 </td>
</tr>
</table>
</body>
</html>