<!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" <?php if($user['keytype']=='1'){?>onLoad="toggle2('div1');"<?php }?>>
<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"> 应用信息<?php echo $_title['name']?></span>&nbsp;&nbsp;&nbsp;&nbsp;
	<span style="font-size:12px; float:right; margin-right:20px;">
	<a href="admin.php?ac=<?php echo $ac?>&fileurl=<?php echo $fileurl?>&type=<?php echo $_GET['type'];?>" style="font-size:12px;"><<返回列表页</a></span>
    </td>
  </tr>
</table>
<script Language="JavaScript"> 
function CheckForm()
{
   if(document.save.title.value=="")
   { alert("名称不能为空！");
     document.save.title.focus();
     return (false);
   }
   if(document.save.linkurl.value=="")
   { alert("模型不能为空！");
     document.save.linkurl.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?>&do=add">
	<input type="hidden" name="view" value="edit" />
	<input type="hidden" name="id" value="<?php echo $user['mid']?>" />
	<input type="hidden" name="type" value="<?php echo $_GET['type']?>" />
 <table class="TableBlock" border="0" width="90%" align="center">
  	<tr>
  		<td nowrap class="TableContent" width="100">名称：<? get_helps()?></td>
  	  <td class="TableData">
  	  	<input type="text" class="BigInput" name="title" value="<?php echo $user['title']?>" size=20>  	  </td>  	  	
  		<td nowrap class="TableContent" width="90">模型(URL)：<? get_helps()?></td>
  	  <td class="TableData"><input type="text" class="BigInput" name="linkurl" value="<?php echo $user['linkurl']?>" size=20></td>  	  	
  	</tr>
    <tr>
  		<td nowrap class="TableContent">ico：<? get_helps()?></td>
  	  <td colspan="3" class="TableData">
		ico/<?php echo $_GET['type']?>/<input type="text" class="BigInput" name="ico" value="<?php echo $user['ico']?>" size=15> 注:图片格式为PNG,请在这里填写图片的名称,然后将制作好的图片拷贝到相应的目录下.
  	  </td>
    </tr>
  	
     <tr>
  		<td nowrap class="TableContent">权限：</td>
  	  <td class="TableData" colspan="3">
	  <?php
	  get_pubuser(2,"modlist",$user['modlist'],"+选择人员",60,4);
	  ?>
<br>设置可使用此应用的人员,不设为所有人可使用</td>
  	</tr>
	
    <tr align="center" class="TableControl">
    	<td colspan="4" nowrap>
    	<input type="button" value="保存" class="BigButtonBHover" onClick="sendForm();">&nbsp;	    </td>
  </tr>
 </table>
  
</form>

 
</body>
</html>
