用PHP和MSSQL开发的sspace商城系统
源代码在线查看: memcp_editstore.tpl.php
function checkdata(theform)
{
if (theform.spname.value == "" || theform.spname.value.length > "50")
{
alert("");
theform.spname.focus();
return false;
}
if (theform.keyword.value == "" || theform.keyword.value.length > "12")
{
alert("");
theform.keyword.focus();
return false;
}
if (theform.cid.value == "0" || isNaN(theform.cid.value) )
{
alert("");
theform.cid.focus();
return false;
}
if (theform.spcount.value == "" || isNaN(theform.spcount.value) )
{
alert("");
theform.spcount.focus();
return false;
}
if (theform.price_market.value == "" || isNaN(theform.price_market.value) )
{
alert("");
theform.price_market.focus();
return false;
}
if (theform.price_member.value == "" || isNaN(theform.price_member.value) )
{
alert("");
theform.price_member.focus();
return false;
}
if (theform.price_vip.value == "" || isNaN(theform.price_vip.value) )
{
alert("");
theform.price_vip.focus();
return false;
}
if (theform.context.value == "")
{
alert("");
theform.context.focus();
return false;
}
else
{
theform.Submit.disabled = true;
return true;
}
}
(*)
>
(*)
(*)
(*)
(*)
(*)
(*)
(*)
| | | | | |
| | | | |