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.
101 lines
3.6 KiB
101 lines
3.6 KiB
<!-- $Id: ads_info.htm 14216 2008-03-10 02:27:21Z testyang $ -->
|
|
{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" />
|
|
<div class="main-div">
|
|
<form action="mc_order.php" method="post" enctype="multipart/form-data" name="theForm" onsubmit="return validate()">
|
|
<table width="100%" id="general-table">
|
|
|
|
<tbody id="1" >
|
|
<tr>
|
|
<td align="right" > <img src="images/notice.gif" width="16" height="16" border="0" alt="{$lang.form_notice}"> 温馨提示:</td>
|
|
<td align="left" >用户的个数,决定了批量提交订单的数量!</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="label">
|
|
*批量导入用户[<span style="color:#F00;">必须注册过</span>]:</td>
|
|
<td>
|
|
<input name="upfile" type="file" id="upfile" size='35' onChange="ChkUpImg(this.value)" />
|
|
<br/><span style="color:#F00;">*上传.txt后缀文件,例如范例里面的order_list.txt文件,一组数据以竖线符号分隔(|),多组数据在文本中回车即可</span>
|
|
<br/><a href="../mc_upfile/order_list.zip" target="_blank">1、下载范例</a> <a href="../mc_upfile/order_list.html" target="_blank">2、在线查看范例</a>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class="label">评论的商品ID:</td>
|
|
<td>
|
|
<textarea name="comment_id" id="comment_id" cols="50" rows="10" onclick="get_comment(this);">
|
|
3-12
|
|
4-11
|
|
5-16
|
|
6-14</textarea>
|
|
<br/><span style="color:#F00;">格式:商品ID-属性价格 或者 商品ID</span>
|
|
<br/><span style="color:#F00;">操作:(一个商品为一组)多组商品点回车即可</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="label"><span style="color:#F00;">*</span>商品购买数量:</td>
|
|
<td><input name="goods_number" type="text" id="goods_number" value="1" size="10"/></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="label"><span style="color:#F00;">*</span>随机下单次数:</td>
|
|
<td><input name="comment_num" type="text" id="comment_num" size="10" value="1" maxlength="4" onkeyup="this.value=this.value.replace(/[^\d]/g,'')"/>
|
|
<span style="color:#F00;">*</span>最大1000,默认1;</td>
|
|
</tr>
|
|
</tbody>
|
|
|
|
<tr>
|
|
<td class="label"> </td>
|
|
<td>
|
|
<input type="submit" value="批量添加定单" class="button" />
|
|
<input type="reset" value="{$lang.button_reset}" class="button" />
|
|
<input type="hidden" name="act" value="mc_add" /></td>
|
|
</tr>
|
|
</table>
|
|
|
|
</form>
|
|
</div>
|
|
|
|
<script type="text/ecmascript" language="javascript">
|
|
/**
|
|
* 检查表单输入的数据
|
|
*/
|
|
function validate()
|
|
{
|
|
df = document.theForm;
|
|
|
|
if(!df.comment_id.value){
|
|
alert('需要购买的订单商品ID,不能为空!;');
|
|
df.comment_id.focus();
|
|
return false;
|
|
}
|
|
|
|
if(!df.comment_num.value){
|
|
alert('需评论的次数,必须为整数!;');
|
|
df.comment_num.focus();
|
|
return false;
|
|
}
|
|
|
|
return true;
|
|
}
|
|
//上传格式;
|
|
function ChkUpImg(str){
|
|
photo_type="txt";
|
|
len=str.lastIndexOf(".")+1;
|
|
type=str.substr(len);
|
|
type=type.toLowerCase();
|
|
chk=photo_type.indexOf(type);
|
|
if(chk!=-1 && type!=""){
|
|
document.images['upfile'].src="file:///"+str;
|
|
}else{
|
|
alert("上传的文件类型只支持 ."+photo_type+" 格式");
|
|
//document.images['previewimg'].src="image/nophoto.gif";
|
|
}
|
|
}
|
|
|
|
function get_comment(f){
|
|
f.value = '';
|
|
}
|
|
</script>
|
|
|
|
{include file="pagefooter.htm"}
|