-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheditListItemsMin.php
41 lines (36 loc) · 1.23 KB
/
editListItemsMin.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
include_once('header.php');
include_once('lists.inc.php');
if ($values['itemId']) {
$row = query("select{$check}listitem",$config,$values,$sort);
if (!$row) {
echo "<p class='error'>That {$check}list item does not exist</p>\n";
include_once('footer.php');
exit();
}
foreach (array('listId','item','notes', 'hyperlink') as $field)
$values[$field]=$row[0][$field];
if ($isChecklist) {
$values['checked']=$row[0]['checked'];
$values['ignored']=$row[0]['ignored'];
}
else
$values['dateCompleted']=$row[0]['dateCompleted'];
$action='itemedit';
} else {
$values['listId']=(int) $_GET['listId'];
$values['item']='';
$values['notes']='';
$values['hyperlink']='';
$values['dateCompleted']=null;
$values['checked']=null;
$action='itemcreate';
}
$row = query("select{$check}list",$config,$values,$sort);
$ptitle = $row[0]['title'];
$lshtml = listselectbox($config,$values,$sort,$check);
/* require_once("headerHtml.inc.php"); */
?>
<?php echo '<pre>' . makeclean($values['item']) . '<br><br>'; ?>
<?php echo makeclean($values['notes']);?>
<?php echo '<br><br><a href="editListItems.php?type=c&itemId=' . $values['itemId'] . '">edit</a>'; ?>