📄 memcp_editstore.tpl.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_TILTE_EDIT]?></td>
</tr>
<form action="index.php?action=memcp&type=editstoresubmit&submit" 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]?>(*)</td>
<td colspan="2"><input name="spname" type="text" id="spname" value="<?=$row[spname]?>" size="50" maxlength="50">
<input name="isdiscuss" type="checkbox" id="isdiscuss" value="1" <? if ($row[isdiscuss]){?>checked<?}?>> <?=$LANG_CP_SP[CP_SP_DISCUSS]?></td>
</tr>
<tr class="contentground">
<td><?=$LANG_CP_SP[CP_SP_KEYWORD]?> (*)</td>
<td colspan="2"><input name="keyword" type="text" id="keyword" value="<?=$row[keyword]?>" size="12" maxlength="12">
<?=$LANG_CP_SP[CP_SP_INFO_KEYWORD]?></td>
</tr>
<tr class="contentground">
<td><?=$LANG_CP_SP[CP_SP_CLASS]?> <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></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]?> (*)</td>
<td colspan="2"><select name="bid" id="bid">
<option value="0" <?=CP_SP_MADE_SELECT0?>><?=$LANG_CP_SP[CP_SP_MADE_COMMON]?></option>
<option value="1" <?=CP_SP_MADE_SELECT1?>><?=$LANG_CP_SP[CP_SP_MADE_COMMEND]?></option>
</select></td>
</tr>
<tr class="contentground">
<td><?=$LANG_CP_SP[CP_SP_USERS]?> </td>
<td colspan="2"><input name="spuser" type="text" id="spuser" value="<?=$row[spuser]?>" size="50"></td>
</tr>
<tr class="contentground">
<td><?=$LANG_CP_SP[CP_SP_COUNT]?> (*)</td>
<td colspan="2"><input name="spcount" type="text" id="spcount" value="<?=$row[spcount]?>" 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" value="<?=$row[spsize]?>" size="40"></td>
</tr>
<tr class="contentground">
<td><?=$LANG_CP_SP[CP_SP_PRICES]?> (*)</td>
<td colspan="2"><input name="price_market" type="text" id="price_market" value="<?=$row[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]?> (*)</td>
<td colspan="2"><input name="price_member" type="text" id="price_member" value="<?=$row[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]?> (*)</td>
<td colspan="2"><input name="price_vip" type="text" id="price_vip" value="<?=$row[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]?> (*)</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"><?=$row[spcontext]?></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" value="<?=$row[spimg]?>" size="48">
<input name="deleteimg" type="hidden" id="deleteimg" value="<?=$row[spimg]?>"></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_EDIT]?>"> <input name="spsubmit" type="hidden" id="spsubmit" value="1">
<input name="page" type="hidden" id="page" value="<?=$page?>">
<input name="spid" type="hidden" id="spid" value="<?=$row[sid]?>"> <input type="button" name="Submit" value="<?=$LANG_CP_SP[CP_SP_SUBMIT_EDIT_NO]?>" onClick="javascript:history.go(-1)"></td>
</tr>
</form>
</table>
</td>
</tr>
</table>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -