website", "website at http://medpalmrev.medtau.org", $contents); $vnum=$issuearray[1]; $nnum=$issuearray[2]; if(strlen($vnum)==1)$vnum="0".$vnum; if(strlen($nnum)==1)$nnum="0".$nnum; $newsletter="v".$vnum."n".$nnum; } //Current is used to display the issue without frames, so no title box or navigation bar if($function=="current" || $function=="ag") $titleandnavbar=false; else $titleandnavbar=true; //Build the for the <head> $title=title($function, $issuearray[1], $issuearray[2]); //ALWAYS build this header, unless outputting an iSilo document if($function!="isiloconv")echo buildheader($title, $titleandnavbar, $newsletter); //Set up the document with faux frames (ie. the title box and the navigation bar) if applicable //The 'current' function is used to display the latest newsletter without faux frames //for the purposesof Palm conversion, etc. and isiloconv displays nothing - only allows download //of the iSilo document. if($function!="current" && $function!="ag" && $function!="isiloconv") { echo "<center><table width='750' height='100%' cellspacing='13'><tr height='80'><td colspan='2' width='100%'>\n"; titlebar(); echo "</td></tr><tr><td width='0' valign='top'>"; navbar($searchterm); echo "</td><td width='100%' valign='top'>\n\n"; //echo"<font face='Arial, Helvetica, sans-serif'>"; } //Call the appropriate function switch($function) { case "current": case "ag": //Display latest newsletter without faux frames case "issue": echo $contents; break; //Display an issue with faux frames case "archives": listarchives(); break; //List archived, back issues case "search": searchnewsletters($searchterm); break; //Display results of a search case "searchhelp": searchhelp(); break; //Provide help on searching case "about": about(); break; //Show 'about' info case "contact": contact(); break; //Show contact info case "dltopalm": dltopalm(); break; //Show page with options to get the newsletter for AvantGo or iSilo } //Call appropriate function cont'd if($function=="isiloconv") isiloconv(); //Convert latest issue to iSilo format and download //If function is anything other than isiloconv, close the page. else { if($function!="current" && $function!="ag") echo"\n\n\t</td></tr></table></center>"; //Not centered in a table if function=current echo buildfooter(); } /***************************************************************************\ * End Output * \***************************************************************************/ /***************************************************************************\ * End Script * \***************************************************************************/ ?>