<!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" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<meta name="generator" content="anxinMall v{anxinMall:global.cfg_version}" />
<meta name="author" content="www.xuzhou.it" />
<title>友情链接管理 - {anxinMall:global.cfg_sitename} - Powered by anxinMall</title>
<link rel="stylesheet" href="/skin/default/style/common.css" type="text/css" />
<link rel="stylesheet" href="/skin/default/style/member.css" type="text/css" />
<script type="text/javascript" src="/file/js/config.js"></script>
<script type="text/javascript" src="/file/js/jquery.js"></script>
<script type="text/javascript" src="/file/js/jquery.thickbox.js"></script>
<script type="text/javascript" src="/file/js/jquery.asyncbox.js"></script>
<script type="text/javascript" src="/skin/default/js/common.js"></script>
<script type="text/javascript"> 
$(document).ready(function() { 
	$("#selectAll").click(function() { 
		$(".id").each(function() { 
			if($(this).attr("checked"))
			{
				$(this).attr("checked", false); 
			}
			else
			{
				$(this).attr("checked", true); 
			}
		}); 
	}); 

	var ids=""; 

	$("#delete").click(function() {
		$("[.id][checked]").each(function(){ids+=$(this).val()+",";});
		if (ids==""){$.error('请选择要删除的分类');return false}	
			$.confirm("删除后，不可恢复，确定要删除吗？",'删除确认',function(action){
				if(action == 'ok'){
					window.location.href = "flink_action.asp?page=&action=delete&id="+ids;
				}
			});
	});
	
	$("#refresh").click(function() {
		$("[.id][checked]").each(function(){ids+=$(this).val()+",";});
		if (ids==""){$.error('请选择要刷新的分类');return false}			
			window.location.href = "flink_action.asp?page=&action=refresh&id="+ids
	});

}); 


function anxinMall_delete(t,l){
	if(t=="")t="删除后，不可恢复，确定要删除吗？";
	$.confirm(t,'删除确认',function(action){
		if(action == 'ok'){
			window.location.href = l;
		}
	});
}


</script>

</head>

<body>
<div id="anxinMall_layout">
<!--#include file="my_head.tpl"-->
<div id="anxinMall_body2">
<div class="memberbox">
	<table width="980" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td class="left">
			<!--#include file="my_menu.tpl"-->
		</td>
		<td class="center"></td>
        <td class="right">
			<div class="title">
			<h3 class="current">友情链接</h3>
			</div>
			<div class="info_list">
<table width="100%" border="0" cellspacing="1" cellpadding="0" style="margin-top:-20px;">
	<thead>
	<tr>
		<th align="center" colspan="4" height="36">友情链接管理</th>
	</tr>	
	<tr>
		<th align="center" width="230">链接名称</th>
		<th align="center" width="290">链接网址</th>
		<th align="center" width="50">排序</th>
		<th align="center" width="90">管理操作</th>
	</tr>
	</thead>
	<tbody>
	<form name="form1" action="flink_action.asp?action=addflink"  method="post" >
	<input name="shjname" type="hidden" value="{anxinMall:field.username}">
	<tr>
		<td><input name="flinkname" type="input" size="20" class="input" maxlength="30" style="width:230px" value="" /></td>
		<th><input name="flinkurl" type="input" size="20" class="input" maxlength="50" style="width:230px" value="" /></th>
		<td><input name="flinkorder" type="input" size="8" class="input" maxlength="8" style="width:30px" value="" /></td>
		<td class="control"><input type="submit" name="Submit1" class="button_1" value="添加分类"></td>
	</tr>
	</form>
	</tbody>
</table>
</br></br>
<table width="100%" align="center" border="0" cellspacing="1" cellpadding="0" style="margin-top:-20px;">
	<tr>
		<td align="center" width="100%" height="16" bgcolor="#f0f0f0"><b>已添加友情链接列表</b></td>
	</tr>
</table>
<table width="100%" border="0" cellspacing="1" cellpadding="0" style="margin-top:0px;">
	<tr>
		<th align="center" width="230">链接名称</th>
		<th align="center" width="230">链接网址</th>
		<th align="center" width="50">排序</th>
		<th align="center" width="210">管理操作</th>
	</tr>

	{anxinMall:page $size=20}
	<form name="form2" action="flink_action.asp?action=update&id=[page:flinkid]"  method="post" >
	<tr>
		<td><input name="flinkname2" type="input" size="20" class="input" maxlength="30" style="width:230px" value="[page:flinkname]" /></td>
		<th><input name="flinkurl2" type="input" size="20" class="input" maxlength="30" style="width:230px" value="[page:flinkurl]" /></th>
		<td><input name="flinkorder2" type="input" size="8" class="input" maxlength="8" style="width:30px" value="[page:flinkorder]" /></td>
		<td class="control">
		<input type="submit" name="Submit2" class="button_1" value="更 改">

		<a href="flink_action.asp?action=toup&id=[page:flinkid]&flinkorder=[page:flinkorder]">上移</a>|
		
		<a href="flink_action.asp?action=todown&id=[page:flinkid]&flinkorder=[page:flinkorder]">下移</a>|

		<a href="javascript:;" onclick="anxinMall_delete('','flink_action.asp?page={anxinMall:asp}response.write request.querystring("page"){/anxinMall:asp}&action=delete&id=[page:flinkid]')">删除</a>

		</td>
	</tr>
	</form>	
	{/anxinMall:page}

	</tbody>
</table>

<div class="clear"></div>
<div class="pagebreak" style="float:right">{tag:page}</div>
<div class="clear"></div>

			</div>
		</td>
      </tr>
    </table>
</div>
</div>
<!--#include file="my_foot.TPL"-->
</div>
</body>
</html>
