This topic is locked

Placing a the submit button and reset button at the top of Add/Edit sc

5/8/2007 4:09:29 PM
ASPRunnerPro General questions
E
evileyez3 author

I was wondering how I would be able to add the Submit button and the Reset button to the top of the edit and add pages. The button is listed at the bottom, but it would be more user friendly to have the buttons above the record in this modes. I have been able to move the code up above the record displayed, but it doesn't save the changes when i click submit. Also when I add it the bottom submit and reset buttons no longer work. What am I doing wrong? I've provided the code, is someone can just tell me where to insert it. Thanks:
[codebox]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<HTML><HEAD><TITLE>Carrier Information</TITLE>

<META http-equiv=Content-Type content="text/html; charset=windows-1252"><LINK

href="include/style.css" type=text/css rel=stylesheet>{$includes}

<META content="MSHTML 6.00.2900.3059" name=GENERATOR></HEAD>

<BODY bgColor=white {$bodyonload}>

<FORM name=editform action=BidDemo_edit.asp method=post

encType=multipart/form-data {$onsubmit}>{include_if_exists file="include/header.asp"}

<H1>Carrier Information, Edit record [ BidDemoKey: {$show_key1}] </H1>{doevent name="EditOnLoad"} {$message}

<DIV align=left>

<HR width=300 noShade SIZE=1>

</DIV>&nbsp;&nbsp;&nbsp;<A href="BidDemo_list.asp?a=return">Back to

list</A><BR><BR>

<TABLE cellPadding=2><input type=hidden name=editid1 value="{$key1}">

<TBODY>

<TR></TR>

<TBODY>

<TR>

<TD class=shade width=124>Carrier</TD>

<TD width=226>{build_edit_control field="RCSCarrierMasterKey" value=$value_RCSCarrierMasterKey mode="edit"} </TD></TR>

<TR>

<TD class=shade width=124>Patient Type</TD>

<TD width=226>{build_edit_control field="PatientTypeKey" value=$value_PatientTypeKey mode="edit"} </TD></TR>

<TR>

<TD class=shade width=124>0 - 30 Day Amount</TD>

<TD width=226>{build_edit_control field="AcctBal30" value=$value_AcctBal30 mode="edit"} </TD></TR>

<TR>

<TD class=shade width=124>0 - 30 Day %</TD>

<TD width=226>{build_edit_control field="RecPct30" value=$value_RecPct30 mode="edit"} </TD></TR>

<TR>

<TD class=shade width=124>0 - 30 Day Recovery</TD>

<TD width=226>{build_edit_control field="RecBalance30" value=$value_RecBalance30 mode="edit"} </TD></TR>

<TR>

<TD class=shade width=124>30 - 60 Day Amount</TD>

<TD width=226>{build_edit_control field="AcctBal60" value=$value_AcctBal60 mode="edit"} </TD></TR>

<TR>

<TD class=shade width=124>30 - 60 Day %</TD>

<TD width=226>{build_edit_control field="RecPct60Day" value=$value_RecPct60Day mode="edit"} </TD></TR>

<TR>

<TD class=shade width=124>30 - 60 Day Recovery</TD>

<TD width=226>{build_edit_control field="RecBalance60" value=$value_RecBalance60 mode="edit"} </TD></TR>

<TR>

<TD class=shade width=124>60 - 90 Day Amount</TD>

<TD width=226>{build_edit_control field="AcctBal90" value=$value_AcctBal90 mode="edit"} </TD></TR>

<TR>

<TD class=shade width=124>60 - 90 Day %</TD>

<TD width=226>{build_edit_control field="RecPct90Day" value=$value_RecPct90Day mode="edit"} </TD></TR>

<TR>

<TD class=shade width=124>60 - 90 Day Recovery</TD>

<TD width=226>{build_edit_control field="RecBalance90" value=$value_RecBalance90 mode="edit"} </TD></TR>

<TR>

<TD class=shade width=124>90 - 120 Day Amount</TD>

<TD width=226>{build_edit_control field="AcctBal120" value=$value_AcctBal120 mode="edit"} </TD></TR>

<TR>

<TD class=shade width=124>90 - 120 Day %</TD>

<TD width=226>{build_edit_control field="RecPct120Day" value=$value_RecPct120Day mode="edit"} </TD></TR>

<TR>

<TD class=shade width=124>90 - 120 Day Recovery</TD>

<TD width=226>{build_edit_control field="RecBalance120" value=$value_RecBalance120 mode="edit"} </TD></TR>

<TR>

<TD class=shade width=124>120 - 150 Day Amount</TD>

<TD width=226>{build_edit_control field="AcctBal150" value=$value_AcctBal150 mode="edit"} </TD></TR>

<TR>

<TD class=shade width=124>120 - 150 Day %</TD>

<TD width=226>{build_edit_control field="RecPct150Day" value=$value_RecPct150Day mode="edit"} </TD></TR>

<TR>

<TD class=shade width=124>120 - 150 Day Recovery</TD>

<TD width=226>{build_edit_control field="RecBalance150" value=$value_RecBalance150 mode="edit"} </TD></TR>

<TR>

<TD class=shade width=124>150 - 180 Day Amount</TD>

<TD width=226>{build_edit_control field="AcctBal180" value=$value_AcctBal180 mode="edit"} </TD></TR>

<TR>

<TD class=shade width=124>150 - 180 Day %</TD>

<TD width=226>{build_edit_control field="RecPct180Day" value=$value_RecPct180Day mode="edit"} </TD></TR>

<TR>

<TD class=shade width=124>150 - 180 Day Recovery</TD>

<TD width=226>{build_edit_control field="RecBalance180" value=$value_RecBalance180 mode="edit"} </TD></TR>

<TR>

<TD class=shade width=124>180 - 360 Day Amount</TD>

<TD width=226>{build_edit_control field="AcctBal360" value=$value_AcctBal360 mode="edit"} </TD></TR>

<TR>

<TD class=shade width=124>180 - 360 Day %</TD>

<TD width=226>{build_edit_control field="RecPct360Day" value=$value_RecPct360Day mode="edit"} </TD></TR>

<TR>

<TD class=shade width=124>180 - 360 Day Recovery</TD>

<TD width=226>{build_edit_control field="RecBalance360" value=$value_RecBalance360 mode="edit"} </TD></TR>

<TR>

<TD class=shade width=124>360 + Day Amount</TD>

<TD width=226>{build_edit_control field="AcctBal360Plus" value=$value_AcctBal360Plus mode="edit"} </TD></TR>

<TR>

<TD class=shade width=124>360 + Day %</TD>

<TD width=226>{build_edit_control field="RecPct360PlusDay" value=$value_RecPct360PlusDay mode="edit"} </TD></TR>

<TR>

<TD class=shade width=124>360 + Day Recovery</TD>

<TD width=226>{build_edit_control field="RecBalance360Plus" value=$value_RecBalance360Plus mode="edit"} </TD></TR>

<TR height=50>

<TD align=middle width=352 colSpan=2><INPUT class=button id=submit1 type=submit value=Save name=submit1>

<INPUT class=button type=reset value=Reset> <input type=hidden name="a" value="edited"></TD></TR></FORM><!-- legend -->

<TR height=50>

<TD align=left width=352 colSpan=2>

<HR width=300 noShade SIZE=1>

<BR><IMG src="images/icon_required.gif"> - Required field

</TD></TR></TBODY></TABLE>{include_if_exists file="include/footer.asp"} {$linkdata}<script>SetToFirstControl();</script></BODY></HTML>[/codebox]

Sergey Kornilov admin 5/8/2007

If I drag-n-drop Save/Reset buttons to the top of Edit page it just works.