Link to home
Create AccountLog in
Avatar of larissap
larissap

asked on

Need 2nd pair of eyes to look over code

I need a second pair of eyes to look over code that has html, css and cold fusion in it.

http://www.erllc.us/newsite/systems/qwikrisk_copy.cfm

I have cut and paste existing cold fusion code and put it into a new design. I spent a lot of time making sure that it was functional. And it is... However, I have one issue. The footer div (#footer) is not clearing both the sidebar div and main div as it is supposed to. And it looks ugly.

See http://www.erllc.us/newsite/systems/index.html  to see how it should clear. I'm pretty sure that it's because I didn't properly close a div or some minor tweak. But my eyes can't see exactly where the problem lies.  That's where I need the 2nd pair of eyes.

@charset "UTF-8";
/* CSS Document */

body{background-color:#ffffff;font-family: Arial, Helvetica, sans-serif;margin:0;padding:0;}
h2{color:#00747a;text-align:center;}
h3{color:#00747a;font-size:14px;}


a img {border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:none;}
a {outline:none}

#allcontent{background-color:#00747a;width:1050px;border: 20px solid #00747a;margin-left:auto; margin-right:auto;min-width:250px; box-shadow: 3px 3px 19px rgba(0,0,0,.8); -webkit-box-shadow: 3px 3px 19px rgba(0,0,0,.8); -moz-box-shadow: 3px 3px 19px rgba(0,0,0,.8);}

#logo{background-color:#ffffff;width:1050px;height:100px;margin-top:0;padding:0;display:block;vertical-align:bottom;}

#navbar{background-color:#ffffff;width:1050px;height:16px;font-size:14px;font-family:Arial, Helvetica, sans-serif;border-bottom:10px solid #00747a;}

#navbar a
{color: #00747a;background: #ffffff;text-decoration: none;padding-left:15px;}

#navbar a span
{padding-right:15px;}

#navbar a, #navigation a span
{display: block;float: left;}

#navbar a:hover, #navbar hover a
{color:#ffffff; background:#00747a;}

#navbar ul
{list-style: none;padding: 0;margin: 0;}

#navbar li {float: left;margin: 0;}


#sidebar {font-family:Arial, Helvetica, sans-serif; ; font-size:13px;  font-weight:bold; border-right:1px solid #00747a; padding: 0; margin-bottom:1em; color:#ffffff;width:225px;float:left;}

#sidebar ul {list-style:none; margin:0; padding:0;}

#sidebar ul li{margin:0; border-top: 1px solid #00747a;} 

#sidebar ul li a:link, #sidebar ul li a:visited {
display:block; padding:4px 4px 4px 0.5em; 
border-left: 10px solid #00747a; 
border-right: 1px solid #00747a; 
border-bottom: 1px solid #00747a; 
color:#ffffff;
text-decoration:none; 
background-color:#00747a;}



#sidebar ul li a:hover, #sidebar ul ul li a:hover, #sidebar ul li:hover a, #sidebar ul ul li:hover a
{border-left: 10px solid #ffffff; 
border-right:1px solid #ffffff;
border-bottom:1px solid #ffffff;
background:#ffffff url("../images/hover.gif") left center no-repeat;;
color:#00747a;} 

#sidebar .indent{margin-left:20px;} 

#sidebar .indent a:hover {margin-left:20px;border-left: 10px solid #ffffff; 
border-right:1px solid #ffffff;border-bottom:1px solid #ffffff;
background:#ffffff url("../images/hover.gif") left center no-repeat;
color:#00747a;}


#main{margin-top:0px;margin-right:0px;margin-bottom:0px; margin-left:230px; background-color:#ffffff;font-size:12px;padding-top:20px; padding-bottom:5px;padding-right:5px;padding-left:5px;color:#000000;}
#main a:link{color:#024548;}
.superscript{vertical-align:super;}

#footer{clear:both;width:1050px;height:50px;background:#00747a;color:#ffffff;}


.centered{text-align:center;}
.blue {color:#00747a;}
.from{text-align:right;}
.tabledata{color:#00747a;margin-left:auto; margin-right:auto;}
.menu{text-align:left;}

Open in new window



<cfparam name="form.numitems" default=30>



<cfset likelihood = arraynew(2)>

<cfset likelihood[1][1] = 'Very Likely'>

<cfset likelihood[1][2] = 5 >

<cfset likelihood[2][1] = 'Likely'>

<cfset likelihood[2][2] = 4>

<cfset likelihood[3][1] = '50/50'>

<cfset likelihood[3][2] = 3 >

<cfset likelihood[4][1] = 'Unlikely'>

<cfset likelihood[4][2] = 2 >

<cfset likelihood[5][1] = 'Very Unlikely'>

<cfset likelihood[5][2] = 1>

<cfset likelihood[6][1] = 'Non-Credible'>

<cfset likelihood[6][2] = 0>

<cfset Consequence = arraynew(2)>

<cfset Consequence[1][1] = 'Crisis'>

<cfset Consequence[1][2] = 20 >

<cfset Consequence[2][1] = 'Critical'>

<cfset Consequence[2][2] = 14>

<cfset Consequence[3][1] = 'Significant'>

<cfset Consequence[3][2] = 8 >

<cfset Consequence[4][1] = 'Marginal'>

<cfset Consequence[4][2] = 4 >

<cfset Consequence[5][1] = 'Neglible'>

<cfset Consequence[5][2] = 1>



<cfset Benefit = arraynew(2)>

<cfset Benefit[1][1] = 'Outstanding'>

<cfset Benefit[1][2] = 20 >

<cfset Benefit[2][1] = 'Exceptional'>

<cfset Benefit[2][2] = 14>

<cfset Benefit[3][1] = 'Significant'>

<cfset Benefit[3][2] = 8 >

<cfset Benefit[4][1] = 'Marginal'>

<cfset Benefit[4][2] = 4 >

<cfset Benefit[5][1] = 'Neglible'>

<cfset Benefit[5][2] = 1>



<cfset handling = arraynew(1)>

<cfset handling[1] = 'Avoid'>

<cfset handling[2] = 'Transfer'>

<cfset handling[3] = 'Mitigate'>

<cfset handling[4] = 'Accept'>



<cfset handlingrisk = arraynew(1)>

<cfset handlingrisk[1] = 'Avoid'>

<cfset handlingrisk[2] = 'Transfer'>

<cfset handlingrisk[3] = 'Mitigate'>

<cfset handlingrisk[4] = 'Accept'>



<cfset handlingopp = arraynew(1)>

<cfset handlingopp[1] = 'Exploit'>

<cfset handlingopp[2] = 'Share'>

<cfset handlingopp[3] = 'Enhance'>

<cfset handlingopp[4] = 'Ignore'>









<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

<!-- TemplateBeginEditable name="doctitle" -->

<title>QwikRisk Assesment Tool ERLLC</title>

<!-- TemplateEndEditable -->

<!-- TemplateBeginEditable name="head" -->

<!-- TemplateEndEditable -->

<link href="../css/body.css" rel="stylesheet" type="text/css" />

<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">

	<meta http-equiv="Content-Language" content="en-US">

	<meta name="Copyright" content="(c)2008, Engineered Resources, LLC."/>

	<meta name="Keywords" content="Systems Engineering, Engineered Resources, Project Managment, Program Management, Project Planning, program execution, Process development, SBA, engineering services, engineering staff augmentation, qwik risk, risk assessment, erllc, construction support, process planning, engineering support, government support, construction project, project streamlining"/>

	<meta name="Description" content="Engineered Resources, ERLLC, has experience providing long and short-term Consulting Engineering and Construction Project Services emphasizing Engineering/Construction Contractor services and Systems Engineering"/>

	<meta name="revisit-after" content="15 days"/>

	<meta name="classification" content="Engineering"/>

	<meta http-equiv="reply-to" content="erllc@erllc.us"/>

	<meta name="language" content="English"/>

	<meta name="doc-type" content="Web Page"/>

	<meta name="doc-class" content="Completed"/>

	<meta name="doc-rights" content="Copywritten Work"/>

	<meta name="robots" content="ALL"/>

	<meta name="distribution" content="Global"/>

	<meta name="rating" content="Safe For Kids"/>

    <script type="text/javascript" language="JavaScript1.2" src="../js/stmenu.js"></script>







<script type="text/javascript">

<!--

function validateForm() 

{ 

	var formerror = 0;

	var errmsg = 'Save Error!\nThe following information is required to save information:\n\n';

	var fForm = document.qwikrisk;

	//if (fForm.name.value.length == 0 ) {

	//	formerror = 1;

	//	errmsg = errmsg + "A Name is missing.\n";

	//	}

	



	if (fForm.title.value.length == 0 ) {

		formerror = 1;

		errmsg = errmsg + "An Assessment Title is missing. \n";

		}

	

	if (fForm.email.value.length == 0 ) {

		formerror = 1;

		errmsg = errmsg + "Email is missing.\n";

		} 

		else

		{		

			var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i

			if (! filter.test(fForm.email.value))

				{		formerror = 1;

		            errmsg = errmsg + "Email is invalid.\n";

			    }

		}

		

	

	if (formerror == 1) {

		alert(errmsg);

		return false;

	} else {

		return true;

	}

}



function dwfaq_ToggleOMaticClass(){//v1.0

//Copyright © 2004 Angela C. Buraglia & DWfaq.com

//All Rights Reserved. Not for distribution. support@dwfaq.com

//Support Newsgroup: news://support.dwfaq.com/support

	var obj,cN,args=dwfaq_ToggleOMaticClass.arguments;document.MM_returnValue=(typeof(args[0].href)!='string')?true:false;

	for(var i=1;i<args.length-1;i+=2){obj=document.getElementById(args[i]);

		if(obj){cN = (typeof(obj.currentStyle)!='object')?'class':'className';

			if(!obj.dwfaq_OC){obj.dwfaq_OC=(obj.className=='')?true:obj.className;}

			if(obj.dwfaq_OC&&obj.className==args[i+1]){

				(obj.dwfaq_OC==true)?obj.className='':obj.className=obj.dwfaq_OC;}

			else{obj.className=args[i+1];}}}

}

function MM_goToURL() { //v3.0

  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;

  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");

}



function $(id) {

	return document.getElementById(id);

}



function resetOnClick(id) {

    var obj = $("likelihood"+id);

    getRiskOppLevelFromLikelihood(obj,id);

}



function $(id) {

    return document.getElementById(id);

}



eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)d[e(c)]=k[c]||e(c);k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('l f(a,i){2 b=$("M"+i);2 9=$("k"+i+"j");2 e=$("L"+i);2 d=e.t[e.s].r;2 c=a.t[a.s].r;2 7=q(d)*q(c);5(d!=-1&&c!=0){2 4="";2 3="";5(9.h==g){4="K";3=" J"}6{4="I";3=" H"}5(7<=p){4+="G";3="F"+3}6 5(7>p&&7<o){4+="E";3="D"+3}6 5(7>=o){4+="C";3="B"+3}b.m="<n A=\'"+4+"\'>"+3+"</n><z />"}6{b.m="&y;"}}l x(a,i){2 9=$("k"+i+"j");2 8=w;5(9.h==g){8=$("v"+i)}6{8=$("u"+i)}f(8,i)}',49,49,'||var|cText|cClass|if|else|overallScore|nObj|selTypeObj|obj|riskOutputObj|selValue|likelihoodObjValue|likelihoodObj|getRiskOppLevel|true|checked||_0|RiskOpp|function|innerHTML|span|40|12|parseInt|value|selectedIndex|options|benefit|consequence|null|getRiskOppLevelFromLikelihood|nbsp|br|class|High|high|Mod|mod|Low|low|Opportunity|opp|Risk|risk|likelihood|riskOutput'.split('|'),0,{}))



//Disable right mouse click Script

//By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive

//For full source code, visit http://www.dynamicdrive.com



var message="Function Disabled!";



///////////////////////////////////

function clickIE4(){

if (event.button==2){

alert(message);

return false;

}

}



function clickNS4(e){

if (document.layers||document.getElementById&&!document.all){

if (e.which==2||e.which==3){

alert(message);

return false;

}

}

}



if (document.layers){

document.captureEvents(Event.MOUSEDOWN);

document.onmousedown=clickNS4;

}

else if (document.all&&!document.getElementById){

document.onmousedown=clickIE4;

}



document.oncontextmenu=new Function("alert(message);return false")



// --> 

</script>



</head>



<body>

<div id="allcontent">

<div id="logo"><a href="http://www.erllc.us"><img src="../images/logo.png" width="1050" height="100" alt="Engineered Resources"/></a></div>



<div id="navbar">

<ul>

<li><a href="../about/index.html"><span>About Us</span></a></li>

<li><a href="../employment/index.html"><span>Employment</span></a></li>

<li><a href="../contact/index.html"><span>Contact Us</span></a></li>

<li><a href="../environmental/index.html"><span>Environmental Services</span></a></li>

<li><a href="../systems/index.html"><span>Systems &amp; Resources Integration</span></a></li>

<li><a href="../construction/index.html"><span>Construction &amp;  Engineering Support</span></a></li>

<li><a href="../index.html"><span>Home</span></a></li>

</ul></div>



<div id="sidebar">

 <ul class="menu"><li><a href="index.html">Systems Engineering</a><ul>

    <li class="indent"><a href="successstaging.html">Success Staging (S<span class="superscript">2)</span></a></li>

    <li class="indent"><a href="tools.html">Tools </a></li>

    <li class="indent"><a href="qwikrisk.cfm">QWIK Risk</a></li>

    <li class="indent"><a href="training.html">Systems Engineering Training&copy;</a></li>

    <li class="indent"><a href="riskmanagement.html">Risk Management</a></li>

  </ul></li></ul>

</div>

<div id="main">

<div id="nonfooter">



	<div id="headerwrapper"> 

  <div id="nav"><cfinclude template="../systems/menu.cfm">		  



    <p>Qwik Risk PDF Report Generation Requires Adobe Reader 7.0+.
          <a href="http://www.adobe.com/products/acrobat/readstep2.html" target="_blank">Get Adobe Reader</a><br />

      <a href="http://www.adobe.com/products/acrobat/readstep2.html" target="_blank"><img src="../images/adobereader.gif" /></a></p>

    <p>PDF Report Generation is not available under Safari Browsers</p>

    <hr />

 	</div>

  <div id="content" > 

    <h2>Qwik Risk Assessment Tool </h2>



    <cfif isdefined('url.dc') and url.dc eq 1>

      <cfcookie name="erllccookie" expires="now">

    </cfif>



         

    <cfif isdefined('form.CalcRisk') or isdefined('form.CalcRisk2')>

      <cfinvoke component="#request.cfc#riskpdf" method="calculaterisk" returnvariable="form">

      <cfinvokeargument name="vars" value='#form#'>

      <cfinvokeargument name="num" value='#form.numitems#'>

      </cfinvoke>

  <!--- <cfset form = risk.calculaterisk( vars: form, num: form.numitems )>

--->

      

  <cfelseif isdefined('form.genrept') or isdefined('form.genrept2')>

      <cfinvoke component="#request.cfc#riskpdf" method="calculaterisk" returnvariable="form">

      <cfinvokeargument name="vars" value='#form#'>

      <cfinvokeargument name="num" value='#form.numitems#'>

      </cfinvoke>

      <!---<cfset form = risk.calculaterisk( vars: form, num: form.numitems )>--->

      <cfinvoke component="#request.cfc#riskpdf" method="saveassessment" returnvariable="saveaid">

      <cfinvokeargument name="vars" value='#form#'>

      </cfinvoke>

      <!---<cfset saveaid = risk.saveassessment( vars: form )>--->

      <cfinvoke component="#request.cfc#riskpdf" method="reportonscreen" >

      <cfinvokeargument name="vars" value='#form#'>

      <cfinvokeargument name="num" value='#form.numitems#'>

      </cfinvoke>

      

      <!---<cfscript>

       risk.reportonscreen( vars: form, num: form.numitems );

   </cfscript>--->

      

  <cfelseif isdefined('form.genreptpdf') or isdefined('form.genreptpdf2')>

      <!---<cfobject component="#request.cfc#report" name="report">--->

      <cfinvoke component="#request.cfc#riskpdf" method="calculaterisk" returnvariable="form">

      <cfinvokeargument name="vars" value='#form#'>

      <cfinvokeargument name="num" value='#form.numitems#'>

      </cfinvoke>

      

      <!---<cfset form = risk.calculaterisk( vars: form, num: form.numitems )>--->

      <cfinvoke component="#request.cfc#riskpdf" method="saveassessment" returnvariable="saveaid">

      <cfinvokeargument name="vars" value='#form#'>

      </cfinvoke>

      

      <!---<cfset saveaid = risk.saveassessment( vars: form )>--->

      

      <cfinvoke component="#request.cfc#report" method="riskreport">

      <cfinvokeargument name="vars" value='#form#'>

      </cfinvoke>

      

      <!--- <cfscript>

     report.riskreport( vars: form);

   </cfscript>--->

      

  <cfelseif isdefined('form.savereport') or isdefined('form.savereport2')>

      

      <cfinvoke component="#request.cfc#riskpdf" method="calculaterisk" returnvariable="form">

      <cfinvokeargument name="vars" value='#form#'>

      <cfinvokeargument name="num" value='#form.numitems#'>

      </cfinvoke>

  <!---<cfset form = risk.calculaterisk( vars: form, num: form.numitems )>--->

      <cfinvoke component="#request.cfc#riskpdf" method="saveassessment" returnvariable="saveaid">

      <cfinvokeargument name="vars" value='#form#'>

      </cfinvoke>

      

  <!--- <cfset saveassessment = risk.saveassessment( vars: form )>

--->  <cfoutput>	<strong>Values Saved as Assessment '#form.title#' under #form.email# user</strong><br /> 

    <br /></cfoutput>

      

  <cfelseif isdefined('form.savenewreport') or isdefined('form.savenewreport2')>

      <cfset form.aid=''>

      <cfset url.aid=''>

      <cfinvoke component="#request.cfc#riskpdf" method="calculaterisk" returnvariable="form">

      <cfinvokeargument name="vars" value='#form#'>

      <cfinvokeargument name="num" value='#form.numitems#'>

      </cfinvoke>

      <!---<cfset form = risk.calculaterisk( vars: form, num: form.numitems )>--->

      <cfinvoke component="#request.cfc#riskpdf" method="saveassessment" returnvariable="saveaid">

      <cfinvokeargument name="vars" value='#form#'>

      </cfinvoke>

  <!---<cfset saveassessment = risk.saveassessment( vars: form )>

--->  <cfoutput>	<strong>Values Saved as a New Assessment '#form.title#' under #form.email# user</strong><br /> 

    <br /></cfoutput>

      

  <cfelseif isdefined('form.sendrept')>

      <cfinvoke component="#request.cfc#riskpdf" method="calculaterisk" returnvariable="form">

      <cfinvokeargument name="vars" value='#form#'>

      <cfinvokeargument name="num" value='#form.numitems#'>

      </cfinvoke>

      

      <!---<cfset form = risk.calculaterisk( vars: form, num: form.numitems )>--->

      <cfinvoke component="#request.cfc#riskpdf" method="saveassessment" returnvariable="saveaid">

      <cfinvokeargument name="vars" value='#form#'>

      </cfinvoke>

  <!---<cfset saveaid = risk.saveassessment( vars: form )>

---><cfinvoke component="#request.cfc#riskpdf" method="sendassessment" >

    <cfinvokeargument name="vars" value=form>

    </cfinvoke>

      

      

  <!---<cfscript>

       risk.sendassessment( vars: form);

   </cfscript>--->

      <cfoutput>	<strong>Your Assessment has been sent to ERLLC. </strong><br /> 

        <br /></cfoutput>

      

  <cfelseif isdefined('form.clearform') or isdefined('form.clearform2')>

      <cfinvoke component="#request.cfc#riskpdf" method="clearform" returnvariable="form">

      <cfinvokeargument name="vars" value='#form#'>

      </cfinvoke>

      

  <!---<cfset form=risk.clearform(form.numitems, form)>

--->   <cfset url.aid =''>

      

  <cfelse>

      <cfinvoke component="#request.cfc#riskpdf" method="clearform" returnvariable="form">

      <cfinvokeargument name="vars" value='#form#'>

      </cfinvoke>

  <!---<cfset form=risk.clearform(form.numitems, form)> 

--->

      <cfif isdefined('url.aid') and isnumeric(url.aid) and url.aid neq '' and url.aid neq 0>

        <cfinvoke component="#request.cfc#riskpdf" method="loadform" returnvariable="form">

        <cfinvokeargument name="vars" value='#form#'>

        <cfinvokeargument name="id" value='#url.aid#'>

        <cfinvokeargument name="num" value='#form.numitems#'>

        </cfinvoke>

  <!---<cfset form = risk.loadform(url.aid, form.numitems, form)>

--->   </cfif>

    </cfif>



    <cfif not isdefined('form.genrept') and not isdefined('form.genrept2') 

  and not isdefined('form.genreptpdf') and not isdefined('form.genreptpdf2')  >  

      <!--- and not isdefined('form.savereport') and not isdefined('form.savereport2')---><!--- if the generate report button has not been pressed, redisplay form --->

      

      <cfoutput>

        You may update your calculations as many times as desired, clicking 'Calculate Risk' to refresh the the calculations. Once you have completed your calculation, 'Generate Report' will produce a PDF of your Assessment<br />

        <p>

          <input name="retrieve" type="button" onclick="MM_goToURL('parent','listassessments.cfm');return document.MM_returnValue" value="Retrieve a Saved Analysis" />

        </p>	

  

   <form action="#cgi.SCRIPT_NAME#" method="post" enctype="multipart/form-data" name="qwikrisk" id="qwikrisk">

     <table width="90%" border="0" cellpadding="0" cellspacing="0">

       <tr>

         <td align="right">Name:</td>

        <td><input name="name" type="text" id="name" size="50" value='#form.name#' /></td>

        <td align="center"><input type="submit" name="sendrept" id="sendrept" value="Send to ERLLC" onclick="return validateForm();"/></td>

     </tr>

       <tr>

         <td align="right">Company:</td>

        <td><input name="company" type="text" id="company" size="50" maxlength="255" value='#form.company#'/></td>

        <td>&nbsp;</td>

     </tr>

       <tr>

         <td align="right"><span class="required">*</span>Email: </td>

        <td><input name="email" type="text" id="email" size="50" maxlength="255" value='#form.email#'/></td>

        <td align="center"><input type="submit" name="GenRept2" id="GenRept2" value="Generate Report on-Screen" onclick="return validateForm();"/></td>

     </tr>

       <tr>

         <td align="right"><span class="required">*</span>Title: </td>

        <td><input name="title" type="text" id="title" value="#form.title#" size="50" maxlength="255" /></td>

        <td align="center"><input type="submit" name="GenReptpdf2" id="GenReptpdf2" value="Generate PDF Report" <cfif findnocase('safari',cgi.HTTP_USER_AGENT) gt 0> disabled="disabled"<cfelse>   onclick="return validateForm();"</cfif> /></td>

     </tr>

       <tr>

         <td colspan="2" align="left"><span class="required">*: Field is required to save or generate report</span></td>

        <td align="center">&nbsp;</td>

     </tr>

  </table>

       <input type="hidden" name="aid" value= <cfif isdefined('url.aid') and isnumeric(url.aid)> '#url.aid#' <cfelseif  isdefined('form.aid') and isnumeric(form.aid)> '#form.aid#' <cfelse> ""</cfif> />

     <input type="hidden" name="numitems" value="#form.numitems#" />

     <input type="submit" name="CalcRisk" id="CalcRisk" value="Calculate Risk"   />

  &nbsp;&nbsp;

     <input type="submit" name="clear" id="button" value="Clear Fields" />

  &nbsp;&nbsp;&nbsp;

     <input type="submit" name="savereport" id="savereport" value="Save for Later" onclick="return validateForm();" />

     <cfif (isdefined('url.aid') and isnumeric(url.aid) and url.aid neq 0) or

				       (isdefined('form.aid') and isnumeric(form.aid) and form.aid neq 0) >

       <input type="submit" name="savenewreport" id="savenewreport" value="Save as a New Analysis  for Later" onclick="return validateForm();" />

       <br />

       </cfif>

     <table width="750" border="1" class="crisp">

       <tr>

         <td width="25">ID</td>

            <td>Statement of Event</td>

            <td>Criteria</td>

            <td width="100">Risk/Opportunity Level</td>

            <td>Response<br />

              Strategy</td>

          </tr>

       

       <cfloop from='1' to='#form.numitems#' index='i' >

         <input type='hidden' name="assessid#i#" value="#evaluate('form.assessid#i#')#" />

  <tr valign="top" class="#IIF(i MOD 2, DE('altRowEven'), DE('altRowOdd'))#">    <td width="25">#i#</td>

            <td>    

              

              <label>

                <input name="RiskOpp#i#" type="radio" id="RiskOpp#i#_0" onclick="dwfaq_ToggleOMaticClass(this,'benheader#i#','formhideme','consheader#i#','formshowme','handlingopp#i#','formhideme','handlingrisk#i#','formshowme','benefit#i#','formhideme','consequence#i#','formshowme');return document.MM_returnValue" value="Risk" <cfif evaluate('form.riskopp#i#') eq 'Risk'>checked="checked" </cfif> />

                Risk            </label>

              &nbsp;&nbsp;

              <label>

                <input name="RiskOpp#i#" type="radio" id="RiskOpp#i#_1" onclick="dwfaq_ToggleOMaticClass(this,'benheader#i#','formshowme','consheader#i#','formhideme','handlingopp#i#','formshowme','handlingrisk#i#','formhideme','benefit#i#','formshowme','consequence#i#','formhideme');return document.MM_returnValue" value="Opp"  <cfif evaluate('form.riskopp#i#') eq 'Opp'>checked="checked" </cfif> />

                Opportunity            </label>

              <textarea name="statement#i#" cols="50" rows="5" wrap="virtual"  id="statement#i#">#evaluate('form.statement#i#')#</textarea></td>

           <td> 

             <select name="likelihood#i#" id="likelihood#i#" onchange="getRiskOppLevelFromLikelihood(this,#i#)">

               <option value='-1'></option>

               <cfloop from="1" to='#arraylen(likelihood)#' index='l'>

                 <option value="#likelihood[l][2]#" <cfif evaluate('form.likelihood#i#') eq likelihood[l][2]>selected="selected" </cfif>  >#likelihood[l][1]#</option>

                 </cfloop>

               </select>

             

             <div id="consheader#i#" <cfif  evaluate('form.riskopp#i#') eq 'Risk'> class='formshowme'<cfelse>class='formhideme'</cfif>  >

               <span class="consequences">Consequence   </span><br />

               

               <select name="consequence#i#" id="consequence#i#" onchange="getRiskOppLevel(this,#i#)">

                 <option value='0'></option>

                 <cfloop from="1" to='#arraylen(consequence)#' index='c'>

                   <option value="#consequence[c][2]#"   <cfif evaluate('form.consequence#i#') eq consequence[c][2]>selected="selected" </cfif>   >#consequence[c][1]#</option>

                   </cfloop>

                 </select>

               </div>

             

          <div  id="benheader#i#" <cfif  evaluate('form.riskopp#i#') eq 'Opp'> class='formshowme'<cfelse>class='formhideme'</cfif> >

            <span class="benefits">Benefit</span><br />

            

            <select name="benefit#i#" id="benefit#i#" onchange="getRiskOppLevel(this,#i#)">

              <option value='0'></option>

              <cfloop from="1" to='#arraylen(benefit)#' index='b'>

                <option value="#benefit[b][2]#"   <cfif evaluate('form.benefit#i#') eq benefit[b][2]>selected="selected" </cfif>   >#benefit[b][1]#</option>

                </cfloop>

              </select>

            </div>       </td>

         <td width="100" align="center" id="riskOutput#i#">

           <cfif evaluate('form.riskcalc#i#') neq '' and evaluate('form.RiskOpp#i#') neq ''>

             <cfinvoke component="#request.cfc#riskpdf" method="riskcalc" returnvariable="risklevel">

               <cfinvokeargument name="risklevel" value="#evaluate('form.risklevel#i#')#">

               <cfinvokeargument name="riskopp" value="#evaluate('form.RiskOpp#i#')#">

               </cfinvoke>

             <!--- <cfset risklevel = risk.riskcalc( risklevel: evaluate('form.risklevel#i#'), riskopp: evaluate('form.RiskOpp#i#'))>--->

             <span class='#risklevel.css#'> #risklevel.calc# </span><br />

             

             <input type="hidden" name="risklevel#i#" value="#evaluate('form.risklevel#i#')#" />

             <input type="hidden" name="riskcalc#i#" value="#evaluate('form.riskcalc#i#')#">

             <input type="hidden" name="riskcss#i#" value="#risklevel.css#" />

             </cfif>           </td>

      <td>         

        <div  id="handlingopp#i#" <cfif  evaluate('form.riskopp#i#') eq 'Opp'> class='formshowme'<cfelse>class='formhideme'</cfif> >

          <select name="handlingopp#i#">

            <option value=''></option>

            <cfloop from="1" to='#arraylen(handlingopp)#' index='l'>

              <option value="#handlingopp[l]#"  <cfif evaluate('form.handlingopp#i#') eq handlingopp[l] > selected='selected'</cfif>  >#handlingopp[l]#</option>

              </cfloop>

            </select> 

          </div>    

                    

             <div  id="handlingrisk#i#" <cfif  evaluate('form.riskopp#i#') eq 'Risk'> class='formshowme'<cfelse>class='formhideme'</cfif> >

               <select name="handlingrisk#i#">

                 <option value=''></option>

                 <cfloop from="1" to='#arraylen(handlingrisk)#' index='l'>

                   <option value="#handlingrisk[l]#"  <cfif evaluate('form.handlingrisk#i#') eq handlingrisk[l] > selected='selected'</cfif>  >#handlingrisk[l]#</option>

                   </cfloop>

                 </select>           </div>          </td>

       </tr>

         

         

         

         

         

  <!---				  <input type="hidden" name="subid#i#" value="#subid#" />

					<input type="hidden" name="oldlogo#i#" value="#logo#" />

---></cfloop>

  </table>

      <div align="center">      

        <p align="left">

          <input type="submit" name="CalcRisk2" id="CalcRisk" value="Calculate Risk"  /> 

          <!---onclick="return validateForm();"--->

          &nbsp;&nbsp;&nbsp;

          <input type="submit" name="clear2" id="button" value="Clear Fields" />

          &nbsp;&nbsp;&nbsp;

          <input type="submit" name="savereport2" id="savereport" value="Save for Later" onclick="return validateForm();" />

          &nbsp;

          <cfif (isdefined('url.aid') and isnumeric(url.aid) and url.aid neq 0) or

				       (isdefined('form.aid') and isnumeric(form.aid) and form.aid neq 0) >

            <input type="submit" name="savenewreport" id="savenewreport" value="Save as a New Analysis  for Later" onclick="return validateForm();" />

            <br />

            </cfif>

          <p align="right"> 

            <input type="submit" name="GenRept" id="GenRept" value="Generate Report on-Screen" onclick="return validateForm();"/>

            <!---  onclick="return validateForm();" --->

            &nbsp;&nbsp;&nbsp;

            <input type="submit" name="GenReptpdf" id="GenReptpdf" value="Generate PDF Report" <cfif findnocase('safari',cgi.HTTP_USER_AGENT) gt 0> disabled="disabled"<cfelse>   onclick="return validateForm();"</cfif>/>

          </div>

	  </form>

</cfoutput>

      <cfoutput>    

        <p align="center">If you would like a more indepth Risk Analysis, or have more than 30 events to assess,<br />

          Engineered Resources is ready to assist you. <br />

          Call #request.phone# or 

        Email Us  at <a href='mailto:#request.contactemail#'>#request.contactemail#</a> for more information.</p>

      </cfoutput> </td></tr>

    </cfif>

    <!--contentwrapper -->

 </div>



</div>

<div id="footer">
<img src="../images/footer.png" />
</div>

</div>

</body>

</html>

Open in new window


Thanks... And Happy New Year!

Larissa
ASKER CERTIFIED SOLUTION
Avatar of Peter Hart
Peter Hart
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of larissap
larissap

ASKER

I just needed to put one closing div tag before the footer and one after it.
Thanks again!