home *** CD-ROM | disk | FTP | other *** search
/ csi.uticak12.org / csi.uticak12.org.tar / csi.uticak12.org / training2012 / csi_contact01_bkup071212.php < prev    next >
PHP Script  |  2012-07-17  |  14KB  |  232 lines

  1. <?
  2. include 'back/settings.php';
  3. mysql_connect(HostName,UserName,Password) or die("<html><body>Can not connect to MySql server!<br></body></html>");
  4. mysql_select_db (DBName) or die ("<html><body>Could not select database ".DBName."<br></body></html>");
  5.  
  6. /*
  7. $res=mysql_query ("SELECT * FROM gal_admin");
  8. $f=mysql_fetch_array ($res);
  9. */
  10.  
  11. $res=mysql_query("SELECT * FROM `gal_form`") or die (mysql_error());
  12. $f=mysql_fetch_array($res);
  13. $admin_email=$f['email'];
  14.  
  15.  
  16. if ($act=="1") {
  17.  
  18. $subj="New Website Request!";
  19. $headers="From:".$admin_email;
  20. $body.="=======REQUEST DETAILS========= \n\n";
  21. $body.="First Name: ".$ffield1."\n";
  22. $body.="Last Name: ".$ffield2."\n";
  23. $body.="School District: ".$ffield3."\n";
  24. $body.="E-mail Address: ".$ffield4."\n";
  25. $body.="Phone: ".$ffield5."\n";
  26. $i=0;
  27. $field6='';
  28. while ($i<count($ffield6)) {
  29. $field6.=" - ".$ffield6[$i]."\n";
  30. $i++;};
  31. $body.="List of questions: \n".$field6."\n";
  32. $body.="Comments: ".$ffield7."\n";
  33.  
  34. mail ($admin_email, $subj, $body, "From:".$admin_email);
  35.  
  36. echo '<script>location.href="index.htm"</script>';
  37. };
  38. ?>
  39. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
  40. "http://www.w3.org/TR/html4/loose.dtd">
  41. <html>
  42. <head>
  43. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  44. <title>UCSI - Information Request</title>
  45. <script language="JavaScript" type="text/JavaScript">
  46. <!--
  47. function MM_swapImgRestore() { //v3.0
  48.   var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
  49. }
  50.  
  51. function MM_preloadImages() { //v3.0
  52.   var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
  53.     var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
  54.     if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
  55. }
  56.  
  57. function MM_findObj(n, d) { //v4.01
  58.   var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
  59.     d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  60.   if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  61.   for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  62.   if(!x && d.getElementById) x=d.getElementById(n); return x;
  63. }
  64.  
  65. function MM_swapImage() { //v3.0
  66.   var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
  67.    if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
  68. }
  69. //-->
  70. </script>
  71. <style type="text/css">
  72. <!--
  73. body {
  74.     margin-top: 0px;
  75. }
  76. -->
  77. </style>
  78. <link href="csi_about.css" rel="stylesheet" type="text/css">
  79. </head>
  80.  
  81. <body onLoad="MM_preloadImages('graphics/contactTopNav/subnav_1_f2.gif','graphics/contactTopNav/subnav_3_f2.gif','graphics/contactTopNav/subnav_4_f2.gif','graphics/contactTopNav/subnav_5_f2.gif','graphics/contactTopNav/topNavline_f2.gif','graphics/aboutTopNew/nav_1_f2.gif','graphics/aboutTopNew/nav_2_f2.gif','graphics/aboutTopNew/nav_4_f2.gif','graphics/aboutTopNew/nav_5_f2.gif','graphics/aboutTopNew/nav_6_f2.gif','graphics/teamConcept/nav_3_f2.gif')">
  82. <table width="750" border="0" align="center" cellpadding="0" cellspacing="0">
  83.   <!--DWLayoutTable-->
  84.   <tr>
  85.     <td width="751" height="60" valign="top">
  86.  
  87. <table width="750" border="0" align="center" cellpadding="0" cellspacing="0">
  88. <!-- fwtable fwsrc="TopNavContact.png" fwbase="TopNavContact.jpg" fwstyle="Dreamweaver" fwdocid = "142400704" fwnested="0" -->
  89.   <tr>
  90.    <td><img src="graphics/2011contact/spacer.gif" width="31" height="1" border="0" alt=""></td>
  91.    <td><img src="graphics/2011contact/spacer.gif" width="54" height="1" border="0" alt=""></td>
  92.    <td><img src="graphics/2011contact/spacer.gif" width="30" height="1" border="0" alt=""></td>
  93.    <td><img src="graphics/2011contact/spacer.gif" width="69" height="1" border="0" alt=""></td>
  94.    <td><img src="graphics/2011contact/spacer.gif" width="16" height="1" border="0" alt=""></td>
  95.    <td><img src="graphics/2011contact/spacer.gif" width="71" height="1" border="0" alt=""></td>
  96.    <td><img src="graphics/2011contact/spacer.gif" width="9" height="1" border="0" alt=""></td>
  97.    <td><img src="graphics/2011contact/spacer.gif" width="119" height="1" border="0" alt=""></td>
  98.    <td><img src="graphics/2011contact/spacer.gif" width="7" height="1" border="0" alt=""></td>
  99.    <td><img src="graphics/2011contact/spacer.gif" width="119" height="1" border="0" alt=""></td>
  100.    <td><img src="graphics/2011contact/spacer.gif" width="8" height="1" border="0" alt=""></td>
  101.    <td><img src="graphics/2011contact/spacer.gif" width="106" height="1" border="0" alt=""></td>
  102.    <td><img src="graphics/2011contact/spacer.gif" width="111" height="1" border="0" alt=""></td>
  103.    <td><img src="graphics/2011contact/spacer.gif" width="1" height="1" border="0" alt=""></td>
  104.   </tr>
  105.  
  106.   <tr>
  107.    <td colspan="2"><a href="csi_about00.htm" target="_top" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage('nav01','','graphics/2011contact/nav01_f2.gif',1);"><img name="nav01" src="graphics/2011contact/nav01.gif" width="85" height="25" border="0" alt=""></a></td>
  108.    <td colspan="3"><a href="csi_program00.htm" target="_top" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage('nav02','','graphics/2011contact/nav02_f2.gif',1);"><img name="nav02" src="graphics/2011contact/nav02.gif" width="115" height="25" border="0" alt=""></a></td>
  109.    <td colspan="2"><a href="csi_partners00.htm" target="_top" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage('nav03','','graphics/2011contact/nav03_f2.gif',1);"><img name="nav03" src="graphics/2011contact/nav03.gif" width="80" height="25" border="0" alt=""></a></td>
  110.    <td><a href="csi_members.htm" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage('nav04','','graphics/2011contact/nav04_f2.jpg',1);"><img name="nav04" src="graphics/2011contact/nav04.jpg" width="119" height="25" border="0" alt=""></a></td>
  111.    <td colspan="3"><a href="gallery.php" target="_top" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage('nav05','','graphics/2011contact/nav05_f2.gif',1);"><img name="nav05" src="graphics/2011contact/nav05.gif" width="134" height="25" border="0" alt=""></a></td>
  112.    <td><a href="csi_how00.htm" target="_top" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage('nav06','','graphics/2011contact/nav06_f2.gif',1);"><img name="nav06" src="graphics/2011contact/nav06.gif" width="106" height="25" border="0" alt=""></a></td>
  113.    <td><a href="csi_contact00.htm" target="_top" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage('nav07','','graphics/2011contact/nav07_f2.gif',1);"><img name="nav07" src="graphics/2011contact/nav07.gif" width="111" height="25" border="0" alt=""></a></td>
  114.    <td><img src="graphics/2011contact/spacer.gif" width="1" height="25" border="0" alt=""></td>
  115.   </tr>
  116.   <tr>
  117.    <td colspan="13"><img name="navSpacer" src="graphics/2011contact/navSpacer.gif" width="750" height="6" border="0" alt=""></td>
  118.    <td><img src="graphics/2011contact/spacer.gif" width="1" height="6" border="0" alt=""></td>
  119.   </tr>
  120.   <tr>
  121.    <td><img name="spacer00" src="graphics/2011contact/spacer00.gif" width="31" height="28" border="0" alt=""></td>
  122.    <td colspan="2"><a href="#" target="_top"><img name="subnav_1" src="graphics/2011contact/subnav_1.gif" width="84" height="28" border="0" alt=""></a></td>
  123.    <td><a href="#" target="_top"><img name="subnav_2" src="graphics/2011contact/subnav_2.gif" width="69" height="28" border="0" alt=""></a></td>
  124.    <td colspan="2"><a href="#" target="_top" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage('subnav_3','','graphics/2011contact/subnav_3_f2.gif',1);"><img name="subnav_3" src="graphics/2011contact/subnav_3.gif" width="87" height="28" border="0" alt=""></a></td>
  125.    <td colspan="3"><a href="#" target="_top"><img name="subnav_4" src="graphics/2011contact/subnav_4.gif" width="135" height="28" border="0" alt=""></a></td>
  126.    <td><a href="csi_contact01.php" target="_top" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage('subnav_5','','graphics/2011contact/subnav_5_f2.gif',1);"><img name="subnav_5" src="graphics/2011contact/subnav_5_f2.gif" width="119" height="28" border="0" alt=""></a></td>
  127.    <td colspan="2"><a href="csi_contact00.htm" target="_top" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage('topnav_line','','graphics/2011contact/topnav_line_f2.gif',1);"><img name="topnav_line" src="graphics/2011contact/topnav_line.gif" width="114" height="28" border="0" alt=""></a></td>
  128.    <td><a href="index.htm" target="_top" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage('subnav_6','','graphics/2011contact/subnav_6_f2.gif',1);"><img name="subnav_6" src="graphics/2011contact/subnav_6.gif" width="111" height="28" border="0" alt=""></a></td>
  129.    <td><img src="graphics/2011contact/spacer.gif" width="1" height="28" border="0" alt=""></td>
  130.   </tr>
  131.   <tr>
  132.    <td colspan="13"><img name="titleAbout" src="graphics/2011contact/titleContactUs.gif" width="750" height="95" border="0" alt=""></td>
  133.    <td><img src="graphics/2011contact/spacer.gif" width="1" height="95" border="0" alt=""></td>
  134.   </tr>
  135. </table>
  136.  
  137.  
  138.  
  139.     </td>
  140.   </tr>
  141.   <tr>
  142.     <td height="508" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" background="graphics/about00/about_bk00_508.jpg">
  143.         <!--DWLayoutTable-->
  144.         <tr>
  145.           <td width="44" height="18"></td>
  146.           <td width="676" rowspan="3" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
  147.               <!--DWLayoutTable-->
  148.               <tr>
  149.                 <td width="676" height="384" valign="top">
  150.           <form name="form1" form action="csi_contact01.php" method="POST"><p class="copyMain">
  151.           <input type="hidden" name="recipient" value="scott.palmer@uticak12.org">
  152.               <input type="hidden" name="subject" value="UCSI Information Request">
  153.               <input type="hidden" name="redirect" value="http://uticak12.org/confirm.htm">
  154.               <br>
  155.               <img src="graphics/about00/spacer.gif" width="31" height="10">First Name:
  156.                       <input name="ffield1" type="text" id="FirstName">
  157.                       <br>
  158.                       <img src="graphics/about00/spacer.gif" width="32" height="10">Last Name:
  159.                       <input name="ffield2" type="text" id="LastName">
  160.                       <br>
  161.                       <img src="graphics/about00/spacer.gif" width="5" height="10">School District:  
  162.                       <input name="ffield3" type="text" id="District">
  163.                       <br>
  164.                       <img src="graphics/about00/spacer.gif" width="4" height="10">E-mail Address:
  165.                       <input name="ffield4" type="text" id="Email">                    
  166.                       <br>
  167.                       <img src="graphics/about00/spacer.gif" width="61" height="10">Phone: 
  168.                       <input name="ffield5" type="text" id="Phone">
  169.                 </p>
  170.                   
  171.                   <p class="copyMain">Choose from following list of questions
  172.                     to help us to respond promptly to your information request:</p>
  173.                     <blockquote>
  174.                       <p class="copyMain">
  175.   <input name="ffield6[]" type="checkbox" id="checkbox1" value="How Do I enroll?">
  176.   How Do I enroll?<br>
  177.  
  178.   <input name="ffield6[]" type="checkbox" id="checkbox2" value="What are the eligibility requirements? "> 
  179.   What are the eligibility requirements?
  180.   <br>
  181.  
  182.   <input name="ffield6[]" type="checkbox" id="checkbox3" value="How does the selection process work? "> 
  183.   How does the selection process work?
  184.   <br>
  185.  
  186.   <input name="ffield6[]" type="checkbox" id="checkbox4" value="Is this program open to non-UCS students?">
  187.   Is this program open to non-UCS students?<br>
  188.  
  189.   <input name="ffield6[]" type="checkbox" id="checkbox5" value="Other topic. "> 
  190.   Other topic.
  191.   </p>
  192.                     </blockquote>
  193.                     <p class="copyMain">Please include any comments in the text
  194.                     box below:</p>
  195.                     <blockquote>
  196.                       <p class="copyMain">
  197.                         <textarea name="ffield7" cols="40"></textarea> 
  198.                       </p>
  199.                     </blockquote>
  200.                     <p class="copyMain">
  201.                       <input type="submit" name="Submit" value="Submit Information Request">
  202.                       <input type="reset" name="Clear" value="Reset Form">
  203.                     </p>
  204. <input type="hidden" name="act" value="1" />    
  205.                 </form></td>
  206.               </tr>
  207.           </table></td>
  208.           <td width="31"></td>
  209.         </tr>
  210.         <tr>
  211.           <td height="259" valign="top"><img src="graphics/about00/spacer.gif" width="44" height="100"></td>
  212.           <td> </td>
  213.         </tr>
  214.         <tr>
  215.           <td height="172"></td>
  216.           <td></td>
  217.         </tr>
  218.     </table></td>
  219.   </tr>
  220.   <tr>
  221.     <td height="33" valign="top"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  222.       <!--DWLayoutTable-->
  223.   <tr>
  224.     <td width="751" height="33" align="center" valign="top"><div align="center"><a href="index.htm" target="_top" class="copyLinks">Home</a> | <a href="csi_about00.htm" target="_top" class="copyLinks">About</a> | <a href="csi_program00.htm" target="_top" class="copyLinks">Programs</a> | <a href="csi_partners00.htm" target="_top" class="copyLinks">Partners</a> | <a href="csi_members00.htm" target="_top" class="copyLinks">UCSI
  225.     Members</a> | <a href="gallery.php" target="_top" class="copyLinks">Student Projects</a> | <a href="csi_how00.htm" target="_top" class="copyLinks">How to Apply</a> |  <a href="pdf/Application_2012.pdf" target="_blank" class="copyLinks">Application</a> |  <a href="csi_contact00.htm" target="_top" class="copyLinks">Contact Us</a> </div></td>
  226.   </tr>
  227.     </table></td>
  228.   </tr>
  229. </table>
  230. </body>
  231. </html>
  232.