Permalink
Browse files

Fixed the tabs in the list screens

Ref: #2
  • Loading branch information...
caseysoftware committed Nov 19, 2017
1 parent fcc494d commit c334dedeec07c15974d2508f6940a10f013180ca
Showing with 4 additions and 1 deletion.
  1. +4 −1 notebook/index_table.php
@@ -37,6 +37,10 @@
$q->leftJoin('users', 'u', 'user_id = note_creator');
$q->leftJoin('contacts', 'c', 'user_contact = contact_id');
if ($m == 'notebook' && $tab) {
$_tab = $tab - 1;
$q->addWhere('(note_category = ' . (int) $_tab . ')');
}
if (!empty($search)) {
$q->addWhere('(note_title LIKE \'%' . $search . '%\' OR note_body LIKE \'%' . $search . '%\')');
}
@@ -76,7 +80,6 @@
$pageNav = buildPaginationNav($AppUI, $m, $tab, $xpg_totalrecs, $xpg_pagesize, $page);
echo $pageNav;
?>
<table width="100%" border="0" cellpadding="2" cellspacing="1" class="tbl">
<tr>

0 comments on commit c334ded

Please sign in to comment.