<!--Masthead -->


<?php
 if(isset($_GET['blogid'])){

   $blogid=$_GET['blogid'];
  $sql = mysql_query("SELECT * FROM `nchmcblog` WHERE `news_id` = ".$blogid);
  $row = mysql_fetch_assoc($sql);
  $web = $row['ep_web'];

  $hcat_id=$_GET['hcat_id'];
  $page=$_GET['page'];
  }//if(isset($_GET['id'])){


     $uri_parts = explode('?', $_SERVER['REQUEST_URI'], 2);
     $request_uri = $uri_parts[0];

//category name added at 2019-10-10
function categoryName($id){
  global $global_lang;
  $sql = mysql_query('SELECT * FROM `nchmcblog_cat` WHERE `cat_id` = '.$id);
  $row = mysql_fetch_assoc($sql);
  if($global_lang=="tc"){
    return $row['cp_cat_name'];
  }

   if($global_lang=="sc"){
  return $row['sp_cat_name'];
  }
}
//end category name
?>
  <header style="position: relative;
    background-color: #343a40;
    background: url(../img/nchmcbanner.png) no-repeat center center;
    background-size: cover;">
    <div style="height: 320px">
    </div>
  </header>
   




  <div class="container " style="margin-top: 50px">
  <div class="row">
    <div class="col-md-12 " style="padding-left: 0px!important;padding-right: 0px!important;text-align: center;" >

     <div style="display: block;width: 100%;text-align: left;">
              <!-- <p><span style="color:#2c2c2c;">首頁 > </span><span style="color:#a73745; ">診所環境</span></p> -->
              <?php 

               if($global_lang=="tc"){
                  $subject= $row['cp_subject'];
                }
                if($global_lang=="sc"){
                  $subject= $row['sp_subject'];
                }

              if($global_lang=="tc"){
               ?>
                    <p><span style="color:#2c2c2c;">首頁 > </span><span style="color:#2c2c2c; "><a href="<?php  echo $request_uri.'?section=Knowledge';?>" style="text-decoration: none;color:#2c2c2c;">兒科知識</a> > </span><span style="color:#2c2c2c; "><a href="<?php  echo $request_uri.'?section=Knowledge'.'&page='.$page.'&hcat_id='.$hcat_id;?>" style="text-decoration: none;color:#2c2c2c;"><?PHP echo categoryName($hcat_id)?></a> > </span><span style="color:#a73745; "><?php echo $subject?></span></p>
              <?php     
                  }
              ?>
               <?php 
                  if($global_lang=="sc"){
               ?>
                    <p><span style="color:#2c2c2c;">首页 > </span><span style="color:##2c2c2c; "><a href="<?php  echo $request_uri.'?section=Knowledge';?>" style="text-decoration: none;color:#2c2c2c;">儿科知识</a> ><span style="color:#a73745; "><a href="<?php  echo $request_uri.'?section=Knowledge'.'&page='.$page.'&hcat_id='.$hcat_id;?>" style="text-decoration: none;color:#2c2c2c;"><?PHP echo categoryName($hcat_id)?></a> > </span><span style="color:#a73745; "><?php echo $subject?></span></p>
              <?php     
                  }
              ?>
          </div>


    <h4 style="color:#a73745; ">
  <?php

  if($global_lang=="tc"){
    echo $row['cp_subject'];
  }
  if($global_lang=="sc"){
    echo $row['sp_subject'];
  }
  ?>
  </h4>
      </div>
    </div>
  </div>



  <div class="container " style="margin-top: 50px">
  <div class="row">
    <div class="col-md-12 " style="padding-left: 0px!important;padding-right: 0px!important;text-align: left;" >
  <?php
   if($global_lang=="tc"){
      echo $row['cp_content'];
   }
   if($global_lang=="sc"){
    echo $row['sp_content'];
    }   


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

  <!-- back button -->
  <style>
          /*#link_bar li:hover a { color: red }*/
          /*#link_bar li:hover  a p b { color: #a03d49; }*/
          .sidemenu2:hover  { background-color: #bd6974!important; }
          /*#link_bar li:hover  { border-top:2px solid #a03d49; }*/

           /*#link_bar li { border-top:2px solid transparent;cursor: pointer; }*/
 /*          #link_bar li { border-top:2px solid transparent; }
          #link_bar li:hover  { border-top:2px solid #a03d49; }*/

         
      </style>
      
  <table width="100%">
    <tr>
      <td width="100%" align="center">
          <div style="width: 250px;height: 50px;background-color: #a73745;margin-bottom: 1px;text-align: center;vertical-align: middle;display: block; " class="sidemenu2 "> 
           <a href="<?php echo $request_uri.'?section=Knowledge'.'&page='.$page.'&hcat_id='.$hcat_id;?>" class="submenu_item <?php echo $select_class.' '.$last_time;?>" style="text-decoration: none;width: 100%;height: 100%;"> 
          <!-- <div style="width: 250px;height: 50px;background-color: #bd6974;margin-bottom: 1px;text-align: center;vertical-align: middle;display: block; " class="sidemenu2"> -->
              <p style="line-height: 50px;color: #ffffff;"><b>
          返回
          </b></p>
              <!-- <span style="vertical-align: sub; color: blue;">sub</span> -->
               </a>
        </div>
      </td>
    </tr>
  </table>
  
  <!-- end of back button -->


  
      <!-- end content -->
    </div>
  </div>
</div>
  <!-- end new content row