summaryrefslogtreecommitdiffstats
path: root/prog/inventar
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2023-08-09 00:23:13 +0200
committerAnton Luka Šijanec <anton@sijanec.eu>2023-08-09 00:23:13 +0200
commite3b710bdabd560fd85ac969af16005d78e731749 (patch)
tree45426346efa256fca99e3c7046cfbb721eb40ede /prog/inventar
parentsuffix parsing and config printing works (diff)
downloadr-e3b710bdabd560fd85ac969af16005d78e731749.tar
r-e3b710bdabd560fd85ac969af16005d78e731749.tar.gz
r-e3b710bdabd560fd85ac969af16005d78e731749.tar.bz2
r-e3b710bdabd560fd85ac969af16005d78e731749.tar.lz
r-e3b710bdabd560fd85ac969af16005d78e731749.tar.xz
r-e3b710bdabd560fd85ac969af16005d78e731749.tar.zst
r-e3b710bdabd560fd85ac969af16005d78e731749.zip
Diffstat (limited to 'prog/inventar')
-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"]} />";