⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 memcp_addstore.tpl.php

📁 用PHP和MSSQL开发的sspace商城系统
💻 PHP
字号:
<? if (!defined('IN_www.wan-e.net')){exit('Access Denied');}?><td width="78%">
<script language="javascript">
function checkdata(theform)
{
	if (theform.spname.value == "" || theform.spname.value.length > "50")
	{
		alert("<?=$LANG_CP_SP[CP_SP_INFO_NONAME]?>");
		theform.spname.focus();
		return false; 
	}
	if (theform.keyword.value == "" || theform.keyword.value.length > "12") 
	{
		alert("<?=$LANG_CP_SP[CP_SP_INFO_KEYWORD]?>");
		theform.keyword.focus();
		return false; 
	}
	if (theform.cid.value == "0" || isNaN(theform.cid.value) ) 
	{
		alert("<?=$LANG_CP_SP[CP_SP_INFO_NOCLASS]?>");
		theform.cid.focus();
		return false; 
	}
	
	if (theform.spcount.value == "" || isNaN(theform.spcount.value) ) 
	{
		alert("<?=$LANG_CP_SP[CP_SP_INFO_NOCOUNT]?>");
		theform.spcount.focus();
		return false; 
	}
	
	if (theform.price_market.value == "" || isNaN(theform.price_market.value) ) 
	{
		alert("<?=$LANG_CP_SP[CP_SP_PRICE_ERROR]?>");
		theform.price_market.focus();
		return false; 
	}
	if (theform.price_member.value == "" || isNaN(theform.price_member.value) ) 
	{
		alert("<?=$LANG_CP_SP[CP_SP_PRICE_ERROR]?>");
		theform.price_member.focus();
		return false; 
	}
	if (theform.price_vip.value == "" || isNaN(theform.price_vip.value) ) 
	{
		alert("<?=$LANG_CP_SP[CP_SP_PRICE_ERROR]?>");
		theform.price_vip.focus();
		return false; 
	}
	
	
	if (theform.context.value == "") 
	{
		alert("<?=$LANG_CP_SP[CP_SP_INFO_NOCONTEXT]?>");
		theform.context.focus();
		return false; 
	}
	else 
	{ 
		theform.Submit.disabled = true;
		return true;
	}
}
</script>
<table width="100%"  border="0" cellpadding="<?=TABLESPACE?>" cellspacing="<?=TABLECELL?>" class="tableborder">
<tr class="categround">
<td colspan="3"><?=$LANG_CP_SP[CP_SP_TITLE]?></td>
</tr>
<form action="index.php?action=memcp&type=addstoresubmit&submit=1" method="post" name="wane_post" enctype="multipart/form-data" onSubmit="return checkdata(this)">
<tr class="contentground">
<td width="20%"><?=$LANG_CP_SP[CP_SP_NAME]?>&nbsp;<font color="<?=$LANG_CP_SP[CATE_BGCOLOR]?>">(*)</font></td>
<td colspan="2"><input name="spname" type="text" id="spname" size="50" maxlength="50">
  &nbsp;
  <input name="isdiscuss" type="checkbox" id="isdiscuss" value="1" checked>
  <?=$LANG_CP_SP[CP_SP_DISCUSS]?></td>
</tr>
<tr class="contentground">
<td><?=$LANG_CP_SP[CP_SP_KEYWORD]?>&nbsp;<font color="<?=$LANG_CP_SP[CATE_BGCOLOR]?>">(*)</font></td>
<td colspan="2"><input name="keyword" type="text" id="keyword" size="12" maxlength="12">
&nbsp;<?=$LANG_CP_SP[CP_SP_INFO_KEYWORD]?></td>
</tr>
<tr class="contentground">
<td><?=$LANG_CP_SP[CP_SP_CLASS]?>&nbsp;<font color="<?=$LANG_CP_SP[CATE_BGCOLOR]?>">(*)</font></td>
<td colspan="2"><select name="cid" id="cid"><option value="0"><?=$LANG_CP_SP[CP_SP_CHOOSEN]?></option><?=CP_SP_SELECTC?></select>
&nbsp;&nbsp;&nbsp;&nbsp;<a href="<?=$tpl->linkurl('index','','cid')?>"><font color="#FF0000"><?=$LANG_CP_SP[CP_SP_CHOOSE_CID]?></font></a></td>
</tr>
<tr class="contentground">
<td><?=$LANG_CP_SP[CP_SP_MADE]?></td>
<td colspan="2"><select name="mid" id="mid"><option value="0"><?=$LANG_CP_SP[CP_SP_CHOOSEN]?></option><?=CP_SP_SELECTM?></select></td>
</tr>
<tr class="contentground">
<td><?=$LANG_CP_SP[CP_SP_BSTATUS]?>&nbsp;<font color="<?=$LANG_CP_SP[CATE_BGCOLOR]?>">(*)</font></td>
<td colspan="2"><select name="bid" id="bid">
<option value="0"><?=$LANG_CP_SP[CP_SP_MADE_COMMON]?></option>
<option value="1"><?=$LANG_CP_SP[CP_SP_MADE_COMMEND]?></option>
</select></td>
</tr>
<tr class="contentground">
<td><?=$LANG_CP_SP[CP_SP_USERS]?>&nbsp;</td>
<td colspan="2"><input name="spuser" type="text" id="spuser" size="50"></td>
</tr>
<tr class="contentground">
<td><?=$LANG_CP_SP[CP_SP_COUNT]?>&nbsp;<font color="<?=$LANG_CP_SP[CATE_BGCOLOR]?>">(*)</font></td>
<td colspan="2"><input name="spcount" type="text" id="spcount" value="1" size="4" maxlength="4">
<?=$LANG_CP_SP[CP_SP_COUNT_UNIT]?></td>
</tr>
<tr class="contentground">
<td><?=$LANG_CP_SP[CP_SP_SIZE]?></td>
<td colspan="2"><input name="spsize" type="text" id="spsize" size="40"></td>
</tr>
<tr class="contentground">
<td><?=$LANG_CP_SP[CP_SP_PRICES]?>&nbsp;<font color="<?=$LANG_CP_SP[CATE_BGCOLOR]?>">(*)</font></td>
<td colspan="2"><input name="price_market" type="text" id="price_market" size="10" maxlength="10">
<?=$LANG_CP_SP[CP_SP_PRICE_UNIT]?></td>
</tr>
<tr class="contentground">
<td><?=$LANG_CP_SP[CP_SP_PRICEM]?>&nbsp;<font color="<?=$LANG_CP_SP[CATE_BGCOLOR]?>">(*)</font></td>
<td colspan="2"><input name="price_member" type="text" id="price_member" size="10" maxlength="10">
<?=$LANG_CP_SP[CP_SP_PRICE_UNIT]?></td>
</tr>
<tr class="contentground">
<td><?=$LANG_CP_SP[CP_SP_PRICEV]?>&nbsp;<font color="<?=$LANG_CP_SP[CATE_BGCOLOR]?>">(*)</font></td>
<td colspan="2"><input name="price_vip" type="text" id="price_vip" size="10" maxlength="10">
<?=$LANG_CP_SP[CP_SP_PRICE_UNIT]?></td>
</tr>
<tr class="contentground">
<td rowspan="3"><?=$LANG_CP_SP[CP_SP_CONTEXT]?>&nbsp;<font color="<?=$LANG_CP_SP[CATE_BGCOLOR]?>">(*)</font></td>
<td colspan="2"><a href="javascript:image()"><?=$LANG_WANE_POST[CP_SP_STYLE_IMG]?></a> | <a href="javascript:hyperlink()"><?=$LANG_WANE_POST[CP_SP_STYLE_URL]?></a> | <a href="javascript:email()"><?=$LANG_WANE_POST[CP_SP_STYLE_EMAIL]?></a> | <a href="javascript:list()"><?=$LANG_WANE_POST[CP_SP_STYLE_LIST]?></a> | <a href="javascript:row()"><?=$LANG_WANE_POST[CP_SP_STYLE_ROW]?></a> | <a href="javascript:color()"><?=$LANG_WANE_POST[CP_SP_STYLE_COLOR]?></a> | <a href="javascript:size()"><?=$LANG_WANE_POST[CP_SP_STYLE_SIZE]?></a></td>
</tr>
<tr class="contentground">
<td colspan="2"><a href="javascript:bold()"><?=$LANG_WANE_POST[CP_SP_STYLE_FONTB]?></a> | <a href="javascript:italicize()"><?=$LANG_WANE_POST[CP_SP_STYLE_FONTI]?></a> | <a href="javascript:underline()"><?=$LANG_WANE_POST[CP_SP_STYLE_FONTU]?></a> | <a href="javascript:align_left()"><?=$LANG_WANE_POST[CP_SP_STYLE_FONTL]?></a> | <a href="javascript:center()"><?=$LANG_WANE_POST[CP_SP_STYLE_FONTC]?></a> | <a href="javascript:align_right()"><?=$LANG_WANE_POST[CP_SP_STYLE_FONTR]?></a></td>
</tr>
<tr class="contentground">
<td colspan="2"><textarea name="context" cols="80" rows="8" wrap="VIRTUAL" id="context"></textarea></td>
</tr>
<tr class="contentground">
<td rowspan="2"><?=$LANG_CP_SP[CP_SP_IMG]?></td>
<td width="12%"><?=$LANG_CP_SP[CP_SP_IMG_INPUT]?>
<input name="imgway" type="radio" value="0" checked onclick="this.form.userfile.disabled=true;this.form.spimg.disabled=false;"></td>
<td><input name="spimg" type="text" id="spimg" size="48"></td>
</tr>
<tr class="contentground">
<td><?=$LANG_CP_SP[CP_SP_IMG_UPLOAD]?>
<input name="imgway" type="radio" value="1" onclick="this.form.userfile.disabled=false;this.form.spimg.disabled=true;"></td>
<td><input name="userfile" type="file" size="43" disabled></td>
</tr>
<tr align="center" class="contentground">
<td colspan="3"><input type="submit" name="Submit" value="<?=$LANG_CP_SP[CP_SP_SUBMIT_ADD]?>">
<input name="spsubmit" type="hidden" id="spsubmit" value="1"></td>
</tr>
</form>
</table>

</td>

</tr>
</table>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -