-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathorphans.php
More file actions
34 lines (32 loc) · 1.02 KB
/
Copy pathorphans.php
File metadata and controls
34 lines (32 loc) · 1.02 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
<?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'); ?>