hi folks
i have this page , how can i put the table at the left side of the explanation of the
page i dont want to put it on top of the page but rather wanna save some apce on the
page
this is the code for the page . i wrte this javascript to clear default values which
doesn't seem to be woring right do u know what is wrong?
function clearText(thefield){
if (document.thefield.defaultValue==document.thefield.value)
thefield.value = ""
}
htp.p('<tr>');
htp.p('<table border=1 background="/images/dude.jpg">');
htp.p('<td align=right> This <I><b>interface</I></b> is supposed to help you
find<I><b> Training Information.<br></I></b>
eg.To find <I><b>Loactions</I></b> for a particular
<I><b>Service</I></b>,<br>select a <I><b>Service Code</I></b> from the drop
down
menu<br>
and click the <I><b>Query button</I></b>.
Use this interface to find all <I><b>Schools</I></b> in a particular
<I><b>Location</I></b>.<br>
or find all <I><b>Courses</I></b> in a particular
<I><b>School.</I></b><br>
Select a record to <I><b> Edit,Add or View the Details</I></b> by using the
respective buttons.</td>');
htp.p('<FORM NAME="query_form" Action="trrms.app_course_info.mainpg"
method="POST">');
htp.p('<td ><table border=1>');
htp.p('<tr>');
htp.p('<td align=right><font size=-1> Service Code</font></td>');
DECLARE
CURSOR c_servs_code IS
SELECT service_code
FROM services
ORDER BY service_code ;
BEGIN
htp.p('<td align=right>');
htp.p('<select name="in_service_code" size="1">');
FOR v_servs_code IN c_servs_code LOOP
IF (v_servs_code.service_code=in_service_code) THEN
htp.p('<option selected value="' ||v_servs_code.service_code|| '">'
||v_servs_code.service_code|| '</option>');
ELSE
htp.p('<option value="'||v_servs_code.service_code||'">'
||v_servs_code.service_code||'</option>');
END IF;
END LOOP;
htp.p('</select>');
htp.p('</td>');
EXCEPTION
WHEN OTHERS THEN
DBMS_OUTPUT.PUT_LINE('...' ||SQLERRM);
htp.p('</tr><td><font color=red>ERROR:');
htp.p('</font><br></td>');
END;
htp.p('<tr>');
htp.p( '<td align=right><font size=-1>Location Code</font> </td>');
htp.p( '<td align=right><input type=text name=in_location_code
value="'||in_location_code||'" size=5 maxlength=2
onBlur="chkinvalidchr(this.value)?null:this.focus();"></td>');
htp.p('</tr>');
htp.p('<tr>');
htp.p( '<td align=right><font size=-1>School Code</font></td>');
htp.p( '<td align=right><input type=text name=in_school_code
value="'||in_school_code||'" size=5 maxlength=1
onBlur="chkinvalidchr(this.value)?null:this.focus();"></td>');
htp.p('</tr>');
htp.p('<tr>');
htp.p( '<td align=right><font size=-1> Service School<br> Code</font></td>');
htp.p( '<td align=right><input type=text name=in_service_school_code
value="'||in_service_school_code||'" size=5 maxlength=3
onBlur="chkinvalidchr(this.value)?null:this.focus();"></td>');
htp.p('</tr>');
htp.p('<input type=submit value=Query onclick=" return goFind();"><input
type=reset><input type=button value=clear onClick="clearText(this.value)">');
htp.p('</table></tr><p>');
htp.p('</table></tr></td></FORM></td>');