By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,203 Members | 1,401 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,203 IT Pros & Developers. It's quick & easy.

My Companys web site is down I need HELP!!!!!please

P: 7
Expand|Select|Wrap|Line Numbers
  1. <%@Language="VBSCRIPT" CODEPAGE="1252"%>
  2. <html>
  3. <head>
  4. <title>Registry Network Hospital Detail</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  6. <script language="JavaScript" type="text/JavaScript">
  7. <!--
  8.  
  9.  
  10. function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  11.   if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
  12.     document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  13.   else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
  14. }
  15. MM_reloadPage(true);
  16.  
  17. function MM_preloadImages() { //v3.0
  18.   var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
  19.     var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
  20.     if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
  21. }
  22.  
  23. function MM_findObj(n, d) { //v4.01
  24.   var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
  25.     d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  26.   if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  27.   for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  28.   if(!x && d.getElementById) x=d.getElementById(n); return x;
  29. }
  30.  
  31. function MM_nbGroup(event, grpName) { //v6.0
  32.   var i,img,nbArr,args=MM_nbGroup.arguments;
  33.   if (event == "init" && args.length > 2) {
  34.     if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
  35.       img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
  36.       if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
  37.       nbArr[nbArr.length] = img;
  38.       for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
  39.         if (!img.MM_up) img.MM_up = img.src;
  40.         img.src = img.MM_dn = args[i+1];
  41.         nbArr[nbArr.length] = img;
  42.     } }
  43.   } else if (event == "over") {
  44.     document.MM_nbOver = nbArr = new Array();
  45.     for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
  46.       if (!img.MM_up) img.MM_up = img.src;
  47.       img.src = (img.MM_dn && args[i+2]) ? args[i+2] : ((args[i+1])? args[i+1] : img.MM_up);
  48.       nbArr[nbArr.length] = img;
  49.     }
  50.   } else if (event == "out" ) {
  51.     for (i=0; i < document.MM_nbOver.length; i++) {
  52.       img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
  53.   } else if (event == "down") {
  54.     nbArr = document[grpName];
  55.     if (nbArr)
  56.       for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
  57.     document[grpName] = nbArr = new Array();
  58.     for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
  59.       if (!img.MM_up) img.MM_up = img.src;
  60.       img.src = img.MM_dn = (args[i+1])? args[i+1] : img.MM_up;
  61.       nbArr[nbArr.length] = img;
  62.   } }
  63. }
  64. //-->
  65. </script>
  66. <style type="text/css">
  67. <!--
  68. .style1 {font-size: 11px}
  69. -->
  70. </style>
  71. </head>
  72.  
  73. <body onLoad="MM_preloadImages('images/bthomepr.gif','images/bttrajpr.gif','images/bttrajro.gif','images/btregjpr.gif','images/btregjro.gif','btregpr.gif','images/btdownpr.gif','images/btdownro.gif','images/btrelapr.gif','images/btrelaro.gif','images/btaboupr.gif','images/btabouro.gif','btregipr.jpg','images/bthomero.gif','images/btregipr.gif','images/btregiro.gif')">
  74. <div id="Logo" style="position: absolute; left: 8px; top: 529px; width: 377px; height: 44px; z-index: 1; vertical-align: middle"></div>
  75. <div id="TagLine" style="position: absolute; left: 15px; top: 79px; width: 739px; height: 21px; z-index: 3; vertical-align: middle"><font size="-1" face="Arial, Helvetica, sans-serif"><u><em><strong>Service. 
  76.   It's not just a word with us</strong></em></u>.</font></div>
  77. <div id="Layer4" style="position: absolute; left: 14px; top: 81px; width: 776px; height: 10px; z-index: 4; vertical-align: middle"> 
  78.   <hr>
  79. </div>
  80. <div id="Layer6" style="position: absolute; left: 21px; top: 143px; width: 777px; height: 11px; z-index: 2; vertical-align: middle"><img src="images/lntrajob.gif" width="778" height="8"></div>
  81. <div id="Layer15" style="position: absolute; left: 27px; top: 548px; width: 299px; height: 12px; z-index: 1; vertical-align: middle"> 
  82.   <div align="center" class="style1"><font face="Arial, Helvetica, sans-serif">&copy; 
  83.     2008 Registry Network Incorporated, All Rights Reserved</font></div>
  84. </div>
  85. <div id="Layer16" style="position:absolute; left:512px; top:2px; width:260px; height:78px; z-index:9"><img src="images/imbluehill.jpg" width="281" height="82"></div>
  86. <div id="Layer7" style="position:absolute; left:19px; top:106px; width:780px; height:46px; z-index:0"> 
  87.   <table width="785" height="52" border="0" cellpadding="0" cellspacing="0">
  88.     <tr> 
  89.       <td width="785"><a href="index.htm" target="_top" onClick="MM_nbGroup('down','group1','Home','images/bthomepr.gif',1)" onMouseOver="MM_nbGroup('over','Home','images/bthomero.gif','images/bthomepr.gif',1)" onMouseOut="MM_nbGroup('out')"><img src="images/bthomeno.gif" alt="" name="Home" width="111" height="31" border="0" onload=""></a><a href="travel.htm" target="_top" onClick="MM_nbGroup('down','group1','Travel','images/bttrajpr.gif',1)" onMouseOver="MM_nbGroup('over','Travel','images/bttrajro.gif','images/bttrajpr.gif',1)" onMouseOut="MM_nbGroup('out')"><img src="images/bttrajno.gif" alt="" name="Travel" width="111" height="31" border="0" onload=""></a><a href="registry.htm" target="_top" onClick="MM_nbGroup('down','group1','Registry','images/btregjpr.gif',1)" onMouseOver="MM_nbGroup('over','Registry','images/btregjro.gif','images/btregjpr.gif',1)" onMouseOut="MM_nbGroup('out')"><img src="images/btregjno.gif" alt="" name="Registry" width="111" height="31" border="0" onload=""></a><a href="loginpage.asp" target="_top" onClick="MM_nbGroup('down','group1','OnLineApplication','images/btregipr.gif',1)" onMouseOver="MM_nbGroup('over','OnLineApplication','images/btregiro.gif','btregpr.gif',1)" onMouseOut="MM_nbGroup('out')"><img src="images/btregino.gif" alt="" name="OnLineApplication" width="111" height="31" border="0" onload=""></a><a href="downcheck.asp" target="_top" onClick="MM_nbGroup('down','group1','DownloadForms','images/btdownpr.gif',1)" onMouseOver="MM_nbGroup('over','DownloadForms','images/btdownro.gif','images/btdownpr.gif',1)" onMouseOut="MM_nbGroup('out')"><img src="images/btdownno.gif" alt="" name="DownloadForms" border="0" onLoad=""></a><a href="related.htm" target="_top" onClick="MM_nbGroup('down','group1','RelatedWebSites','images/btrelapr.gif',1)" onMouseOver="MM_nbGroup('over','RelatedWebSites','images/btrelaro.gif','images/btrelapr.gif',1)" onMouseOut="MM_nbGroup('out')"><img src="images/btrelano.gif" alt="" name="RelatedWebSites" width="111" height="31" border="0" onLoad=""></a><a href="aboutus.htm" target="_top" onClick="MM_nbGroup('down','group1','AboutUs','images/btaboupr.gif',1)" onMouseOver="MM_nbGroup('over','AboutUs','images/btabouro.gif','images/btaboupr.gif',1)" onMouseOut="MM_nbGroup('out')"><img src="images/btabouno.gif" alt="" name="AboutUs" width="111" height="31" border="0" onLoad=""></a></td>
  90.     </tr>
  91.     <tr> 
  92.       <td height="21">&nbsp;</td>
  93.     </tr>
  94.   </table>
  95. </div>
  96. <div id="Layer7" style="position:absolute; left:16px; top:212px; width:324px; height:20px; z-index:11; background-color: #5B96FF; layer-background-color: #5B96FF; border: 1px none #000000;">
  97.     <div align="center">
  98.         <p style="margin-bottom: 0"><font color="#FFFFFF" face="Trebuchet MS">General Information</font></p>
  99.     </div>
  100. </div>
  101. <div id="Layer7" style="position:absolute; left:180px; top:400px; width:160px; height:14px; z-index:11; background-color: #5B96FF; layer-background-color: #5B96FF; border: 1px none #000000;"> 
  102.   <div align="center"> 
  103.     <p style="margin-bottom: 0"><font color="#FFFFFF" size="-2" face="Trebuchet MS">Click here for Hospital 
  104.       Pictures</font></p>
  105.   </div>
  106. </div>
  107. <div id="Layer7" style="position:absolute; left:16px; top:400px; width:160px; height:14px; z-index:11; background-color: #5B96FF; layer-background-color: #5B96FF; border: 1px none #000000;">
  108.   <div align="center">
  109.     <p style="margin-bottom: 0"><font color="#FFFFFF" size="-2" face="Trebuchet MS">Click here for Map</font></p>
  110.   </div>
  111. </div>
  112. <div id="Layer7" style="position:absolute; left:16px; top:500px; width:160px; height:14px; z-index:11; background-color: #5B96FF; layer-background-color: #5B96FF; border: 1px none #000000;"> 
  113.    <div align="center">
  114.     <p style="margin-bottom: 0"><font color="#FFFFFF" size="-2" face="Trebuchet MS">Click her for Housing
  115.       Info</font></p>
  116.   </div>
  117. </div>
  118. <div id="Layer7" style="position:absolute; left:180px; top:500px; width:160px; height:14px; z-index:11; background-color: #5B96FF; layer-background-color: #5B96FF; border: 1px none #000000;">
  119.   <div align="center">
  120.     <p style="margin-bottom: 0"><font color="#FFFFFF" size="-2" face="Trebuchet MS">Click here for Local Info</font></p>
  121.   </div>
  122. </div>
  123.  
  124.     <%
  125.     Dim sHospitalID
  126.     Dim cnnHospitalDatabase
  127.     Dim cmdSelect
  128.     Dim rsHospitals
  129.     Dim sFilePath 
  130.  
  131.     Set cnHospitalDatabase=Server.CreateObject("ADODB.Connection")
  132.     Set cmdSelect=Server.CreateObject("ADODB.Command")
  133.     Set rsHospitals=Server.CreateObject("ADODB.Recordset")
  134.     sFilePath=Server.MapPath(Session("Current Directory") & "/" ) & "\"
  135.     cnHospitalDatabase.open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" &sFilePath & "\data\TravelJobs.mdb;Persist Security Info=False"
  136.  
  137.     Set cmdSelect.ActiveConnection=cnHospitalDatabase
  138.     sHospitalID=Request.QueryString("HospitalID")
  139.  
  140.     cmdSelect.CommandText="Select * From Hospitals Where HospitalID='" & sHospitalID & "'"
  141.     rsHospitals.Open cmdSelect
  142.  
  143.     Response.Write (" <div id=""Layer7"" style=""position:absolute; left:16px; top:160px; width:324px; height:19px; z-index:11;"">") 
  144.     Response.Write ("<div align=""center""><font size=""+2"">")
  145.       Response.Write(rsHospitals("HospitalName"))    
  146.  
  147.     Response.Write("</font></div>")
  148.     Response.Write("</div>")
  149.     Response.Write("<div id=""Layer7"" style=""position:absolute; left:16px; top:236px; width:324px; height:80px; z-index:11;"">") 
  150.     Response.Write("<div align=""center"">") 
  151.     Response.Write("<p align=""left""><font size=""-1"">") 
  152.     Response.Write(rsHospitals("Address"))
  153.     Response.Write(rsHospitals("Address2"))
  154.     Response.Write("<br>")
  155.     Response.Write(rsHospitals("City") &", " & rsHospitals("State") & "  " & rsHospitals("ZipCode"))
  156.     Response.Write("<br>")
  157.     Response.Write("<br>")
  158.     Response.Write("</font><font size=""-1"">")
  159.     Response.Write(rsHospitals("Description"))
  160.     Response.Write("      </font></p>")
  161.     Response.Write("  </div>")
  162.     Response.Write("</div>")
  163.     Response.Write("<div id=""Layer16"" style=""position:absolute; left:16px; top:416px; width:132px; height:80px; z-index:0""><a href=""http://www.mapquest.com/maps/map.adp?city=
  164. " & Server.UrlEncode(rsHospitals("City")) & "&state=
  165. " & Server.UrlEncode(rsHospitals("State")) & "&address=
  166. <" & Server.UrlEncode(rsHospitals("Address")) & "&zip=
  167. " & Server.UrlEncode(rsHospitals ("ZipCode")) & "
  168. " & "&zoom=5"" target=""_blank""><img src=""images/imgenmap.jpg"" width=""160"" height=""81"" border=""0""></a></div>")
  169.     Response.Write("<div id=""Layer16"" style=""position:absolute; left:180px; top:416px; width:324px; height:84px; z-index:0""><a href=""trhospic.asp?HospitalID=" & rsHospitals("HospitalID") & """ target=""_blank""><img src=""images/imhospit.jpg"" width=""160"" height=""81"" border=""0""></div>")
  170.     Response.Write("<div id=""Layer16"" style=""position:absolute; left:180px; top:516px; width:160px; height:80px; z-index:0""><a href=""" & rsHospitals("LocalLink") & """ target=""_blank""><img src=""images/imfamily.jpg"" width=""160"" height=""81"" border=""0""></a></div>")    
  171.     Response.Write("<div id=""Layer16"" style=""position:absolute; left:16px; top:516px; width:132px; height:80px; z-index:0""><a href=""" & rsHospitals("HousingInfo") & """ target=""_blank""><img src=""images/imhousin.jpg"" width=""160"" height=""81"" border=""0""></a></div>")
  172.     rsHospitals.close
  173.     cnHospitalDatabase.Close
  174. %>
  175.  
  176.     <%
  177.     Dim sHospitalID2
  178.     Dim cnnHospitalDatabase2
  179.     Dim cmdSelect2
  180.     Dim rsJobs
  181.     Dim sFilePath2
  182.     Dim RowNum
  183.  
  184.     RowNum=1
  185.     Set cnHospitalDatabase2=Server.CreateObject("ADODB.Connection")
  186.     Set cmdSelect2=Server.CreateObject("ADODB.Command")
  187.     Set rsJobs=Server.CreateObject("ADODB.Recordset")
  188.     sFilePath2=Server.MapPath(Session("Current Directory") & "/" ) & "\"
  189.     cnHospitalDatabase2.open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" &sFilePath2 & "\data\TravelJobs.mdb;Persist Security Info=False"
  190.  
  191.     Set cmdSelect2.ActiveConnection=cnHospitalDatabase2
  192.  
  193.     sHospitalID2=Request.QueryString("HospitalID")
  194.  
  195.     cmdSelect2.CommandText="Select * From TravelJobs Where HospitalID='" & sHospitalID2 & "'"
  196.     rsJobs.Open cmdSelect2
  197.  
  198.     Response.Write ("<div id=""Layer9"" style=""position:absolute; left:358px; top:196px; width:330px; height:60px; z-index:13"">") 
  199.     Response.Write ("  <table width=""441"" height=""61"" border=""1"">")
  200.     Response.Write (" <tr bgcolor=""#FFFF80"">") 
  201.     Response.Write ("      <th width=""431"" height=""34"" bgcolor=""#FFFF80""><font color=""#000000"">Available Jobs ")
  202.     Response.Write ("</font>")
  203.     if not (rsJobs.eof or rsJobs.bof) then
  204.         Response.Write("</font><font size=""-1"">")
  205.         Response.Write (" (As Of ")
  206.         Response.Write(rsJobs("Entered"))
  207.         Response.Write (")")
  208.         Response.Write ("</font>")
  209.     end if
  210.     Response.Write ("</th>")
  211.     Response.Write ("    </tr>")
  212.     Do While Not(rsJobs.Eof)
  213.         if Int(RowNum/2)=(RowNum/2) Then 
  214.             Response.Write(" <tr bgcolor=""#FFFF80""> ")
  215.         end if
  216.         Response.Write("<td><font size=""-1"">&nbsp;") 
  217.         Response.Write(rsJobs("JobDescription"))
  218.         Response.Write("</font><font size=""-1"">&nbsp; </font></td>")
  219.         Response.Write("        </tr>") 
  220.         RowNum=RowNum+1
  221.         rsJobs.MoveNext
  222.     Loop
  223.     rsJobs.close
  224.     cnHospitalDatabase2.Close
  225. %>
  226. </table>
  227. </div>
  228. <div id="CompanyName" style="position: absolute; left: 180px; top: 12px; width: 156px; height: 32px; z-index: 1; vertical-align: middle"><img src="images/imcomnam.jpg" width="268" height="37"></div>
  229. <p style="position: absolute; left: 22px; top: 10px; width: 156px; height: 44px; z-index: 1; vertical-align: middle; margin-top: 0;"><img src="images/imlogo.jpg" width="163" height="48"></p>
  230. </body>
  231. </html>

How can I fix this problem please help........???!!!??!?!?!?!?!?!
Oct 17 '08 #1
Share this Question
Share on Google+
2 Replies


Banfa
Expert Mod 5K+
P: 8,916
What problem?

You have not described a problem all you have done is posted 200+ lines of code and expected us to divine what is going wrong.

You need to:

Read our posting guidelines
Tell us what you expecting to happen.
Tell us what did happen.
Tell us which bit of the posted code you think is causing the error (if you can).
Oct 18 '08 #2

danp129
Expert 100+
P: 321
I can't tell for sure but I'm guessing you need to clear the phase-limited runtime defibrillator cache.
Oct 20 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.