From d3b110e4eb98515d44826e0ce7d5ce3f85892959 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 25 Feb 2017 10:23:51 +0300 Subject: mark epub format in index --- index.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index 28a8dc1..89a7c8c 100644 --- a/index.php +++ b/index.php @@ -169,8 +169,10 @@ while ($data_line = $data_result->fetchArray(SQLITE3_ASSOC)) { if ($data_line["format"] != "ORIGINAL_EPUB") { + $label_class = $data_line["format"] == "EPUB" ? "label-success" : "label-primary"; + $download_link = "backend.php?op=download&id=" . $data_line["id"]; - print "" . $data_line["format"] . " "; + print "" . $data_line["format"] . " "; } } -- cgit v1.2.3