#!/usr/bin/perl
alarm(600);
$home = "$ENV{'DOCUMENT_ROOT'}";
require("cgi-lib.pl");
&ReadParse;
$data_dir = "./data";
$curr_dir = "./"; #where this script sits
$image_URL = './conference_pdf';

open(PR,"<$data_dir/conference.txt");
for(<PR>){
  chop;
   ($date,$headline,$subhead,$time,$location,$cost,$body,$pdf,$pdf_title,$link,$link_title,$rc) = split(/\t{1,1}/,$_);
  if($rc eq $in{'file'}){last;}

}
close(PR);

#HEADER INFO IN THIS BLOCK
print <<EOF;
Content-type:text/html

<!--BEGINNING HTML HERE-->
<html>
<title>Continuing Education at Kennesaw State University</title>
<style type="text/css">
<!--
-->
</style>
<link rel="stylesheet" href="css/ConEd_Styles.css" type="text/css">
<body bgcolor='#FFF5D9' text="#000000" link="#990000" vlink="#990000" alink="#CC
0000" topmargin="0">
<!-- #BeginEditable "scripts" -->
<script language='JavaScript1.2' src='script/menu_script1.js'></script>
<script language='JavaScript1.2' src='script/dqm_script.js'></script>
<center>
  <script language='JavaScript1.2' src='script/dqm_map.js'></script>
</center>
<!-- #EndEditable -->
<table width="706" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td height="25"><img name="images/masthead_bottom.gif" src="images/masthead_
bottom.gif" width="710" height="24" border="0" usemap="#m_masthead_bottom"><br>
      <img src="images/horiz_rule.gif" width="706" height="4"></td>
  </tr>
  <map name="m_masthead_bottom">
    <area shape="rect" coords="7,5,39,18" href="http://www.kennesaw.edu/coned/in
dex.htm" alt="ConEd Home Page" title="ConEd Home Page" >
    <area shape="rect" coords="67,4,147,19" href="http://www.kennesaw.edu/coned/
news_and_events/index.htm" title="Newsroom" alt="Newsroom" >
    <area shape="rect" coords="174,4,226,19" title="eCourier" alt="eCourier" hre
f="http://www.kennesaw.edu/coned/ecourier/index.htm" >
    <area shape="rect" coords="254,5,381,19" href="http://www.kennesaw.edu/coned
/conferences/index.htm" title="Conferences & Facilities" alt="Conferences & Faci
lities" >
    <area shape="rect" coords="409,5,469,18" href="http://www.kennesaw.edu/coned
/directions.htm" title="Directions" alt="Directions">
  </map>
</table>
<br>
<TABLE height=465 cellSpacing=0 cellPadding=0 width="700" border=0 align=center>
  <TR>
    <TD vAlign=top height=421>
      <table height=293 cellspacing=0 cellpadding=0 border=0 >
        <tr valign=top>
          <td height=293>

<h1>$headline</h1>
<h2>$subhead</h2>

                    <BLOCKQUOTE> 
						<table width=475 class="article" cellspacing=2>
						<tr><td align="right" width="75">Date:</td><td> $date</td></tr>
						<tr><td align="right" width="75">Time:</td><td> $time</td></tr>
						<tr><td align="right" width="75">Location:</td><td> $location</td></tr>
						<tr><td align="right" width="75">Cost:</td><td>$cost</td></tr>
						<tr><td align="right" width="75">&nbsp;</td><td><br>$body<br><br>
						<a href="$link">$link_title</a><br><br>
						<a href="$image_URL/$pdf">$pdf_title</a><br>
						</td></tr>
						</table>
					</BLOCKQUOTE>


<!--HTML BETWEEN STORY AND OTHER HEADLINES-->



<hr>
<H2>Other Conference Information:</H2>

<BLOCKQUOTE>
<table class="article" cellspacing=5 width=475>

EOF


$include = `$curr_dir/show_conferences.pl`;
print $include;

print <<EOF;		  
</table>

EOF
exit;                   
