getVarString("docn",50,"none"); // get name of collection if any (such as Kendrick or Hill) // $coll = $_GET[coll]; $coll = $req->getVarString("coll",30,""); $colldisp = $coll; if ($coll=="Kendrick") { $colldisp = "Kendrick Family"; } // get name of location = folder in collection such as M1 // $loc = $_GET[loc]; $loc = $req->getVarString("loc",15,""); // build path to file from collection and location $path = "coll/"; if ($coll!="") {$path = $path . $coll . "/";} if ($loc!="") {$path = $path . $loc . "/";} // build name of text file $txtn = $path . "txt/".$docn.".txt"; $hilltxtn = $path . "txt-pre-no-html/".$docn.".txt"; // build name of MS Word .doc file $wordn = $path . "doc/".$docn.".doc"; // build name of PDF .pdf file $pdfn = $path . "pdf/".$docn.".pdf"; // build name of Rich Text .rtf file $rtfn = $path . "rtf/".$docn.".rtf"; // build name of .inc file containing blurb about document with description of doc $incn = $path . "inc/".$docn.".inc"; $incnexists = file_exists($incn); // build name of file containing specific copyright information if any // $cr = $_GET[cr]; $cr = $req->getVarString("cr",10,""); if ($cr=="") { // no special copyright filename passed as a parameter $copyrexists = FALSE; } else { // use special copyright info for this document $copyr="copyrights/".$cr.".inc"; $copyrexists = file_exists($copyr); } // get title if any // $t = $_GET[t]; $t = $req->getVarString("t",100,""); if ($t=="") { //no title passed in URL, try to get title from inc file if ($incnexists) { $firstline = readfirstline($incn); // first line should be:

title goes here

$pieces1 = explode(">",$firstline); $pieces2 = explode("<",$pieces1[1]); $t = $pieces2[0]; } } // get keywords if any // $k = $_GET[t]; $k = $req->getVarString("k",50,""); ?> <? echo $t . " - " . $colldisp; ?> Collection - Roane County, TN getVarInt("pages",1); // get optional number of images to show in 1 row for this text document; if not specified, =5 //$numinrow = $_GET[numinrow]; $numinrow = $req->getVarInt("numinrow",5); // numinrow is the max number of images in a row of the table of images, default 5 // allow for pages=0 if ($numpages>0){ // for now limit number of images to the arbitrary max. if ($numpages > $maximages) { $numpages = $maximages; } // get type of associated image(s), such as jpg or gif //$imgt = $_GET[imgt]; $imgt = $req->getVarAlpha_Num("imgt",$maxlenimgtstr,"jpg"); // allow for differing image types for each page by allowing underscore-separated list of img types, example: jpg_gif_jpg means pg1 jpg, p2 hif, p3 jpg. $imgtarrtmp = explode("_",$imgt); // $imgtarrtmp[0] now has either jpg or gif or png etc, and the rest of the elements either don't exist or are the other values in the list // pad the array of img types out with the default given $imgtfirst = $imgtarrtmp[0]; $imgtarr = array_pad($imgtarrtmp,$numpages,$imgtfirst); // counter for loops through images $counter; if ($numpages == 1) { // make thumbnail image name without -p# in name $imgth[] = $path . "th/".$docn.".jpg"; // use the single image type given // make full size image name without -p# in name $imgfull[] = $path . "images/".$docn.".".$imgt; } else { // make 0-based arrays of image names for all images for($counter = 0 ; $counter < $numpages ; $counter++) { $imagenum = $counter + 1; // add to array of thumbnail image names (thumbnails from Photoshop are always jpg) $imgth[] = $path . "th/".$docn."-p".$imagenum.".jpg"; // add to array of full size image names, using the image type for this image $imgfull[] = $path . "images/".$docn."-p".$imagenum.".".$imgtarr[$counter]; } } } ?>

Historical Document Archives

Notes - Images - Transcription

Notes - :

No notes available.
"; } // only show image section if there are >0 images if ($numpages>0) { ?>

Images - :

1) { for($counter = 1 ; $counter < $numpages ; $counter++) { $imagenum = $counter + 1; ?> $numinrow) and (($imagenum%$numinrow) == 0)) { ?>
<? echo $t; ?> -- Page 1
Image ".$imgfull[0]." unavailable."; } ?>
" alt="" />
Image ".$imagenum." image file ".$imgfull[$counter]." unavailable."; } ?>

Transcription - :


Other versions (if any):

PDF version (.pdf) MS Word version (.doc) Rich Text version (.rtf)