<html><hand>
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=<?php echo CHARSET;?>">
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7">
<meta HTTP-EQUIV="Content-Language" CONTENT="<?php echo CHARSET;?>">
<script language='JavaScript' src='admin/img/admin.js'></script>
<link href="admin/img/style.css" rel="stylesheet" type="text/css">
<?php 
if(!defined('IN_ADMIN')) exit('Access Denied');
switch ($action){
	case 'list':
	?>
<table width='100%' cellpadding=3 cellspacing=1 class=td1>
<tr class=td4><td colspan=5><strong>导航菜单</strong></td></tr>
<tr align='center' class=td3>
<td width='10%'>排序</td>
<td width='30%'>连接名称</td>
<td width='30%'>连接地址</td>
<td width='10%'>打开方式</td>
<td width='20%'>操作</td></tr>
<?php 
if(is_array($n) && !empty($n)){
	foreach($n as $ad){ 
	?>
<form id="form2" name="form2" method="post" action="?file=menu&action=edit" onsubmit="return confirm('您确定修改吗？');">
  <tr align=center class="tb2" onMouseMove="this.className='td3'" onMouseOut="this.className='td2'"><input name="id" type="hidden" value="<?=$ad['id']?>" size="3">
    <td><input name=info[listid] type="text" value="<?=$ad['id']?>" size="3"> </td>
    <td><input name=info[title] type="text" value="<?=$ad['title']?>" size="8"> </td>
    <td><input name=info[url] type="text" value="<?=$ad['url']?>" > </td>
    <td><select name=info[target] id="select"><option value="_self" <?php if($ad['target']=='_self'){?>selected="selected"<?php }?>>原窗口</option><option value="_blank" <?php if($ad['target']=='_blank'){?>selected="selected"<?php }?>>新窗口</option></select></td>
    <td><input type="submit" name="dosubmit" id="button" value="修改">&nbsp;&nbsp;<input type="button" name="Submit" value="删除" onClick="javascript:if(confirm('确定删除？删除后不可恢复!')){window.location.href='?file=menu&action=del&id=<?=$ad['id']?>';}else{history.go(0);}" /></td>
  </tr>
  </form>
<?php }}?>
<form id="form2" name="form2" method="post" action="?file=menu&action=add">
<tr align=center class=tb2 onMouseMove="this.className='td3'" onMouseOut="this.className='td2'">
    <td><input name=info[listid] type="text" value="" size="3"> </td>
    <td><input name=info[title] type="text" value="" size="8"> </td>
    <td><input name=info[url] type="text" value="" > </td>
    <td><select name=info[target] id="select"><option value="_self" >原窗口</option><option value="_blank" >新窗口</option></select></td>
    <td><input type="submit" name="dosubmit" id="button" value="增加"></td>
  </tr>
</form>
</table>
<table width='100%' border=0 cellspacing=0 cellpadding=5 style='border-top:1px #C4D8ED solid'>
<tr><td align=center class=td2><?=$dispage;?>
</td>
</tr>
</table>
	<?php 
	break;
}
?>