录入表单模板 <SCRIPT LANGUAGE = JavaScript> <!--
var s=["province","city","area"] function setup() { for(i=0;i<s.length-1;i++) document.getElementById(s[i]).onchange=new Function("change("+(i+1)+")"); change(0); } function show(){ document.add.cpcate.value= document.getElementById('province').options[document.getElementById('province').selectedIndex].value + "-" + document.getElementById('city').options[document.getElementById('city').selectedIndex].value + "-" + document.getElementById('area').options[document.getElementById('area').selectedIndex].value; } //--> </SCRIPT> <script language="javascript" src="http://127.0.0.1/PCASClass.js"></script> <table width='100%' align=center cellpadding=3 cellspacing=1 bgcolor='#DBEAF5'> <tr><td width='16%' height=25 bgcolor='ffffff'>标题</td><td bgcolor='ffffff'>[!--title--]</td></tr> <tr><td width='16%' height=25 bgcolor='ffffff'>特殊属性</td><td bgcolor='ffffff'>[!--special.field--]</td></tr> <tr><td width='16%' height=25 bgcolor='ffffff'>产品名称</td><td bgcolor='ffffff'>[!--cpname--]</td></tr><tr><td width='16%' height=25 bgcolor='ffffff'>CAS NO</td><td bgcolor='ffffff'>[!--cpCAS--]</td></tr> <tr><td width='16%' height=25 bgcolor='ffffff'>产品规格</td><td bgcolor='ffffff'>[!--cpguige--]</td></tr> <tr><td width='16%' height=25 bgcolor='ffffff'>产品说明</td><td bgcolor='ffffff'>[!--cpmain--]</td></tr> <tr><td width='16%' height=25 bgcolor='ffffff'>地区分类</td><td bgcolor='ffffff'> <fieldset style="padding:5px;"> <legend>省市区选择</legend> 请依次点选: <select name="province"></select> <select name="city"></select> <select name="area" onchange="show();"></select><br> </fieldset> <script language="javascript" defer>
new PCAS("province","city","area","请选择省","请选择市","请选择区县"); new PCAS("province1","city1","area1","吉林省","吉林市","龙潭区"); new PCAS("province2","city2","area2","江苏省","苏州市","沧浪区");
new PCAS("province3","city3","area3"); new PCAS("province4","city4","area4","江苏省"); new PCAS("province5","city5","area5","江苏省","苏州市"); new PCAS("province6","city6","area6","江苏省","苏州市","沧浪区"); </script> </td></tr></table>
<table width=100% align=center cellpadding=3 cellspacing=1 bgcolor=#DBEAF5> <tr><td width='16%' height=25 bgcolor='ffffff'>标题</td><td bgcolor='ffffff'>[!--title--]</td></tr> <tr><td width='16%' height=25 bgcolor='ffffff'>标题图片</td><td bgcolor='ffffff'>[!--titlepic--]</td></tr> <tr><td width='16%' height=25 bgcolor='ffffff'>产品名称</td><td bgcolor='ffffff'>[!--cpname--]</td></tr> <tr><td width='16%' height=25 bgcolor='ffffff'>CAS NO</td><td bgcolor='ffffff'>[!--cpCAS--]</td></tr> <tr><td width='16%' height=25 bgcolor='ffffff'>产品规格</td><td bgcolor='ffffff'>[!--cpguige--]</td></tr> <tr><td width='16%' height=25 bgcolor='ffffff'>产品说明</td><td bgcolor='ffffff'>[!--cpmain--]</td></tr> <tr><td width='16%' height=25 bgcolor='ffffff'>地区分类</td><td bgcolor='ffffff'> <input name="cpcate" type="text" id="cpcate" size=60 value="<?=htmlspecialchars(stripSlashes($r[cpcate]))?>"> </td></tr></table>
都按照要求修改成我自己的对应的名称了 为什么在添加信息的时候 内容是空 无法选择
|