<?php /* Smarty version Smarty-3.0.6, created on 2020-03-10 13:46:29
         compiled from "D:/AppServ/www/demo.hucart.com/hucart_cn/templates/adminsys\user_reg_config.tpl" */ ?>
<?php /*%%SmartyHeaderCode:167305e6729b5849f21-18725146%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'e4e7f05bbc333af50a820898102d6c304b65335a' => 
    array (
      0 => 'D:/AppServ/www/demo.hucart.com/hucart_cn/templates/adminsys\\user_reg_config.tpl',
      1 => 1485326612,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '167305e6729b5849f21-18725146',
  '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/pinyin.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 idweb_name 			= document.getElementById('web_name');
			var idweb_title 		= document.getElementById('web_title');
			var idweb_description 	= document.getElementById('web_description');
			var idweb_keyword 		= document.getElementById('web_keyword');
	
			if(idweb_name.value=='')
			{
				alert('<?php echo $_smarty_tpl->getVariable('lang')->value['web_name_err'];?>
');
				idweb_name.focus();
				return false;
			}else if(idweb_title.value=='')
			{
				alert('<?php echo $_smarty_tpl->getVariable('lang')->value['web_title_err'];?>
');
				idweb_title.focus();
				return false;
			}else if(idweb_description.value=='')
			{
				alert('<?php echo $_smarty_tpl->getVariable('lang')->value['web_description_err'];?>
');
				idweb_description.focus();
				return false;
			}else if(idweb_keyword.value=='')
			{
				alert('<?php echo $_smarty_tpl->getVariable('lang')->value['web_keyword_err'];?>
');
				idweb_keyword.focus();
				return false;
			}
			
			document.formSub.target="_self"
			document.formSub.submit();
	}
	
	function close_item( str, obj )
	{
		
		
		 
		 if(obj.checked == true){
			 document.getElementById(str+'[1]').disabled = false;
			 document.getElementById(str+'[2]').disabled = false;
		 }else{
			document.getElementById(str+'[1]').disabled = true;
			document.getElementById(str+'[2]').disabled = true;
		 }
		// alert(document.getElementById(str+'[1]').disabled);
 
	}
	
</script>
</head>
<body>
    <div class="info-tit"><span class="glyphicon glyphicon-paperclip"> </span> <a href="index.php?load=<?php echo $_smarty_tpl->getVariable('master_act')->value;?>
&act=info_list" ><?php echo $_smarty_tpl->getVariable('lang')->value['title'];?>
</a> > <?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-show-user_config.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 style="width:560px; margin:0 auto;">
        <table class="table table-bordered table-hover" >
        <thead><tr>
        <th colspan="4" class="text-center"><?php echo $_smarty_tpl->getVariable('txt_title')->value;?>
</th>
        </tr>
        </thead>
        <tr>
        <th class="text-center"><strong><?php echo $_smarty_tpl->getVariable('lang')->value['reg_item_name'];?>
</strong></th>
        <th class="text-center"><?php echo $_smarty_tpl->getVariable('lang')->value['reg_item_show'];?>
</th>
        <th class="text-center"><?php echo $_smarty_tpl->getVariable('lang')->value['reg_item_need'];?>
</th>
        <th class="text-center"><?php echo $_smarty_tpl->getVariable('lang')->value['reg_item_list'];?>
</th>
        </tr>
       

    <tr>
    <td style="text-align:right;font-weight:bold;"><?php echo $_smarty_tpl->getVariable('lang')->value['reg_msn'];?>
</td>
    <td><input name="reg_msn[0]" id="reg_msn[0]" value="1" type="checkbox" <?php if ($_smarty_tpl->getVariable('re_arr')->value['reg_msn'][0]==1){?> checked="checked" <?php }?> onClick="close_item( 'reg_msn',this )" ></td>
    <td><input name="reg_msn[1]" id="reg_msn[1]" value="1" type="checkbox"  <?php if ($_smarty_tpl->getVariable('re_arr')->value['reg_msn'][1]==1){?> checked="checked" <?php }?>  <?php if ($_smarty_tpl->getVariable('re_arr')->value['reg_msn'][0]==0){?> disabled <?php }?>></td>
    <td><input name="reg_msn[2]" id="reg_msn[2]" value="<?php echo $_smarty_tpl->getVariable('re_arr')->value['reg_msn'][2];?>
" type="text"  style="width:50px;"  <?php if ($_smarty_tpl->getVariable('re_arr')->value['reg_msn'][0]==0){?> disabled <?php }?>></td>
    </tr>
 

 

<tr >

<td style="text-align:right;font-weight:bold;"><strong><?php echo $_smarty_tpl->getVariable('lang')->value['reg_qq'];?>
</strong></td>
<td><input name="reg_qq[0]" id="reg_qq[0]" value="1" type="checkbox" <?php if ($_smarty_tpl->getVariable('re_arr')->value['reg_qq'][0]==1){?> checked="checked" <?php }?>  onClick="close_item( 'reg_qq',this )"  ></td>
<td><input name="reg_qq[1]" id="reg_qq[1]" value="1" type="checkbox" <?php if ($_smarty_tpl->getVariable('re_arr')->value['reg_qq'][1]==1){?> checked="checked" <?php }?> <?php if ($_smarty_tpl->getVariable('re_arr')->value['reg_qq'][0]==0){?> disabled <?php }?> ></td>
<td><input name="reg_qq[2]" id="reg_qq[2]" value="<?php echo $_smarty_tpl->getVariable('re_arr')->value['reg_qq'][2];?>
" type="text"  style="width:50px;" <?php if ($_smarty_tpl->getVariable('re_arr')->value['reg_qq'][0]==0){?> disabled <?php }?>></td>

</tr>


<tr >

<td style="text-align:right;font-weight:bold;"><strong><?php echo $_smarty_tpl->getVariable('lang')->value['reg_phote'];?>
</strong></td>
<td><input name="reg_phote[0]" id="reg_phote[0]" value="1" type="checkbox"  <?php if ($_smarty_tpl->getVariable('re_arr')->value['reg_phote'][0]==1){?> checked="checked" <?php }?> onClick="close_item( 'reg_phote',this )" ></td>
<td><input name="reg_phote[1]" id="reg_phote[1]" value="1" type="checkbox"  <?php if ($_smarty_tpl->getVariable('re_arr')->value['reg_phote'][1]==1){?> checked="checked" <?php }?> <?php if ($_smarty_tpl->getVariable('re_arr')->value['reg_phote'][0]==0){?> disabled <?php }?>></td>
<td><input name="reg_phote[2]" id="reg_phote[2]" value="<?php echo $_smarty_tpl->getVariable('re_arr')->value['reg_phote'][2];?>
" type="text"  style="width:50px;" <?php if ($_smarty_tpl->getVariable('re_arr')->value['reg_phote'][0]==0){?> disabled <?php }?>></td>

</tr>


<tr >

<td style="text-align:right;font-weight:bold;"><strong><?php echo $_smarty_tpl->getVariable('lang')->value['reg_home_phote'];?>
</strong></td>
<td ><input name="reg_home_phote[0]" id="reg_home_phote[0]" value="1" type="checkbox" <?php if ($_smarty_tpl->getVariable('re_arr')->value['reg_home_phote'][0]==1){?> checked="checked" <?php }?>  onClick="close_item( 'reg_home_phote',this )" ></td>
<td><input name="reg_home_phote[1]" id="reg_home_phote[1]" value="1" type="checkbox" <?php if ($_smarty_tpl->getVariable('re_arr')->value['reg_home_phote'][1]==1){?> checked="checked" <?php }?>  <?php if ($_smarty_tpl->getVariable('re_arr')->value['reg_home_phote'][0]==0){?> disabled <?php }?>></td>
<td><input name="reg_home_phote[2]" id="reg_home_phote[2]" value="<?php echo $_smarty_tpl->getVariable('re_arr')->value['reg_home_phote'][2];?>
" type="text"  style="width:50px;" <?php if ($_smarty_tpl->getVariable('re_arr')->value['reg_home_phote'][0]==0){?> disabled <?php }?>></td>

</tr>



<tr >

<td style="text-align:right;font-weight:bold;"><strong><?php echo $_smarty_tpl->getVariable('lang')->value['reg_tel'];?>
</strong></td>
<td><input name="reg_tel[0]" id="reg_tel[0]" value="1" type="checkbox"  <?php if ($_smarty_tpl->getVariable('re_arr')->value['reg_tel'][0]==1){?> checked="checked" <?php }?> onClick="close_item( 'reg_tel',this )" ></td>
<td><input name="reg_tel[1]" id="reg_tel[1]" value="1" type="checkbox"  <?php if ($_smarty_tpl->getVariable('re_arr')->value['reg_tel'][1]==1){?> checked="checked" <?php }?> <?php if ($_smarty_tpl->getVariable('re_arr')->value['reg_tel'][0]==0){?> disabled <?php }?>></td>
<td><input name="reg_tel[2]" id="reg_tel[2]" value="<?php echo $_smarty_tpl->getVariable('re_arr')->value['reg_tel'][2];?>
" type="text"  style="width:50px;" <?php if ($_smarty_tpl->getVariable('re_arr')->value['reg_tel'][0]==0){?> disabled <?php }?>></td>

</tr>


        <tr>
        <td colspan="4" style="text-align:center"><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-->
            <input type="hidden" name="act_type" value="<?php echo $_smarty_tpl->getVariable('act_type')->value;?>
">
        <input type="hidden" name="sys_id" id="sys_id"  value="<?php echo $_smarty_tpl->getVariable('re_arr')->value['web_name']['sys_id'];?>
">
            </td>
        </tr>
 
 
          </tbody>
        </table>


</div> </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="<?php echo $_smarty_tpl->getVariable('base_weburl')->value;?>
/js/jquery.min.js"></script>
<script src="<?php echo $_smarty_tpl->getVariable('base_weburl')->value;?>
/js/base.js"></script>
</body>
</html>