summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php17
1 files changed, 10 insertions, 7 deletions
diff --git a/index.php b/index.php
index 77f2825..aacae31 100644
--- a/index.php
+++ b/index.php
@@ -45,7 +45,7 @@ function is_pos(): bool
<tr>
<form action="api/change-order.php" method="post">
<td>
- <?php if ($d["order"] !== $count && $eid === null) { ?>
+ <?php if ($d["order"] !== "$count" && $eid === null) { ?>
<input type="hidden" name="old-order" value="<?= $d["order"] ?>">
<input type="hidden" name="new-order" value="<?= intval($d["order"]) + 1 ?>">
<input type="submit" value="pos -" />
@@ -64,7 +64,7 @@ function is_pos(): bool
</form>
<?php } else { ?>
<td>
- <form action="/api/set-session.php?eid=<?= $id ?>" method="post"><input type="submit" value="E"></form>
+ <form action="api/set-session.php?eid=<?= $id ?>" method="post"><input type="submit" value="E"></form>
</td>
<form action="api/remove.php" method="post">
<td><?= htmlspecialchars($d["name"]) ?></td>
@@ -93,10 +93,10 @@ function is_pos(): bool
<form action="api/remove.php" method="post">
<td></td>
<td></td>
- <td data-id="<?= $d['id'] ?>"><?= htmlspecialchars($d["name"]) ?></td>
- <td data-id="<?= $d['id'] ?>"><img src="/imgs/<?= htmlspecialchars($d["thumbnail"]) ?>" width="200" /></td>
- <td data-id="<?= $d['id'] ?>"><?= htmlspecialchars($d["author"]) ?></td>
- <td data-id="<?= $d['id'] ?>"><?= $d["magazine"] ?></td>
+ <td><?= htmlspecialchars($d["name"]) ?></td>
+ <td><img src="imgs/<?= htmlspecialchars($d["thumbnail"]) ?>" width="200" /></td>
+ <td><?= htmlspecialchars($d["author"]) ?></td>
+ <td><?= $d["magazine"] ?></td>
<td></td>
<td></td>
</form>
@@ -118,7 +118,10 @@ function is_pos(): bool
<?php } ?>
</tbody>
</table>
- <a href="/api/export.php">Export to xlsx</a>
+ <?php if (is_pos()) { ?>
+ <a href="api/export.php">Export to xlsx</a><br>
+ <a href="../mlos.zip">Sources</a>
+ <?php } ?>
<!-- <script src="/src/main.js"></script> -->
</body>