summaryrefslogtreecommitdiffstats
path: root/prog
diff options
context:
space:
mode:
Diffstat (limited to 'prog')
-rw-r--r--prog/inventar/index.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/prog/inventar/index.php b/prog/inventar/index.php
index 4407939..65b1bf8 100644
--- a/prog/inventar/index.php
+++ b/prog/inventar/index.php
@@ -29,7 +29,7 @@ img:hover {
<table>
<?php
if (empty($_SERVER['PHP_AUTH_USER']))
- echo "<a href=?prijava=1>prijava</a>";
+ echo '<a href=?prijava=1>prijava</a> <small> <a href="mailto:anton@sijanec.eu?subject=registracija na inventar&body=rad bi imel profil na inventarju">registracija</a></small>';
else
echo "<form method=post><input type=submit name=dodaj value='dodaj stvar kot {$_SERVER['PHP_AUTH_USER']}' /></form>";
$passed = [];
@@ -74,6 +74,8 @@ foreach ($ret as $row) {
$ok = true;
if ($k == "slika" && !empty($v))
echo "<img src=$v></img>";
+ if ($k == "datum")
+ echo "<a id=id{$row["id"]} href=#id{$row["id"]}>";
if ($k == "lastnik" && $v == @$_SERVER['PHP_AUTH_USER']) {
echo "<input type=submit value=shrani name={$row["id"]} />";
echo "<input type=hidden name=id value={$row["id"]} />";