Images, item record menu, cleanup.

This commit is contained in:
2022-10-17 16:43:33 -05:00
parent f357b8bf3e
commit 1fa0f28174
107 changed files with 13 additions and 49 deletions

View File

@ -1,21 +1,5 @@
<?php
include 'creds.php';
/*
$Featured = "SELECT
ir.ItemRecordID AS ItemRecordID,
ir.CreatorBrowse AS CreatorBrowse,
ir.Title AS Title,
ir.Format AS ItemFormat,
ici.FileName AS CoverFile,
ici.AltText AS CoverAltText
FROM ItemRecords ir
INNER JOIN ItemCoverIndex ici ON ici.ItemCoverID = ir.ItemRecordID
WHERE CreationDate >= (DATE(NOW()) - INTERVAL 365 DAY)
LIMIT 4";
$FeaturedResult = mysqli_query($conn, $Featured);
*/
$db = new SQLite3('metadata.sqlite');
@ -163,26 +147,6 @@ $feature = $db->query('SELECT id, title, author_sort FROM books limit 4');
echo '<span class="fh5co-meta fh5co-date">'.$row_author_sort.'</span>';
echo '</article>';
}
/*
while($row = mysqli_fetch_array($FeaturedResult))
{
$row_ItemRecordID = $row['ItemRecordID'];
$row_CreatorBrowse = $row['CreatorBrowse'];
$row_Title = $row['Title'];
$row_ItemFormat = $row['ItemFormat'];
$row_CoverFile = $row['CoverFile'];
$row_CoverAltText = $row['CoverAltText'];
echo '<article class="col-lg-3 col-md-3 col-sm-3 col-xs-6 col-xxs-12 animate-box">';
echo '<figure>';
echo '<a href="itemrecord.php?itemid='.$row_ItemRecordID.'"><img src="images/'.$row_CoverFile.'" alt="'.$row_CoverAltText.'" title="'.$row_CoverAltText.'" class="img-responsive"></a>';
echo '</figure>';
echo '<span class="fh5co-meta">'.$row_ItemFormat.'</span>';
echo '<h2 class="fh5co-article-title"><a href="single.html">'.$row_Title.'</a></h2>';
echo '<span class="fh5co-meta fh5co-date">'.$row_CreatorBrowse.'</span>';
echo '</article>';
}
*/
?>
</div>
</div>