You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

103 lines
3.5 KiB

<!-- $Id: user_info.htm 16854 2009-12-07 06:20:09Z sxc_shop $ -->
{include file="pageheader.htm"}
<div class="main-div">
<form method="post" action="goods.php" name="theForm" onsubmit="return validate()">
<table width="100%" style=" width:100%">
<tr>
<td class="label">商品名称:</td>
<td>{$goods_info.goods_name}</td>
</tr>
<tr>
<td class="label">商品类型名称:</td>
<td>{$attr_info.attr_name}</td>
</tr>
<tr>
<td class="label">属性名称:</td>
<td>{$goods_attr_name}</td>
</tr>
<tr>
<td class="label">属性价格:</td>
<td>
<table width="100%" style="border:none; width:80%; padding:0px;">
{foreach from=$warehouse_area_list item=warehouse}
<tr>
<td style="color:#F00">{$warehouse.region_name}</td>
</tr>
<tr>
<td>{foreach from=$warehouse.child item=area}
<label><input name="area_name[]" type="checkbox" value="{$area.region_id}" onclick="get_region_attr_price(this, this.value, {$area.area_attr.attr_price|default:0}, {$area.area_attr.attrNumber|default:0})" {if $area.region_id eq $area.area_attr.area_id}checked="checked"{/if} />{$area.region_name}</label>
<font id="area_id_{$area.region_id}">
{if $area.area_attr}
<input type="text" size="7" name="attrPrice_{$area.area_attr.area_id}" value="{$area.area_attr.attr_price}" id="attrPrice_Id_{$area.area_attr.area_id}">
{/if}
</font>
{/foreach}
</td>
</tr>
{/foreach}
</table>
</td>
</tr>
<tr>
<td class="label">价格、库存:</td>
<td><a href="goods_area_attr_batch.php?act=add&goods_id={$goods_id}&attr_name={$goods_attr_name}">选择批量上传</a></td>
</tr>
<tr>
<td colspan="2" align="center">
<input type="submit" value="{$lang.button_submit}" class="button" />
<input type="reset" value="{$lang.button_reset}" class="button" />
<input type="hidden" name="act" value="{$form_action}" />
<input type="hidden" name="goods_id" value="{$goods_id}" />
<input type="hidden" name="attr_id" value="{$attr_id}" />
<input type="hidden" name="goods_attr_id" value="{$goods_attr_id}" />
<input type="hidden" name="goods_attr_name" value="{$goods_attr_name}" />
</td>
</tr>
</table>
</form>
</div>
{insert_scripts files="../js/utils.js,validator.js"}
{literal}
<script language="JavaScript">
<!--
if (document.forms['theForm'].elements['act'].value == "insert")
{
document.forms['theForm'].elements['username'].focus();
}
else
{
document.forms['theForm'].elements['email'].focus();
}
onload = function()
{
// 开始检查订单
startCheckOrder();
}
/**
* 检查表单输入的数据
*/
function validate()
{
}
function get_region_attr_price(f, val, attr_price, number){
var areaFont = document.getElementById('area_id_' + val);
if(f.checked == true){
areaFont.innerHTML = "&nbsp;<strong style='color:#666; font-weight:normal'>属性价格</strong><input name='attrPrice_" + val + "' type='text' size=7 value = " +attr_price.toFixed(2)+ " />" + "&nbsp;<strong style='color:#666; font-weight:normal'>属性库存</strong><input name='attrNumber_" + val + "' type='text' size=7 value = " + number + " />";
}else{
areaFont.innerHTML = '';
}
}
//-->
</script>
{/literal}
{include file="pagefooter.htm"}