-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathorphans.php
31 lines (29 loc) · 995 Bytes
/
orphans.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
<?php
//INCLUDES
require_once('listItems.inc.php');
include_once('headerHtml.inc.php');
include_once('header.php');
//RETRIEVE URL VARIABLES
$values=array();
$values['notOrphansfilterquery']=(empty($config['suppressAsOrphans']))?"'i','m'":$config['suppressAsOrphans'];
$maintable = query("getorphaneditems",$config,$values,$sort);
$cnt=($maintable)?count($maintable):0;
$dispArray=array();
$thisrow=0;
$dispArray=array(
'type'=>'Type'
,'title'=>'Name'
,'description'=>'Description'
);
$show=array();
foreach ($dispArray as $key=>$val)
$show[$key]=true;
if ($config['debug'] & _GTD_DEBUG) echo '<pre>Orphans:',print_r($maintable,true),'</pre>';
echo "<h2>$cnt Orphaned Item",($cnt===1)?'':'s',"</h2>";
if ($cnt) { ?>
<table class="datatable sortable" id="typetable" summary='table of orphans'>
<?php require('displayItems.inc.php'); ?>
</table>
<?php } else { ?>
<p>Congratulations: you have no orphaned items.</p>
<?php } include_once('footer.php'); ?>