<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<title>{#$txt_title#} - Powered by HuCart.COM</title>
<link href="./css/bootstrap.min.css" rel="stylesheet">
<link href="./css/info.css" rel="stylesheet">
<script language="javascript" src="{#$base_weburl#}/js/pinyin.js"></script>
<script language="javascript" src="{#$base_weburl#}/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 = '{#$base_weburl#}';
	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('{#$lang.web_name_err#}');
				idweb_name.focus();
				return false;
			}else if(idweb_title.value=='')
			{
				alert('{#$lang.web_title_err#}');
				idweb_title.focus();
				return false;
			}else if(idweb_description.value=='')
			{
				alert('{#$lang.web_description_err#}');
				idweb_description.focus();
				return false;
			}else if(idweb_keyword.value=='')
			{
				alert('{#$lang.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={#$master_act#}&act=info_list" >{#$lang.title#}</a> > {#$txt_title#} ({#$lang.need_edit#}&nbsp;&nbsp; {#$lang.need_add#} {#$lang.need_del#})<a href="http://help.hucart.com/item-show-user_config.html" target="_blank" title="{#$lang.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="{#$act_url#}">
    <div style="width:560px; margin:0 auto;">
        <table class="table table-bordered table-hover" >
        <thead><tr>
        <th colspan="4" class="text-center">{#$txt_title#}</th>
        </tr>
        </thead>
        <tr>
        <th class="text-center"><strong>{#$lang.reg_item_name#}</strong></th>
        <th class="text-center">{#$lang.reg_item_show#}</th>
        <th class="text-center">{#$lang.reg_item_need#}</th>
        <th class="text-center">{#$lang.reg_item_list#}</th>
        </tr>
       

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

 

<tr >

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

</tr>


<tr >

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

</tr>


<tr >

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

</tr>



<tr >

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

</tr>


        <tr>
        <td colspan="4" style="text-align:center"><button type="submit" class="btn btn-primary  btn-sm" onClick="return submitFun(this)" >{#$edit_submit#}</button>&nbsp;&nbsp;&nbsp;&nbsp;
            <!--button type="reset" class="btn btn-default btn-sm">{#$lang.reset#}</button-->
            <input type="hidden" name="act_type" value="{#$act_type#}">
        <input type="hidden" name="sys_id" id="sys_id"  value="{#$re_arr.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="{#$base_weburl#}/js/jquery.min.js"></script>
<script src="{#$base_weburl#}/js/base.js"></script>
</body>
</html>