<?php die;?><html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="zh-cn" />
<title><!--{$smarty.const.MICE_TITLE}--></title>
<base href="<!--{$smarty.const.MICE_URL}--><!--{$smarty.const.MICE_TPL}-->/admin/" />
<link href="css/Default.css" rel="stylesheet" type="text/css" />
<link href="css/fieldset.css" rel="stylesheet" type="text/css">
<style> 
.pic{ border:1px solid #CCCCCC; margin:3px; padding:2px; position:relative; float:left; display:block; background:#FFFFFF ;cursor:pointer}
.s1{ border:1px solid #CCCCCC; margin:3px; padding:2px; position:relative; float:left; display:block; background:#FFFFFF ;cursor:pointer}
.s2{ border:1px solid #FF9900; margin:3px; padding:2px; position:relative; float:left; display:block; background:#FFCC66 ;cursor:pointer}
</style>
<script language="JavaScript">
var baseurl = '<!--{$smarty.const.MICE_URL}--><!--{$smarty.const.MICE_TPL}-->/admin/';
</script>
<script type="text/javascript" src="js/Main.js"></script>
<script language="JavaScript">
function CheckForm()
{
 if (document.form1.title.value.length == 0)
 {
  Dialog.alert( "菜单名称不能为空！" ) ;
  document.form1.title.focus();
  return false;
 } 
 document.form1.submit();
 return true;
}

function ResetForm(){
	document.form1.reset();
}

function setSrc(ele){
	document.form1.img.value=ele.url;
	document.form1.nowimg.src=ele.src;
	ele.className = "s2";
}

</script>
</head>

<body>
<table width="100%" border="0" cellspacing="6" cellpadding="0" style="border-collapse: separate; border-spacing: 6px;">
	  <form action="<!--{$formaction}-->" method="post" name="form1" id="form1" onsubmit="return CheckForm()">
      <tr valign="top">
        <td>
		<table width="100%" border="0" cellspacing="0" cellpadding="0" class="blockTable">
			
			<tr>
			  <td width="100%" style="padding:6px 10px;" class="blockTd">
			  <div style="float: left;"><img src="imgs/Icons/icon030a1.gif" />Flash图片编辑</div>
			  <div style="float: right; white-space: nowrap;vertical-align:middle;"><a href='javascript:CheckForm();' micetype='micePushBtn' class='micePushBtn' hidefocus='true' tabindex='-1' onselectstart='return false'><img src="imgs/Icons/icon001a16.gif" /><b>保存&nbsp;</b></a><a href='javascript:ResetForm();' micetype='micePushBtn' class='micePushBtn' hidefocus='true' tabindex='-1' onselectstart='return false'><img src="imgs/Icons/icon001a13.gif" /><b>重置&nbsp;</b></a><a href='javascript:history.back(-1);' micetype='micePushBtn' class='micePushBtn' hidefocus='true' tabindex='-1' onselectstart='return false'><img src="imgs/Icons/icon008a20.gif" /><b>返回&nbsp;</b></a></div>
			 </td>
            </tr>
            <tr>
              <td style="padding-top:0px;padding-left:6px;padding-right:6px;padding-bottom:8px;">

<!--内容开始-->

<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0" >
	<tr>
		<td width="100%" valign="top">
			<fieldset class="adminform">
				<legend>菜单属性</legend>
				<table border="0" cellpadding="0" cellspacing="0" width="100%">
					<tr>
						<td width="65" class="keyred" height='20'>名　称:</td>
						<td colspan="2">
							<input name='menu_id' id='menu_id' type='hidden' value='<!--{$results->getMenuId()}-->'>
							&nbsp;<input name='title' id='title' type='text' size='50' value='<!--{$results->getTitle()}-->'>
						</td>
					</tr>
					<tr>
						<td width="65" class="key" height='20'>上级菜单:</td>
						<td colspan="2">
							&nbsp;<select name='parentid' id='parentid'>
							<option value='0'>请选择</option>
							<!--{section name=cn loop=$categoryname}-->
								<option value='<!--{$categoryname[cn].id}-->' <!--{if $categoryname[cn].id==$results->getParentid()}-->selected<!--{/if}-->><!--{$categoryname[cn].title}--></option>
							<!--{/section}-->
						  </select>
						</td>
					</tr>
					<tr>
						<td width="65" class="key" height='20'>是否显示:</td>
						<td colspan="2">
							&nbsp;<input name='isvisible' id='isvisible' type="radio" value="0" <!--{if $results->getIsvisible()==0}-->checked<!--{/if}-->/>ible' type="radio" value="0" <!--{if $results->getIsvisible()==0}-->checked<!--{/if}-->/>是
							&nbsp;<input name='isvisible' id='isvisible' type="radio" value="1" <!--{if $results->getIsvisible()==1}-->checked<!--{/if}-->/>否
						</td>
					</tr>
					<tr>
						<td width="65" class="key" height='20'>排　序:</td>
						<td colspan="2">
							&nbsp;<input name='orderid' id='orderid' type='text' size='12' value='<!--{$results->getOrderid()}-->'>&nbsp;(升序[从小到大]排列)
						</td>
					</tr>
					<tr>
						<td width="65" class="key" height='20'>模块名称:</td>
						<td colspan="2">
							&nbsp;<input name='tags' id='tags' type='text' size='50' value='<!--{$results->getTags()}-->'>&nbsp;(二级菜单请填写模块名称,用于权限管理)
						</td>
					</tr>
					<tr>
						<td width="65" class="key" height='20'>链接地址:</td>
						<td colspan="2">
							&nbsp;<input name='url' id='url' type='text' size='50' value='<!--{$results->getUrl()}-->'>&nbsp;(站内地址只需填写admin.php/***这样的地址)
						</td>
					</tr>
					<tr>
						<td width="65" class="keyred" height='20'>图标地址:</td>
						<td colspan="2">
							&nbsp;<input name='img' id='img' type='text' size='50' value='<!--{$results->getImg()}-->'>&nbsp;<img src="<!--{if $results->getImg()!=''}--><!--{$results->getImg()}--><!--{else}-->imgs/blank.gif<!--{/if}-->" width="20" height="20" name="nowimg" id="nowimg"/>&nbsp;(二级菜单请选择图标,一级菜单不用选择)
						</td>
					</tr>
					<tr>
						<td width="65" class="key">图标列表:</td>
						<td colspan="2">

<table width="500" height="100%" border="0" cellpadding="0"
	cellspacing="0">
	<tr>
		<td bgcolor="#FFFFFF">
		<div id="dIcons1" style="display:none"></div>
		<div id="dIcons2">
		<table width="100%" border="0" cellspacing="0" cellpadding="0" bordercolor="#999999" style="margin-top:10px;">
			<tr>
			<td>
			<!--{foreach from=$mfiles item=file name=counter}-->
				<img onClick="setSrc(this)" src="<!--{$file.filename}-->" url="<!--{$file.filename}-->" width="20" height="20" alt="<!--{$smarty.foreach.counter.iteration}-->" class="pic"/>
				<!--{if $smarty.foreach.counter.iteration%10==0}-->
					</td></tr>
				<!--{/if}-->
			<!--{/foreach}-->
		</table>
		</div>
		</td>
	</tr>
</table>
							
						</td>
					</tr>
					<tr>
						<td width="65" class="key" height='20'>说　明:</td>
						<td colspan="2">
							<!--{$editor}-->
						</td>
					</tr>
				</table>
			</fieldset>
		</td>
	</tr>
</table>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
	<tr > 
		<td height="30" valign='middle'>
			<div id='_PageBar_buttom' class="pageBarWrap" style="padding-top:6px;clear:both;bottom:0px; height:30px; line-height:30px;"><div class="pageBar" style='float:right;font-family:Tahoma'></div><div style='float:left;font-family:Tahoma'><a href='javascript:CheckForm();' micetype='micePushBtn' class='micePushBtn' hidefocus='true' tabindex='-1' onselectstart='return false'><img src="imgs/Icons/icon001a16.gif" /><b>保存&nbsp;</b></a><a href='javascript:ResetForm();' micetype='micePushBtn' class='micePushBtn' hidefocus='true' tabindex='-1' onselectstart='return false'><img src="imgs/Icons/icon001a13.gif" /><b>重置&nbsp;</b></a><a href='javascript:history.back(-1);' micetype='micePushBtn' class='micePushBtn' hidefocus='true' tabindex='-1' onselectstart='return false'><img src="imgs/Icons/icon008a20.gif" /><b>返回&nbsp;</b></a>&nbsp;&nbsp;<label><input type="checkbox" name="goon" id="goon" value="1">保存后继续添加</label></div></div>
		</td>
	</tr>
</table>

<!--内容结束-->
		</td>
		</tr>
	</table></td>
  </tr>
  </form>
</table>
</body>
</html>