git.shiar.nl
/
minimedit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
issue: record row changes in journal
[minimedit.git]
/
issue
/
index.php
diff --git
a/issue/index.php
b/issue/index.php
index abd96119bee1e5c02fbb548e062218c0036c0d9c..ff99064574b88658893271e011dd49f0f97e09e1 100644
(file)
--- a/
issue/index.php
+++ b/
issue/index.php
@@
-6,23
+6,28
@@
require_once 'database.inc.php';
if ($id) {
$Article->title = "Issue #$id";
if ($id) {
$Article->title = "Issue #$id";
- $
row
= $Db->query(
+ $
Issue
= $Db->query(
'SELECT * FROM issues WHERE id = ?', [$id]
)->fetch();
'SELECT * FROM issues WHERE id = ?', [$id]
)->fetch();
- if (!$
row
) throw new Exception('Issuenummer niet gevonden');
+ if (!$
Issue
) throw new Exception('Issuenummer niet gevonden');
- $Article->title .= ': '.htmlspecialchars($
row
->subject);
+ $Article->title .= ': '.htmlspecialchars($
Issue
->subject);
print "<h2>{$Article->title}</h2>\n";
print "<h2>{$Article->title}</h2>\n";
- print $
row
->body;
+ print $
Issue
->body;
printf('<p><em>%s</em>%s <small class=date>%s</small></p>'."\n",
'Geplaatst',
printf('<p><em>%s</em>%s <small class=date>%s</small></p>'."\n",
'Geplaatst',
- $
row->author ? " door <strong>{$row
->author}</strong>" : '',
- showdate(preg_split('/\D/', $
row
->created))
+ $
Issue->author ? " door <strong>{$Issue
->author}</strong>" : '',
+ showdate(preg_split('/\D/', $
Issue
->created))
);
);
- if ($row->closed) {
+ if ($Issue->assign) {
+ printf('<p><em>%s</em> aan <strong>%s</strong></p>'."\n",
+ 'Toegewezen', htmlspecialchars($Issue->assign)
+ );
+ }
+ if ($Issue->closed) {
printf('<p><em>%s</em>%s <small class=date>%s</small></p>'."\n",
'Opgelost', '',
printf('<p><em>%s</em>%s <small class=date>%s</small></p>'."\n",
'Opgelost', '',
- showdate(preg_split('/\D/', $
row
->closed))
+ showdate(preg_split('/\D/', $
Issue
->closed))
);
}
$Args = "/$id"; # minimal reference
);
}
$Args = "/$id"; # minimal reference
@@
-33,7
+38,7
@@
if ($id) {
if ($_POST) {
$html = nl2br(htmlspecialchars($_POST['body']));
$html = empty($html) ? NULL : "<p>$html</p>";
if ($_POST) {
$html = nl2br(htmlspecialchars($_POST['body']));
$html = empty($html) ? NULL : "<p>$html</p>";
- $query = $Db->
inser
t('issues', [
+ $query = $Db->
se
t('issues', [
'page' => $Page,
'subject' => $_POST['subject'],
'body' => $html,
'page' => $Page,
'subject' => $_POST['subject'],
'body' => $html,