/var/www/hkosl.com/chineseaaedu/tc/info.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
<? include('_init.php');?>
<?
//
$sql "SELECT name_".$lang." as `name`,intro_".$lang." as `intro`,photo FROM bannerSingle WHERE refid = '5' LIMIT 1";
$sth1 $dbh->prepare($sql);
$sth1->execute();
$row_banner $sth1->fetch(PDO::FETCH_ASSOC);
//
$sql "SELECT desc_".$lang." as `desc`,photo FROM page WHERE refid = '4' LIMIT 1";
$sth1 $dbh->prepare($sql);
$sth1->execute();
$row_development $sth1->fetch(PDO::FETCH_ASSOC);
//
$sql "SELECT desc_".$lang." as `desc`,photo FROM page WHERE refid = '5' LIMIT 1";
$sth1 $dbh->prepare($sql);
$sth1->execute();
$row_development2 $sth1->fetch(PDO::FETCH_ASSOC);
//
//
$sql "SELECT * FROM `aerospace` where deleted = ? order by year desc";
$sth1 $dbh->prepare($sql);
$parameter = array(0);
$sth1->execute($parameter);
while (
$row_aerospace $sth1->fetch(PDO::FETCH_ASSOC)) {
    
$rows_aerospace[] = $row_aerospace;
}
?>
<!DOCTYPE html>
<html lang="<?=$lang?>">
<head>
  <? include('_head.php');?>
  <link rel="stylesheet" href="../css/style.css">
  <script src="../js/modernizr.js"></script>
</head>

<body>

  <? include('_header.php');?>
  
  
    <!-- Header -->
    <div class="infoHeader" style="background-image:url(../file/bannerSingle/<?=$row_banner['photo']?>)">
        <div class="container">
            <div class="row">
                <div class="col-lg-12">
                    <div class="subPage-intro-message">
                        <h4><?=nl2br($row_banner['intro'])?></h4>
                        <h3><?=$row_banner['name']?></h3>
                        <br><br>
                    </div>
                </div>
            </div>

        </div>
    </div>


<!-- Space Info-->
<div class="Section">
  <div class="row">
    <div class="col-md-6" id="InfoImg" style="background-image:url(../file/page/<?=$row_development['photo']?>)">
    </div>

    <div class="col-md-6">

      <div class="SpaceInfo">
        <h11>中國的航天發展</h11> <br><br>
       <?=nl2br($row_development['desc'])?>
      </div>
    </div>
  </div>
</div>

<!-- Timeline -->

<div class="BSection">
  <div class="container">
    <div class="row">
      <br><h13>中國航天技術發展大事年表</h13><br><br>
        <div class="col-md-12">
          <section id="cd-timeline" class="cd-container">

            <? foreach($rows_aerospace as $row_aerospace){?>

            <div class="cd-timeline-block">
              <div class="cd-timeline-img cd-location">
                <img src="../img/info/rocket.png">
              </div> <!-- cd-timeline-img -->
              <div class="cd-timeline-content">
                <p><h5><?=$row_aerospace['intro_tc']?>
                </h5></p>
                <span class="cd-date"><h5><?=$row_aerospace['year']?></h5></span>
              </div> <!-- cd-timeline-content -->
            </div> <!-- cd-timeline-block -->

            <? }?>
          </section> <!-- cd-timeline -->
          <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
          <script src="../js/main.js"></script> <!-- Resource jQuery -->
        </div>        
    </div>  
  </div>
</div>


<style type="text/css">
.SpaceInfo ul.tabs{
  margin: 0px;
  padding: 0px;
  list-style: none;
}
.SpaceInfo ul.tabs li{
  background: none;
  color: #000000;
  display: inline-block;
  padding: 10px 15px;
  cursor: pointer;
}

.SpaceInfo ul.tabs li.current{
  background: #fff;
  color: #1ea2dd;
  font-weight: bold;
  border-bottom: 3px solid  #1ea2dd;
}

.SpaceInfo .tab-content{
  display: none;
  background: #fff;
  padding: 15px;
}

.SpaceInfo .tab-content.current{
  display: inherit;
}
</style>

<!-- Space Development -->

<div class="Section">
  <div class="row">
    <div class="col-md-6" id="Info3rdImg" style="background-image:url(../file/page/<?=$row_development2['photo']?>)">
    </div>

    <div class="col-md-6">

      <div class="SpaceInfo">
        <h11>世界航天科技發展</h11> <br><br>
        
        <?=nl2br($row_development2['desc'])?>
      </div>

    </div>
  </div>
</div>

<script type="text/javascript">
  $(document).ready(function(){
  
  $('ul.tabs li').click(function(){
    var tab_id = $(this).attr('data-tab');

    $('ul.tabs li').removeClass('current');
    $('.tab-content').removeClass('current');

    $(this).addClass('current');
    $("#"+tab_id).addClass('current');
  })

})

</script>

<!-- Footer -->
<? include('_footer.php');?>
  </body>
</html>