<!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">
 function select_title(val,csscout)
 {
	document.getElementById('sys_name').value 	= document.getElementById('sys_title['+val+']').value + document.getElementById('sys_version['+val+']').value;
	document.getElementById('sys_code').value 	= document.getElementById('sys_dir['+val+']').value;
	var isall = false;
	for(var i=0;i<csscout;i++)
	{
		if(document.getElementById('sys_css'+val+'['+i+']').checked ==true)
		{
			document.getElementById('sys_css').value = document.getElementById('sys_css'+val+'['+keyval+']').value;
			isall = true;
		}
	}
	if(isall == false)
	{
		document.getElementById('sys_css').value = document.getElementById('sys_css'+val+'[0]').value;
		document.getElementById('sys_css'+val+'[0]').checked = true;
	}
 }
 
 function select_css(cssval,keyval)
 {
	document.getElementById('sys_css').value 		= document.getElementById('sys_css'+keyval+'['+cssval+']').value;
	document.getElementById('sys_name').value 		= document.getElementById('sys_title['+keyval+']').value + document.getElementById('sys_version['+keyval+']').value;
	document.getElementById('sys_code').value 		= document.getElementById('sys_dir['+keyval+']').value;	
	document.getElementById('sys_code['+keyval+']').checked 	= true;
	alert('');
 }
 
</script>
</head>
<body>

    <div class="info-tit"> 
    <form action="{#$base_weburl#}/adminsys/index.php?load=sys_config&act=edit_temp" method="post"  name="formSub"><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-temp.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">
<input name="sys_id" id="sys_id" value="{#$info_user.sys_id#}" type="hidden">
<input name="sys_code" id="sys_code" value="{#$info_user.sys_code#}" type="hidden">
<input name="sys_css" id="sys_css" value="{#$info_user.sys_css#}" type="hidden">
<input name="sys_value" id="sys_value" value="{#$info_user.sys_value#}" type="hidden">
<input name="sys_name" id="sys_name" value="{#$info_user.sys_name#}" type="hidden">
<div class="list" style="overflow:hidden;">
<ul>
{#foreach item=item key=key from=$info#}
<li style="width:450px;list-style: none;float:left;">
<table cellpadding="0" cellspacing="1" border="0" style="width:450" class="tableborder" >
<tr >
<td class="td"><strong>{#$lang.tem_name_prefix#}{#$key+1#}{#$lang.tem_name#} </strong></td>
<td class="tdd">{#$item.sys_title#}{#$item.sys_version#}</td>
</tr>
<tr >
<td class="td"><strong>{#$lang.tem_url#}</strong></td>
<td class="tdd">templates/<font color="#0000FF">{#$item.sys_dir#}</font></td>
</tr>
<tr >
<td class="td"><strong>{#$lang.tem_img#}</strong></td>
<td class="tdd"><div style="border:1px solid #333333; width:122px;" ><img src="{#$base_weburl#}/templates/www/{#$item.sys_dir#}/{#$item.sys_image#}" width="200" border="0" /></div></td>
</tr>
<tr >
<td class="td"><strong>{#$lang.tem_color#}</strong></td>
<td class="tdd">{#foreach item=itemcss key=keycss from =$item.sys_css#}<input type="radio"  value="{#$itemcss#}" name="sys_csskey" id="sys_css{#$key#}[{#$keycss#}]" {#if $item.sys_css_checked eq $itemcss#} checked="checked" {#/if#}  onclick="select_css('{#$keycss#}','{#$key#}')"  ><a style="display:inline-block;line-height:18px;padding:0 6px;border:1px solid #cccccc;background-color:{#$itemcss#};color:#000000 !important;margin-right:5px; width:10px; height:20px;"></a> &nbsp;&nbsp;{#/foreach#}</td>
</tr>

<tr >
<td class="td"><strong>{#$lang.tem_is_select#}</strong></td>
<td class="tdd"><input name="sys_codekey" id="sys_code[{#$key#}]" value="{#$key#}" {#if $item.sys_checked eq '1'#} checked="checked" {#/if#}  type="radio" style="width:20px;" onclick="select_title({#$key#},'{#$item.sys_css_cout#}')" >{#if $item.sys_checked eq '1'#} <font color="#FF0000;">{#$lang.tem_sel#}</font> {#else#} {#$lang.tem_no_sel#} {#/if#}

<input value="{#$item.sys_title#}" name="sys_title[{#$key#}]" 	id="sys_title[{#$key#}]"  type="hidden">
<input value="{#$item.sys_image#}" name="sys_image[{#$key#}]" 	id="sys_image[{#$key#}]"  type="hidden">
<input value="{#$item.sys_version#}" name="sys_version[{#$key#}]" id="sys_version[{#$key#}]"  type="hidden">
<input value="{#$item.sys_link#}" name="sys_link[{#$key#}]" 	id="sys_link[{#$key#}]"  type="hidden">
<input value="{#$item.sys_dir#}" name="sys_dir[{#$key#}]"  	id="sys_dir[{#$key#}]"  type="hidden">

</td>
</tr>

<tr >
<td colspan="2"  class="tdcenter"><div id="suggestionInfo">&nbsp;</div></td>
</tr>


</table>

</li>{#/foreach#}
</ul>
<div style="width:100%; overflow:hidden">
<table>
<tr><td>
<input class="btn btn-primary  btn-sm"  name="submit" id="submit" type="submit" value="修 改"   >
</td></tr>
</table>
</div>
</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>