<?php /* Smarty version Smarty-3.0.6, created on 2020-03-31 10:06:42
         compiled from "I:/AppServ/www/demo.hucart.com/hucart_cn/templates/adminsys\brand_edit.tpl" */ ?>
<?php /*%%SmartyHeaderCode:14236046515e82a5b2a49995-07701743%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'e6abf7afed0a1445766e03851eceb802002ffbb8' => 
    array (
      0 => 'I:/AppServ/www/demo.hucart.com/hucart_cn/templates/adminsys\\brand_edit.tpl',
      1 => 1485316108,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '14236046515e82a5b2a49995-07701743',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<title><?php echo $_smarty_tpl->getVariable('txt_title')->value;?>
 - Powered by HuCart.COM</title>
<link href="./css/bootstrap.min.css" rel="stylesheet">
<link href="./css/info.css" rel="stylesheet">
<script language="javascript" src="<?php echo $_smarty_tpl->getVariable('base_weburl')->value;?>
/js/jq/jquery.js"></script>
<script language="javascript" src="<?php echo $_smarty_tpl->getVariable('base_weburl')->value;?>
/js/admin_common.js"></script>
<!--[if lt IE 9]>
  <script src="//cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
  <script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<script language="javascript">
	var webroot_url = '<?php echo $_smarty_tpl->getVariable('base_weburl')->value;?>
';
	function submitFun()
	{
		var id_bra_name 		= document.getElementById('bra_name');
		//var idwebkeyword 		= document.getElementById('webkeyword');
		//var idsuggestionInfo 	= document.getElementById('suggestionInfo');

		if(id_bra_name.value=='')
		{
			alert('<?php echo $_smarty_tpl->getVariable('lang')->value['name_err'];?>
');
			id_bra_name.focus();
			return false;
		}

	}
</script>
</head>
<body>
    <div class="info-tit"><span class="glyphicon glyphicon-paperclip"> </span> <?php echo $_smarty_tpl->getVariable('lang')->value['title'];?>
 > <?php echo $_smarty_tpl->getVariable('txt_title')->value;?>
 (<?php echo $_smarty_tpl->getVariable('lang')->value['need_edit'];?>
&nbsp;&nbsp; <?php echo $_smarty_tpl->getVariable('lang')->value['need_add'];?>
 <?php echo $_smarty_tpl->getVariable('lang')->value['need_del'];?>
)<a href="http://help.hucart.com/item-brand_edit.html" target="_blank" title="<?php echo $_smarty_tpl->getVariable('lang')->value['help_url'];?>
"><span class="glyphicon glyphicon-question-sign" style="float: right;"></span></a></div>
    <!-- custom con start -->
    <div class="info-add">
      <form class="form-horizontal" name="add-form" id="add-form" method="post" action="<?php echo $_smarty_tpl->getVariable('act_url')->value;?>
">
        <div class="form-group form-group-sm">
          <label class="col-sm-2 control-label" for="i-tit"><font color="red">*</font> <?php echo $_smarty_tpl->getVariable('lang')->value['field_list']['bra_name'];?>
</label>
          <div class="col-sm-10">
            <input class="form-control" name="bra_name" id="bra_name" value="<?php echo $_smarty_tpl->getVariable('info')->value['bra_name'];?>
" type="text"  style="width:450px;"   >
          </div>
        </div>
  
        
        <div class="form-group form-group-sm">
          <label class="col-sm-2 control-label" for="i-tit"> <?php echo $_smarty_tpl->getVariable('lang')->value['field_list']['bra_logo'];?>
</label>
          <div class="col-sm-3" >
         <input class="form-control" name="bra_logo" id="bra_logo" value="<?php echo $_smarty_tpl->getVariable('info')->value['bra_logo'];?>
" type="text"  style="width:300px;"   >
          </div><div class="col-sm-3" style="margin-left:12px;"><button type="button" class="btn btn-default"  onclick="select_img('brand','bra_logo')" ><?php echo $_smarty_tpl->getVariable('lang')->value['add_img'];?>
</button></div>
        </div>      
        
 


        <div class="form-group form-group-sm">
          <label class="col-sm-2 control-label" for="i-tit"> <?php echo $_smarty_tpl->getVariable('lang')->value['field_list']['bra_url'];?>
</label>
          <div class="col-sm-3">
         <input class="form-control" name="bra_url" id="bra_url" value="<?php echo $_smarty_tpl->getVariable('info')->value['bra_url'];?>
" type="text"  style="width:300px;"   >
          </div>
        </div> 
 

        <div class="form-group form-group-sm">
          <label class="col-sm-2 control-label" for="i-tit"> <?php echo $_smarty_tpl->getVariable('lang')->value['field_list']['bra_desc'];?>
</label>
           <div class="col-sm-6">
            <textarea class="form-control" name="bra_desc" id="bra_desc" style="width:250px;"><?php echo $_smarty_tpl->getVariable('info')->value['bra_desc'];?>
</textarea></div>
        </div> 


        <div class="form-group form-group-sm">
          <label class="col-sm-2 control-label" for="i-tit"> <?php echo $_smarty_tpl->getVariable('lang')->value['field_list']['bra_enabled'];?>
</label>
           <div class="col-sm-6">
            <?php  $_smarty_tpl->tpl_vars['ei'] = new Smarty_Variable;
 $_smarty_tpl->tpl_vars['ek'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('lang')->value['enabled_arr']; 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="bra_enabled" id="bra_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==$_smarty_tpl->getVariable('info')->value['bra_enabled']){?> checked="checked" <?php }?>>
<?php }} ?>
			</div>
        </div> 
        
        <div class="form-group">
          <div class="col-sm-offset-2 col-sm-10">
            <button type="submit" class="btn btn-primary  btn-sm" onclick="return submitFun(this)" ><?php echo $_smarty_tpl->getVariable('edit_submit')->value;?>
</button>&nbsp;&nbsp;&nbsp;&nbsp;
            <button type="reset" class="btn btn-default btn-sm"><?php echo $_smarty_tpl->getVariable('lang')->value['reset'];?>
</button>&nbsp;&nbsp;&nbsp;&nbsp;<a href="./index.php?load=brand&act=info_list"><?php echo $_smarty_tpl->getVariable('lang')->value['back_list'];?>
</a>
          </div>
        </div>
        <input type="hidden" name="act_type" value="<?php echo $_smarty_tpl->getVariable('act_type')->value;?>
">
        <input type="hidden" name="bra_id" id="bra_id"  value="<?php echo $_smarty_tpl->getVariable('info')->value['bra_id'];?>
">
      </form>
    </div>
    <!-- custom con end -->

    <footer class="footer">
      <div class="container">
        <p class="text-muted">Powered by <a href="http://Www.HuCart.COM" target="_blank">HuCart.COM</a></p>
      </div>
    </footer>
<script src="/js/jquery.min.js"></script>
<script src="/js/base.js"></script>
</body>
</html>