Member Directory

Print full directory by newspaper name.
'; echo 'Print full directory by county.
'; echo 'Print results of newspaper name search.
'; echo 'Print results of county search.
'; echo 'Print results of city search.'; echo"

\r\n"; echo"
"; /* echo"

Hoosier State Press Association

"; echo"

Newspaper Directory

"; echo"

Use your browser's print function to print the directory.

"; echo"
\r\n"; */ echo""; /* echo "Number of newspapers in the database = $num

"; echo "Number of paper roles in the database = $nu2

"; */ for( $i = 0; $i < $num; $i++ ) { $NewspaperID=mysql_result($result,$i,"NewspaperID"); $Member=mysql_result($result,$i,"Member"); $CountyID=mysql_result($result,$i,"CountyID"); $CountyName=mysql_result($result,$i,"CountyName"); $DirName=mysql_result($result,$i,"DirName"); $MailAdd1=mysql_result($result,$i,"MailAdd1"); $MailAdd2=mysql_result($result,$i,"MailAdd2"); $MailCity=mysql_result($result,$i,"MailCity"); $MailState=mysql_result($result,$i,"MailState"); $MailZip=mysql_result($result,$i,"MailZip"); $DelAdd1=mysql_result($result,$i,"DelAdd1"); $DelAdd2=mysql_result($result,$i,"DelAdd2"); $DelCity=mysql_result($result,$i,"DelCity"); $DelState=mysql_result($result,$i,"DelState"); $DelZip=mysql_result($result,$i,"DelZip"); $Phone=mysql_result($result,$i,"Phone"); $Phone2=mysql_result($result,$i,"Phone2"); $FAX=mysql_result($result,$i,"FAX"); $EdFax=mysql_result($result,$i,"EdFax"); $AdFax=mysql_result($result,$i,"AdFax"); $EMAIL=mysql_result($result,$i,"EMAIL"); $WEB=mysql_result($result,$i,"WEB"); $YearEstablished=mysql_result($result,$i,"YearEstablished"); $PARENTPAPR=mysql_result($result,$i,"PARENTPAPR"); $Freq=mysql_result($result,$i,"Freq"); $Issuedate=mysql_result($result,$i,"issuedate1"); $Circ_1=mysql_result($result,$i,"Circ_1"); echo "
"; echo "
$DirName

"; echo "
County:
$CountyName

\r\n"; echo "
City/State:
$MailCity, $MailState

\r\n"; /* echo "
Newspaper:
$DirName

\r\n"; */ echo "
Mailing Address:
$MailAdd1

\r\n"; if ($MailAdd2 != "") { echo "
$MailAdd2

\r\n"; } echo "
$MailCity, $MailState $MailZip

\r\n"; if ($DelAdd1 != "") { echo "
Street Address:
$DelAdd1

\r\n"; if ($DelAdd2 != "") { echo "
$DelAdd2

\r\n"; } echo "
$DelCity, $DelState $DelZip

\r\n"; } $Areacode = substr("$Phone",0,3); $FirstThreePhone = substr("$Phone",3,3); $LastFourPhone = substr("$Phone",6,4); echo "
Phone (Main):
($Areacode) $FirstThreePhone-$LastFourPhone
"; if ($Phone2 != "") { $Areacode2 = substr("$Phone2",0,3); $FirstThreePhone2 = substr("$Phone2",3,3); $LastFourPhone2 = substr("$Phone2",6,4); echo "
Phone (Toll Free):
($Areacode2) $FirstThreePhone2-$LastFourPhone2

\r\n"; } else { echo "
\r\n"; } if ($FAX != "") { $FAXAreacode = substr("$FAX",0,3); $FAXFirstThreePhone = substr("$FAX",3,3); $FAXLastFourPhone = substr("$FAX",6,4); echo "
Ad Fax:
($FAXAreacode) $FAXFirstThreePhone-$FAXLastFourPhone
"; } /* if ($EdFax != "") { echo "
Ed Fax:
$EdFax

\r\n"; } else { if ($FAX != "" or $EdFax != "") { echo "
\r\n"; } else { } } */ if ($EdFax != "") { echo "
Ed Fax:
$EdFax

\r\n"; } else { if ($FAX != "" or $EdFax != "") { echo "
\r\n"; } else { } } $emailfirstfour = substr($EMAIL,0,4); /* echo "$emailfirstfive"; */ if ($EMAIL != "") { if ($emailfirstfour == '(fir' || $emailfirstfour == '(las' || $emailfirstfour == 'firs' || $emailfirstfour == '(nam' || $emailfirstfour == 'name') { echo "
E-mail Pattern:
$EMAIL

\r\n"; } else { echo "
E-mail:

\r\n"; } } if ($WEB != "") { echo "
Website URL:

\r\n"; } if ($YearEstablished != "") { echo "
Year Established:
$YearEstablished

\r\n"; } if ($PARENTPAPR != "") { echo "
Parent Co.:
$PARENTPAPR

\r\n"; } if ($Freq != "") { echo "
Frequency:
$Freq

\r\n"; } if ($Issuedate != "") { echo "
Issues:
$Issuedate

\r\n"; } if ($Circ_1 != "") { $FormatCirc=number_format($Circ_1); echo "
Circulation:
$FormatCirc

\r\n"; } for( $j = 0; $j < $nu2; $j++ ) { $PersonPaper=mysql_result($resul2,$j,"NewspaperID"); if( $NewspaperID == $PersonPaper ) { $Role = mysql_result($resul2,$j,"Desc"); $FNam = mysql_result($resul2,$j,"FirstName"); $LNam = mysql_result($resul2,$j,"LastName"); echo "
$Role:
$FNam $LNam

\r\n"; } } echo"
"; /* echo"
"; */ /* echo "
\r\n"; */ } ?>