-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathliveParents.inc.php
20 lines (20 loc) · 1.16 KB
/
liveParents.inc.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<table summary='parents selected' class='datatable' id='parenttable' style='display:inline'>
<tbody id='parentlist'>
<tr>
<td><a class='add' href='javascript:gtd_search();' title='Click here to select parent(s)'>+</a></td>
<td><a href='javascript:gtd_search();' title='Click here to select parent(s)'>Select parent(s)</a></td>
<td> </td>
</tr><?php
if (is_array($parents) && count($parents)) foreach ($parents as $parent) {
$ptype=($parent['isSomeday']=='y')?'s':$parent['ptype'];
echo "<tr id='parentrow{$parent['parentId']}'>"
,"<td><a href='javascript:removeParent(\"{$parent['parentId']}\")'
title='remove as parent' class='remove'>X</a></td>"
,"<td><a href='itemReport.php?itemId={$parent['parentId']}' title='view parent'>"
,makeclean($parent['ptitle']),"</a></td>"
,"<td>",getTypes($ptype)
,"<input type='hidden' name='parentId[]' value='{$parent['parentId']}' /></td>"
,"</tr>\n";
}
?></tbody>
</table>