<!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>{echo: lp{m_u_center};/}</title>
<link rel="stylesheet" type="text/css" href="skin/{echo: $SYSINFO['templates'];/}/css/modules.css">
<link rel="stylesheet" type="text/css" href="skin/{echo: $SYSINFO['templates'];/}/css/layout.css">
<link rel="stylesheet" type="text/css" href="skin/{echo: $SYSINFO['templates'];/}/css/style.css">
<script type="text/javascript" src="skin/{echo: $SYSINFO['templates'];/}/js/changeStyle.js"></script>
<script type="text/javascript" src="skin/{echo: $SYSINFO['templates'];/}/js/userchangeStyle.js"></script>

<style type="text/css">
.red{color:red;}
</style>
</head>
<body onload="menu_style_change('shop_payment');changeMenu();">
{inc: require("shop/index_header.php");/}
	<div class="site_map">
	  {echo:lp{m_current_position};/}<A href="index.php">{echo:$SYSINFO['sys_name'];/}</A>/<a href="modules.php">{echo:lp{m_u_center};/}</a>/&nbsp;&nbsp;{echo: lp{m_payment_setting};/}
	</div>
    <div class="clear"></div>
    {inc: require("modules/left_menu.php");/}
    <div class="main_right">
		<div class="cont">
		<div class="title_uc"><h3>{echo: lp{m_payment_setting};/}</h3></div><hr />
		<form action="do.php?act=shop_payment_update" method="post" name="form_shop_pay" onsubmit="return checkForm();">
		<table width="100%" class="form_table">
			<tr>
				<th class="textright" width="200px;">{echo: lp{m_payment_name};/}：</td>
				<th class="textleft">{echo:$payment['pay_name'];/}<input type="hidden" name="pay_id" value="{echo:$payment['pay_id'];/}" /></td>
			</tr>
			<tr>
				<td class="textright">{echo: lp{m_payment_desc};/}：</td>
				<td class="textleft"><textarea name="pay_desc" rows="5" cols="40">{echo:strip_tags($payment['pay_desc']);/}</textarea> <span class="red">*</span>{echo: lp{m_payment_showuser_pay};/}</td>
			</tr>
			<tr>
				<td class="textright">{echo: lp{m_payment_enable};/}：</td>
				<td class="textleft"><input type="radio" name="enabled" value="1" checked>{echo: lp{m_yes};/} <input type="radio" name="enabled" value="0">{echo: lp{m_no};/}</td>
			</tr>
			{sta:foreach($config_arr as $k=>$v)[loop]}
			<tr>
				<td class="textright">{echo:$v;/}：</td>
				<td class="textleft">
				{sta:if($config_select[$k])[exc]}
				<select name="pay_config[{echo:$k;/}]">
					{sta:foreach($config_select[$k] as $sk=>$sv)[loop]}
					<option value="{echo:$sk;/}">{echo:$sv;/}</option>
					{end:foreach/}
				</select>
				{sta: }else [exc]}
				<input type="text" name="pay_config[{echo:$k;/}]" value="" maxlength="40" style="width:200px;" />
				{end:if/}
				</td>
			</tr>
			{end:foreach/}
			<tr>
				<td colspan="2" class="center"><input type="submit" value="{echo: lp{m_payment_install};/}" /></td>
			</tr>
		</table>
		</form>
        </div>
    </div>
<div class="clear"></div>
{inc: require("shop/index_footer.php");/}
</body>
</html>