<!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=utf-8" />
<title>导航栏目 {#$LA_poweredby#} -  Powered by GV32.COM</title>
<link rel="stylesheet" type="text/css" href="{#$base_weburl#}/templates/adminsys/css/list.css" />
<script language="javascript">
	function submitFun()
	{
		var idweb_name 		= document.getElementById('web_name');
		var idweb_url 			= document.getElementById('web_url');
		var idweb_place 		= document.getElementById('web_place');
		var idweb_targetval 			= document.getElementById('web_targetval');
		var idsuggestionInfo 	= document.getElementById('suggestionInfo');

		if(idweb_name.value=='')
		{
			idsuggestionInfo.innerHTML = ' 提 示：栏目名称不能为空！请输入！';
			idweb_name.focus();
			return false;
		}else if(idweb_url.value=='')
		{
			idsuggestionInfo.innerHTML = ' 提 示：栏目地址不能为空！请输入！';
			idweb_url.focus();
			return false;
		}else if(idweb_place.value=='')
		{
			idsuggestionInfo.innerHTML = ' 提 示：所在位置不能为空！请输入！';
			idweb_place.focus();
			return false;
		}else if(idweb_targetval.value=='')
		{
			idsuggestionInfo.innerHTML = ' 提 示：打开方式不能为空！请输入！';
			idweb_targetval.focus();
			return false;
		}

	}

	function addUrlval( obj )
	{
		var web_url	= document.getElementById('web_url');
		web_url.value = obj.value;
	}
</script>
</head>
<body>

<table  cellpadding="0" cellspacing="0" border="0" style="width:100%">

<tr><td><table cellpadding="0" cellspacing="0" border="0" style="width:100%; color:#000000; font-weight:normal; background-color:#3EC3EF;"  >
  <tr>
    <td>&nbsp;<a href="{#$base_weburl#}/adminsys/index.php?load=webmenu&act=infolist"><img src="{#$base_weburl#}/uploads/sys/h.gif"  width="15" border="0">导航栏目</a> |导航栏目修改</td>
    <td>&nbsp;</td>
    <td align="right"><a href="http://help.gv32.com/type_webmenu-edit.html" target="_blank"><img src="{#$base_weburl#}/images/sys/adminhelp.png"  width="21" border="0"></a>&nbsp;&nbsp;</td>
  </tr>
</table>
</td></tr>

<tr><td>

<form action="{#$base_weburl#}/adminsys/index.php?load=webmenu&act=editinfo" method="post"  name="formSub" target="_self"  onsubmit="return submitFun(this)">
<table cellpadding="0" cellspacing="1" border="0" style="width:100%" class="tableborder">
<tr>
<th colspan="2">导航栏目修改</th>
</tr>
<input name="web_id" id="web_id" value="{#$info.web_id#}" type="hidden"  style="width:250px;" >
<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>栏目名称：</strong></td>
<td class="tdd"><input name="web_name" id="web_name" value="{#$info.web_name#}" type="text"  style="width:250px;" ></td>
</tr>
<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>栏目地址：</strong></td>
<td class="tdd"><input name="web_url" id="web_url" value="{#$info.web_url#}" type="text"  style="width:250px;" >
<select name="urladd" id="urladd"  style="width:120px;" onchange="addUrlval(this)">
<option value="" >选择地址</option>
{#foreach item=uitem key=ukey from=$urlAddArray#}
<option value="{#$uitem.url#}" >{#$uitem.name#}</option>
{#/foreach#}
</select></td>
</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>所在位置：</strong></td>
<td class="tdd"><select name="web_place" id="web_place"  style="width:250px;">
<option value="">请选择</option>
{#foreach item=pitem key=pkey from=$_LANG.placeArray#}
	<option value="{#$pkey#}"  {#if $info.web_place eq $pkey#} selected="selected" {#/if#} >{#$pitem#}</option>
{#/foreach#}
</select>
</td>
</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>打开方式：</strong></td>
<td class="tdd"><select name="web_targetval" id="web_targetval"  style="width:250px;">
<option value="">请选择</option>
{#foreach item=titem key=tkey from=$_LANG.targetvalArray#}
	<option value="{#$tkey#}" {#if $info.web_targetval eq $tkey#} selected="selected" {#/if#}  >{#$titem#}</option>
{#/foreach#}
</select></td>
</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>是否显示：</strong></td>
<td class="tdd">{#foreach key=ek item=ei from=$_LANG.enabledArray#}
{#$ei#}<input type="radio"   name="web_enabled" id="web_enabled[{#$ek#}]"  value="{#$ek#}" {#if $info.web_enabled  eq $ek#} checked="checked" {#/if#}>
{#/foreach#}
</td>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>显示顺序：</strong></td>
<td class="tdd"><input name="web_list" id="web_list" value="{#$info.web_list#}" type="text" style="width:250px;"></td>
</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td colspan="2"  class="tdcenter"><div id="suggestionInfo">&nbsp;</div></td>
</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td colspan="2"  class="tdcenter"> <input name="submit" id="submit" type="submit" value="修 改" ></td>
</tr>
</table>
</form>


</td></tr>
<tr><td></td></tr>
</table>

</body>
</html>