<?php 
if(!defined('IN_DEMOSOSO')) {
    exit('this is wrong page,please back to homepage');
}

 //require INCLUDE_ROOT.'file_formpost/formpost_datainc.php';


$arr = dm_dirarr(dirname(__FILE__));

 $jtpath = $arr['path'];
 $jtroot = $arr['root'];

 

?> 
<link rel="stylesheet" href="<?php echo $jtpath?>swiper.min.css?v=<?php echo CSSVERSION?>">
<link rel="stylesheet" href="<?php echo $jtpath?>te_hr.css?v=<?php echo CSSVERSION?>">

 <script src="<?php echo $jtpath?>swiper.jquery.min.js?v=<?php echo CSSVERSION?>"></script>
 
 
 <div class="tebanner">
    <img  src="<?php echo get_img($blockimg)?>" alt="" /> 
</div>


<div class="section13">
    <?php 
   
//edit_node_inblock($cusbkid,__FILE__);

 
?>
    <div class="text">
        <p class="p1">
            <?php 
           echo  $namefront; 
           ?>
        </p>
        <p class="p2">
             <?php 
           echo  $despjj; 

           ?>
        </p>
    </div>
    <div class="content">
        <?php 
           echo  $desp; 

           ?>
    </div>
</div>


<!--slider job-->


 <?php
 //pre($result);
 
if($result['datares'] =='yes'){

  $data = $result['data'];

?>



<div class="section2 block">
<?php 
//edit_node_inblock($pidname,__FILE__);
?>
    <div class="text">
        <p class="p1">
             <?php 
           echo  $bkbz1; 
           ?>
        </p>
        <p class="p2">
             <?php 
          echo  $bkbz2;
           ?>
        </p>
    </div>

  
    <div class="content">
        <div class="swiper-container">
            <div class="swiper-wrapper">

            <?php
                foreach ($data as $k => $v) { 
                    $title = $v['title'];
                   // $desp = $v['desp'];
            ?>
                <div class="swiper-slide">
                    <a href="#anchor<?php echo $k?>" class="title">
                        <?php echo $title?>
                    </a>
                </div> 
            <?php

             }

            ?>

            </div>
        </div>
        <div class="swiper-scrollbar">
        </div>
        <div class="swiper-button-next">
        </div>
        <div class="swiper-button-prev">
        </div>
    </div>
</div>

 
<!--job text-->
 <div class="jobwrap">
  <ul>
 <?php
 //pre($data);
        foreach ($data as $k => $v) { 
                    $title = $v['title'];
                     $desp = $v['desp'];
                     $despall = $v['despall'];

                     
            ?>
  <li id="anchor<?php echo $k?>">
      <h3><a href="<?php echo $v['link']?>"><?php echo $title?></a></h3>
      <div class="text">
         <?php 
            echo $despall;
        ?>
        <p><a href="https://www.demososo.com/tepage.html" target="_blank">如何使用本功能，观看视频教程&gt;</a><br />
          使用deapall显示全文，使用desp显示摘要。

        </p>
          
            
      </div>


  </li>
<?php 
}
?>
  </ul>

 </div> 


<script>
    $(document).ready(function() {
        new Swiper(".swiper-container", {
            slidesPerView: 4,
            centeredSlides: false,
            spaceBetween: 40,
            prevButton: ".swiper-button-prev",
            nextButton: ".swiper-button-next",
            scrollbar: ".swiper-scrollbar",
            scrollbarHide: false,
            breakpoints: {
                1100 : {
                    slidesPerView: 3,
                    spaceBetween: 30
                },
                800 : {
                    slidesPerView: 2,
                    spaceBetween: 20
                },
                640 : {
                    slidesPerView: 1,
                    spaceBetween: 20
                },
                320 : {
                    slidesPerView: 1,
                    spaceBetween: 10
                }
            }
        })
    })
</script>

<?php
 

}
else {
  echo  $result['data'];
}
?>
