<div class="page">

    <?php includeContainer('header'); ?>

      <section id="sectionimage" contenteditable="true">
        <div class="">
          <div class="swiper-wrapper text-center" style="transform: translate3d(0px, 0px, 0px); transition-duration: 0ms;">
            <div class="swiper-slide swiper-slide-active" style="height: 200px; background-image: url('medias/image/template-corporate/background_sunset.webp'); background-size: cover;">
              <div class="swiper-slide-caption">
                <div class="container">
                  <div class="row justify-content-sm-center">
                    <div class="col-md-11 col-lg-10">
                      <div class="text-white text-uppercase jumbotron-custom border-modern fadeInUp animated" data-caption-animate="fadeInUp" data-caption-delay="0s">Search</span>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
        </div>
      </section>

<br><br><br>

<center>
     
    <div style="width: 60%">
    <form class="rd-search" action="search.php" method="POST">
        <input type="hidden" name="token" value="<?php echo newToken(); ?>" />
        <div class="form-wrap">
                  <input class="form-input" id="rd-search-form-input" type="text" name="s" autocomplete="off" placeholder="Search..." value="<?php echo dol_escape_htmltag(GETPOST('s', 'alphanohtml')); ?>">
                  <div class="rd-search-results-live cleared" id="rd-search-results-live"></div>
        </div>
        <button class="rd-search-submit buttonwithnoborder" type="submit"><span class="icon icon-xs icon-dusty-gray fa fa-search"></span></button>
    </form>
    </div>
    <br>
                      
     <?php
     $weblangs->load("main");
     
     if (function_exists('getPagesFromSearchCriterias'))
     {
         if (GETPOSTISSET('s'))
         {
             $listofpages = getPagesFromSearchCriterias('page', 'meta', GETPOST('s', 'alphanohtml'));
             if ($listofpages['code'] == 'OK')
             {
                 foreach($listofpages['list'] as $websitepagefound)
                 {
                    print '<div class="rowsearchresult"><a href="'.$websitepagefound->ref.'.php">'.$websitepagefound->title.'</a> - '.$websitepagefound->description.'</div>';
                 }
             }
             else
             {
                 // If error, show message
                 print $listofpages['message'];
             }
         }
     }
     else
     {
         print $weblangs->trans("FeatureNotYetAvailable");
     }
     ?>
                      
<br><br><br><br><br><br>
</center>

    <?php includeContainer('footer'); ?>

</div>
