<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html>
<head>
<title>信息添加编辑</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="template/default/content/css/style.css">
</head>
<body class="bodycolor">
<div id="navPanel">
<div id="navMenu">
<a href="admin.php?ac=mobile&fileurl=<?php echo $fileurl;?>&type=menu" <?php if($type=='menu'){?>class="active"<?php }?>><span><img src="template/default/images/admin_img/plugin_debug.png" width="16" height="16" align="absmiddle">内置手机应用</span></a><a href="admin.php?ac=mobile&fileurl=<?php echo $fileurl;?>&type=model" <?php if($type=='model'){?>class="active"<?php }?>><span>
<img src="template/default/images/admin_img/plugin_debug.png" width="16" height="16" align="absmiddle">应用集成管理</span></a>
</div>
</div>
<table width="90%" border="0" align="center" cellpadding="3" cellspacing="0" class="small">
  <tr>
    <td class="Big"><img src="template/default/content/images/notify_new.gif" align="absmiddle"><span class="big3"> 手机应用管理</span>
	<span style="font-size:12px; float:right; margin-right:20px;">
    <input type="button" value="新增应用" class="BigButtonBHover" onClick="javascript:window.location='admin.php?ac=<?php echo $ac?>&fileurl=<?php echo $fileurl?>&type=<?php echo $type?>&do=add'"></span></td>
  </tr>
</table>
<script Language="JavaScript"> 
function CheckForm()
{
   if(document.save.title.value=="")
   { alert("名称不能为空！");
     document.save.title.focus();
     return (false);
   }
   
   return true;
}
function sendForm()
{
   if(CheckForm())
      document.save.submit();
}
</script>

<form name="save" method="post" action="?ac=<?php echo $ac?>&fileurl=<?php echo $fileurl?>&type=<?php echo $type?>">
	<input type="hidden" name="view" value="save" />
	 <table class="TableBlock" border="0" width="90%" align="center">
		<tr>
		<td width="60" align="center" nowrap class="TableHeader">排序</td>
		  <td nowrap class="TableHeader">名称</td>
		  <td width="60" align="center" class="TableHeader">状态</td>
		  <td width="300" align="center" class="TableHeader">权限</td>
			<td width="200" align="center" nowrap class="TableHeader">模型(URL)</td>
			  <td width="140" align="center" class="TableHeader">ico</td> 
			  <td width="90" align="center" class="TableHeader">操作</td>  	  	
		</tr>
<?php
foreach ($result as $row) {
?>
	<input type="hidden" name="id[]" value="<?php echo $row['mid']?>" />	
		<tr>
		<td align="center" class="TableContent"><input name="number[<?php echo $row['mid']?>]" type="text" class="BigInput" value="<?php echo $row['number']?>" style="width:40px;" /></td>
		  <td nowrap class="TableData"><?php echo $row['title']?></td>
		  <td align="center" nowrap class="TableData">
		  <?php
		  if($row['type1']=='1'){
			  echo '<font color=red>开启</font>';
		  }else{
			  echo '关闭';
		  }
		  ?>		  </td>
		  <td nowrap class="TableData"><?php echo cut_str($row['modlist'],50)?></td>
			<td align="center" nowrap class="TableData"><?php echo $row['linkurl']?></td>
			<td align="center" nowrap class="TableData">ico/<?php echo $row['type']?>/<?php echo $row['ico']?></td>
		  <td align="center" class="TableData">
		  <a href="admin.php?ac=<?php echo $ac?>&fileurl=<?php echo $fileurl?>&id=<?php echo $row['mid']?>&type=<?php echo $type?>&do=add">编辑</a>
		  <?php
		  if($row['type1']=='1'){
		  ?>
<a href="admin.php?ac=<?php echo $ac?>&fileurl=<?php echo $fileurl?>&tid=<?php echo $row['mid']?>&type=<?php echo $type?>&type1=0" title="开启指手机终端显示，关闭后手机终端将不会显示">关闭</a>
		  <?php }else{?>
		  <a href="admin.php?ac=<?php echo $ac?>&fileurl=<?php echo $fileurl?>&tid=<?php echo $row['mid']?>&type=<?php echo $type?>&type1=1" title="开启指手机终端显示，关闭后手机终端将不会显示" style="color:red;">开启</a>
		  <?php }?>	
		  <?php
		  if(COOKSHOW!=1){
		  ?> 
<a href="admin.php?ac=<?php echo $ac?>&fileurl=<?php echo $fileurl?>&id=<?php echo $row['mid']?>&type=<?php echo $type?>" title="您确定要删除吗？删除后手机终端将不会出现这个功能">删除</a>
		  <?php }?>
	      </td>	  	
		</tr>
<?php
}?>

		<tr align="center" class="TableControl">
			<td colspan="7" align="left" nowrap>
		      <input type="button" value="更新排序" class="BigButtonBHover" onClick="sendForm();">&nbsp;	    </td>
	  </tr>
	 </table>
  
</form>

 
</body>

</html>






















