將輸入基本資料的地方增加一些提示說明。
開啟addme.php
尋找
1 2 3 4 5 6 7 8 | echo '<tr><td align="right"><b>姓名:</b></td>'; echo '<td align="left"><input name="name" value="" type="text" size="10" maxlength="20">'; echo '<tr><td align="right"><b>學校:</b></td>'; echo '<td align="left">'.makeFormFieldkms($xoopsDB->prefix("olt_school"), "school", "Id", "name", "list", "style=\"width:90px\"", "", "true","1","").'<!/td>'; echo '其它: <input name="school2" value="" type="text" size="10" maxlength="20">'; echo '<tr><td align="right"><b>年級:</b></td>'; echo '<td align="left"><input name="class" value="1" type="text" size="10" maxlength="20">'; |
取代為
1 2 3 4 5 6 7 8 9 10 11 | echo '<tr><td align="right"><b>姓名:</b></td>'; echo '<td align="left"><input name="name" value="" type="text" size="10" maxlength="20"><!/td>'; echo '<font size="4">【<font color="#FF0000">必填</font>】</font>'; echo '<tr><td align="right"><b>考試類別:</b></td>'; echo '<td align="left">'.makeFormFieldkms($xoopsDB->prefix("olt_school"), "school", "Id", "name", "list", "style=\"width:95px\"", "", "true","1","").'<!/td>'; //echo '其它: <input name="school2" value="" type="text" size="10" maxlength="20">'; echo '<font size="4">【<font color="#FF0000">ps.一定要選,否則會出現無題庫</font>】</font>'; echo '<tr><td align="right"><b>選項:</b></td>'; echo '<td align="left"><input name="class" value="1" type="text" size="10" maxlength="20"><!/td>'; echo '<font size="4">【<font color="#0000FF">ps.選項請填寫</font><font color="#FF0000">1</font>】</font>'; |
開啟editme.php
1 2 3 4 5 6 7 8 9 | echo '<tr><td align="right"><b>姓名:</b></td>'; echo '<td align="left"><input name="name" value="'.$uinfo[name].'" type="text" size="10" maxlength="20">'; echo '<tr><td align="right"><b>學校:</b></td>'; echo '<td align="left">'.makeFormFieldkms($xoopsDB->prefix("olt_school"), "school", "Id", "name", "list", "style=\"width:90px\"", "", "true",$uinfo[school],"").'<!/td>'; echo '其它: <input name="school2" value="" type="text" size="10" maxlength="20">'; echo '<tr><td align="right"><b>年級:</b></td>'; echo '<td align="left"><input name="class" value="'.$uinfo['class'].'" type="text" size="10" maxlength="20">'; |
取代為
1 2 3 4 5 6 7 8 9 10 11 | echo '<tr><td align="right"><b>姓名:</b></td>'; echo '<td align="left"><input name="name" value="'.$uinfo[name].'" type="text" size="10" maxlength="20"><!/td>'; echo '<font size="4">【<font color="#FF0000">必填</font>】</font>'; echo '<tr><td align="right"><b>考試類別:</b></td>'; echo '<td align="left">'.makeFormFieldkms($xoopsDB->prefix("olt_school"), "school", "Id", "name", "list", "style=\"width:95px\"", "", "true",$uinfo[school],"").'<!/td>'; //echo '其它: <input name="school2" value="" type="text" size="10" maxlength="20">'; echo '<font size="4">【<font color="#FF0000">ps.一定要選,否則會出現無題庫</font>】</font>'; echo '<tr><td align="right"><b>選項:</b></td>'; echo '<td align="left"><input name="class" value="'.$uinfo['class'].'" type="text" size="10" maxlength="20"><!/td>'; echo '<font size="4">【<font color="#0000FF">ps.選項請填寫</font><font color="#FF0000">1</font>】</font>'; |