<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/ccc/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">Our team</span>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
        </div>
      </section>


        <section id="sectionteam" contenteditable="true" class="section-50 section-md-50 section-md-bottom-50">
            <div class="container"><div class="text-align: center"><br>
            <h2>The crew...</h2><br> <br><br> 
            <?php 
            include_once DOL_DOCUMENT_ROOT.'/core/class/html.form.class.php';
            $websitepage = new WebsitePage($db);
            $fuser = new User($db);
            $arrayofusers = array();
            $MAXNB=10;
            $sql='SELECT rowid FROM '.MAIN_DB_PREFIX.'user WHERE statut = 1 and fk_soc IS NULL ORDER BY fk_user DESC LIMIT '.$MAXNB;
            $resql = $db->query($sql);
            if (! $resql) dol_print_error($db);
            while ($obj = $db->fetch_object($resql))
            {
                $arrayofusers[]=$obj->rowid;
            }
           
            print '<div class="row justify-content-sm-center row-40">';
            foreach($arrayofusers as $id)
            {
                $fuser->fetch($id);

                print '<div class="col-sm-8 col-md-7 col-lg-4">';
                print '<div class="container blog-box d-xl-inline-block" style="padding: 20px; box-shadow: -1px 0px 10px 0px rgba(65, 65, 65, 0.12); transition: .3s all ease;">';
                print '<div class="post-boxed-img-wrap" style="height: 164px">';
                if ($fuser->photo) print Form::showphoto('userphoto', $fuser, 100, 0, 0, 'photowithmargin', '', 0);
                //print '<img class="img-circle" src="/viewimage.php?modulepart=userphoto&amp;file='.$fuser->photo.'" width="129" height="129" alt="">';
                else print '<img class="img-circle" src="/viewimage.php?modulepart=medias&amp;file=image/ccc/daviddoe.png" width="129" height="129" alt="">';
                print '</div>';
                print '<div class="post-boxed-caption">';
                print '<div class="post-boxed-title font-weight-bold">'.$fuser->firstname.'</div>';
                print '<ul class="list-inline list-inline-dashed text-uppercase">';
                //print '<li>September 24, 2018</li>';
                if ($fuser->job) print '<li><span class="text-primary">'.$fuser->job.'</span></li>';
                else print '<li></li>';
                print '</ul>';
                print '</div>';
                print '</div>';
                print '</div>';
            }
            print '</div>';

            ?>
            </div></div>
        </section>

    <br><br>

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

</div>
    
