13     <!-- Content Wrapper. Contains page content --> 
   14     <div class=\"content-wrapper\" id=\"content-FX\"> 
   15     <!-- Content Header (Page header) --> 
   16     <section class=\"content-header\">";
 
   18 echo backend::getTitle(
$lang[
'SEARCH_RESULT'], 
$lang[
'SEARCH_SUBTEXT']);
 
   19 echo
"<ol class=\"breadcrumb\"> 
   20             <li><a href=\"index.php\" title=\"$lang[DASHBOARD]\"><i class=\"fa fa-dashboard\"></i> $lang[DASHBOARD]</a></li> 
   21             <li class=\"active\"><a href=\"index.php?page=search\" title=\"$lang[SEARCH]\"> $lang[SEARCH]</a></li> 
   25     <section class=\"content\">";
 
   31 require_once 
'../system/classes/search.php';
 
   32 if (!isset($search) || (empty($search)))
 
   37 if (isset($_POST[
'searchString']) && (!empty($_POST[
'searchString'])))
 
   39     $search->searchString = strip_tags($_POST[
'searchString']);
 
   44     backend::setFocus(
"searchString");
 
   45     $search->searchString = 
'';
 
   48 <form method=
"post" action=
"index.php?page=search">
 
   50     <div 
class=
"col-md-8">
 
   53             <div 
class=
"box-header with-border">
 
   54                 <h3 
class=
"box-title"><?php echo 
$lang[
'SEARCH_STRING'] ?> <small><?php echo 
$lang[
'NEW_SEARCH']; ?></small></h3>
 
   56             <div 
class=
"box-body">
 
   57                 <label 
for=
"searchString"><?php echo 
$lang[
'SEARCH_STRING'] ?></label>
 
   58                 <input 
id=
"searchString" name=
"searchString" type=
"text" value=
"<?php echo $search->searchString; ?>" class=
"form-control h3" placeholder=
"<?php echo $search->searchString; ?>">
 
   63         if (isset($_POST[
'all']) && ($_POST[
'all'] === 
"true"))
 
   67             echo $search->searchBlogs(
$db, $search->searchString, 
$lang);
 
   68             echo $search->searchMenus(
$db, $search->searchString, 
$lang);
 
   69             echo $search->searchUsers(
$db, $search->searchString, 
$lang);
 
   70             echo $search->searchWidgets(
$db, $search->searchString, 
$lang);
 
   72             $pagesChecked = 
"checked";
 
   73             $blogsChecked = 
"checked";
 
   74             $menusChecked = 
"checked";
 
   75             $usersChecked = 
"checked";
 
   76             $widgetsChecked = 
"checked";
 
   80                 if (isset($_POST[
'pages']))
 
   82                     echo $search->searchPages(
$db, $search->searchString, 
$lang);
 
   83                     $pagesChecked = 
"checked";
 
   86                     { $pagesChecked = 
''; }
 
   88                 if (isset($_POST[
'blogs']))
 
   90                     echo $search->searchBlogs(
$db, $search->searchString, 
$lang);
 
   91                     $blogsChecked = 
"checked";
 
   94                     { $blogsChecked = 
''; }
 
   96                 if (isset($_POST[
'menus']))
 
   98                     echo $search->searchMenus(
$db, $search->searchString, 
$lang);
 
   99                     $menusChecked = 
"checked";
 
  102                     { $menusChecked = 
''; }
 
  104                 if (isset($_POST[
'users']))
 
  106                     echo $search->searchUsers(
$db, $search->searchString, 
$lang);
 
  107                     $usersChecked = 
"checked";
 
  110                     { $usersChecked = 
''; }
 
  112                 if (isset($_POST[
'widgets']))
 
  114                     echo $search->searchWidgets(
$db, $search->searchString, 
$lang);
 
  115                     $widgetsChecked = 
"checked";
 
  118                     { $widgetsChecked = 
''; }
 
  123     <div 
class=
"col-md-4">
 
  126             <div 
class=
"box-header with-border">
 
  127                 <h3 
class=
"box-title"><?php echo 
$lang[
'FILTER'] ?> <small><?php echo 
$lang[
'LIMIT_SEARCH']; ?></small></h3>
 
  129             <div 
class=
"box-body">
 
  131                         <div 
class=
"col-md-6">
 
  132                             <input 
id=
"pages" name=
"pages" type=
"checkbox" <?php echo $pagesChecked; ?>>
 
  133                             <label 
for=
"pages"><?php echo 
$lang[
'PAGES']; ?></label>
 
  135                         <div 
class=
"col-md-6">
 
  136                             <input 
id=
"menus" name=
"menus" type=
"checkbox" <?php echo $menusChecked; ?>>
 
  137                             <label 
for=
"menus"><?php echo 
$lang[
'MENUS']; ?></label>
 
  142                         <div 
class=
"col-md-6">
 
  143                             <input 
id=
"users" name=
"users" type=
"checkbox" <?php echo $usersChecked; ?>>
 
  144                             <label 
for=
"users"><?php echo 
$lang[
'USERS']; ?></label>
 
  146                         <div 
class=
"col-md-6">
 
  147                             <input 
id=
"widgets" name=
"widgets" type=
"checkbox" <?php echo $widgetsChecked; ?>>
 
  148                             <label 
for=
"widgets"><?php echo 
$lang[
'WIDGETS']; ?></label>
 
  153                         <div 
class=
"col-md-6">
 
  154                             <input 
id=
"blogs" name=
"blogs" type=
"checkbox" <?php echo $blogsChecked; ?>>
 
  155                             <label 
for=
"blogs"><?php echo 
$lang[
'BLOG']; ?></label>
 
  157                         <div 
class=
"col-md-6">
 
  158                             <input 
id=
"files" name=
"files" type=
"checkbox" checked disabled aria-disabled=
"true">
 
  159                             <label 
for=
"files"><?php echo 
$lang[
'FILES']; ?></label>
 
  164                 <div 
class=
"pull-right">
 
  165                     <button 
class=
"btn btn-success" type=
"submit"><
i class=
"fa fa-refresh"></
i> &
nbsp;<?php echo 
$lang[
'REFRESH']; ?></button>
 
print $lang['FILEMAN_UPLOAD']
 
Backend class serves a few useful functions for the admin backend.
 
Mysqli database class; returns db connection object.
 
The language class - support multilingual backend.
 
searchPages($db, $searchString, $lang)
search pages and draw box
 
<!-- backend language -->< h3 >< i class="fa fa-language"></i > & nbsp