|
|
|
|
<!-- $Id: favourable_info.htm 14361 2008-04-07 09:26:17Z zhuwenyuan $ -->
|
|
|
|
|
{include file="pageheader.htm"}
|
|
|
|
|
<script type="text/javascript" src="../js/calendar.php?lang={$cfg_lang}"></script>
|
|
|
|
|
<link href="../js/calendar/calendar.css" rel="stylesheet" type="text/css" />
|
|
|
|
|
{insert_scripts files="validator.js,../js/transport_jquery.js}
|
|
|
|
|
<div class="main-div">
|
|
|
|
|
<form method="post" action="favourable.php" name="theForm" enctype="multipart/form-data" onSubmit="return validate()">
|
|
|
|
|
<table cellspacing="0" cellpadding="0" width="100%">
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="label">{$lang.label_act_name}</td>
|
|
|
|
|
<td>
|
|
|
|
|
{if $favourable.userFav_type eq 0 || $priv_ru}
|
|
|
|
|
<input name="act_name" type="text" id="act_name" value="{$favourable.act_name}" size="40" />
|
|
|
|
|
{else}
|
|
|
|
|
<font style="color:#A60000">{$favourable.act_name}</font>
|
|
|
|
|
{/if}
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="label">{$lang.label_start_time}</td>
|
|
|
|
|
<td>
|
|
|
|
|
{if $favourable.userFav_type eq 0 || $priv_ru}
|
|
|
|
|
<input name="start_time" type="text" id="start_time" value="{$favourable.start_time}" readonly="readonly" />
|
|
|
|
|
<input name="selbtn1" type="button" id="selbtn1" onclick="return showCalendar('start_time', '%Y-%m-%d %H:%M', '24', false, 'selbtn1');" value="{$lang.btn_select}" class="button" />
|
|
|
|
|
{else}
|
|
|
|
|
<font style="color:#A60000">{$favourable.start_time}</font>
|
|
|
|
|
{/if}
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="label">{$lang.label_end_time}</td>
|
|
|
|
|
<td>
|
|
|
|
|
{if $favourable.userFav_type eq 0 || $priv_ru}
|
|
|
|
|
<input name="end_time" type="text" id="end_time" value="{$favourable.end_time}" readonly="readonly" />
|
|
|
|
|
<input name="selbtn2" type="button" id="selbtn2" onclick="return showCalendar('end_time', '%Y-%m-%d %H:%M', '24', false, 'selbtn2');" value="{$lang.btn_select}" class="button" />
|
|
|
|
|
{else}
|
|
|
|
|
<font style="color:#A60000">{$favourable.end_time}</font>
|
|
|
|
|
{/if}
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="label">上传图片:</td>
|
|
|
|
|
<td>
|
|
|
|
|
<input name="activity_thumb" type="file" />
|
|
|
|
|
{if $favourable.activity_thumb neq ""}
|
|
|
|
|
<input type="button" value="{$lang.drop_activity_thumb}" onclick="if (confirm('{$lang.confirm_drop_thumb}'))location.href='favourable.php?act=drop_thumb&id={$favourable.act_id}&ru_id={$favourable.user_id}'">
|
|
|
|
|
<a href="../{$favourable.activity_thumb}" target="_blank">查看</a>
|
|
|
|
|
{/if}
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="label">{$lang.label_user_rank}</td>
|
|
|
|
|
<td>
|
|
|
|
|
{foreach from=$user_rank_list item=user_rank}
|
|
|
|
|
{if $favourable.userFav_type eq 0 || $priv_ru}
|
|
|
|
|
<input type="checkbox" name="user_rank[]" value="{$user_rank.rank_id}" {if $user_rank.checked}checked="true"{/if} />{$user_rank.rank_name}
|
|
|
|
|
{else}
|
|
|
|
|
<font style="color:#A60000">{if $user_rank.checked}{$user_rank.rank_name} {/if}</font>
|
|
|
|
|
{/if}
|
|
|
|
|
{/foreach}
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
{if $priv_ru}
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="label">使用类型:</td>
|
|
|
|
|
<td>
|
|
|
|
|
<select name="userFav_type">
|
|
|
|
|
<option value="0" {if $favourable.userFav_type eq 0}selected="selected"{/if}>自主使用</option>
|
|
|
|
|
<option value="1" {if $favourable.userFav_type eq 1}selected="selected"{/if}>全场通用</option>
|
|
|
|
|
</select>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
{else}
|
|
|
|
|
{if $favourable.userFav_type}
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="label">使用类型:</td>
|
|
|
|
|
<td style="color:#A60000">
|
|
|
|
|
全场通用
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
{/if}
|
|
|
|
|
{/if}
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="label">{$lang.label_act_range}</td>
|
|
|
|
|
<td>
|
|
|
|
|
{if $favourable.userFav_type eq 0 || $priv_ru}
|
|
|
|
|
<select name="act_range" onchange="changeRange(this.value)">
|
|
|
|
|
<option value="0" selected="selected" {if $favourable.act_range eq 0}selected="selected"{/if}>{$lang.far_all}</option>
|
|
|
|
|
<option value="1" {if $favourable.act_range eq 1}selected="selected"{/if}>{$lang.far_category}</option>
|
|
|
|
|
<option value="2" {if $favourable.act_range eq 2}selected="selected"{/if}>{$lang.far_brand}</option>
|
|
|
|
|
<option value="3" {if $favourable.act_range eq 3}selected="selected"{/if}>{$lang.far_goods}</option>
|
|
|
|
|
</select>
|
|
|
|
|
<div id="range-div">
|
|
|
|
|
{foreach from=$act_range_ext item=item}
|
|
|
|
|
<input name="act_range_ext[]" type="checkbox" value="{$item.id}" checked="checked" />
|
|
|
|
|
{$item.name}
|
|
|
|
|
{/foreach}
|
|
|
|
|
</div>
|
|
|
|
|
{else}
|
|
|
|
|
<font style="color:#A60000">
|
|
|
|
|
{if $favourable.act_range eq 0}{$lang.far_all}{/if}
|
|
|
|
|
{if $favourable.act_range eq 1}{$lang.far_category}{/if}
|
|
|
|
|
{if $favourable.act_range eq 2}{$lang.far_brand}{/if}
|
|
|
|
|
{if $favourable.act_range eq 3}{$lang.far_goods}{/if}
|
|
|
|
|
</font>
|
|
|
|
|
{/if}
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
{if $favourable.userFav_type eq 0 || $priv_ru}
|
|
|
|
|
<tr id="range_search"{if $favourable.act_range eq 0} style="display:none"{/if}>
|
|
|
|
|
<td align="right">{$lang.label_search_and_add}</td>
|
|
|
|
|
<td>
|
|
|
|
|
<input name="keyword" type="text" id="keyword">
|
|
|
|
|
<input name="search" type="button" id="search" value="{$lang.button_search}" class="button" onclick="searchItem()" />
|
|
|
|
|
<select name="result" id="result">
|
|
|
|
|
</select> <input type="button" name="add_range" value="+" class="button" onclick="addRange()" />
|
|
|
|
|
</a></td>
|
|
|
|
|
</tr>
|
|
|
|
|
{/if}
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="label">{$lang.label_min_amount}</td>
|
|
|
|
|
<td>
|
|
|
|
|
{if $favourable.userFav_type eq 0 || $priv_ru}
|
|
|
|
|
<input name="min_amount" type="text" id="min_amount" value="{$favourable.min_amount}">
|
|
|
|
|
{else}
|
|
|
|
|
<font style="color:#A60000">{$favourable.min_amount}</font>
|
|
|
|
|
{/if}
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="label">{$lang.label_max_amount}</td>
|
|
|
|
|
<td>
|
|
|
|
|
{if $favourable.userFav_type eq 0 || $priv_ru}
|
|
|
|
|
<input name="max_amount" type="text" id="max_amount" value="{$favourable.max_amount}"> {$lang.notice_max_amount}
|
|
|
|
|
{else}
|
|
|
|
|
<font style="color:#A60000">{$favourable.max_amount}</font>
|
|
|
|
|
{/if}
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="label"><a href="javascript:showNotice('NoticeActType');" title="{$lang.form_notice}">
|
|
|
|
|
<img src="images/notice.gif" width="14" height="14" border="0" alt="{$lang.form_notice}"></a>{$lang.label_act_type}</td>
|
|
|
|
|
<td>
|
|
|
|
|
{if $favourable.userFav_type eq 0 || $priv_ru}
|
|
|
|
|
<select name="act_type" id="act_type" onchange="changeType(this.value)">
|
|
|
|
|
<option value="0" {if $favourable.act_type eq 0}selected="selected"{/if}>{$lang.fat_goods}</option>
|
|
|
|
|
<option value="1" {if $favourable.act_type eq 1}selected="selected"{/if}>{$lang.fat_price}</option>
|
|
|
|
|
<option value="2" {if $favourable.act_type eq 2}selected="selected"{/if}>{$lang.fat_discount}</option>
|
|
|
|
|
</select>
|
|
|
|
|
<input name="act_type_ext" type="text" id="act_type_ext" value="{$favourable.act_type_ext}" size="10" />
|
|
|
|
|
{else}
|
|
|
|
|
<font style="color:#A60000">
|
|
|
|
|
{if $favourable.act_type eq 0}{$lang.fat_goods}{/if}
|
|
|
|
|
{if $favourable.act_type eq 1}{$lang.fat_price}{/if}
|
|
|
|
|
{if $favourable.act_type eq 2}{$lang.fat_discount}{/if}
|
|
|
|
|
{if $favourable.act_type neq 0} {$favourable.act_type_ext}{/if}
|
|
|
|
|
</font>
|
|
|
|
|
{/if}
|
|
|
|
|
<br />
|
|
|
|
|
<span class="notice-span" {if $help_open}style="display:block" {else} style="display:none" {/if} id="NoticeActType">{$lang.notice_act_type}</span>
|
|
|
|
|
<div id="gift-div" style="width:60%">
|
|
|
|
|
<table id="gift-table">
|
|
|
|
|
{if $favourable.gift}
|
|
|
|
|
<tr align="center"><td><strong>{$lang.js_languages.gift}</strong></td><td><strong>{$lang.js_languages.price}</strong></td></tr>
|
|
|
|
|
{foreach from=$favourable.gift item=goods key=key}
|
|
|
|
|
<tr>
|
|
|
|
|
<td>{if $favourable.userFav_type eq 0 || $priv_ru}<input type="checkbox" name="gift_id[{$key}]" value="{$goods.id}" checked="checked" />{/if}{$goods.name}</td>
|
|
|
|
|
<td align="right">
|
|
|
|
|
{if $favourable.userFav_type eq 0 || $priv_ru}
|
|
|
|
|
<input name="gift_price[{$key}]" type="text" value="{$goods.price}" size="10" style="text-align:right" />
|
|
|
|
|
<input name="gift_name[{$key}]" type="hidden" value="{$goods.name}" />
|
|
|
|
|
{else}
|
|
|
|
|
<font style="color:#A60000">{$goods.price}</font>
|
|
|
|
|
{/if}
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
{/foreach}
|
|
|
|
|
{/if}
|
|
|
|
|
</table>
|
|
|
|
|
</div></td>
|
|
|
|
|
</tr>
|
|
|
|
|
{if $favourable.userFav_type eq 0 || $priv_ru}
|
|
|
|
|
<tr id="type_search"{if $favourable.act_type neq 0} style="display:none"{/if}>
|
|
|
|
|
<td align="right">{$lang.label_search_and_add_gift}</td>
|
|
|
|
|
<td><input name="keyword1" type="text" id="keyword1" />
|
|
|
|
|
<input name="search1" type="button" id="search1" value="{$lang.button_search}" class="button" onclick="searchItem1()" />
|
|
|
|
|
<select name="result1" id="result1">
|
|
|
|
|
</select>
|
|
|
|
|
<input name="add_gift" type="button" class="button" id="add_gift" onclick="addGift()" value="+" />
|
|
|
|
|
</a></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<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="{$favourable.act_id}" />
|
|
|
|
|
<input type="hidden" name="ru_id" value="{$favourable.user_id}" />
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
{/if}
|
|
|
|
|
</table>
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{literal}
|
|
|
|
|
<script language="JavaScript">
|
|
|
|
|
<!--
|
|
|
|
|
onload = function()
|
|
|
|
|
{
|
|
|
|
|
// 开始检查订单
|
|
|
|
|
startCheckOrder();
|
|
|
|
|
// changeRange(document.forms['theForm'].elements['act_range'].value);
|
|
|
|
|
// changeType(document.forms['theForm'].elements['act_type'].value);
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* 检查表单输入的数据
|
|
|
|
|
*/
|
|
|
|
|
function validate()
|
|
|
|
|
{
|
|
|
|
|
validator = new Validator("theForm");
|
|
|
|
|
validator.required('act_name', act_name_not_null);
|
|
|
|
|
validator.isNumber('min_amount', min_amount_not_number, true);
|
|
|
|
|
validator.isNumber('max_amount', max_amount_not_number, true);
|
|
|
|
|
validator.isNumber('act_type_ext', act_type_ext_not_number, true);
|
|
|
|
|
validator.islt('start_time', 'end_time', start_lt_end);
|
|
|
|
|
if (document.forms['theForm'].elements['max_amount'].value > 0)
|
|
|
|
|
{
|
|
|
|
|
validator.gt('max_amount', 'min_amount', amount_invalid);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return validator.passed();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function searchItem()
|
|
|
|
|
{
|
|
|
|
|
var filter = new Object;
|
|
|
|
|
filter.keyword = document.forms['theForm'].elements['keyword'].value;
|
|
|
|
|
filter.act_range = document.forms['theForm'].elements['act_range'].value;
|
|
|
|
|
filter.ru_id = {$favourable.user_id};
|
|
|
|
|
if (filter.act_range == 0)
|
|
|
|
|
{
|
|
|
|
|
alert(all_need_not_search);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Ajax.call('favourable.php?is_ajax=1&act=search', filter, searchResponse, 'GET', 'JSON');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function searchResponse(result)
|
|
|
|
|
{
|
|
|
|
|
if (result.error == '1' && result.message != '')
|
|
|
|
|
{
|
|
|
|
|
alert(result.message);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var sel = document.forms['theForm'].elements['result'];
|
|
|
|
|
|
|
|
|
|
sel.length = 0;
|
|
|
|
|
|
|
|
|
|
/* 创建 options */
|
|
|
|
|
var goods = result.content;
|
|
|
|
|
if (goods)
|
|
|
|
|
{
|
|
|
|
|
for (i = 0; i < goods.length; i++)
|
|
|
|
|
{
|
|
|
|
|
var opt = document.createElement("OPTION");
|
|
|
|
|
opt.value = goods[i].id;
|
|
|
|
|
opt.text = goods[i].name;
|
|
|
|
|
sel.options.add(opt);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 改变优惠范围
|
|
|
|
|
* @param int rangeId
|
|
|
|
|
*/
|
|
|
|
|
function changeRange(rangeId)
|
|
|
|
|
{
|
|
|
|
|
document.getElementById('range-div').innerHTML = '';
|
|
|
|
|
document.getElementById('result').length = 0;
|
|
|
|
|
var row = document.getElementById('range_search');
|
|
|
|
|
if (rangeId <= 0)
|
|
|
|
|
{
|
|
|
|
|
row.style.display = 'none';
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
row.style.display = '';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function addRange()
|
|
|
|
|
{
|
|
|
|
|
var selRange = document.forms['theForm'].elements['act_range'];
|
|
|
|
|
if (selRange.value == 0)
|
|
|
|
|
{
|
|
|
|
|
alert(all_need_not_search);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
var selResult = document.getElementById('result');
|
|
|
|
|
if (selResult.value == 0)
|
|
|
|
|
{
|
|
|
|
|
alert(pls_search);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
var id = selResult.options[selResult.selectedIndex].value;
|
|
|
|
|
var name = selResult.options[selResult.selectedIndex].text;
|
|
|
|
|
|
|
|
|
|
// 检查是否已经存在
|
|
|
|
|
var exists = false;
|
|
|
|
|
var eles = document.forms['theForm'].elements;
|
|
|
|
|
for (var i = 0; i < eles.length; i++)
|
|
|
|
|
{
|
|
|
|
|
if (eles[i].type=="checkbox" && eles[i].name.substr(0, 13) == 'act_range_ext')
|
|
|
|
|
{
|
|
|
|
|
if (eles[i].value == id)
|
|
|
|
|
{
|
|
|
|
|
exists = true;
|
|
|
|
|
alert(range_exists);
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 创建checkbox
|
|
|
|
|
if (!exists)
|
|
|
|
|
{
|
|
|
|
|
var html = '<input name="act_range_ext[]" type="checkbox" value="' + id + '" checked="checked" />' + name + '<br />';
|
|
|
|
|
document.getElementById('range-div').innerHTML += html;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 搜索赠品
|
|
|
|
|
*/
|
|
|
|
|
function searchItem1()
|
|
|
|
|
{
|
|
|
|
|
if (document.forms['theForm'].elements['act_type'].value == 1)
|
|
|
|
|
{
|
|
|
|
|
alert(price_need_not_search);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
var filter = new Object;
|
|
|
|
|
filter.keyword = document.forms['theForm'].elements['keyword1'].value;
|
|
|
|
|
filter.ru_id = {$favourable.user_id};
|
|
|
|
|
filter.act_range = 3;
|
|
|
|
|
Ajax.call('favourable.php?is_ajax=1&act=search', filter, searchResponse1, 'GET', 'JSON');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function searchResponse1(result)
|
|
|
|
|
{
|
|
|
|
|
if (result.error == '1' && result.message != '')
|
|
|
|
|
{
|
|
|
|
|
alert(result.message);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var sel = document.forms['theForm'].elements['result1'];
|
|
|
|
|
|
|
|
|
|
sel.length = 0;
|
|
|
|
|
|
|
|
|
|
/* 创建 options */
|
|
|
|
|
var goods = result.content;
|
|
|
|
|
if (goods)
|
|
|
|
|
{
|
|
|
|
|
for (i = 0; i < goods.length; i++)
|
|
|
|
|
{
|
|
|
|
|
var opt = document.createElement("OPTION");
|
|
|
|
|
opt.value = goods[i].id;
|
|
|
|
|
opt.text = goods[i].name;
|
|
|
|
|
sel.options.add(opt);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function addGift()
|
|
|
|
|
{
|
|
|
|
|
var selType = document.forms['theForm'].elements['act_type'];
|
|
|
|
|
if (selType.value == 1)
|
|
|
|
|
{
|
|
|
|
|
alert(price_need_not_search);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
var selResult = document.getElementById('result1');
|
|
|
|
|
if (selResult.value == 0)
|
|
|
|
|
{
|
|
|
|
|
alert(pls_search);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
var id = selResult.options[selResult.selectedIndex].value;
|
|
|
|
|
var name = selResult.options[selResult.selectedIndex].text;
|
|
|
|
|
|
|
|
|
|
// 检查是否已经存在
|
|
|
|
|
var exists = false;
|
|
|
|
|
var eles = document.forms['theForm'].elements;
|
|
|
|
|
for (var i = 0; i < eles.length; i++)
|
|
|
|
|
{
|
|
|
|
|
if (eles[i].type=="checkbox" && eles[i].name.substr(0, 7) == 'gift_id')
|
|
|
|
|
{
|
|
|
|
|
if (eles[i].value == id)
|
|
|
|
|
{
|
|
|
|
|
exists = true;
|
|
|
|
|
alert(range_exists);
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 创建checkbox
|
|
|
|
|
if (!exists)
|
|
|
|
|
{
|
|
|
|
|
var table = document.getElementById('gift-table');
|
|
|
|
|
if (table.rows.length == 0)
|
|
|
|
|
{
|
|
|
|
|
var row = table.insertRow(-1);
|
|
|
|
|
var cell = row.insertCell(-1);
|
|
|
|
|
cell.align = 'center';
|
|
|
|
|
cell.innerHTML = '<strong>' + gift + '</strong>';
|
|
|
|
|
var cell = row.insertCell(-1);
|
|
|
|
|
cell.align = 'center';
|
|
|
|
|
cell.innerHTML = '<strong>' + price + '</strong>';
|
|
|
|
|
}
|
|
|
|
|
var row = table.insertRow(-1);
|
|
|
|
|
var cell = row.insertCell(-1);
|
|
|
|
|
cell.innerHTML = '<input name="gift_id[]" type="checkbox" value="' + id + '" checked="checked" />' + name;
|
|
|
|
|
var cell = row.insertCell(-1);
|
|
|
|
|
cell.align = 'right';
|
|
|
|
|
cell.innerHTML = '<input name="gift_price[]" type="text" value="0" size="10" style="text-align:right" />' +
|
|
|
|
|
'<input name="gift_name[]" type="hidden" value="' + name + '" />';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function changeType(typeId)
|
|
|
|
|
{
|
|
|
|
|
document.getElementById('gift-div').innerHTML = '<table id="gift-table"></table>';
|
|
|
|
|
document.getElementById('result1').length = 0;
|
|
|
|
|
var row = document.getElementById('type_search');
|
|
|
|
|
if (typeId <= 0)
|
|
|
|
|
{
|
|
|
|
|
row.style.display = '';
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
row.style.display = 'none';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//-->
|
|
|
|
|
</script>
|
|
|
|
|
{/literal}
|
|
|
|
|
{include file="pagefooter.htm"}
|