joinView.php 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
  5. <title>上海永天科技股份有限公司</title>
  6. <?php $this->load->view('_resource', array('link' => 'recruit')); ?>
  7. </head>
  8. <body>
  9. <?php $this->load->view('_header' , array('navi' => 'join')); ?>
  10. <div class="top">
  11. <img src="<?php echo STYLE_PATH; ?>/images/num12.png" alt="" />
  12. </div>
  13. <div class="recruit">
  14. <h1>社会招聘</h1>
  15. <ul>
  16. <?php
  17. if(is_array($items)):
  18. $i = 1;
  19. foreach ($items as $key => $value):
  20. ?>
  21. <li class="<?php if($i++ == 1) echo 'cur'; else echo 'hover' ?>"><?php echo $value['name'] ?></li>
  22. <?php
  23. endforeach;
  24. endif;
  25. ?>
  26. </ul>
  27. <div class="c1"></div>
  28. <div class="content">
  29. <?php
  30. if(is_array($items)):
  31. $i = 1;
  32. foreach ($items as $key => $value):
  33. ?>
  34. <div class="con <?php if($i++ == 1) echo 'con1';?>">
  35. <?php echo $value['content'] ?>
  36. </div>
  37. <?php
  38. endforeach;
  39. endif;
  40. ?>
  41. </div>
  42. </div>
  43. <?php $this->load->view('_footer'); ?>
  44. </body>
  45. <script type="text/javascript">
  46. $(document).ready(
  47. function(){
  48. $(".recruit ul li").click(
  49. function(){
  50. $(this).addClass("cur").removeClass("hover").siblings().addClass("hover").removeClass("cur");
  51. $(this).parent().siblings(".content").children(".con").eq($(this).index()).show().siblings().hide();
  52. });
  53. });
  54. </script>
  55. </html>