<!--
<?php
print <<<EOT
-->
<link type="text/css" rel="stylesheet" href="$webdb[www_url]/images/default/friend_link.css"/>
<div class="linkCont">
	<div class="linkTag">友情链接</div>
<!--
EOT;
if($job=='apply'){
print <<<EOT
-->
	<div class="linkTitle"><a href="?job=apply">申请友情链接</a></div>
	<form name="form1" method="post" action="?f" enctype="multipart/form-data">
	<div class="thisCont">
		<ul>
			<li><em>网站名称:</em><span><input type="text" name="postdb[name]" size="50" value="$rsdb[name]"></span></li>
			<li><em>所属类别:</em><span>{$select_fid}</span></li>
			<li><em>网站地址:</em><span><input type="text" name="postdb[url]" value="$rsdb[url]" size="50"></span></li>
			<li><em>网站介绍:</em><span><input type="text" name="postdb[descrip]" value="$rsdb[descrip]" size="50" maxlength="100"></span></li>
			<li>
				<em>网站LOGO:</em>
				<span>
					<input type="text" name="postdb[logo]" size="50" id="out_url1" value="$rsdb[logo]" placeholder="请输入图片地址" style="display:none;">
					<input type="file" name="local_file1" id="in_url1" style="width:311px;">
				</span>
				<div class="pic_r">
					<div><input type="radio" name="ftype[1]" value="out" onclick="choosef(1,'out')"><i>网络文件</i></div>
					<div><input type="radio" name="ftype[1]" value="in" checked onclick="choosef(1,'in')"><i>本地文件</i></div>
				</div>
			</li>
			<li>
				<em>验 证 码:</em>
				<span style="margin-right:10px;"><input type="text" name="yzimg" size="10"></span>
<SCRIPT LANGUAGE="JavaScript">
<!--
document.write('<img border="0" name="imageField" src="$webdb[www_url]/do/yzimg.php?'+Math.random()+'">');
//-->
</SCRIPT>
			</li>

<SCRIPT LANGUAGE="JavaScript">
<!--
function choosef(i,t){
	if(t=='out'){
		document.getElementById("out_url"+i).style.display='';
		document.getElementById("in_url"+i).style.display='none';
	}else{
		document.getElementById("out_url"+i).style.display='none';
		document.getElementById("in_url"+i).style.display='';
	}
}
-->
</SCRIPT>
		</ul>
		<div class="thisButton">
			<div><input type="submit" name="Submit3" value="提 交"></div>
		</div><input type="hidden" name="action" value="reg">
	</div>
	</form>
<!--
EOT;
}else{
print <<<EOT
-->
<div class="linkTs"><a href="?job=apply">申请友情链接</a></a></div>
<div class="linkC">
<!--
EOT;
foreach($listdb AS $key1=>$array){
	foreach($array AS $key=>$rs){
print <<<EOT
-->
  <a href="$rs[url]" title="$rs[descrip]" target="_blank" style="display:$rs[display]"><span><img onerror="this.style.display='none'" src="$rs[logo]"/></span><em>$rs[name]</em></a>
<!--
EOT;
}}
print <<<EOT
-->
</div>
<div class="pageshow">{$showpage}</div>
<!--
EOT;
}
print <<<EOT
-->	
</div>
<!--
EOT;
?>
-->