2014년 6월 10일 화요일

view.skin.php

<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가


$ex2_filed = explode("|",$view[wr_2]); //전화,핸드폰
$view_TEL = $ex2_filed[0] ." - ". $ex2_filed[1] ." - ".$ex2_filed[2];
$view_FAX  = $ex2_filed[3] ." - ". $ex2_filed[4] ." - ".$ex2_filed[5];



$ex4_filed = explode("|",$view[wr_4]); //주소
$view_email = $ex4_filed[0] ." @ ". $ex4_filed[1];


//사내정보, 기본정보
$ex2_filed = explode("|",$write[wr_2]);
$ext2_00  = $ex2_filed[0]; // 전화번호1
$ext2_01  = $ex2_filed[1]; // 전화번호2
$ext2_02  = $ex2_filed[2]; // 전화번호3
$ext2_03  = $ex2_filed[3]; // fax1
$ext2_04  = $ex2_filed[4]; // fax2
$ext2_05  = $ex2_filed[5]; // fax3
$ext2_06  = $ex2_filed[6]; // 고객사
$ext2_07  = $ex2_filed[7]; // 소속
$ext2_08  = $ex2_filed[8]; // 담당자
$ext2_09  = $ex2_filed[9]; // 내부영업담당자

//email
$ex4_filed = explode("|",$write[wr_4]);
$ext4_00  = $ex4_filed[0]; // email-1
$ext4_01  = $ex4_filed[1]; // email-2
$ext4_02  = $ex4_filed[2]; // 삼양모터
$ext4_03  = $ex4_filed[3]; // 지멘스모터
$ext4_04  = $ex4_filed[4]; // 효성모터
$ext4_05  = $ex4_filed[5]; // 하이젠모터
$ext4_06  = $ex4_filed[6]; // 해당사항없음

//고객대응 형태 wr_5
$ex5_filed = explode("|",$write[wr_5]);
$ext5_00  = $ex5_filed[0]; // 전화대응
$ext5_01  = $ex5_filed[1]; // email자료요청
$ext5_02  = $ex5_filed[2]; // Fax자료요청
$ext5_03  = $ex5_filed[3]; // 직접방문
$ext5_04  = $ex5_filed[4]; // 방문요청
$ext5_05  = $ex5_filed[5]; // 기타
$ext5_06  = $ex5_filed[6]; // 빈칸

//고객요청사항
$ex6_filed = explode("|",$write[wr_6]);
$ext6_00  = $ex6_filed[0]; // 사양문의
$ext6_01  = $ex6_filed[1]; // 사양선정요청
$ext6_02  = $ex6_filed[2]; // 성적서요청[감속기]
$ext6_03  = $ex6_filed[3]; // 성적서요청[모터]
$ext6_04  = $ex6_filed[4]; // 승인도요청
$ext6_05  = $ex6_filed[5]; // 외형도요청
$ext6_06  = $ex6_filed[6]; // 설계요청
$ext6_07  = $ex6_filed[7]; // 기타
$ext6_08  = $ex6_filed[8]; // 빈칸

//모터사양,결과
$ex7_filed = explode("|",$write[wr_7]);
$ext7_00  = $ex7_filed[0]; // 감속비
$ext7_01  = $ex7_filed[1]; // 없음
$ext7_02  = $ex7_filed[2]; // 출력
$ext7_03  = $ex7_filed[3]; // P
$ext7_04  = $ex7_filed[4]; // Hz
$ext7_05  = $ex7_filed[5]; // rpm
$ext7_06  = $ex7_filed[6]; // volt
$ext7_07  = $ex7_filed[7]; // 완료_체크
$ext7_08  = $ex7_filed[8]; // 회신_체크
$ext7_09  = $ex7_filed[9]; // 대상자_빈칸

//관련자료접수,발송자료
$ex8_filed = explode("|",$write[wr_8]);
$ext8_00  = $ex8_filed[0]; // 도면
$ext8_01  = $ex8_filed[1]; // 사양서_감속기
$ext8_02  = $ex8_filed[2]; // 사양서_모터
$ext8_03  = $ex8_filed[3]; // 사진
$ext8_04  = $ex8_filed[4]; // 기타
$ext8_05  = $ex8_filed[5]; // 빈칸
$ext8_06  = $ex9_filed[6]; // 도면
$ext8_07  = $ex9_filed[7]; // 사양서_감속기
$ext8_08  = $ex9_filed[8]; // 사양서_모터
$ext8_09  = $ex9_filed[9]; // 계산서
$ext8_10  = $ex9_filed[10]; // 사진
$ext8_11  = $ex9_filed[11]; // 기타
$ext8_12  = $ex9_filed[12]; // 빈칸
?>
<div style="height:12px; line-height:1px; font-size:1px;">&nbsp;</div>

<!-- 게시글 보기 시작 -->
<table width="<?=$width?>" align="center" cellpadding="0" cellspacing="0"><tr><td>


<div style="clear:both; height:30px;">
    <div style="float:left; margin-top:6px;">
    <img src="<?=$board_skin_path?>/img/icon_date.gif" align=absmiddle border='0'>
    <span style="color:#888888;">작성일 : <?=date("y-m-d H:i", strtotime($view[wr_datetime]))?></span>
    </div>

    <!-- 링크 버튼 -->
    <div style="float:right;">
    <?
    ob_start();
    ?>
    <? if ($copy_href) { echo "<a href=\"$copy_href\"><img src='$board_skin_path/img/btn_copy.gif' border='0' align='absmiddle'></a> "; } ?>
    <? if ($move_href) { echo "<a href=\"$move_href\"><img src='$board_skin_path/img/btn_move.gif' border='0' align='absmiddle'></a> "; } ?>

    <? if ($search_href) { echo "<a href=\"$search_href\"><img src='$board_skin_path/img/btn_list_search.gif' border='0' align='absmiddle'></a> "; } ?>
    <? echo "<a href=\"$list_href\"><img src='$board_skin_path/img/btn_list.gif' border='0' align='absmiddle'></a> "; ?>
    <? if ($update_href) { echo "<a href=\"$update_href\"><img src='$board_skin_path/img/btn_modify.gif' border='0' align='absmiddle'></a> "; } ?>
    <? if ($delete_href) { echo "<a href=\"$delete_href\"><img src='$board_skin_path/img/btn_delete.gif' border='0' align='absmiddle'></a> "; } ?>
    <? if ($reply_href) { echo "<a href=\"$reply_href\"><img src='$board_skin_path/img/btn_reply.gif' border='0' align='absmiddle'></a> "; } ?>
    <? if ($write_href) { echo "<a href=\"$write_href\"><img src='$board_skin_path/img/btn_write.gif' border='0' align='absmiddle'></a> "; } ?>
    <?
    $link_buttons = ob_get_contents();
    ob_end_flush();
    ?>
    </div>
</div>

<div style="border:1px solid #ddd; clear:both; height:34px; background:url(<?=$board_skin_path?>/img/title_bg.gif) repeat-x;">
    <table border=0 cellpadding=0 cellspacing=0 width=100%>
    <tr>
        <td style="padding:8px 0 0 10px;">
            <div style="color:#505050; font-size:13px; font-weight:bold; word-break:break-all;">
            <? if ($is_category) { echo ($category_name ? "[$view[ca_name]] " : ""); } ?>
            <?=cut_hangul_last(get_text($view[wr_subject]))?>
            </div>
        </td>
        <td align="right" style="padding:6px 6px 0 0;" width=120>
            <? if ($scrap_href) { echo "<a href=\"javascript:;\" onclick=\"win_scrap('$scrap_href');\"><img src='$board_skin_path/img/btn_scrap.gif' border='0' align='absmiddle'></a> "; } ?>
            <? if ($trackback_url) { ?><a href="javascript:trackback_send_server('<?=$trackback_url?>');" style="letter-spacing:0;" title='주소 복사'><img src="<?=$board_skin_path?>/img/btn_trackback.gif" border='0' align="absmiddle"></a><?}?>
        </td>
    </tr>
    </table>
</div>
<div style="height:3px; background:url(<?=$board_skin_path?>/img/title_shadow.gif) repeat-x; line-height:1px; font-size:1px;"></div>


<table border=0 cellpadding=0 cellspacing=0 width=<?=$width?>>
<tr>
    <td height=30 background="<?=$board_skin_path?>/img/view_dot.gif" style="color:#888;">
        <div style="float:left;">
        &nbsp;글쓴이 :
        <?=$view[name]?><? if ($is_ip_view) { echo "&nbsp;($ip)"; } ?>
        </div>
        <div style="float:right;">
        <img src="<?=$board_skin_path?>/img/icon_view.gif" border='0' align=absmiddle> 조회 : <?=number_format($view[wr_hit])?>
        <? if ($is_good) { ?>&nbsp;<img src="<?=$board_skin_path?>/img/icon_good.gif" border='0' align=absmiddle> 추천 : <?=number_format($view[wr_good])?><? } ?>
        <? if ($is_nogood) { ?>&nbsp;<img src="<?=$board_skin_path?>/img/icon_nogood.gif" border='0' align=absmiddle> 비추천 : <?=number_format($view[wr_nogood])?><? } ?>
        &nbsp;
        </div>
    </td>
</tr>

<?
// 가변 파일
$cnt = 0;
for ($i=0; $i<count($view[file]); $i++) {
    if ($view[file][$i][source] && !$view[file][$i][view]) {
        $cnt++;
        echo "<tr><td height=30 background=\"$board_skin_path/img/view_dot.gif\">";
        echo "&nbsp;&nbsp;<img src='{$board_skin_path}/img/icon_file.gif' align=absmiddle border='0'>";
        echo "<a href=\"javascript:file_download('{$view[file][$i][href]}', '{$view[file][$i][source]}');\" title='{$view[file][$i][content]}'>";
        echo "&nbsp;<span style=\"color:#888;\">{$view[file][$i][source]} ({$view[file][$i][size]})</span>";
        echo "&nbsp;<span style=\"color:#ff6600; font-size:11px;\">[{$view[file][$i][download]}]</span>";
        echo "&nbsp;<span style=\"color:#d3d3d3; font-size:11px;\">DATE : {$view[file][$i][datetime]}</span>";
        echo "</a></td></tr>";
    }
}

// 링크
$cnt = 0;
for ($i=1; $i<=$g4[link_count]; $i++) {
    if ($view[link][$i]) {
        $cnt++;
        $link = cut_str($view[link][$i], 70);
        echo "<tr><td height=30 background=\"$board_skin_path/img/view_dot.gif\">";
        echo "&nbsp;&nbsp;<img src='{$board_skin_path}/img/icon_link.gif' align=absmiddle border='0'>";
        echo "<a href='{$view[link_href][$i]}' target=_blank>";
        echo "&nbsp;<span style=\"color:#888;\">{$link}</span>";
        echo "&nbsp;<span style=\"color:#ff6600; font-size:11px;\">[{$view[link_hit][$i]}]</span>";
        echo "</a></td></tr>";
    }
}
?>
<tr>
    <td height="150" >
    <table width=100% bgcolor='ffffff' height=95 cellspacing=0 cellpadding=0 style="border:#8C8C8C 2px solid;">
     <tr>
       <td width=110 height=32 style='padding:0 0 0 10;'>제목</td>
       <td width=550 style='padding:0 0 0 5;'><?=cut_hangul_last(get_text($view[wr_subject]))?></td>
       </tr>
     <tr>
       <td colspan=2 height=1 bgcolor=#e7e7e7></td>
       </tr>
     <tr>
       <td width=110 height=32 style='padding:0 0 0 10;'>영업담당자</td>
       <td width=550 style='padding:0 0 0 5;'><?=$ext2_09?></td>
       </tr>


     <tr>
       <td colspan=2 height=1 bgcolor=#e7e7e7></td>
       </tr>

<tr>
       <td width=110 height=32 style='padding:0 0 0 10;'>고 객 사</td>
       <td width=550 style='padding:0 0 0 5;'><?=$ext2_06?></td>
      </tr>

<tr>
       <td width=110 height=32 style='padding:0 0 0 10;'>소 속</td>
       <td width=550 style='padding:0 0 0 5;'><?=$ext2_07?></td>
      </tr>

<tr>
       <td width=110 height=32 style='padding:0 0 0 10;'>담당자이름</td>
       <td width=550 style='padding:0 0 0 5;'><?=$ext2_08?></td>
      </tr>

     <tr>
       <td colspan=2 height=1 bgcolor=#e7e7e7></td>
       </tr>

<tr>
       <td width=110 height=32 style='padding:0 0 0 10;'>전화번호</td>
       <td width=550 style='padding:0 0 0 5;'><?=$view_TEL?></td>
      </tr>



<tr>
       <td width=110 height=32 style='padding:0 0 0 10;'>FAX</td>
       <td width=550 style='padding:0 0 0 5;'><?=$view_FAX?></td>
      </tr>

     <tr>
       <td width=110 height=32 style='padding:0 0 0 10;'>이메일</td>
       <td width=550 style='padding:0 0 0 5;'><?=$view_email?></td>
       </tr>


     <tr>
       <td colspan=2 height=1 bgcolor=#e7e7e7></td>
       </tr>

     <tr>
       <td width=110 height=32 style='padding:0 0 0 10;'>고객대응형태</td>
       <td width=550 style='padding:0 0 0 5;'><?
$tmp = "";
if($ext5_00) $tmp .= $ext5_00." / ";
if($ext5_01) $tmp .= $ext5_01." / ";
if($ext5_02) $tmp .= $ext5_02." / ";
if($ext5_03) $tmp .= $ext5_03." / ";
if($ext5_04) $tmp .= $ext5_04." / ";
if($ext5_05) $tmp .= $ext5_05." / ";
if($ext5_06) $tmp .= $ext5_06." / ";
if($tmp) echo substr($tmp,0,-3);
?></td>
       </tr>

     <tr>
       <td colspan=2 height=1 bgcolor=#e7e7e7></td>
       </tr>



     <tr>
       <td width=110 height=32 style='padding:0 0 0 10;'>요청사항</td>
       <td width=550 style='padding:0 0 0 5;'><?
$tmp = "";
if($ext6_00) $tmp .= $ext6_00." / ";
if($ext6_01) $tmp .= $ext6_01." / ";
if($ext6_02) $tmp .= $ext6_02." / ";
if($ext6_03) $tmp .= $ext6_03." / ";
if($ext6_04) $tmp .= $ext6_04." / ";
if($ext6_05) $tmp .= $ext6_05." / ";
if($ext6_06) $tmp .= $ext6_06." / ";
if($ext6_07) $tmp .= $ext6_07." / ";
if($ext6_08) $tmp .= $ext6_08." / ";
if($tmp) echo substr($tmp,0,-3);
?></td>
       </tr>
     <tr>
       <td colspan=2 height=1 bgcolor=#e7e7e7></td>
       </tr>
    <tr>
       <td width=110 height=32 style='padding:0 0 0 10;'>감속비</td>
       <td width=550 style='padding:0 0 0 5;'><?=$ext7_00?>:1</td>
      </tr>



 <tr>
       <td width=110 height=32 style='padding:0 0 0 10;'>모터메이커</td>
       <td width=550 style='padding:0 0 0 5;'><?
$tmp = "";
if($ext4_02) $tmp .= $ext4_02." / ";
if($ext4_03) $tmp .= $ext4_03." / ";
if($ext4_04) $tmp .= $ext4_04." / ";
if($ext4_05) $tmp .= $ext4_05." / ";
if($ext4_06) $tmp .= $ext4_06." / ";
if($tmp) echo substr($tmp,0,-3);
?></td>
       </tr>
     <tr>
       <td colspan=2 height=1 bgcolor=#e7e7e7></td>
       </tr>
<tr>
       <td width=110 height=32 style='padding:0 0 0 10;'>모터사양</td>
       <td width=550 style='padding:0 0 0 5;'><?
$tmp = "";
if($ext7_02) $tmp .= $ext7_02."kW / ";
if($ext7_03) $tmp .= $ext7_03."P / ";
if($ext7_04) $tmp .= $ext7_04."Hz / ";
            if($ext7_05) $tmp .= $ext7_05."rpm / ";
         if($ext7_06) $tmp .= $ext7_06."volt / ";      
if($tmp) echo substr($tmp,0,-3);
?></td>
</tr>
     <tr>
       <td colspan=2 height=1 bgcolor=#e7e7e7></td>
       </tr>
 


</table>
        <?
        // 파일 출력
        for ($i=0; $i<=count($view[file]); $i++) {
            if ($view[file][$i][view])
                echo $view[file][$i][view] . "<p>";
        }
        ?>

        <!-- 내용 출력 -->
        <span id="writeContents"><?=$view[content];?></span>
       
        <?//echo $view[rich_content]; // {이미지:0} 과 같은 코드를 사용할 경우?>
        <!-- 테러 태그 방지용 --></xml></xmp><a href=""></a><a href=''></a>



<table width=100% bgcolor='ffffff' height=95 cellspacing=0 cellpadding=0 style="border:#8C8C8C 2px solid;">
       <tr>
       <td colspan=2 height=1 bgcolor=#e7e7e7></td>
       </tr>
 <tr>
       <td width=110 height=32 style='padding:0 0 0 10;'>결과</td>
       <td width=550 style='padding:0 0 0 5;'><?
$tmp = "";
        if($ext7_07) $tmp .= $ext7_07." / ";  
        if($ext7_08) $tmp .= $ext7_08." 대상 : ";  
        if($ext7_09) $tmp .= $ext7_09." / ";            
if($tmp) echo substr($tmp,0,-3);
?></td>
</tr>
     <tr>
       <td colspan=2 height=1 bgcolor=#e7e7e7></td>
       </tr>
     <tr>
       <td width=110 height=32 style='padding:0 0 0 10;'>관련자료접수</td>
       <td width=550 style='padding:0 0 0 5;'><?
$tmp = "";
if($ext8_00) $tmp .= $ext8_00." / ";
if($ext8_01) $tmp .= $ext8_01." / ";
if($ext8_02) $tmp .= $ext8_02." / ";
if($ext8_03) $tmp .= $ext8_03." / ";  
if($ext8_04) $tmp .= $ext8_04." / ";
if($ext8_05) $tmp .= $ext8_05." / ";    
         
if($tmp) echo substr($tmp,0,-3);
?></td>
       </tr>
     <tr>
       <td colspan=2 height=1 bgcolor=#e7e7e7></td>
       </tr>
     <tr>
       <td width=110 height=32 style='padding:0 0 0 10;'>관련자료발송</td>
       <td width=550 style='padding:0 0 0 5;'><?
$tmp = "";
if($ext8_06) $tmp .= $ext8_06." / ";
if($ext8_07) $tmp .= $ext8_07." / ";
if($ext8_08) $tmp .= $ext8_08." / ";
if($ext8_09) $tmp .= $ext8_09." / ";
if($ext8_10) $tmp .= $ext8_10." / ";
            if($ext8_11) $tmp .= $ext8_11." / ";        
            if($ext8_12) $tmp .= $ext8_12." / ";  

if($tmp) echo substr($tmp,0,-3);
?></td>
       </tr>
   



</table>





        <? if ($nogood_href) {?>
        <div style="width:72px; height:55px; background:url(<?=$board_skin_path?>/img/good_bg.gif) no-repeat; text-align:center; float:right;">
        <div style="color:#888; margin:7px 0 5px 0;">비추천 : <?=number_format($view[wr_nogood])?></div>
        <div><a href="<?=$nogood_href?>" target="hiddenframe"><img src="<?=$board_skin_path?>/img/icon_nogood.gif" border='0' align="absmiddle"></a></div>
        </div>
        <? } ?>

        <? if ($good_href) {?>
        <div style="width:72px; height:55px; background:url(<?=$board_skin_path?>/img/good_bg.gif) no-repeat; text-align:center; float:right;">
        <div style="color:#888; margin:7px 0 5px 0;"><span style='color:crimson;'>추천 : <?=number_format($view[wr_good])?></span></div>
        <div><a href="<?=$good_href?>" target="hiddenframe"><img src="<?=$board_skin_path?>/img/icon_good.gif" border='0' align="absmiddle"></a></div>
        </div>
        <? } ?>

</td>
</tr>
<? if ($is_signature) { echo "<tr><td align='center' style='border-bottom:1px solid #E7E7E7; padding:5px 0;'>$signature</td></tr>"; } // 서명 출력 ?>
</table>
<br>

<?
// 코멘트 입출력
include_once("./view_comment.php");
?>

<div style="height:1px; line-height:1px; font-size:1px; background-color:#ddd; clear:both;">&nbsp;</div>

<div style="clear:both; height:43px;">
    <div style="float:left; margin-top:10px;">
    <? if ($prev_href) { echo "<a href=\"$prev_href\" title=\"$prev_wr_subject\"><img src='$board_skin_path/img/btn_prev.gif' border='0' align='absmiddle'></a>&nbsp;"; } ?>
    <? if ($next_href) { echo "<a href=\"$next_href\" title=\"$next_wr_subject\"><img src='$board_skin_path/img/btn_next.gif' border='0' align='absmiddle'></a>&nbsp;"; } ?>
    </div>

    <!-- 링크 버튼 -->
    <div style="float:right; margin-top:10px;">
    <?=$link_buttons?>
    </div>
</div>

<div style="height:2px; line-height:1px; font-size:1px; background-color:#dedede; clear:both;">&nbsp;</div>

</td></tr></table><br>

<script language="JavaScript">
function file_download(link, file) {
    <? if ($board[bo_download_point] < 0) { ?>if (confirm("'"+file+"' 파일을 다운로드 하시면 포인트가 차감(<?=number_format($board[bo_download_point])?>점)됩니다.\n\n포인트는 게시물당 한번만 차감되며 다음에 다시 다운로드 하셔도 중복하여 차감하지 않습니다.\n\n그래도 다운로드 하시겠습니까?"))<?}?>
    document.location.href=link;
}
</script>

<script language="JavaScript" src="<?="$g4[path]/js/board.js"?>"></script>
<script language="JavaScript">
window.onload=function() {
    resizeBoardImage(<?=(int)$board[bo_image_width]?>);
    drawFont();
}
</script>
<!-- 게시글 보기 끝 -->

댓글 없음:

댓글 쓰기