public function bt_add_search_form($args)
 {
     ob_start();
     global $formID;
     $formID = uniqid('formid');
     search_form($args);
     return ob_get_clean();
 }
Example #2
0
function search()
{
    global $vars;
    if (isset($vars['searchstring'])) {
        return search_results();
    }
    return search_form();
}
Example #3
0
function page_head($title)
{
    global $book;
    global $chap_num;
    if ($book) {
        echo "<br><h2>{$chap_num}. {$title}</h2>\n";
        return;
    }
    if (defined("CHARSET")) {
        header("Content-type: text/html; charset=" . tr(CHARSET));
    }
    html_tag();
    echo "\n        <head>\n        <link rel=\"stylesheet\" type=\"text/css\" href=\"white.css\">\n        <link rel=\"shortcut icon\" href=\"logo/favicon.gif\">\n        <title>{$title}</title>\n        </head>\n        <body bgcolor='ffffff'>\n        <table width='100%'>\n        <tr>\n        <td><center><h1>{$title}</h1></center>\n        <td align=right><a href=index.php><img src=\"logo/www_logo.gif\" alt=\"BOINC logo\"></a>\n        <br>\n";
    search_form();
    echo "\n        </td>\n        </tr></table>\n        <hr size=1>\n    ";
}
Example #4
0
function aut_search_form($form, &$form_state)
{
    // Get custom search form
    $form = search_form($form, $form_state);
    // Cleanup
    $form['#attributes']['class'][] = 'pull-right';
    $form['basic']['keys']['#title'] = '';
    $form['basic']['keys']['#attributes']['class'][] = 'input-medium search-query';
    $form['basic']['keys']['#attributes']['placeholder'] = t('Search this site...');
    unset($form['basic']['submit']);
    unset($form['basic']['#type']);
    unset($form['basic']['#attributes']);
    $form += $form['basic'];
    unset($form['basic']);
    return $form;
}
Example #5
0
/**
 * search
 *
 * @since 1.2.1
 * @deprecated 2.0.0
 *
 * @package Redaxscript
 * @category Search
 * @author Henry Ruhs
 */
function search()
{
    search_form();
}
Example #6
0
function list_search_form($crit, $method)
{
    $methods = array('id' => gTxt('ID'), 'title_body_excerpt' => gTxt('title_body_excerpt'), 'section' => gTxt('section'), 'categories' => gTxt('categories'), 'keywords' => gTxt('keywords'), 'status' => gTxt('status'), 'author' => gTxt('author'), 'article_image' => gTxt('article_image'), 'posted' => gTxt('posted'), 'lastmod' => gTxt('article_modified'));
    return search_form('list', 'list', $crit, $methods, $method, 'title_body_excerpt');
}
Example #7
0
    echo "\n        <tr><td class=heading_left>\n    <a href=https://www.facebook.com/BOINC-32672338584/><img width=36 src=images/facebook_logo.jpg align=left title='BOINC on Facebook'></a>\n    <a href=https://plus.google.com/+boinc><img width=36 src=images/google_plus_logo.jpg align=left title='BOINC on Google+'></a>\n        <center>\n        <span class=section_title>" . tra("Volunteer") . "</span>\n        <br>\n        <a class=heading href=download.php><b>" . tra("Download") . "</b></a>\n        &middot; <a class=heading href=\"/wiki/BOINC_Help\"><b>" . tra("Help") . "</b></a>\n        &middot; <a class=heading href=\"wiki/User_manual\"><b><span class=nobr>" . tra("Documentation") . "</span></b></a> \n        &middot; <a class=heading href=addons.php><b><span class=nobr>" . tra("Add-ons") . "</span></b></a> \n        &middot; <a class=heading href=links.php><b><span class=nobr>" . tra("Links") . "</span></b></a> \n        </center>\n        </td></tr>\n        <tr><td>\n        <p>\n        " . tra("Use the idle time on your computer (Windows, Mac, Linux, or Android) to cure diseases, study global warming, discover pulsars, and do many other types of scientific research.  It's safe, secure, and easy:") . "\n        <ol>\n        <li> <a href=projects.php>" . tra("Choose projects") . "</a>\n        <li> <a href=download.php>" . tra("Download BOINC software") . "</a>\n        <li> " . tra("Enter an email address and password.") . "\n        </ol>\n        <p>\n        " . sprintf(tra("Or, if you run several projects, try an %saccount manager%s such as %sGridRepublic%s or %sBAM!%s. "), "<a href=\"wiki/Account_managers\">", "</a>", "<a href=\"https://www.gridrepublic.org\">", "</a>", "<a href=\"https://bam.boincstats.com/\">", "</a>") . "\n        <p>\n        For Android devices, download the BOINC\n" . "\n        app from the Google Play Store or (for Kindle) the Amazon App Store.\n" . "\n        </td></tr>\n    ";
}
function show_create()
{
    echo "\n        <tr><td class=heading_left>\n        <center>\n        <span class=section_title>" . tra("Compute with BOINC") . "</span>\n        <br>\n        <b><a class=heading href=\"trac/wiki/ProjectMain\">" . tra("Documentation") . "</a></b>\n        &middot; <b><a class=heading href=\"trac/wiki/ServerUpdates\">" . tra("Software updates") . "</a></b>\n        </center>\n        </td></tr>\n        <tr><td>\n        <ul>\n        <li>\n    ", tra("%1Scientists%2: use BOINC to create a %3volunteer computing project%4, giving you the power of thousands of CPUs and GPUs.", "<b>", "</b>", "<a href=volunteer.php>", "</a>"), "<li>", tra("%1Universities%2: use BOINC to create a %3Virtual Campus Supercomputing Center%4.", "<b>", "</b>", "<a href=\"trac/wiki/VirtualCampusSupercomputerCenter\">", "</a>"), "<li>", tra("%1Companies%2: use BOINC for %3desktop Grid computing%4.", "<b>", "</b>", "<a href=dg.php>", "</a>"), " </ul>\n        </td></tr>\n    ";
}
function show_other()
{
    echo "\n        <tr><td class=heading_left>\n        <center>\n        <span class=section_title>" . tra("About BOINC") . "</span>\n        </center>\n        </td></tr>\n        <tr><td>\n            <table width=100%>\n            <tr valign=top> <td>\n            <center><font size=+1>Project</font></center>\n                <ul>\n                <li> <a href=\"dev/\">" . tra("Message boards") . "</a>\n                <li> <a href=\"trac/wiki/EmailLists\">" . tra("Email lists") . "</a>\n                <li> <a href=\"trac/wiki/BoincEvents\">" . tra("Events") . "</a>\n                <li> <a href=logo.php>Logos and graphics</a>\n                <li> <a href=\"trac/wiki/ProjectGovernance\">Governance</a>\n                <li> <a href=\"trac/wiki/ProjectPeople\">Contact</a>\n                </ul>\n            </td><td>\n            <center><font size=+1>Software</font></center>\n                <ul>\n                <li> <a href=trac/wiki/SourceCodeGit>" . tra("Source code") . "</a>\n                <li> <a href=https://github.com/BOINC/boinc/issues>Report bugs</a>\n                <li> <a href=\"trac/wiki/SoftwareBuilding\">" . tra("Building BOINC") . "</a>\n                <li> <a href=\"trac/wiki/SoftwareDevelopment\">" . tra("Design documents") . "</a>\n                <li> <a href=\"trac/wiki/DevProcess\">" . tra("Development process") . "</a>\n                <li> <a href=\"trac/wiki/DevProjects\">" . tra("Volunteer") . "</a>\n                <li> <a href=\"trac/wiki/SoftwareAddon\">" . tra("APIs") . "</a>\n                </ul>\n            </td><td valign=top>\n\n            <center><font size=+1>Contribute</font></center>\n                <ul>\n                <li> <a href=trac/wiki/ContributePage>Overview</a>\n                <li> <a href=\"trac/wiki/DevProjects\">" . tra("Programming") . "</a>\n                <li> <a href=\"trac/wiki/TranslateIntro\">" . tra("Translation") . "</a>\n                <li> <a href=\"trac/wiki/AlphaInstructions\">" . tra("Testing") . "</a>\n                <li> <a href=\"trac/wiki/WikiMeta\">" . tra("Documentation") . "</a>\n                <li> <a href=\"http://boinc.berkeley.edu/wiki/Publicizing_BOINC\">" . tra("Publicity") . "</a>\n                </ul>\n            </td></tr></table>\n        </td></tr>\n    ";
}
function show_nsf()
{
    echo "\n        <tr><td>\n        <img align=left hspace=8 src=nsf.gif alt=\"NSF logo\">\n        BOINC is supported by the\n        <a href=\"http://nsf.gov\">National Science Foundation</a>\n        through awards SCI-0221529, SCI-0438443, SCI-0506411,\n                PHY/0555655, and OCI-0721124.\n        <span class=note>\n        Any opinions, findings, and conclusions or recommendations expressed in\n        this material are those of the author(s)\n        and do not necessarily reflect the views of the National Science Foundation.\n        </span>\n        </td></tr>\n    ";
}
header("Content-type: text/html; charset=utf-8");
html_tag();
$rh_col_width = 390;
echo "\n    <head>\n    <link rel=\"shortcut icon\" href=\"logo/favicon.gif\">\n    <link rel=\"stylesheet\" type=\"text/css\" href=\"white.css\">\n    <link href=\"https://plus.google.com/117150698502685192946\" rel=\"publisher\" />\n    <title>BOINC</title>\n    <meta name=description content=\"BOINC is an open-source software platform for computing using volunteered resources\">\n    <meta name=keywords content=\"distributed scientific computing supercomputing grid SETI@home public computing volunteer computing \">\n    </head>\n    <body>\n    <table width=\"100%\" border=0><tr>\n    <td valign=top>\n    <img hspace=20 vspace=6 align=left src=\"logo/www_logo.gif\" alt=\"BOINC logo\">\n    </td>\n    <td align=center>\n    <span class=\"title\">\n    " . sprintf(tra("Open-source software for volunteer computing")) . "\n    </span><br><br>\n    </td>\n    <td width={$rh_col_width} align=right>\n";
search_form();
language_form();
echo "\n    </td></tr>\n    </table>\n\n    <table width=\"100%\" border=0 cellspacing=0 cellpadding=4>\n    <tr>\n    <td valign=top>\n    <table width=\"100%\" border=0 cellspacing=0 cellpadding=8>\n";
show_participate();
show_create();
show_other();
//show_nsf();
echo "\n    </table>\n    </td>\n";
echo " <td valign=top width=390>\n";
show_participant();
show_news_items();
echo "\n    </td></tr>\n    </table>\n";
page_tail(true, true);
            }
        }
        echo '</td>';
        if ($tr % 3 == 0) {
            echo '</tr>';
        }
        $tr++;
    }
    echo '</form></table>';
}
if ($_SESSION['login'] == 'doctor') {
    //echo '<a href=print_report_doctor.php>Biochemistry Report</a><br>';
    echo '<table><tr><td bgcolor=lightblue><a href=logout.php>Logout</a></td>';
    echo '<td bgcolor=lightgreen><a href=doctor_help.html target=_blank>HELP</a></td></tr></table>';
}
search_form('print_report_doctor.php');
echo '<h2 style="page-break-before: always;"></h2>';
$search_str = 'select sample_id from sample ';
$where = array();
if (isset($_POST['submit'])) {
    foreach ($_POST as $key => $value) {
        if (substr($key, 0, 4) == 'chk_' && $value == 'on') {
            //echo substr($key,4).'='.$_POST[substr($key,4)].'<br>';
            $where[substr($key, 4)] = $_POST[substr($key, 4)];
        }
    }
}
//print_r($where);
$sample_id_where = '';
if (isset($where['from_sample_id']) && isset($where['to_sample_id'])) {
    $sample_id_where = 'sample_id between  \'' . $where['from_sample_id'] . '\' and \'' . $where['to_sample_id'] . '\' ';
Example #9
0
function log_search_form($crit, $method)
{
    $methods = array('ip' => gTxt('IP'), 'host' => gTxt('host'), 'page' => gTxt('page'), 'refer' => gTxt('referrer'), 'method' => gTxt('method'), 'status' => gTxt('status'));
    return search_form('log', 'log_list', $crit, $methods, $method, 'page');
}
Example #10
0
function link_search_form($crit, $method)
{
    $methods = array('id' => gTxt('ID'), 'name' => gTxt('link_name'), 'description' => gTxt('description'), 'category' => gTxt('link_category'));
    return search_form('link', 'link_edit', $crit, $methods, $method, 'name');
}
Example #11
0
function discuss_search_form($crit, $method)
{
    $methods = array('id' => gTxt('ID'), 'parent' => gTxt('parent'), 'name' => gTxt('name'), 'message' => gTxt('message'), 'email' => gTxt('email'), 'website' => gTxt('website'), 'ip' => gTxt('IP'));
    return search_form('discuss', 'list', $crit, $methods, $method, 'message');
}
Example #12
0
 function search_form($crit, $method)
 {
     $methods = array('id' => gTxt('ID'), 'name' => gTxt('name'), 'category' => gTxt('image_category'), 'author' => gTxt('author'));
     return search_form($this->event, 'list', $crit, $methods, $method, 'name');
 }
Example #13
0
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <a class="navbar-brand" href="<?php 
    echo empty($style['home']['navbar']) ? url('/') : $style['home']['navbar'];
    ?>
">
                        <?php 
    echo empty($style['logo']['navbar']) ? __('Home') : $style['logo']['navbar'];
    ?>
                    </a>
                </div>
                <div class="collapse navbar-collapse">
                    <div class="navbar-search hidden-sm hidden-md hidden-lg" role="search">
                        <?php 
    echo search_form(array('form_attributes' => array('id' => 'search-bar-nav', 'class' => 'navbar-form'), 'limiters' => @$style['search']));
    ?>
                    </div>
                    <?php 
    if ($style['navbar'] === true) {
        $navbar = public_nav_main();
    } else {
        $navbar = (include $style['navbar']);
    }
    echo $navbar->setUlClass('nav navbar-nav navbar-right');
    ?>
                </div>
            </nav>
        <?php 
}
?>
Example #14
0
function image_search_form($crit, $method)
{
    $methods = array('id' => gTxt('ID'), 'name' => gTxt('name'), 'category' => gTxt('image_category'), 'author' => gTxt('author'), 'alt' => gTxt('alt_text'), 'caption' => gTxt('caption'));
    return search_form('image', 'image_list', $crit, $methods, $method, 'name');
}
Example #15
0
      <div class="icon">
        <span class="ico-heart"></span>
      </div>
      <h1>Marital Status
      <small>Manage marital status</small>
      </h1>
    </div>
    <br class="cl" />
    <div class="head blue">
      <?php 
echo header_btn_group("maritals_status/to_excel", "maritals_status/add");
?>
    </div>
    <div id="search_bar" class="widget-header">
      <?php 
search_form(array("" => "By", "sn_name" => "Status"));
?>
    <table class="table fpTable table-hover">
      <thead>
        <tr>
          <th width="5%"><?php 
echo HeaderLink("SN ID", "sn_id", $col, $dir);
?>
</th>
          <th width="85%"><?php 
echo HeaderLink("Status Name", "sn_name", $col, $dir);
?>
</th>
          <th width="10%" class="action_cell" colspan="2">Action</th>
        </tr>
      </thead>
Example #16
0
function list_search_form($crit, $method)
{
    $methods = array('id' => gTxt('ID'), 'title_body' => gTxt('title_body'), 'section' => gTxt('section'), 'categories' => gTxt('categories'), 'status' => gTxt('status'), 'author' => gTxt('author'));
    return search_form('list', 'list', $crit, $methods, $method, 'title_body');
}
Example #17
0
function file_search_form($crit, $method)
{
    $methods = array('id' => gTxt('ID'), 'filename' => gTxt('file_name'), 'description' => gTxt('description'), 'category' => gTxt('file_category'));
    return search_form('file', 'file_list', $crit, $methods, $method, 'filename');
}
Example #18
0
/**
 * Renders a user search form.
 *
 * @param string $crit   Current search criteria
 * @param string $method Selected search method
 */
function author_search_form($crit, $method)
{
    $methods = array('id' => gTxt('ID'), 'login' => gTxt('login_name'), 'real_name' => gTxt('real_name'), 'email' => gTxt('email'), 'privs' => gTxt('privileges'));
    return search_form('admin', 'author_list', $crit, $methods, $method, 'login');
}
Example #19
0
                        </div>
                    </div>
                </div>
                <!-- Topo para celulares -->
                <div id="rede" class="hidden-md hidden-sm hidden-lg col-xs-6">
                    <ul class="nav nav-pills" role="social-icons">
                        <li><a href="#"><i class="fa fa-facebook" style="font-size:16px;"></i></a></li>
                        <li><a href="#"><i class="fa fa-twitter" style="font-size:16px;"></i></a></li>
                        <!--<li><a href="#"><i class="fa fa-youtube"></i></a></li>-->
                        <!--<li><a href="#"><i class="fa fa-instagram"></i></a></li>-->
                        <li><a href="http://mapa.revoada.net.br/contact"><i class="fa fa-envelope" style="font-size:16px;"></i></a></li>
                    </ul>
                </div>
                <div class="col-xs-6 hidden-md hidden-sm hidden-lg">
                    <?php 
echo search_form(array());
?>
                    <span class="busca_avancada"><?php 
echo link_to_item_search('+ Busca Avançada');
?>
</span>     
                </div>

            </div>
            <!-- Menu topo -->
            <div class="row" style="background-color: #4AAAA5;display: flex; align-items: flex-end">
                <div id="logo" class="col-md-5 col-sm-12 hidden-xs col-md-offset-1 col-sm-offset-1">
                        <?php 
echo link_to_home_page('View Public Site', array('id' => 'public-link', 'class' => 'img-responsive'));
?>
<!--<img src="<?php 
Example #20
0
            <div class="icon">
                <span class="ico-site-map"></span>
            </div>
            <h1>Settings
                <small>Setting Parameter</small>
            </h1>
        </div>
        <br class="cl" />
        <div class="head blue">
            <?php 
echo header_btn_group("settings/to_excel", "settings/add");
?>
        </div>
        <div id="search_bar" class="widget-header">
            <?php 
search_form(array("" => "By", "name" => "Setting name"));
?>
        </div>
        <table class="table fpTable table-hover">
            <thead>
                <tr>
                    <th width="5%"><?php 
echo HeaderLink("ID", "id", $col, $dir);
?>
</th>
                    <th width="50%"><?php 
echo HeaderLink("Name", "name", $col, $dir);
?>
</th>
                    <th width="50%"><?php 
echo HeaderLink("Value", "value", $col, $dir);
Example #21
0
function section_search_form($crit, $method)
{
    $methods = array('name' => gTxt('name'), 'title' => gTxt('title'), 'page' => gTxt('page'), 'css' => gTxt('css'), 'on_frontpage' => gTxt('on_front_page'), 'in_rss' => gTxt('syndicate'), 'searchable' => gTxt('include_in_search'));
    return search_form('section', 'sec_section_list', $crit, $methods, $method, 'name');
}
Example #22
0
            <div class="icon">
                <span class="ico-tag"></span>
            </div>
            <h1>Title
                <small>Manage title</small>
            </h1>
        </div>
        <br class="cl" />
        <div class="head blue">
            <?php 
echo header_btn_group("titles/to_excel", "titles/add");
?>
        </div>
        <div id="search_bar" class="widget-header">
            <?php 
search_form(array("" => "By", "title_name" => "Name"));
?>
        </div>
        <table class="table fpTable table-hover">
            <thead>
                <tr>
                    <th width="10%"><?php 
echo HeaderLink("Title ID", "title_id", $col, $dir);
?>
</th>
                    <th width="80%"><?php 
echo HeaderLink("Title Name", "title_name", $col, $dir);
?>
</th>
                    <th width="10%" colspan="2" class="action_cell">Action</th>
                </tr>
function _twitter_bootstrap_search_form($form, &$form_state)
{
    // Get custom search form for now
    $form = search_form($form, $form_state);
    // Cleanup
    $form['#attributes']['class'][] = 'navbar-search';
    $form['#attributes']['class'][] = 'pull-left';
    $form['basic']['keys']['#title'] = '';
    $form['basic']['keys']['#attributes']['class'][] = 'search-query';
    $form['basic']['keys']['#attributes']['class'][] = 'span2';
    $form['basic']['keys']['#attributes']['placeholder'] = t('Search');
    unset($form['basic']['submit']);
    unset($form['basic']['#type']);
    unset($form['basic']['#attributes']);
    $form += $form['basic'];
    unset($form['basic']);
    return $form;
}
Example #24
0
      <div class="icon">
        <span class="ico-coins"></span>
      </div>
      <h1>Salaries
      <small>Manage salaries</small>
      </h1>
    </div>
    <br class="cl" />
    <div class="head blue">
      <?php 
echo header_btn_group("#", "salaries/add");
?>
    </div>
    <div id="search_bar" class="widget-header">
      <?php 
search_form(array("" => "By", "salary_period" => "Period"));
?>
    </div>
    <table class="table fpTable table-hover">
      <thead>
        <tr>
          <th width="8%"><?php 
echo HeaderLink("Salary ID", "salary_id", $col, $dir);
?>
</th>
          <th width="42%"><?php 
echo HeaderLink("Salary Periode", "salary_periode", $col, $dir);
?>
</th>
          <th width="40%"><?php 
echo HeaderLink("Salary Staff", "salary_staffid", $col, $dir);
Example #25
0
echo link_to_home_page(theme_logo());
?>
</div>

            <div id="search-container" role="search">
                <?php 
if (get_theme_option('use_advanced_search') === null || get_theme_option('use_advanced_search')) {
    ?>
                <?php 
    echo search_form(array('show_advanced' => true));
    ?>
                <?php 
} else {
    ?>
                <?php 
    echo search_form();
    ?>
                <?php 
}
?>
            </div>
        </header>

         <div id="primary-nav" role="navigation">
             <?php 
echo public_nav_main();
?>
         </div>

         <div id="mobile-nav" role="navigation" aria-label="<?php 
echo __('Mobile Navigation');
Example #26
0
        } else {
            echo '<td><input type=checkbox name=\'chk_' . $ar['Field'] . '\' ></td><td>' . $ar['Field'] . '</td><td>';
            if (!mk_select_from_table($ar['Field'], '', '')) {
                echo '<input type=text name=\'' . $ar['Field'] . '\' >';
            }
        }
        echo '</td>';
        if ($tr % 3 == 0) {
            echo '</tr>';
        }
        $tr++;
    }
    echo '</form></table>';
}
main_menu();
search_form('print_report.php');
echo '<h2 style="page-break-before: always;"></h2>';
$search_str = 'select sample_id from sample ';
$where = array();
if (isset($_POST['submit'])) {
    foreach ($_POST as $key => $value) {
        if (substr($key, 0, 4) == 'chk_' && $value == 'on') {
            //echo substr($key,4).'='.$_POST[substr($key,4)].'<br>';
            $where[substr($key, 4)] = $_POST[substr($key, 4)];
        }
    }
}
//print_r($where);
$sample_id_where = '';
if (isset($where['from_sample_id']) && isset($where['to_sample_id'])) {
    $sample_id_where = 'sample_id between  \'' . $where['from_sample_id'] . '\' and \'' . $where['to_sample_id'] . '\' ';
Example #27
0
/**
 * XHTML Header
 */
function xhtml_header()
{
    global $http, $cfg, $lang, $cd, $style_num, $style, $row, $admin_dir, $request_uri, $vars_page_title, $more_vars_dir, $more_vars_title, $search_form, $table, $log_table, $info_table, $p_blog_path, $dtd, $content_type, $page_title, $alternate_link_rss, $subtitle;
    // Generating Page Titles and Show & Hide Search Form
    $separator = ' : ';
    $p_blog_path = $http . '://' . $_SERVER['HTTP_HOST'] . $cfg['root_path'];
    // Main Pages
    if ($request_uri == $p_blog_path . 'index.php') {
        $page_title = $cfg['blog_title'];
        $search_form = search_form($plus = 'yes');
        $table = $log_table;
    } elseif (preg_match('/files/', $request_uri)) {
        if (preg_match('/search_plus/', $request_uri)) {
            $page_title = $cfg['blog_title'] . $separator . $cfg['file_index_title'] . $separator . $lang['advanced_search'];
            $search_form = '';
        } elseif (preg_match('/article.php/', $request_uri) && isset($row['bin_title'])) {
            // Permalink
            $page_title = $cfg['blog_title'] . $separator . $cfg['file_index_title'] . $separator . $row['bin_title'];
            $search_form = search_form($plus = 'yes');
        } else {
            $page_title = $cfg['blog_title'] . $separator . $cfg['file_index_title'];
            $search_form = search_form($plus = 'yes');
        }
        $table = $info_table;
    } elseif ($request_uri == $p_blog_path . 'var/index.php') {
        $page_title = $cfg['blog_title'] . $separator . $vars_page_title;
        $search_form = '';
        $table = '';
    } elseif ($request_uri == $p_blog_path . $more_vars_dir . '/index.php') {
        $page_title = $cfg['blog_title'] . $separator . $more_vars_title;
        $search_form = '';
        $table = '';
    } elseif ($request_uri == $p_blog_path . 'search.php' or $request_uri == $p_blog_path . 'files/search.php') {
        $page_title = $cfg['blog_title'] . $separator . $lang['archives'];
        $search_form = search_form($plus = 'yes');
        $table = '';
    } elseif ($request_uri == $p_blog_path . 'search_plus.php' or $request_uri == $p_blog_path . 'files/search_plus.php') {
        $page_title = $cfg['blog_title'] . $separator . $lang['advanced_search'];
        $search_form = '';
        $table = '';
    } elseif ($request_uri == $p_blog_path . 'category.php') {
        $page_title = $cfg['blog_title'] . $separator . $lang['category'];
        $search_form = search_form($plus = 'yes');
        $table = $log_table;
    } elseif ($request_uri == $p_blog_path . 'files/category.php') {
        $page_title = $cfg['blog_title'] . $separator . $lang['category'];
        $search_form = search_form($plus = 'yes');
        $table = $info_table;
    } elseif (preg_match('/forum/', $request_uri)) {
        if (preg_match('/admin/', $request_uri)) {
            $page_title = $cfg['blog_title'] . $separator . $lang['admin'] . $separator . $lang['forum'];
        } elseif (preg_match('/comment/', $request_uri)) {
            $page_title = $cfg['blog_title'] . $separator . $lang['comment'];
        } else {
            $page_title = $cfg['blog_title'] . $separator . $lang['forum'];
        }
        $search_form = search_form($plus = 'no');
        $table = '';
    } elseif (preg_match('/trackback/', $request_uri)) {
        $page_title = $cfg['blog_title'] . $separator . 'Trackback';
        $search_form = '';
        $table = '';
        // Permalink Page
    } elseif (preg_match('/article.php/', $request_uri) && isset($row['name'])) {
        $page_title = $cfg['blog_title'] . $separator . $row['name'];
        $search_form = search_form($plus = 'yes');
        $table = $log_table;
        // Admin pages
    } elseif (preg_match('/' . $admin_dir . '/', $request_uri)) {
        $page_title = $cfg['blog_title'] . $separator . $lang['admin'];
        $search_form = '';
        $table = '';
    } else {
        $page_title = $cfg['blog_title'];
        $search_form = '';
        $table = '';
    }
    // Additions
    if (isset($_GET['k']) && $_GET['k'] != '') {
        $k = htmlspecialchars($_GET['k']);
        $page_title .= $separator . $k;
    }
    if (isset($_GET['d']) && $_GET['d'] != '') {
        if (!isset($_GET['ds'])) {
            $d = htmlspecialchars($_GET['d']);
            $page_title .= $separator . $d;
        }
    }
    $p_blog_version = P_BLOG_VERSION;
    // Switch XML DTD : XHTML1.0 Strict or XHTML1.1
    if ($cfg['xml_version'] == '1.1' || $cfg['xml_version'] == '1.1cn') {
        $dtd = <<<EODTD
<?xml version="1.0" encoding="{$cfg['charset']}"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
                      "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{$cfg['xml_lang']}">
EODTD;
        $content_type = '';
    } else {
        $dtd = <<<EODTD
<?xml version="1.0" encoding="{$cfg['charset']}"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{$cfg['xml_lang']}" lang="{$cfg['xml_lang']}">
EODTD;
        $content_type = <<<EOCT
<meta http-equiv="content-type" content="text/html; charset={$cfg['charset']}" />
<meta http-equiv="content-script-type" content="text/javascript" />
<meta http-equiv="content-style-type" content="text/css" />

EOCT;
    }
    // Generate alternate link / RSS link
    if (isset($_GET['id']) && is_numeric($_GET['id'])) {
        $alternate1 = $p_blog_path . 'rss/1.0.php?id=' . $_GET['id'];
        $alternate2 = $p_blog_path . 'rss/2.0.php?id=' . $_GET['id'];
    } elseif (preg_match('/forum/', $request_uri)) {
        if (isset($_GET['tid'])) {
            $alternate1 = $p_blog_path . 'rss/1.0.php?tid=' . $_GET['tid'];
            $alternate2 = $p_blog_path . 'rss/2.0.php?tid=' . $_GET['tid'];
        } else {
            $alternate1 = $p_blog_path . 'rss/1.0.php?f_index';
            $alternate2 = $p_blog_path . 'rss/2.0.php?f_index';
        }
    } elseif ($request_uri == $p_blog_path . 'index.php') {
        $alternate1 = $p_blog_path . 'rss/recent.php';
        $alternate2 = $p_blog_path . 'rss/2.0.php';
    } else {
        $alternate1 = '';
        $alternate2 = '';
    }
    $rss_link_1 = $alternate1 == '' ? '' : '<link rel="alternate" type="application/rss+xml" title="RSS 1.0" href="' . $alternate1 . '" />' . "\n";
    $rss_link_2 = $alternate2 == '' ? '' : '<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="' . $alternate2 . '" />' . "\n";
    $alternate_link_rss = $rss_link_1 . $rss_link_2;
    // Generate subtitle
    $subtitle = $cfg['sub_title'] == '' ? '' : '<span id="subtitle">' . htmlspecialchars($cfg['sub_title']) . '</span>' . "\n";
}
Example #28
0
      <div class="icon">
        <span class="ico-globe-2"></span>
      </div>
      <h1>Department
      <small>Manage department</small>
      </h1>
    </div>   
    <br class="cl" />
    <div class="head blue">
      <?php 
echo header_btn_group("departments/to_excel", "departments/add");
?>
    </div>
    <div id="search_bar" class="widget-header">
      <?php 
search_form(array("" => "By", "dept_name" => "Name"));
?>
    </div>
    <table class="table fpTable table-hover">
      <thead>
        <tr>
          <th width="5%"><?php 
echo HeaderLink("Departement ID", "dept_id", $col, $dir);
?>
</th>
          <th width="55%"><?php 
echo HeaderLink("Departement Name", "dept_name", $col, $dir);
?>
</th>
          <th width="10%" class="action_cell">Action</th>
        </tr>
Example #29
0
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                </div>

                <div class="collapse navbar-collapse" id="primary-navigation">
                    <?php 
echo public_nav_main_bootstrap();
?>

                    <form class="navbar-form navbar-right" role="search" action="<?php 
echo public_url('');
?>
search">
                        <?php 
echo search_form(array('show_advanced' => false));
?>
                    </form>
                </div>
            </div>
        </nav>
    </header>      -->   
        <header id="header-main">
      <div class="stripe-slope"></div>
      <div class="container">
      <div class="row">
          <div class="col-lg-5 col-md-3 col-xs-5">
            <a href="/"><img src="/img/logo.png"></a>
          </div>

          <div class="col-lg-7 col-md-9 col-xs-12 fyv-nav-wrap">
Example #30
0
            <div class="icon">
                <span class="ico-tag"></span>
            </div>
            <h1>Assets
                <small>Manage assets</small>
            </h1>
        </div>
        <br class="cl" />
        <div class="head blue">
            <?php 
echo header_btn_group("#", "izin/add");
?>
        </div>
        <div id="search_bar" class="widget-header">
            <?php 
search_form(array("" => "By", "asset_name" => "Name"));
?>
        </div>
        <table class="table fpTable table-hover">
            <thead>
                <tr>
                    <th width="25%"><?php 
echo HeaderLink("Staff", "izin_staff_id", $col, $dir);
?>
</th>
                    <th width="15%"><?php 
echo HeaderLink("Date", "izin_date", $col, $dir);
?>
</th>
                    <th width="10%"><?php 
echo HeaderLink("Jumlah hari", "izin_jumlah_hari", $col, $dir);