<?php
/**
 * 拒绝直接访问模板
 */ 
if(ZIBANMA_SYS_LINK != 'zibanma_com'){
	die('access deny');
}
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>友情链接</title>
<meta name="keywords" content="友情链接" />
<meta name="description" content="友情链接" />
<link href="/style/global.css" rel="stylesheet" type="text/css" />
<link href="/style/link.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div id="zibanma">
    
    <?php include ZIBANMA_SYS_APP_ROOT.'/template/inc/header.php';?>
    
    <div id="link">
		<div class="body">
			<div class="li">
				<ul>
				<li style="width:100%;">图片链接：</li>
				<?php 
				if(isset($link_pic_list) && count(link_pic_list)):
					foreach ($link_pic_list as $v):
				?>
				<li><a href="<?php echo $v->url;?>" target="_blank" title="<?php echo $v->title;?>"><img src="<?php echo $v->logo;?>" title="<?php echo $v->title;?>" /></a></li>
				<?php 
					endforeach;
				else:
					echo '暂无数据';
				endif;
				?>
				</ul>
			</div>
			<div class="li">
				<ul>
				<li style="width:100%;">文字链接：</li>
				<?php 
				if(isset($link_pic_text) && count($link_pic_text)):
					foreach ($link_pic_text as $v):
				?>
				<li><a href="<?php echo $v->url;?>" target="_blank" title="<?php echo $v->title;?>"><?php echo $v->title;?></a></li>
				<?php 
					endforeach;
				else:
				?>
				<li>暂无数据</li>
				<?php endif;?>
				</ul>
			</div>
			<div class="form">
				<form action="<?php echo $common->get_rewriter_url_arr(array('link','add'));?>" method="post">
				<table style="margin-left:50px;">
					<tr>
						<td colspan="2">申请友情链接：</td>
					</tr>
					<tr>
						<td style="text-align:right;">网站名称：</td>
						<td><input type="text" name="title" class="input" /></td>
					</tr>
					<tr>
						<td style="text-align:right;">网站地址：</td>
						<td><input type="text" name="url" class="input" /></td>
					</tr>
					<tr>
						<td style="text-align:right;">网站LOGO：</td>
						<td><input type="text" name="logo" class="input" /></td>
					</tr>
					<tr>
						<td style="text-align:right;">站长姓名：</td>
						<td><input type="text" name="name" class="input" /></td>
					</tr>
					<tr>
						<td style="text-align:right;">QQ：</td>
						<td><input type="text" name="qq" class="input" /></td>
					</tr>
					<tr>
						<td style="text-align:right;">联系电话：</td>
						<td><input type="text" name="tel" class="input" /></td>
					</tr>
					<tr>
						<td style="text-align:right;">&nbsp;</td>
						<td><input type="submit" value="提交申请" style="width:100px; height:30px;" /></td>
					</tr>
				</table>
				</form>
			</div>
		</div>	
    </div>
    <div class="clear"></div>
    
    <?php include ZIBANMA_SYS_APP_ROOT.'/template/inc/footer.php';?>
    
</div>
</body>
</html>
