|
|
|
|
<!-- $Id: agency_info.htm 14216 2008-03-10 02:27:21Z testyang $ -->
|
|
|
|
|
{include file="pageheader.htm"}
|
|
|
|
|
{insert_scripts files="validator.js,../js/transport_jquery.js,../js/region.js"}
|
|
|
|
|
<div class="main-div">
|
|
|
|
|
<form method="post" action="merchants_commission.php" name="theForm" enctype="multipart/form-data" onsubmit="return validate()">
|
|
|
|
|
<table cellspacing="1" cellpadding="3" style="width:100%">
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="label">{$lang.suppliers_name}:</td>
|
|
|
|
|
<td>
|
|
|
|
|
<select name="merchants_name" onchange="get_query_merchants(this.value);">
|
|
|
|
|
<option value="0">请选择</option>
|
|
|
|
|
{foreach from=$user_list item=user}
|
|
|
|
|
<option value="{$user.user_id}" {if $server.user_id eq $user.user_id} selected="selected" {/if}>{$user.user_name}</option>
|
|
|
|
|
{/foreach}
|
|
|
|
|
</select>
|
|
|
|
|
{$lang.require_field}
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr id="query_merchants" style="display:none">
|
|
|
|
|
<td class="label">{$lang.suppliers_store}:</td>
|
|
|
|
|
<td id="query_merchants_info">
|
|
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="label">{$lang.label_suppliers_percent}</td>
|
|
|
|
|
<td>
|
|
|
|
|
<select name="merchants_percent">
|
|
|
|
|
{foreach from=$suppliers_percent item=percent}
|
|
|
|
|
<option value="{$percent.percent_id}" {if $server.suppliers_percent eq $percent.percent_id} selected="selected" {/if}>{$percent.percent_value}</option>
|
|
|
|
|
{/foreach}
|
|
|
|
|
</select>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="label">{$lang.label_suppliers_server_desc}</td>
|
|
|
|
|
<td><textarea name="suppliers_desc" cols="60" rows="4" >{$server.suppliers_desc}</textarea></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|
|
<table align="center" style="width:100%">
|
|
|
|
|
<tr>
|
|
|
|
|
<td colspan="2" align="center">
|
|
|
|
|
<input type="submit" class="button" value="{$lang.button_submit}" />
|
|
|
|
|
<input type="reset" class="button" value="{$lang.button_reset}" />
|
|
|
|
|
<input type="hidden" name="act" value="{$form_action}" />
|
|
|
|
|
<input type="hidden" name="id" value="{$id}" />
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
{insert_scripts files="../js/utils.js,validator.js"}
|
|
|
|
|
{literal}
|
|
|
|
|
<script language="JavaScript">
|
|
|
|
|
|
|
|
|
|
onload = function()
|
|
|
|
|
{
|
|
|
|
|
// 开始检查订单
|
|
|
|
|
startCheckOrder();
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* 检查表单输入的数据
|
|
|
|
|
*/
|
|
|
|
|
function validate()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function get_query_merchants(user_id)
|
|
|
|
|
{
|
|
|
|
|
Ajax.call('merchants_commission.php?is_ajax=1&act=query_merchants_info', "user_id="+user_id, query_merchantsResponse, "GET", "JSON");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function query_merchantsResponse(result)
|
|
|
|
|
{
|
|
|
|
|
if(result.content.user_id > 0){
|
|
|
|
|
document.getElementById('query_merchants').style.display = '';
|
|
|
|
|
document.getElementById('query_merchants_info').innerHTML = result.content.shoprz_brandName + result.content.shopNameSuffix;
|
|
|
|
|
}else{
|
|
|
|
|
document.getElementById('query_merchants').style.display = 'none';
|
|
|
|
|
document.getElementById('query_merchants_info').innerHTML = '';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
//-->
|
|
|
|
|
</script>
|
|
|
|
|
{/literal}
|
|
|
|
|
{include file="pagefooter.htm"}
|