<?php
session_start();

if( isset($_SESSION['init_alert']) )
{
	if( ( $str_temp = trim($_SESSION['init_alert']) ) != '' )
		$str_init_alert = $str_temp;

	unset($_SESSION['init_alert']);
}

require_once('includes/common.php');

require_once('includes/data.php');
$obj_class_data = new class_data();

$arr_banner = $obj_class_data->get_banners(0, 2);

$arr_suggest_news = $obj_class_data->get_suggest_news(4);
?>
<!DOCTYPE html>
<html lang="zh-TW">
  <head>
    <meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="robots" content="all" />
    <meta name="keywords" content="國防新聞網,中文軍事新聞,軍事新聞" />
    <meta property="fb:app_id" content="1507360842898051" />
    <meta property="og:type" content="website" />
    <meta property="og:title" content="關於國防新聞網 | 國防新聞網" />
    <meta property="og:description" content="從大戰略、國家戰略、野戰戰略，到戰術、戰法、戰具，以及個人的裝備，再延伸到軍事收藏，全都在國防新聞網。 " />
    <meta property="og:image" content="http://www.ewmib.com/images/fb-pic.jpg" />
    <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0, user-scalable=yes"/>
    
    <title>關於國防新聞網 | 國防新聞網 </title>
    <!-- Bootstrap -->
	<link href="css/bootstrap.css" rel="stylesheet" type="text/css" />
	<link href="css/css.css" rel="stylesheet" type="text/css" />
    <link href="css/blueimp-gallery-video.css" rel="stylesheet" type="text/css" />
    <link href="css/blueimp-gallery.css" rel="stylesheet" type="text/css" />
	<link href="favicon.ico" rel="shortcut icon" type="image/x-icon" />

	<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
	<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
	<!--[if lt IE 9]>
		  <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
		  <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
		<![endif]-->
  </head>

   
<body<?=( isset($str_init_alert) ? ' onLoad="javascript:alert(\'' . $str_init_alert . '\');"' : '' )?>>
<div id="fb-root"></div>
<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/zh_TW/sdk.js#xfbml=1&version=v2.5&appId=1507360842898051";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<? include('_title.php'); ?>
  <div id="c_contents" class="container" >
    <div id="c_contents_l">
    <div class="container-fluid contents_l_top" >
      <div class="nav_button"><a class="home_bn" href="index.php">首頁</a><span class="category_bn">關於國防新聞網</span></div>
	  
    </div>
    <div class="about_box">
    <h1>關於國防新聞網</h1>


    <div id="c_contents_l_box">
      <p>這是一個國防軍事的新聞專題網站！      </p>
      <p>是東愷圖書有限公司所出版之《防務快門》與《戰記》兩本期刊的延伸閱讀，既是電子版，也是擴充版。      </p>
      <p>從大到國防政策，一直到個人所收藏的軍事模型，都是這個網站所提供的資訊。也就是說，從大戰略、國家戰略、野戰戰略，到戰術、戰法、戰具，以及個人的裝備，再延伸到軍事收藏，全都在國防新聞網。     </p>
      <p>這個網站所要展現的，是一個軍事專題型的新聞平台。</p>
       <h1>公司資訊</h1>
       
       <ul>
       <li>公司名稱：東愷圖書有限公司</li>
       <li>公司地址：新北市土城區廣福街185號(1樓)</li>
       <li>連絡電話：+886-2-25176069</li>
       <li>聯絡傳真：+886-2-25178437</li>
       <li>客服信箱：rex65100@gmail.com</li>
       <li>統一編號：24472752 </li>
      </ul>
       <h1>實體書購買</h1>
       
       <ul>
       <li><a href="http://search.books.com.tw/search/query/cat/3/key/%E6%9D%B1%E6%84%B7/sort/1/c/0" target="_blank">博客來</a></li>
       <li><a href="http://www.kingstone.com.tw/search/result.asp?c_name=%25E6%259D%25B1%25E6%2584%25B7%25E5%259C%2596%25E6%259B%25B8%2520%2520&se_type=4&q_type=bl&page=1" target="_blank">金石堂</a></li>
       
      </ul>

    </div>
    </div>
  </div>
  
  <div id="c_contents_r">
<?
if( isset($arr_banner[0]) && $arr_banner[0] )
{
?>
     <div class="contents_r_ad"><a href="<?=$arr_banner[0]['Url']?>"<?=( $arr_banner[0]['NewTarget'] ? ' target="_blank"' : '' )?>><img alt="<?=$arr_banner[0]['Slogan']?>" title="<?=$arr_banner[0]['Slogan']?>" src="images/banners/<?=$arr_banner[0]['BannerId']?>.jpg" /></a></div>
<?
}
?>
     <div class="container top_title_a">推薦要聞</div>
    <div class="container column_5" >
    <ul>
<?
if( $arr_suggest_news )
{
	foreach( $arr_suggest_news as $arr_row )
	{
?>
      <li>
      <a href="news.php?news_id=<?=$arr_row['NewsId']?>&cate_id=<?=$arr_row['NewsCateId']?>"><img src="images/news/<?=$arr_row['NewsId']?>.jpg" /></a>
      <h1><a href="news.php?news_id=<?=$arr_row['NewsId']?>&cate_id=<?=$arr_row['NewsCateId']?>"><?=mb_substr($arr_row['Subject'], 0, 25, 'UTF-8')?>...</a></h1>
      <h2><?=$arr_row['Date']?>｜<span class="category_subhead"><a href="news_list.php?cate_id=<?=$arr_row['NewsCateId']?>"><?=$arr_row['NewsCateName']?></a></span></h2>
      </li>
<?
	}
}
?>
    </ul>
    
    </div> 
<?
if( isset($arr_banner[1]) && $arr_banner[1] )
{
?>
     <div class="contents_r_ad"><a href="<?=$arr_banner[1]['Url']?>"<?=( $arr_banner[1]['NewTarget'] ? ' target="_blank"' : '' )?>><img alt="<?=$arr_banner[1]['Slogan']?>" title="<?=$arr_banner[1]['Slogan']?>" src="images/banners/<?=$arr_banner[1]['BannerId']?>.jpg" /></a></div>
<?
}
?>
  </div>
  </div>
  <div class="container-fluid" id="footer">
    <div class="container footer_nav">
      <ul>
      <li><a href="terms.php">使用條款</a></li>
      <li><a href="about.php">關於國防新聞網</a></li>
      <li><a href="policy.php">隱私政策</a></li>
      <li><a href="contact.php">聯絡我們</a></li>
      </ul>
    </div>
    <div class="container">
      <div class="copyright">Copyright © 2015 國防新聞網 All Rights Reserved.</div>
      <div class="go_top">
      <ul>
      <li><a id="footer_menu_2" title="返回頂端" href="#">go top</a></li>
      <li><a id="footer_menu_1" href="https://www.facebook.com/%E9%98%B2%E5%8B%99%E5%BF%AB%E9%96%80-243554065699495/" title="防務快門粉絲團" target="_blank" >防務快門粉絲團</a></li>
      </ul>
      </div>
    </div>
  </div>
  <!-- jQuery (necessary for Bootstrap's JavaScript plugins) --> 
	<script src="js/jquery-1.11.2.min.js"></script>

	<!-- Include all compiled plugins (below), or include individual files as needed --> 
	<script src="js/bootstrap.js"></script>
    <?php include_once("analyticstracking.php") ?>

  </body>
</html>
