I developed a dynamic method to show the submit button at different place in
the page depends if the page have been submitted or not. If not, the button is
at the bottom of the page and if the page has been submitted, the submit button
will appear in the middle with a confirmation message. Well, as I though I was
logic with that, I can see that the submit button is always shown now in the
middle of the page - whanever I need or not to show the confirmation message.
But I can see that the system do not proceed the CFIF vConfirmationFlag is true
because the alignment of the submit button is not centered but align to the
left of the cell. What I do not understand is why the system go inside the CFIF
if the vConfirmationFlag is false!!!

Anybody have a clue about this?


<cfform name="form1" id="form1"
action="#cgi.SCRIPT_NAME#?meetingid=#url.meetingid #" method="post"
style="margin=0">
<table cellpadding="15">
<cfif qGetAllBudgetContribution.RecordCount gt 0>
<tr>
<td colspan="4">
<cfoutput>
<table bgcolor="white" align="center" cellspacing="1" cellpadding="3"
width="100%" style="border-bottom:##82957A 1px solid;border-top:##82957A 1px
solid;border-left:##82957A 1px solid;border-right:##82957A 1px solid;">
<tr>
<td align="center" valign="middle" bgcolor="##666666"
colspan="4"><font color="white"><b>Meeting Budget Summary</b></font></td>
</tr>
<tr bgcolor="##C7D0B7">
<td align="right">&nbsp;</td>
<td align="center" valign="middle"><b>Authorised Budget</b></td>
<td align="center" valign="middle"><b>Expenses</b></td>
<td align="center" valign="middle"><b>Remaining</b></td>
</tr>
<tr bgcolor="##E6E3E3">
<td align="right" valign="middle"><b>Logistic : </b></td>
<td align="right"
valign="middle">#DollarFormat(StructFind(vAuthoris edBudget, "Logistics"))#
CAD</td>
<td align="right"
valign="middle">#DollarFormat(fGetMeetingTotalExpe nses(url.meetingid, 1))#
CAD</td>
<td align="right"
valign="middle">#DollarFormat(StructFind(vAuthoris edBudget,
"Logistics")-fGetMeetingTotalExpenses(url.meetingid, 1))# CAD</td>
</tr>
<tr bgcolor="whitesmoke">
<td align="right" valign="middle"><b>Financial Assistance : </b></td>
<td align="right"
valign="middle">#DollarFormat(StructFind(vAuthoris edBudget, "FA"))# CAD</td>
<td align="right"
valign="middle">#DollarFormat(fGetMeetingTotalExpe nses(url.meetingid, 2))#
CAD</td>
<td align="right"
valign="middle">#DollarFormat(StructFind(vAuthoris edBudget,
"FA")-fGetMeetingTotalExpenses(url.meetingid, 2))# CAD</td>
</tr>
<tr bgcolor="##E6E3E3">
<td align="right" valign="middle"><b>Travel Authorities : </b></td>
<td align="right"
valign="middle">#DollarFormat(StructFind(vAuthoris edBudget, "TA"))# CAD</td>
<td align="right"
valign="middle">#DollarFormat(fGetMeetingTotalExpe nses(url.meetingid, 3))#
CAD</td>
<td align="right"
valign="middle">#DollarFormat(StructFind(vAuthoris edBudget,
"TA")-fGetMeetingTotalExpenses(url.meetingid, 3))# CAD</td>
</tr>
<tr bgcolor="##C7D0B7">
<td align="right" valign="middle"><b>Total : </b></td>
<td align="right"
valign="middle"><b>#DollarFormat(StructFind(vAutho risedBudget,
"Logistics")+StructFind(vAuthorisedBudget, "FA")+StructFind(vAuthorisedBudget,
"TA"))# CAD</b></td>
<td align="right"
valign="middle"><b>#DollarFormat(fGetMeetingTotalE xpenses(url.meetingid,
1)+fGetMeetingTotalExpenses(url.meetingid,
2)+fGetMeetingTotalExpenses(url.meetingid, 3))# CAD</b></td>
<td align="right"
valign="middle"><b>#DollarFormat((StructFind(vAuth orisedBudget,
"Logistics")+StructFind(vAuthorisedBudget, "FA")+StructFind(vAuthorisedBudget,
"TA"))-(fGetMeetingTotalExpenses(url.meetingid,
1)+fGetMeetingTotalExpenses(url.meetingid,
2)+fGetMeetingTotalExpenses(url.meetingid, 3)))# CAD</b></td>
</tr>
<cfif (StructKeyExists(qGetAllBudgetContribution, 'PendingBudgetType1')
and IsNumeric(qGetAllBudgetContribution.PendingBudgetT ype1)) OR
(StructKeyExists(qGetAllBudgetContribution, 'PendingBudgetType2') and
IsNumeric(qGetAllBudgetContribution.PendingBudgetT ype2)) OR
(StructKeyExists(qGetAllBudgetContribution, 'PendingBudgetType3') and
IsNumeric(qGetAllBudgetContribution.PendingBudgetT ype3))>
<tr>
<td colspan="4"><hr></td>
</tr>
<tr bgcolor="##E9741B">
<td colspan="4" align="Center"><b>Replanning Budget</b></td>
</tr>
<tr bgcolor="##C7D0B7">
<td align="right">&nbsp;</td>
<td align="center" valign="middle"><b>Budget to Re-Authorise</b></td>
<td align="center" valign="middle"><b>Expenses</b></td>
<td align="center" valign="middle"><b>Remaining</b></td>
</tr>
<tr bgcolor="##E6E3E3">
<td align="right" valign="middle"><b>Logistic : </b></td>
<td align="right"
valign="middle">#DollarFormat(qGetAllBudgetContrib ution.PendingBudgetType1)#
CAD</td>
<td align="right"
valign="middle">#DollarFormat(vLogistic.TotalExpen ses)# CAD</td>
<td align="right"
valign="middle">#DollarFormat(qGetAllBudgetContrib ution.PendingBudgetType1-vLogi
stic.TotalExpenses)# CAD</td>
</tr>
<tr bgcolor="whitesmoke">
<td align="right" valign="middle"><b>Financial Assistance : </b></td>
<td align="right"
valign="middle">#DollarFormat(qGetAllBudgetContrib ution.PendingBudgetType2)#
CAD</td>
<td align="right"
valign="middle">#DollarFormat(vFinancialHelp.Total Expenses)# CAD</td>
<td align="right"
valign="middle">#DollarFormat(qGetAllBudgetContrib ution.PendingBudgetType2-vFina
ncialHelp.TotalExpenses)# CAD</td>
</tr>
<tr bgcolor="##E6E3E3">
<td align="right" valign="middle"><b>Travel Authority (Staff) :
</b></td>
<td align="right"
valign="middle">#DollarFormat(qGetAllBudgetContrib ution.PendingBudgetType3)#
CAD</td>
<td align="right"
valign="middle">#DollarFormat(vTravelAuthority.Tot alExpenses)# CAD</td>
<td align="right"
valign="middle">#DollarFormat(qGetAllBudgetContrib ution.PendingBudgetType3-vTrav
elAuthority.TotalExpenses)# CAD</td>
</tr>
<tr bgcolor="##C7D0B7">
<td align="right" valign="middle"><b>Total : </b></td>
<td align="right"
valign="middle"><b>#DollarFormat(qGetAllBudgetCont ribution.PendingBudgetType1+qG
etAllBudgetContribution.PendingBudgetType2+qGetAll BudgetContribution.PendingBudg
etType3)# CAD</b></td>
<td align="right"
valign="middle"><b>#DollarFormat(vLogistic.TotalEx penses+vFinancialHelp.TotalExp
enses+vTravelAuthority.TotalExpenses)# CAD</b></td>
<td align="right"
valign="middle"><b>#DollarFormat(((qGetAllBudgetCo ntribution.PendingBudgetType1+
qGetAllBudgetContribution.PendingBudgetType2+qGetA llBudgetContribution.PendingBu
dgetType3))-(vLogistic.TotalExpenses+vFinancialHelp.TotalExpen ses+vTravelAuthori
ty.TotalExpenses))# CAD</b></td>
</tr>
</cfif>
</table>
</cfoutput>
</td>
</tr>
</cfif>
<tr>
<td>
<table align="left" cellspacing=0 cellpadding=0 border=0 width="600">
<tr>
<td width="8"><img
src="<cfoutput>#Application.appRoot#</cfoutput>img/left-corner.gif" width="8"
height="18" border="0"></td>
<td width="100%" align="left" bgcolor="#E9741B" class="white"
height="18">
<b><cfif StructKeyExists(session, 'meetingreauthorisation') and
session.meetingreauthorisation>MODIFY<cfelse>ADD</cfif> BUDGET CONTRIBUTION -
STEP 1</b>
</td>
<td align=right width="8"><img
src="<cfoutput>#Application.appRoot#</cfoutput>img/right-corner.gif" width="8"
height="18" alt="" border="0"></td>
</tr>
<tr>
<td colspan="3">
<table bgcolor="F3F3EB" align="center" cellpadding=5 cellspacing=0
border=0 width="100%" style="border-bottom:#E9741B 1px
solid;border-left:#E9741B 1px solid;border-right:#E9741B 1px solid;">
<tr>
<td colspan="8" height="4" bgcolor="C1C1A1"></td>
</tr>
<tr>
<td colspan="8" height="1" bgcolor="white"></td>
</tr>
<tr bgcolor="F3F3EB">
<td valign="top" width="100%"
background="<cfoutput>#Application.appRoot#</cfoutput>img/bg-type.gif"
bgcolor="CED4DC" colspan="3">
<table width="100%" cellspacing="0" cellpadding="3" border="1">
<cfif vErrMessage neq "">
<tr>
<td valign="middle" align="center" colspan="4">
<font color="red"><cfoutput>#vErrMessage#</cfoutput></font>
</td>
</tr>
</cfif>
<cfif IsDefined("vConfirmationFlag") and vConfirmationFlag is true>
<tr bgcolor="#E9741B">
<td colspan="4"
align="center"><cfoutput><strong>#vConfirmationMes sage#</strong></cfoutput>&nbsp
;<p align="center"><cfselect name="fConfirmation" required="yes" message="You
need to respond to the confirmation message"><option value="true"
selected>Yes</option><option value="false">No</option></cfselect></p></td>
</tr>
<tr bgcolor="#E9741B">
<td align="center" colspan="4"><cfinput type="submit"
name="fSubmit2" value="Submit" style="text-align:center;"></td>
</tr>
</cfif>
<tr>
<td valign="top" colspan="4" align="center">
<b>Modify budget contribution for the meeting :
<br><cfoutput><i>#qGetMeetingInfos.MeetingName#</i>
(###url.MeetingID#)</cfoutput></b>
</td>
</tr>
<tr bgcolor="silver">
<td align="center" valign="middle"><b>Type
of<br>Expenditures</b></td>
<td align="Center"