-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlistItems.php
More file actions
160 lines (158 loc) · 8.92 KB
/
Copy pathlistItems.php
File metadata and controls
160 lines (158 loc) · 8.92 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
<?php
//INCLUDES
set_time_limit(30);
include_once('header.php');
require_once('listItems.inc.php');
include_once('headerHtml.inc.php');
?>
<div id="filter">
<form action="listItems.php" method="post">
<div class="formrow">
<label for='categoryId' class='left nomargin'>Category:</label>
<select name="categoryId" id="categoryId" title="Filter items by parent category">
<?php echo $cashtml; ?>
</select>
<input type="checkbox" id="notcategory" name="notcategory" title="Exclude category from list" value="true" <?php if ($filter['notcategory'] == "true") {
echo 'checked="checked"';
}?> />
<label for='notcategory' class='notfirst'>NOT</label>
<label for='contextId' class='left'>Context:</label>
<select name="contextId" id="contextId" title="Filter items by context">
<?php echo $cshtml; ?>
</select>
<input type="checkbox" id="notspacecontext" name="notspacecontext" title="Exclude spatial context from list" value="true" <?php if ($filter['notspacecontext'] == "true") {
echo 'checked="checked"';
}?> />
<label for='notspacecontext' class='notfirst'>NOT</label>
<label for='timeframeId' class='left'>Time:</label>
<select name="timeframeId" id="timeframeId" title="Filter items by time context">
<?php echo $tshtml; ?>
</select>
<input type="checkbox" name="nottimecontext" id="nottimecontext" title="Exclude time context from list" value="true" <?php if ($filter['nottimecontext'] == "true") {
echo 'checked="checked"';
}?> />
<label for='nottimecontext' class='notfirst'>NOT</label>
</div>
<div class="formrow">
<input type='checkbox' name='completed' id='completed' value='true' class="left first" <?php if ($filter['completed'] == "true") {
echo 'checked="checked"';
}?> title="Show achievements" /><label for='completed' class='right'>Completed</label>
<input type='checkbox' name='tickler' id='suppressed' value='true' class="notfirst" <?php if ($filter['tickler'] == "true") {
echo 'checked="checked"';
}?> title="Show tickler <?php echo $typename ?>s" /><label for='suppressed' class='right'>Tickler</label>
<input type='checkbox' name='someday' id='someday' value='true' class="notfirst" <?php if ($filter['someday'] == "true") {
echo 'checked="checked"';
}?> title="Show someday/maybe <?php echo $typename ?>s" /><label for='suppressed' class='right'>Someday</label>
<input type="checkbox" name="nextonly" id="nextonly" class="notfirst" value="true" <?php if ($filter['nextonly'] == "true") {
echo 'checked="checked"';
}?> title="Show only Next Actions" /><label for='nextonly' class='right'>Next Actions</label>
<input type="checkbox" name="dueonly" id="dueonly" class="notfirst" value="true" <?php if ($filter['dueonly'] == "true") {
echo 'checked="checked"';
}?> title="Show only <?php echo $typename ?>s with a due date" /><label for='dueonly' class='right'>Due</label>
<input type="checkbox" name="repeatingonly" id="repeatingonly" class="notfirst" value="true" <?php if ($filter['repeatingonly'] == "true") {
echo 'checked="checked"';
}?> title="Show only repeating <?php echo $typename ?>s" /><label for='repeatingonly' class='right'>Repeating</label>
<input type="checkbox" name="everything" id="everything" class="notfirst" value="true" <?php if ($filter['everything'] == "true") {
echo 'checked="checked"';
}?> title="Show all <?php echo $typename ?>s, regardless of status or labels" onclick='javascript:filtertoggle("toggle");' /><label for='everything'>Show all</label>
</div>
<div class="formbuttons">
<label for="liveparents" class='left first' title="Not live means either completed, a someday/maybe, or it has not yet reached its tickler date">Status of parent:</label>
<select name="liveparents" id="liveparents" title="Not live means either completed, a someday/maybe, or it has not yet reached its tickler date">
<?php
foreach (array('Live' => 'true','Any' => '*','Not live' => 'false') as $key => $val) {
echo "<option value='$val'"
,(($filter['liveparents'] == $val) ? " selected='selected'" : '')
,">$key</option>\n";
}
?>
</select>
<label for='type' class='left notfirst'>Type:</label>
<select name="type" id="type" title="Filter items by type">
<?php
$types = array('*' => '(any)') + getTypes();
foreach ($types as $key => $thistype) {
if ($key !== 's') {
echo "<option value='$key'"
,($filter['type'] == $key) ? " selected='selected' " : ''
,">$thistype</option>\n";
}
}
?>
</select>
<label for='needle' class='notfirst'>Find:</label>
<input type='text' name='needle' id='needle' value='<?php echo $values['needle']; ?>' />
<input type="submit" id="filtersubmit" class="button" value="Filter"
name="submit" onclick="javascript:filtertoggle('all');"
title="Filter <?php echo $typename ?>s by selected criteria" />
</div>
</form>
</div>
<?php if (count($remindertable)) { ?>
<h2>Reminder Notes</h2>
<p class='warning'>Deprecated feature: notes will be withdrawn before the 1.0 release of gtd-php.
They have been superseded by tickler actions.
Normal actions can be put into a tickler file, to be suppressed until a specified number of days before their deadlines</p>
<table class="datatable sortable" summary="table of reminders" id="remindertable">
<thead>
<tr>
<th>Reminder</th>
<th>Title</th>
<th>Note</th>
</tr>
</thead>
<tbody>
<?php foreach ($remindertable as $row) {
echo "<tr>\n"
,"<td>",$row['date'],"</td>\n"
,"<td><a href='note.php?referrer=t&noteId=",$row['id']
,'&type=',$values['type']
,"' title='Edit {$row['title']}'>{$row['title']}</a></td>\n"
,"<td>{$row['note']}</td>\n"
,"</tr>";
} ?>
</tbody>
</table>
<?php } ?>
<h2><?php echo $sectiontitle; ?></h2>
<?php if (count($maintable)) {
// echo '<pre>'; var_dump($maintable);die;
?>
<form action="processItems.php" method="post">
<table class="datatable sortable" summary="Table of actions" id="actiontable">
<?php require('displayItems.inc.php'); ?>
</table>
<div>
<?php
if ($show['NA']) {
echo "<input type='hidden' name='wasNAonEntry' value='",implode(' ', $wasNAonEntry),"' />\n";
}
if ($showsubmit) {
echo "<input type='submit' class='button' value='Update marked {$typename}s' name='submit' />";
}
?>
<input type="hidden" name="referrer" value="<?php echo $referrer; ?>" />
<input type="hidden" name="type" value="<?php echo $values['type']; ?>" />
<input type="hidden" name="multi" value="y" />
<input type="hidden" name="action" value="complete" />
</div>
</form>
<?php
}
if (isset($endmsg['header'])) {
echo "<h4>{$endmsg['header']}</h4>\n";
}
if (isset($endmsg['link'])) {
echo "<a href='{$endmsg['link']}'>{$endmsg['prompt']}</a>\n";
}
?>
<p class='noprint'>To bookmark this filtered list, bookmark <a href='<?php echo $referrer; ?>'>this link</a></p>
<script type='text/javascript'>/* <![CDATA[ */
filtertoggle();
<?php if ($quickfind) {
echo "focusOnForm('needle');\n";
} else {
echo "focusOnForm('notcategory');\n";
} ?>
/* ]]> */ </script>
<?php include_once('footer.php'); ?>