<?php /* Smarty version Smarty-3.0.6, created on 2013-10-17 02:53:23
         compiled from "C:/AppServ/www/www/templates/adminsys\webmenuadd_tpl.html" */ ?>
<?php /*%%SmartyHeaderCode:5406525f51231bb021-83572782%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '4db8d4cf3ab575afe185f3fbcef847b165e7010d' => 
    array (
      0 => 'C:/AppServ/www/www/templates/adminsys\\webmenuadd_tpl.html',
      1 => 1381978395,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '5406525f51231bb021-83572782',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<!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>添加导航栏目 <?php echo $_smarty_tpl->getVariable('LA_poweredby')->value;?>
 -  Powered by GV32.COM</title>
<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->getVariable('base_weburl')->value;?>
/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 onload="hiddenLoding()">
<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="<?php echo $_smarty_tpl->getVariable('base_weburl')->value;?>
/adminsys/index.php?load=webmenu&act=infolist"><img src="<?php echo $_smarty_tpl->getVariable('base_weburl')->value;?>
/uploads/sys/h.gif"  width="15" border="0">导航栏目</a> |添加导航栏目</td>
    <td>&nbsp;</td>
    <td align="right"><a href="http://help.gv32.com/type_webmenu-add.html" target="_blank"><img src="<?php echo $_smarty_tpl->getVariable('base_weburl')->value;?>
/images/sys/adminhelp.png"  width="21" border="0"></a>&nbsp;&nbsp;</td>
  </tr>
</table>
</td></tr>

<tr><td>

<div class="list">
<table cellpadding="0" cellspacing="1" border="0" style="width:100%" class="tableborder">
<form action="<?php echo $_smarty_tpl->getVariable('base_weburl')->value;?>
/adminsys/index.php?load=webmenu&act=addinfo" method="post"  enctype="multipart/form-data" name="formSub" target="_self"  onsubmit="return submitFun(this)" >
<tr>
<th colspan="2">添加导航栏目</th>
</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"  style="width:100px;"><strong>栏目名称：</strong></td>
<td class="tdd"  style="width:330px;"  ><input name="web_name" id="web_name" value="" 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"  style="width:350px;"><input name="web_url" id="web_url" value="" type="text"  style="width:250px;" >
<select name="urladd" id="urladd"  style="width:120px;" onchange="addUrlval(this)">
<option value="" >选择地址</option>
<?php  $_smarty_tpl->tpl_vars['uitem'] = new Smarty_Variable;
 $_smarty_tpl->tpl_vars['ukey'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('urlAddArray')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['uitem']->key => $_smarty_tpl->tpl_vars['uitem']->value){
 $_smarty_tpl->tpl_vars['ukey']->value = $_smarty_tpl->tpl_vars['uitem']->key;
?>
<option value="<?php echo $_smarty_tpl->tpl_vars['uitem']->value['url'];?>
" ><?php echo $_smarty_tpl->tpl_vars['uitem']->value['name'];?>
</option>
<?php }} ?>
</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>
<?php  $_smarty_tpl->tpl_vars['pitem'] = new Smarty_Variable;
 $_smarty_tpl->tpl_vars['pkey'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('_LANG')->value['placeArray']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['pitem']->key => $_smarty_tpl->tpl_vars['pitem']->value){
 $_smarty_tpl->tpl_vars['pkey']->value = $_smarty_tpl->tpl_vars['pitem']->key;
?>
	<option value="<?php echo $_smarty_tpl->tpl_vars['pkey']->value;?>
" ><?php echo $_smarty_tpl->tpl_vars['pitem']->value;?>
</option>
<?php }} ?>
</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>
<?php  $_smarty_tpl->tpl_vars['titem'] = new Smarty_Variable;
 $_smarty_tpl->tpl_vars['tkey'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('_LANG')->value['targetvalArray']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['titem']->key => $_smarty_tpl->tpl_vars['titem']->value){
 $_smarty_tpl->tpl_vars['tkey']->value = $_smarty_tpl->tpl_vars['titem']->key;
?>
	<option value="<?php echo $_smarty_tpl->tpl_vars['tkey']->value;?>
" ><?php echo $_smarty_tpl->tpl_vars['titem']->value;?>
</option>
<?php }} ?>
</select></td>
</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>是否显示：</strong></td>
<td class="tdd">
<?php  $_smarty_tpl->tpl_vars['ei'] = new Smarty_Variable;
 $_smarty_tpl->tpl_vars['ek'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('_LANG')->value['enabledArray']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['ei']->key => $_smarty_tpl->tpl_vars['ei']->value){
 $_smarty_tpl->tpl_vars['ek']->value = $_smarty_tpl->tpl_vars['ei']->key;
?>
<?php echo $_smarty_tpl->tpl_vars['ei']->value;?>
<input type="radio"   name="web_enabled" id="web_enabled[<?php echo $_smarty_tpl->tpl_vars['ek']->value;?>
]"  value="<?php echo $_smarty_tpl->tpl_vars['ek']->value;?>
" <?php if ($_smarty_tpl->tpl_vars['ek']->value==1){?> checked="checked" <?php }?>>
<?php }} ?>
</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_list" id="web_list" value="99" 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 type="submit" name="submit" id="submit" value="添加" /></td>
</tr></form>
</table>
</div>
</td></tr>
<tr><td></td></tr>
</table>


	
</body>
</html>