<?php
session_start();
include("../dbconn2.php");
function sesreg($sesname)
{
if(!session_is_registered($sesname))
{
session_register($sesname);
}
}
function buildOption($name,$value,$match)
{
if($match == $value)
{
$option="<option value=\"".$value."\" selected=\"selected\">".$name."</option>";
echo $option;
}
else
{
$option="<option value=\"".$value."\">".$name."</option>";
echo $option;
}
}
sesreg("sortby");
sesreg("county");
sesreg("county2");
sesreg("orgfunction");
sesreg("visited");
sesreg("displayType");
if($SESSION['visited']==""){
$SESSION['visited'] = "n";
}
if($POST['submit'] == "")
$SESSION['submit'] = "n";
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<link rel=stylesheet href="style.css" type="text/css">
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
.style2 {
font-family: Helvetica, sans-serif;
font-size: xx-small;
}
-->
</style>
</head>
<body bgcolor="#006666">
<table width="100%" height="100%" cellpadding="5" cellspacing="1">
<tr bgcolor="#CCFFCC">
<td height="113" colspan="3" bgcolor="#CCFFCC"><img src="fedbanner.gif" width="587" height="101" align="left"><a href="map.html"><img src="map.gif" title="Search by County" alt="Search by County" width="96" height="103" border="0" align="right"></a></td>
</tr>
<tr>
<td height="2" colspan="3">
<p><a class="menu" href="/fed_dir/index.php"> Home </a><a class="menu" href="resources.htm"> Resources </a><a class="menu" href="glossary.html"> Glossary
</a><a class="menu" href="mission.htm"> About Us </a><a class="menu"
target="_blank" href="http://www.clevelandfed.org/CommAffairs/FinancialLit/PDF/FinSurvey3.pdf"> Add Your Organization </a><a class="menu" href="disclaimer.htm"> Disclaimer </a></p></td>
</tr>
<?php
if($SESSION['visited']=="n" || $SESSION['visited']=="")
{
?>
<form action= "<?php echo $_SERVER['PHP_SELF'];?>" method="POST">
<?php
$query3=<<<Q3
select * from tbl_fed_counties ORDER BY counties;
Q3;
$res_y = pg_query($conn,$query3);
$rows = pg_num_rows($res_y);
//echo $rows;
?>
<tr>
<td width="50%" rowspan="2" valign="top" bgcolor="#FFFFFF">
<h2> Welcome to the Ohio Financial Education Directory for Northern and Central Ohio</h2>
<p align="justify" class="main"> The goal of this site is to help you find financial education programs throughout northern and central Ohio. The site also provides general information about financial literacy including a <a href="glossary.html">glossary of terms</a> and links to <a href="resources.htm">resources</a>.
If you have a specific concern, it may be best to
search by program type. First select a program type and then select the
county you want to search. If you are interested in finding out what
programs and services are available in your area – start by holding down the shift key and choosing every entry from the listbox under program
types and then choose a county. For an alphabetical list of all
organizations in the directory - select "Display by Organization". <br>
</p>
</td>
<td width="50%" colspan="2" align="left" valign="top" bgcolor="#FFFFFF">
<h2>Directory by type of Program:</h2>
<h3 class="main"><strong>Select a type of program from the following list: </strong></h3>
</p>
<h5 align="left" class="main"> Hold shift key for multiple choices:</h5>
<h5 align="left" class="main"><a href="programs.htm" class="main ">Type of Program </a><br>
<br>
<select name="orgfunction[]" size="4" multiple>
<?php
buildOption("Saving/Investing/Wealth Building","issaving");
buildOption("Credit/Budgeting","iscredit");
buildOption("Abusive Credit Practices/Predatory Lending Education","ispredatory");
buildOption("Financing a Major Purchase","isfinancing");
?>
</select>
<br>
<br>
Now select a county to see which organizations offer the program in
that area. <br>
<select name ="county2[]">
<?php
for($row=0;$row < $rows;$row++)
{
$resulty=pg_fetch_assoc($res_y);
buildOption($resulty['counties'],$resulty['county_id']);
}
?>
</select> </h5>
</tr>
<tr>
<td align="left" valign="top" bgcolor="#FFFFFF"><span class="main">
<input name="Submit" type="submit" value="Display by Program">
</span>
<td align="left" valign="top" bgcolor="#FFFFFF"><span class="main">
<input name="Submit" type="submit" value="Display by Organization">
</span>
</tr>
<tr align="center" valign="top" bgcolor="#FFFFFF">
<td height="2" colspan="3">
<div align="center">
<h6><span class="style2">©2004 The Northern and Central Ohio Partnership for Financial Education<br>
~ <a href="mailto:tammy@urban.csuohio.edu">Technical Questions?</a> ~ <a href="mailto:maria.j.thompson@clev.frb.org">Content Questions?</a> </span></h6>
</div></td>
</tr>
<?php
$SESSION['visited']= 'y';
}
else
{
$SESSION = $_POST;
header("Location: displayfed.php");
}
?>
</form>
</table>
</body>
</html>