<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
		<title>申请友链-<?php echo $cfg_webname;?></title>
		<link rel="stylesheet" href="/static/web/css/font-awesome.min.css">
		<link rel="stylesheet" href="/static/web/css/bootstrap.min.css">
		<link rel="stylesheet" href="/static/web/css/style.css">
	</head>
	<body>
		<?php obtaintheme('top.htm');?>
		<main class="container py-3">
			<nav aria-label="breadcrumb">
				<ol class="breadcrumb">
					<li class="breadcrumb-item"><a href="/">首页</a></li>
					<li class="breadcrumb-item"><a href="<?php echo $cfg_phpurl;?>/flink.php">友情链接</a></li>
					<li class="breadcrumb-item">申请链接</li>
				</ol>
			</nav>
			<form name="form1" action="<?php echo $cfg_phpurl?>/flink.php" method="post">
				<input type="hidden" name="dopost" value="save">
	 			<table class="table mb-0">
					<tr>
						<td>网址：</td>
						<td><input name="url" type="text" id="url" class="form-control"></td>
					</tr>
					<tr>
						<td>网站名称：</td>
						<td><input name="webname" type="text" id="webname" class="form-control"></td>
					</tr>
					<tr>
						<td>网站Logo：</td>
						<td><input name="logo" type="text" id="logo" class="form-control">（88*31 gif或jpg）</td>
					</tr>
					<tr>
						<td>网站简况：</td>
						<td><textarea name="msg" id="msg" class="form-control"></textarea></td>
					</tr>
					<tr>
						<td>邮箱：</td>
						<td><input name="email" type="text" id="email" autocomplete="off" class="form-control"></td>
					</tr>
					<tr>
						<td>网站类型：</td>
						<td>
							<select name="typeid" id="typeid" class="form-control">
							<?php
							$dsql->SetQuery("SELECT * FROM `#@__flinktype`");
							$dsql->Execute();
							while($row=$dsql->GetObject())
							{
								echo " <option value='".$row->id."'>".$row->typename."</option>";
							}
							?>
							</select>
						</td>
					</tr>
					<tr>
						<td>验证码：</td>
						<td>
							<div class="input-group">
								<input name="validate" type="text" id="vdcode2" class="form-control">
								<img src="/apps/vdimgck.php" onclick="this.src=this.src+'?'" title="验证码" id="validateimg">
							</div>
						</td>
					</tr>
					<tr>
						<td colspan="2" align="center">
							<button type="submit" name="submit" class="btn btn-success btn-sm">提交</button>
							<button type="reset" name="submit" class="btn btn-outline-success btn-sm">重置</button>
						</td>
					</tr>
				</table>
			</form>
		</main>
		<?php obtaintheme('foot.htm');?>
	</body>
</html>