PIER Online
$value){
$xfolders[$index] = strtolower($value);
}
#rsort($xfolders); //Sorts to Descending Order
$yfolders = array();
foreach($xfolders as $index => $folderpath){
preg_match("/(?<=pier)\d{2,3}.?/", $folderpath, $xvolume); //Volume with Suffix
preg_match("/(?<=pier)\d{2,3}/", $folderpath, $xvolumenumber); //Just Volume Number
if($xvolume[0] > 0 || $xvolumenumber[0] > 0){
if($xvolumenumber[0]){
$yfolders[intval($xvolumenumber[0])] = $folderpath;
}else{
$yfolders[intval($xvolume[0])] = $folderpath;
}
}
}
krsort($yfolders); //Sorts to Descending Order
foreach ($yfolders as $xfolder){
preg_match("/(?<=pier)\d{2,3}.?/",$xfolder, $xvolume); //Volume with Suffix
preg_match("/(?<=pier)\d{2,3}/",$xfolder, $xvolumenumber); //Just Volume Number
include_once('confPIERS.inc.php');
$xlink = myconnect_jie();
$xmyquery = "SELECT * FROM paper WHERE journal='PIER' AND volume='".$xvolumenumber[0]."' LIMIT 1";
$xresults = mysql_query($xmyquery);
$xline = mysql_fetch_assoc($xresults);
if($xvolume){ //Only create link for pier(##|###)(anything) pattern
$menu .= "\nPIER ".$xvolume[0]." [".$xline["year"]."]
";
}
mysql_close($xlink);
}
echo $menu;
?>
*All online articles after volume 46 are now in color.