home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
csi.uticak12.org
/
csi.uticak12.org.tar
/
csi.uticak12.org
/
training2012
/
csi_contact01_bkup071212.php
< prev
next >
Wrap
PHP Script
|
2012-07-17
|
14KB
|
232 lines
<?
include 'back/settings.php';
mysql_connect(HostName,UserName,Password) or die("<html><body>Can not connect to MySql server!<br></body></html>");
mysql_select_db (DBName) or die ("<html><body>Could not select database ".DBName."<br></body></html>");
/*
$res=mysql_query ("SELECT * FROM gal_admin");
$f=mysql_fetch_array ($res);
*/
$res=mysql_query("SELECT * FROM `gal_form`") or die (mysql_error());
$f=mysql_fetch_array($res);
$admin_email=$f['email'];
if ($act=="1") {
$subj="New Website Request!";
$headers="From:".$admin_email;
$body.="=======REQUEST DETAILS========= \n\n";
$body.="First Name: ".$ffield1."\n";
$body.="Last Name: ".$ffield2."\n";
$body.="School District: ".$ffield3."\n";
$body.="E-mail Address: ".$ffield4."\n";
$body.="Phone: ".$ffield5."\n";
$i=0;
$field6='';
while ($i<count($ffield6)) {
$field6.=" - ".$ffield6[$i]."\n";
$i++;};
$body.="List of questions: \n".$field6."\n";
$body.="Comments: ".$ffield7."\n";
mail ($admin_email, $subj, $body, "From:".$admin_email);
echo '<script>location.href="index.htm"</script>';
};
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>UCSI - Information Request</title>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
<style type="text/css">
<!--
body {
margin-top: 0px;
}
-->
</style>
<link href="csi_about.css" rel="stylesheet" type="text/css">
</head>
<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')">
<table width="750" border="0" align="center" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="751" height="60" valign="top">
<table width="750" border="0" align="center" cellpadding="0" cellspacing="0">
<!-- fwtable fwsrc="TopNavContact.png" fwbase="TopNavContact.jpg" fwstyle="Dreamweaver" fwdocid = "142400704" fwnested="0" -->
<tr>
<td><img src="graphics/2011contact/spacer.gif" width="31" height="1" border="0" alt=""></td>
<td><img src="graphics/2011contact/spacer.gif" width="54" height="1" border="0" alt=""></td>
<td><img src="graphics/2011contact/spacer.gif" width="30" height="1" border="0" alt=""></td>
<td><img src="graphics/2011contact/spacer.gif" width="69" height="1" border="0" alt=""></td>
<td><img src="graphics/2011contact/spacer.gif" width="16" height="1" border="0" alt=""></td>
<td><img src="graphics/2011contact/spacer.gif" width="71" height="1" border="0" alt=""></td>
<td><img src="graphics/2011contact/spacer.gif" width="9" height="1" border="0" alt=""></td>
<td><img src="graphics/2011contact/spacer.gif" width="119" height="1" border="0" alt=""></td>
<td><img src="graphics/2011contact/spacer.gif" width="7" height="1" border="0" alt=""></td>
<td><img src="graphics/2011contact/spacer.gif" width="119" height="1" border="0" alt=""></td>
<td><img src="graphics/2011contact/spacer.gif" width="8" height="1" border="0" alt=""></td>
<td><img src="graphics/2011contact/spacer.gif" width="106" height="1" border="0" alt=""></td>
<td><img src="graphics/2011contact/spacer.gif" width="111" height="1" border="0" alt=""></td>
<td><img src="graphics/2011contact/spacer.gif" width="1" height="1" border="0" alt=""></td>
</tr>
<tr>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<td><img src="graphics/2011contact/spacer.gif" width="1" height="25" border="0" alt=""></td>
</tr>
<tr>
<td colspan="13"><img name="navSpacer" src="graphics/2011contact/navSpacer.gif" width="750" height="6" border="0" alt=""></td>
<td><img src="graphics/2011contact/spacer.gif" width="1" height="6" border="0" alt=""></td>
</tr>
<tr>
<td><img name="spacer00" src="graphics/2011contact/spacer00.gif" width="31" height="28" border="0" alt=""></td>
<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>
<td><a href="#" target="_top"><img name="subnav_2" src="graphics/2011contact/subnav_2.gif" width="69" height="28" border="0" alt=""></a></td>
<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>
<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>
<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>
<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>
<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>
<td><img src="graphics/2011contact/spacer.gif" width="1" height="28" border="0" alt=""></td>
</tr>
<tr>
<td colspan="13"><img name="titleAbout" src="graphics/2011contact/titleContactUs.gif" width="750" height="95" border="0" alt=""></td>
<td><img src="graphics/2011contact/spacer.gif" width="1" height="95" border="0" alt=""></td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="508" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" background="graphics/about00/about_bk00_508.jpg">
<!--DWLayoutTable-->
<tr>
<td width="44" height="18"></td>
<td width="676" rowspan="3" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="676" height="384" valign="top">
<form name="form1" form action="csi_contact01.php" method="POST"><p class="copyMain">
<input type="hidden" name="recipient" value="scott.palmer@uticak12.org">
<input type="hidden" name="subject" value="UCSI Information Request">
<input type="hidden" name="redirect" value="http://uticak12.org/confirm.htm">
<br>
<img src="graphics/about00/spacer.gif" width="31" height="10">First Name:
<input name="ffield1" type="text" id="FirstName">
<br>
<img src="graphics/about00/spacer.gif" width="32" height="10">Last Name:
<input name="ffield2" type="text" id="LastName">
<br>
<img src="graphics/about00/spacer.gif" width="5" height="10">School District:
<input name="ffield3" type="text" id="District">
<br>
<img src="graphics/about00/spacer.gif" width="4" height="10">E-mail Address:
<input name="ffield4" type="text" id="Email">
<br>
<img src="graphics/about00/spacer.gif" width="61" height="10">Phone:
<input name="ffield5" type="text" id="Phone">
</p>
<p class="copyMain">Choose from following list of questions
to help us to respond promptly to your information request:</p>
<blockquote>
<p class="copyMain">
<input name="ffield6[]" type="checkbox" id="checkbox1" value="How Do I enroll?">
How Do I enroll?<br>
<input name="ffield6[]" type="checkbox" id="checkbox2" value="What are the eligibility requirements? ">
What are the eligibility requirements?
<br>
<input name="ffield6[]" type="checkbox" id="checkbox3" value="How does the selection process work? ">
How does the selection process work?
<br>
<input name="ffield6[]" type="checkbox" id="checkbox4" value="Is this program open to non-UCS students?">
Is this program open to non-UCS students?<br>
<input name="ffield6[]" type="checkbox" id="checkbox5" value="Other topic. ">
Other topic.
</p>
</blockquote>
<p class="copyMain">Please include any comments in the text
box below:</p>
<blockquote>
<p class="copyMain">
<textarea name="ffield7" cols="40"></textarea>
</p>
</blockquote>
<p class="copyMain">
<input type="submit" name="Submit" value="Submit Information Request">
<input type="reset" name="Clear" value="Reset Form">
</p>
<input type="hidden" name="act" value="1" />
</form></td>
</tr>
</table></td>
<td width="31"></td>
</tr>
<tr>
<td height="259" valign="top"><img src="graphics/about00/spacer.gif" width="44" height="100"></td>
<td> </td>
</tr>
<tr>
<td height="172"></td>
<td></td>
</tr>
</table></td>
</tr>
<tr>
<td height="33" valign="top"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<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
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>
</tr>
</table></td>
</tr>
</table>
</body>
</html>