From 17e78ba9e4fb6c71d46dbe599727fc88d2592ea0 Mon Sep 17 00:00:00 2001 From: Jared Hancock <jared@osticket.com> Date: Thu, 14 Nov 2013 10:02:55 -0600 Subject: [PATCH] Add `type` column to site pages listing --- include/staff/pages.inc.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/include/staff/pages.inc.php b/include/staff/pages.inc.php index 6afc4dc6c..34a3fa2f9 100644 --- a/include/staff/pages.inc.php +++ b/include/staff/pages.inc.php @@ -9,7 +9,8 @@ $sql='SELECT page.id, page.isactive, page.name, page.created, page.updated, ' .' WHERE 1 '; $sortOptions=array( 'name'=>'page.name', 'status'=>'page.isactive', - 'created'=>'page.created', 'updated'=>'page.updated'); + 'created'=>'page.created', 'updated'=>'page.updated', + 'type'=>'page.type'); $orderWays=array('DESC'=>'DESC','ASC'=>'ASC'); $sort=($_REQUEST['sort'] && $sortOptions[strtolower($_REQUEST['sort'])])?strtolower($_REQUEST['sort']):'name'; @@ -62,8 +63,9 @@ else <thead> <tr> <th width="7"> </th> - <th width="380"><a <?php echo $name_sort; ?> href="pages.php?<?php echo $qstr; ?>&sort=name">Name</a></th> - <th width="120"><a <?php echo $status_sort; ?> href="pages.php?<?php echo $qstr; ?>&sort=status">Status</a></th> + <th width="300"><a <?php echo $name_sort; ?> href="pages.php?<?php echo $qstr; ?>&sort=name">Name</a></th> + <th width="90"><a <?php echo $type_sort; ?> href="pages.php?<?php echo $qstr; ?>&sort=type">Type</a></th> + <th width="110"><a <?php echo $status_sort; ?> href="pages.php?<?php echo $qstr; ?>&sort=status">Status</a></th> <th width="150" nowrap><a <?php echo $created_sort; ?>href="pages.php?<?php echo $qstr; ?>&sort=created">Date Added</a></th> <th width="150" nowrap><a <?php echo $updated_sort; ?>href="pages.php?<?php echo $qstr; ?>&sort=updated">Last Updated</a></th> </tr> @@ -86,6 +88,7 @@ else <?php echo $sel?'checked="checked"':''; ?>> </td> <td> <a href="pages.php?id=<?php echo $row['id']; ?>"><?php echo Format::htmlchars($row['name']); ?></a></td> + <td class="faded"><?php echo $row['type']; ?></td> <td> <?php echo $row['isactive']?'Active':'<b>Disabled</b>'; ?> <?php echo $inuse?'<em>(in-use)</em>':''; ?> -- GitLab