<?php if (!defined('PARENT')) { exit; } ?>
<div class="row" id="mr_searchBox" style="margin-top:10px<?php echo (!isset($_GET['q']) ? ';display:none' : ''); ?>">
  <form method="get" action="index.php">
    <div class="col-lg-12">
      <div class="panel panel-default" style="margin-bottom:0">
        <div class="panel-body">
          <label>
            <?php echo $gblang[36]; ?>
          </label>
          <input type="hidden" name="p" value="<?php echo mswHTML($_GET['p']); ?>">
          <?php
          if (!empty($sparams)) {
            foreach ($sparams AS $k => $v) {
            ?>
            <input type="hidden" name="<?php echo $k; ?>" value="<?php echo mswHTML($v); ?>">
            <?php
            }
          }
          ?>
          <input type="text" name="q" value="<?php echo (isset($_GET['q']) && $_GET['q'] ? mswHTML($_GET['q']) : ''); ?>" class="form-control">
          <div style="margin-top:5px">
            <button type="button" class="btn btn-primary">
              <?php echo $gblang[35]; ?>
            </button>
            <button type="button" class="btn btn-link" onclick="mswWinLoc('<?php echo $_GET['p'] . (!empty($sgparams) ? '&amp;' . http_build_query($sgparams, '', '&amp;') : ''); ?>')">
              <?php echo $gblang[12]; ?>
            </button>
          </div>
        </div>
      </div>
    </div>
  </form>
</div>
