<?php
$press_logo     = $result['logo_img'];
$press_name     = $result['press_name'];
$org_url        = $result['org_url'];
$title          = $result['title'];
$display_date   = $result['display_date'];
$display_date   = str_replace('-', '.', $display_date);
$display_date   = substr($display_date, 0, 16);
$hit_count      = $result['hit_count'];
$comment_count  = $result['comment_count'];
$category_code  = $result['category_code'];
$category_name1 = $result['category_name1'];
$category_name2 = $result['category_name2'];
$category_name3 = $result['category_name3'];
$category_code1 = substr($category_code, 0, 2);
$category_code2 = substr($category_code, 0, 4);
$category_code3 = substr($category_code, 0, 6);

$weather_icon = '';
if(count($arr_weather) > 0){
    $weather_icon       = $arr_weather['weather_icon'];
    $continent          = $arr_weather['continent'];
    $country            = $arr_weather['country'];
    $weather_content    = $arr_weather['weather_content'];

}
$SES_MEMBER_ID          = $this->session->userdata('C_Member_Id');
$content_type = '1';

?>
    <div class="contents">
		<div class="wrap">
			<div class="list_left">
				<div class="news_list">
					<div style="border-bottom: 1px solid #ebeef3;padding-bottom: 160px;">
						<div class="view_header" style="width:610px; float:left; border-bottom:0 !important">
                            <div><a href="<?=$org_url?>" target="_blank"><span class="logo_company"><img src="<?=$press_logo?>" alt="logo" height="17" width="20"></span><?=$press_name?></a></div>
                            <h2><?=$title?></h2>
                            <div class="time">
                                입력 <?=$display_date?>
                                <span style="padding-left:10px">조회수 <span class="beachblue"><?=number_format($hit_count)?></span>회</span>
                                <span style="padding-left:10px">댓글 <span class="beachblue"><?=number_format($comment_count)?></span>개</span>
                                <span class="category">
                                    <a href="/web/news/category/<?=$category_code1?>"><?=$category_name1?></a>
                                    <img src="/img/web/arrow_left.gif">
                                    <a href="/web/news/category/<?=$category_code2?>"><?=$category_name2?></a>
                                    <? if($category_name3!='') {?> <img src="/img/web/arrow_left.gif"><a href="/web/news/category/<?=$category_code3?>"><?=$category_name3?></a> <?}?> 　    　
                                </span>
                            </div>
                        </div>
						<?   if(count($arr_weather) > 0){?>
                        <div class="spirit_weather">
                            <ul class="w_info">
                                <li><img src="<?=$weather_icon?>" style="width:48px"></li>
                                <li style="color:#fff">
                                    <table style="line-height: 22px;width:100%; margin-top: 10px;">
                                        <tr>
                                            <td style="font-size:18px; padding-top: 15px;"><?=$weather_content?></td>
                                        </tr>
                                    </table>
                                </li>
                            </ul>
                            <div class="w_location"><?=$continent?> <span style="padding:0 5px;"><img src="/img/web/w_bg.gif" style="padding-top:8px;"></span><?=$country?></div>
                        </div>
                        <?  }?>
					</div>
                </div>

                <div class="column_contents" style="margin-bottom: -10px">
                    <h4 class="beachblue">댓글전체보기</h4>
                </div>

                <? require_once(APPPATH."views/web/comm/comment_inc.php");?>

			</div>
			<? include_once ('news_right_inc.php');?>
		</div>
	</div>

	 <? include_once ('news_footer_inc.php');?>