<?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="section13">
    <?php 
    $cusbkid = 'vblock20201104_1654152924';

edit_node_inblock($cusbkid,__FILE__);

$arr_cusbk =  getarr_block($cusbkid);
 
$data_cusbk = $arr_cusbk['data'];

           $cusbk_bkbz1 = $data_cusbk['arrcan']['bkbz1'];
           $cusbk_bkbz2 = $data_cusbk['arrcan']['bkbz2'];

?>
    <div class="text">
        <p class="p1">
            <?php 
           echo  $data_cusbk['arrcan']['namefront']; 
           ?>
        </p>
        <p class="p2">
             <?php 
           echo  $data_cusbk['despjj']; 

           ?>
        </p>
    </div>
    <div class="content">
        <?php 
           echo  $data_cusbk['desp']; 

           ?>
    </div>
</div>


<!--slider job-->



  <?php

   $arr = array(
       'data' => Array
        (
           Array
                (
                    'title' => '会计师',
                    'desp' => '  数据可以在后台获取 '
                ),
             Array
                 (
                 'title' => '前端开发工程师',
                    'desp' => '  数据可以在后台获取 '
                ),
                 Array  (
                   'title' => 'PHP程序员',  'desp' => '  数据可以在后台获取'  
                ),
                 Array  (
                   'title' => '设计师',  'desp' => '  数据可以在后台获取'  
                ),
                 Array  (
                   'title' => '公关经理',  'desp' => '  数据可以在后台获取'  
                ),
                 Array  (
                   'title' => '系统工程师',  'desp' => '  数据可以在后台获取'  
                ),
                 Array  (
                   'title' => 'JAVA工程师',  'desp' => '  数据可以在后台获取'  
                ),
                 Array  (
                   'title' => 'LINUX维护',  'desp' => '  数据可以在后台获取'  
                ),
                 Array  (
                   'title' => '设计总监',  'desp' => '  数据可以在后台获取'  
                ),
                 Array  (
                   'title' => '财务总监',  'desp' => '  数据可以在后台获取'  
                )
 
  
//--------------------
    )
);

   
 //----调接口----------------------
$pidname = 'cate20201104_1922381676';
   $sqlarr = array( 
                'excerpt'=>10000,
                'start'=>0,
                'maxline'=>20,
                'order'=>'','where'=>'',
                );

//效果内容的数组：              
$arr_api = getarr_node($pidname,$sqlarr);

  

 $datafromadmin = 'y'; //上线使用，需要把 n 改为 y，具体请看视频教程。

if($datafromadmin=='y') $arr = $arr_api;
 //-----------------
 

   $data = $arr['data'];
    ?>



<div class="section2 block">
<?php 
edit_node_inblock($pidname,__FILE__);
?>
    <div class="text">
        <p class="p1">
             <?php 
           echo  $cusbk_bkbz1; 
           ?>
        </p>
        <p class="p2">
             <?php 
          echo  $cusbk_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
        foreach ($data as $k => $v) { 
                    $title = $v['title'];
                     $desp = $v['desp'];
                     $despall = $v['despall'];

                     
            ?>
  <li id="anchor<?php echo $k?>">
      <h3><?php echo $title?></h3>
      <div class="text">
         <?php 
            echo $despall
        ?>
          
            
      </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>

