diff options
author | Anton Luka Šijanec <anton@sijanec.eu> | 2023-09-01 14:40:59 +0200 |
---|---|---|
committer | Anton Luka Šijanec <anton@sijanec.eu> | 2023-09-01 14:40:59 +0200 |
commit | 1a5150510a6458db93e0cba04e0ee9e5e7af586a (patch) | |
tree | 97c15d9ace57a4c804a58250d634c2d2fb06d457 /prog | |
parent | 6d.conf (diff) | |
parent | inventar id anchor (diff) | |
download | r-1a5150510a6458db93e0cba04e0ee9e5e7af586a.tar r-1a5150510a6458db93e0cba04e0ee9e5e7af586a.tar.gz r-1a5150510a6458db93e0cba04e0ee9e5e7af586a.tar.bz2 r-1a5150510a6458db93e0cba04e0ee9e5e7af586a.tar.lz r-1a5150510a6458db93e0cba04e0ee9e5e7af586a.tar.xz r-1a5150510a6458db93e0cba04e0ee9e5e7af586a.tar.zst r-1a5150510a6458db93e0cba04e0ee9e5e7af586a.zip |
Diffstat (limited to 'prog')
-rw-r--r-- | prog/inventar/index.php | 4 |
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"]} />"; |