| Server IP : 192.169.170.185 / Your IP : 216.73.216.97 Web Server : Apache System : Linux p3plmcpnl495852.prod.phx3.secureserver.net 4.18.0-553.52.1.lve.el8.x86_64 #1 SMP Wed May 21 15:31:29 UTC 2025 x86_64 User : akhilnew ( 1712764) PHP Version : 5.6.40 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/akhilnew/public_html/patholjournal.com/ |
Upload File : |
<?php
require_once("header.php");
echo $page_content;
$graphicsview = isset($_GET['graphics']) ? sanitize(escape($_GET['graphics'])) : NULL;
if($year && $volume && $issue && $part && $refnumber && $graphicsview == 'graphics'):
$stmt = $mysqli->prepare("SELECT archivesid, title FROM archives WHERE (year = ? AND refnumber = ? AND volume = ? AND issue = ? AND part = ? AND status = 'enabled' AND conference IS NULL)") or die("An error occurred. Please try after some time.");
$stmt->bind_param('ssiis', $year, $refnumber, $volume, $issue, $part);
$stmt->execute();
$stmt->store_result();
$count_rows = $stmt->num_rows();
$stmt->bind_result($archivesid, $title);
$stmt->fetch();
$stmt->close();
if($count_rows > 0):
echo "<div class=\"head chead\">{$year}, Vol. {$volume} Issue {$issue}, Part {$part}</div>";
echo "<div class=\"abstract\">";
echo "<div class=\"head\">";
echo "<div class=\"row\"><h4>{$title}</h4></div>";
echo "</div>";
echo "<div class=\"body graphics\">";
$snum = 0;
$stmt = $mysqli->prepare("SELECT file, graphicsalt FROM graphics WHERE archivesid = ? ORDER BY graphicsid DESC");
$stmt->bind_param('i', $archivesid);
$stmt->execute();
$stmt->store_result();
if($stmt->num_rows() > 0):
$stmt->bind_result($graphicsfile, $graphicsalt);
while($stmt->fetch()):
$snum = $snum + 1;
if(($graphicsfile && file_exists($graphicsuploadpath . $archivesid . '/' . $graphicsfile))):
echo "<img src=\"{$graphicsdir}{$archivesid}/{$graphicsfile}\" alt=\"{$graphicsalt}\" /><br clear=\"all\">";
echo "<b>Fig. {$snum}:</b> {$graphicsalt}<br clear=\"all\"><br clear=\"all\">";
endif;
endwhile;
$stmt->close();
else:
echo "No graphics found.";
endif;
echo "</div>";
echo "</div>";
else:
echo "No article found.";
endif;
elseif($year && $volume && $issue && $part && $refnumber):
$stmt = $mysqli->prepare("SELECT archivesid, doi, refnumber, title, titlefont, authorname, authornamefont, abstract, file, supplementaryfile, pagenumber, views, downloads FROM archives WHERE (year = ? AND refnumber = ? AND volume = ? AND issue = ? AND part = ? AND status = 'enabled' AND conference IS NULL)") or die("An error occurred. Please try after some time.");
$stmt->bind_param('ssiis', $year, $refnumber, $volume, $issue, $part);
$stmt->execute();
$stmt->store_result();
$count_rows = $stmt->num_rows();
$stmt->bind_result($archivesid, $doi, $refnumber, $title, $titlefont, $authorname, $authornamefont, $abstract, $file, $supplementaryfile, $pagenumber, $views, $downloads);
$stmt->fetch();
$stmt->close();
if($count_rows > 0):
$newviews = $views + 1;
$title = strip_tags($title, '<i><em><sup><sub><img>');
$title = html_entity_decode($title);
$abstract = strip_tags($abstract, '<i><em><sup><sub><img><b><strong><div><br><br />');
$abstract = html_entity_decode($abstract);
$stmt = $mysqli->prepare("UPDATE archives SET views = ? WHERE archivesid = ?") or die("An error occurred. Please try after some time.");
$stmt->bind_param('ii', $newviews, $archivesid);
$stmt->execute();
$stmt->close();
echo "<div class=\"head chead\"><span class=\"fl\">{$year}, Vol. {$volume} Issue {$issue}, Part {$part}</span><span class=\"fr\">Pages: {$pagenumber}</span></div>";
echo "<div class=\"abstract\">";
echo "<div class=\"head\">";
echo "<div class=\"row\"><h4>{$title}</h4></div>";
echo "<div class=\"row\">{$authorname}</div>";
if($doi):
echo "<div class=\"row\"><b>DOI:</b> <a href=\"https://doi.org/{$doi}\" target=\"_blank\">https://doi.org/{$doi}</a></div>";
endif;
echo "</div>";
echo "<div class=\"row stats\">";
echo "<div class=\"fl\">Viewed: <b>{$views}</b> - Downloaded: <b>{$downloads}</b></div>";
echo "<div class=\"fr\">";
$filepath = $year . '/vol' . $volume . 'issue' . $issue . '/' . $part . '/';
if(($file && file_exists($archiveuploadpath . $filepath . $file))):
echo "<a href=\"{$baseurl}articles/{$archivesid}/{$file}\" target=\"_blank\" />Full Article</a>";
endif;
if(($supplementaryfile && file_exists($archiveuploadpath . $filepath . $supplementaryfile))):
echo " ";
echo "<a href=\"{$baseurl}articles/{$archivesid}/{$supplementaryfile}\" target=\"_blank\" />Supplementary File</a>";
endif;
echo "</div>";
echo "</div>";
echo "<div class=\"row\" style=\"text-align:center\"><b>ABSTRACT</b></div>";
echo "<div class=\"row\">{$abstract}</div>";
$stmt = $mysqli->prepare("SELECT * FROM graphics WHERE archivesid = ?") or die("An error occurred. Please try after some time.");
$stmt->bind_param('i', $archivesid);
$stmt->execute();
$stmt->store_result();
$count_rows = $stmt->num_rows();
$stmt->close();
if($count_rows > 1):
echo "<div class=\"row\">";
echo "<b>Related Graphics:</b> ";
echo "<a href=\"{$baseurl}archives/{$year}/vol{$volume}issue{$issue}/{$part}/{$refnumber}/graphics\">Click here for more related graphics</a>";
echo "</div>";
endif;
$stmt = $mysqli->prepare("SELECT file, graphicsalt FROM graphics WHERE archivesid = ? ORDER BY graphicsid DESC LIMIT 1") or die("An error occurred. Please try after some time.");
$stmt->bind_param('i', $archivesid);
$stmt->execute();
$stmt->store_result();
if($stmt->num_rows() > 0):
$stmt->bind_result($graphicsfile, $graphicsalt);
while($stmt->fetch()):
if(($graphicsfile && file_exists($graphicsuploadpath . $archivesid . '/' . $graphicsfile))):
echo "<div class=\"row graphics\">";
echo "<img src=\"{$graphicsdir}{$archivesid}/{$graphicsfile}\" alt=\"{$graphicsalt}\" /><br clear=\"all\">";
echo "<b>Fig.:</b> {$graphicsalt}<br clear=\"all\">";
echo "</div>";
endif;
endwhile;
$stmt->close();
endif;
echo "</div>";
?>
<br clear="all">
<br clear="all">
<a href="https://www.akinik.com/journallist" target="_blank">
<img src="<?php echo $baseurl; ?>images/call-for-paper-ads.jpg" alt="<?php echo $websitename;?>" />
</a>
<?php
echo '<div class="fluid citation">';
echo '<div class="head">How to cite this article:</div>';
echo '<div class="body">';
if($authornamefont):
echo '<span style="font-family:'.$authornamefont.' !important;font-size:18px">'.strip_tags(str_replace(' and ', ', ', $authorname)).'</span>. ';
else:
echo str_replace(' and ', ', ', $authorname).'. ';
endif;
if($titlefont):
echo '<span style="font-family:'.$titlefont.' !important;font-size:18px;text-align:center">'.strip_tags($title).'</span>';
else:
echo strip_tags($title);
endif;
echo '. Int J Clin Diagn Pathol '.$year.';'.$volume.'('.$issue.'):'.$pagenumber.'.';
if($doi):
echo ' DOI: <a href="https://doi.org/'.$doi.'" target="_blank">'.$doi.'</a>';
endif;
echo '</div>';
echo '</div>';
else:
echo "No article found.";
endif;
elseif(($year && $volume && $issue && $part)):
echo <<<EOJ
<div class="head chead">{$year}, Vol. {$volume} Issue {$issue}, Part {$part}</div>
<table border="0" cellpadding="0" cellspacing="0" class="fluid articles">
<tr>
<th align="center" valign="middle" class="xs">S. No.</th>
<th align="left" valign="middle">Title and Authors Name</th>
</tr>
EOJ;
$snum = 0;
$stmt = $mysqli->prepare("SELECT archivesid, doi, refnumber, title, authorname, abstract, file, supplementaryfile, country, pagenumber, views, downloads FROM archives WHERE (year = ? AND volume = ? AND issue = ? AND part = ? AND status = 'enabled' AND conference IS NULL) ORDER BY LENGTH(pagenumber), pagenumber ASC") or die("An error occurred. Please try after some time.");
$stmt->bind_param('siis', $year, $volume, $issue, $part);
$stmt->execute();
$stmt->store_result();
if($stmt->num_rows() > 0):
$stmt->bind_result($archivesid, $doi, $refnumber, $title, $authorname, $abstract, $file, $supplementaryfile, $country, $pagenumber, $views, $downloads);
while($stmt->fetch()):
$snum = $snum + 1;
$title = strip_tags(html_entity_decode($title), '<i><em><sup><sub><img>');
echo "<tr>";
echo "<td align=\"center\" valign=\"top\" class=\"xs\">{$snum}.</td>";
echo "<td align=\"left\" valign=\"top\">";
echo "<div class=\"row\"><b>{$title}</b></div>";
echo "<div class=\"row\">{$authorname}</div>";
if($doi):
echo "<div class=\"row doi\">";
echo "<b>DOI:</b> ";
echo "<a href=\"https://doi.org/{$doi}\" target=\"_blank\">https://doi.org/{$doi}</a>";
echo "</div>";
endif;
echo '<div class="row">Int. J. Clin. Diagn. Pathol., '.$year.'; '.$volume.'('.$issue.'): '.$pagenumber.'</div>';
echo "<div class=\"row link\">";
if($abstract):
echo "<a href=\"{$baseurl}archives/{$year}/vol{$volume}issue{$issue}/{$part}/{$refnumber}\"><b>Abstract</b></a> | ";
endif;
$filepath = $archiveuploadpath . $year . '/vol' . $volume . 'issue' . $issue . '/' . $part . '/';
if(($file && file_exists($filepath . $file))):
echo "<a href=\"{$baseurl}articles/{$archivesid}/{$file}\" target=\"_blank\"><b>Download</b></a> | ";
$filesize = filesize($filepath.$file) / 1024;
$filesize = round($filesize);
$filesize = 'File Size: ('.$filesize.' KB) | ';
else:
$filesize = '';
endif;
if(($supplementaryfile && file_exists($filepath . $supplementaryfile))):
echo "<a href=\"{$baseurl}articles/{$archivesid}/{$supplementaryfile}\" target=\"_blank\"><b>Supplementary File</b></a> | ";
endif;
echo 'Country: '.$country.' | '.$filesize.'<b>'.$views.'</b> Views <b>'.$downloads.'</b> Downloads';
echo "</div>";
echo "</td>";
echo "</tr>";
endwhile;
else:
echo "<tr>";
echo "<td align=\"center\" valign=\"middle\" colspan=\"3\">No Results Found</td>";
echo "</tr>";
endif;
$stmt->close();
echo <<<EOJ
</table>
EOJ;
else:
echo '<div class="head chead">' . $page_title . '</div>';
echo '<div class="fluid archives">';
function part($year, $volume, $issue){
global $mysqli, $baseurl;
$list = "";
$stmt = $mysqli->prepare("SELECT part FROM archives WHERE (year = ? AND volume = ? AND issue = ? AND status = 'enabled' AND conference IS NULL) GROUP BY part ORDER BY part ASC") or die("An error occurred. Please try after some time.");
$stmt->bind_param('sii', $year, $volume, $issue);
$stmt->execute();
$stmt->store_result();
if($stmt->num_rows() > 0):
$list .= "<ul class=\"fluid\">";
$stmt->bind_result($part);
while($stmt->fetch()):
$list .= "<li><a href=\"{$baseurl}archives/{$year}/vol{$volume}issue{$issue}/{$part}\">Part {$part}</a></li>";
endwhile;
$stmt->close();
$list .= "</ul>";
endif;
return $list;
}
function voliss($year){
global $mysqli;
$list = "";
$stmt = $mysqli->prepare("SELECT month, volume, issue FROM archives WHERE (year = ? AND status = 'enabled' AND conference IS NULL) GROUP BY issue ORDER BY volume DESC, issue DESC") or die("An error occurred. Please try after some time.");
$stmt->bind_param('s', $year);
$stmt->execute();
$stmt->store_result();
if($stmt->num_rows() > 0):
$stmt->bind_result($month, $volume, $issue);
while($stmt->fetch()):
$month = preg_replace('/[0-9]+/', '', $month);
$month = str_replace(' ', '', $month);
$month = str_replace('-', ' - ', $month);
$list .= "<div class=\"fluid vi\"><b>VOL. {$volume} : ISSUE {$issue}</b> <i>({$month} {$year})</i></div>";
$list .= part($year, $volume, $issue);
endwhile;
$stmt->close();
endif;
return $list;
}
$stmt = $mysqli->prepare("SELECT year FROM archives WHERE (status = 'enabled' AND conference IS NULL) GROUP BY year ORDER BY year DESC") or die("An error occurred. Please try after some time.");
$stmt->execute();
$stmt->store_result();
$count_rows = $stmt->num_rows();
if($count_rows > 0):
$stmt->bind_result($year);
while($stmt->fetch()):
echo '<div class="head"><b>Archives for ' . $year . '</b></div>';
echo '<div class="body">' . voliss($year) . '</div>';
endwhile;
$stmt->close();
else:
echo "<div align=\"center\"><img src=\"{$imageurl}coming-soon.png\" alt=\"Comming Soon\" /></div>";
endif;
echo "</div>";
endif;
require_once("footer.php");
?>