영화 통합스킨에 대한 질문

영화 통합스킨에 대한 질문

QA

영화 통합스킨에 대한 질문

본문

푸른하늘님께서 올리신 스킨에서 회수 등록은 되는데 회수 수정 버튼은 안나오네요 부 페이지 소스는 있는데 회수 버튼에 안 나타나는 경우는 무슨 문제죠? 

이 질문에 댓글 쓰기 :

답변 7

숏태그 해제 하고 해보세요.

<?

이걸

<?php

이렇게요

 

테니님 호스팅에서 php 숏태그 옵션이 off 여서 그런듯..

푸른하늘 직접 물어 보던가 

아니면 그 스킨 소스 를 어디서 받는 지 알려주시고

그소스를 그누보드 에 어떠게 설치를 했는 지 과정과

현제 문제가 있는 페이지의 도메인 주소를 알려주던가 

문제 발생한 위치를 알아야 대답이 가능 할꺼라 생각 됩니다

뷰 페이지 소스 입니다.

 

 

<?php
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once(G5_LIB_PATH.'/thumbnail.lib.php');
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
add_stylesheet('<link rel="stylesheet" href="'.$board_skin_url.'/style.css">', 0);

if ($admin_href) { 
if($config[cf_10]=="g5_drama_list"){}else{

// Name of the file
$filename = "$board_skin_url/g5_drama_list.sql";


// Connect to MySQL server
//mysql_connect($mysql_host, $mysql_username, $mysql_password) or die('Error connecting to MySQL server: ' . mysql_error());
// Select database
//mysql_select_db($mysql_database) or die('Error selecting MySQL database: ' . mysql_error());

// Temporary variable, used to store current query
$templine = '';
// Read in entire file
$lines = file($filename);
// Loop through each line
foreach ($lines as $line)
{
// Skip it if it's a comment
if (substr($line, 0, 2) == '--' || $line == '')
    continue;

// Add this line to the current segment
$templine .= $line;
// If it has a semicolon at the end, it's the end of the query
if (substr(trim($line), -1, 1) == ';')
{
    // Perform the query
    sql_query($templine) or print('Error performing query \'<strong>' . $templine . '\': ' . sql_error() . '<br /><br />');
    // Reset temp variable to empty
    $templine = '';
}
}
   $sql = " update g5_config
                          set cf_10_subj                 = '영상기능',
                           cf_10                 = 'g5_drama_list'";
                    $sql_query=sql_query($sql);    
    
    
    echo "<script>document.location.href='/bbs/board.php?bo_table=$_GET[bo_table]&wr_id=$_GET[wr_id]'</script>";
}

///////////등록/////////
$bo_table                =$_POST[bo_table];
$wr_id                    =$_POST[wr_id];
$wr_subject            =$_POST[wr_subject];
$id                            =$_POST[id];
$wr_link1                =$_POST[wr_link1];
$wr_link2                =$_POST[wr_link2];
$wr_link3                =$_POST[wr_link3];
$wr_datetime        =date('Y-m-j h:i:s');

    if($_POST[type]=="new"){

                    $sql = " insert into g5_drama_list
                                set bo_table                = '$bo_table',
                                     wr_id                        = '$wr_id',
                                     wr_subject                = '$wr_subject',
                                     wr_link1                    = '$wr_link1',
                                     wr_link2                    = '$wr_link2',
                                     wr_datetime                = '$wr_datetime'";
                    $sql_query=sql_query($sql);
                    echo "<script>alert('등록되였습니다..');window.location='/bbs/board.php?bo_table=$bo_table&wr_id=$wr_id'</script>";
                    


///////////위치등록끝/////////

}else if($_POST[type]=="update"){
///////////위치수정/////////
                    $sql = " update g5_drama_list
                                    set bo_table            = '$bo_table',
                                     wr_id                        = '$wr_id',
                                     wr_subject                = '$wr_subject',
                                     wr_link1                    = '$wr_link1',
                                     wr_link2                    = '$wr_link2'
                                     where id = '$id' ";
                        $sql_query=sql_query($sql);    
                        echo "<script>alert('수정되였습니다.');window.location='/bbs/board.php?bo_table=$bo_table&wr_id=$wr_id'</script>";


}
}
?>

<style>
    @font-face { /* 나눔고딕 Regular */
        font-family: 'Nanum Gothic';
        font-style: normal;
        font-weight: 400;
        src: url(//fonts.gstatic.com/ea/nanumgothic/v5/NanumGothic-Regular.eot);
        src: url(//fonts.gstatic.com/ea/nanumgothic/v5/NanumGothic-Regular.eot?#iefix) format('embedded-opentype'),
                 url(//fonts.gstatic.com/ea/nanumgothic/v5/NanumGothic-Regular.woff2) format('woff2'),
                 url(//fonts.gstatic.com/ea/nanumgothic/v5/NanumGothic-Regular.woff) format('woff'),
                 url(//fonts.gstatic.com/ea/nanumgothic/v5/NanumGothic-Regular.ttf) format('truetype');
    }
    @font-face { /* 나눔고딕 Bold */
        font-family: 'Nanum Gothic';
        font-style: normal;
        font-weight: 700;
        src: url(//fonts.gstatic.com/ea/nanumgothic/v5/NanumGothic-Bold.eot);
        src: url(//fonts.gstatic.com/ea/nanumgothic/v5/NanumGothic-Bold.eot?#iefix) format('embedded-opentype'),
                 url(//fonts.gstatic.com/ea/nanumgothic/v5/NanumGothic-Bold.woff2) format('woff2'),
                 url(//fonts.gstatic.com/ea/nanumgothic/v5/NanumGothic-Bold.woff) format('woff'),
                 url(//fonts.gstatic.com/ea/nanumgothic/v5/NanumGothic-Bold.ttf) format('truetype');
    }
    @font-face { /* 나눔고딕 ExtraBold */
        font-family: 'Nanum Gothic';
        font-style: normal;
        font-weight: 800;
        src: url(//fonts.gstatic.com/ea/nanumgothic/v5/NanumGothic-ExtraBold.eot);
        src: url(//fonts.gstatic.com/ea/nanumgothic/v5/NanumGothic-ExtraBold.eot?#iefix) format('embedded-opentype'),
                 url(//fonts.gstatic.com/ea/nanumgothic/v5/NanumGothic-ExtraBold.woff2) format('woff2'),
                 url(//fonts.gstatic.com/ea/nanumgothic/v5/NanumGothic-ExtraBold.woff) format('woff'),
                 url(//fonts.gstatic.com/ea/nanumgothic/v5/NanumGothic-ExtraBold.ttf) format('truetype');
    }
html, body {
    font-family: 'Nanum Gothic', sans-serif;
    white-space: normal;
}
    select {margin:0; font-family: 'Nanum Gothic', sans-serif; border: 1px solid #ccc; width: 140px; height: 38px; padding: 5px; 10px; }
    .title{border-bottom:solid 2px #202020; font-size: 13px; font-family: 'Nanum Gothic', sans-serif; font-weight: 800; color: #000; padding-bottom:9px; padding-top: 33px;}
    .list_content{border-bottom:solid 1px #e6e6e6; font-family: 'Nanum Gothic', sans-serif; height:58px;}
    
    .td_1{ font-family: 'Nanum Gothic', sans-serif; width: 104px; height:50px;  border-top: solid 1px #e9e9e9; border-right: solid 1px #e9e9e9; background-color: #fafafa; color: #000000; padding-left: 12px; font-size: 13px; font-weight: 800;}
    .td_2{ font-family: 'Nanum Gothic', sans-serif; width: 261px; height:50px; border-top: solid 1px #e9e9e9; padding-left: 10px;}
    .td_3{ font-family: 'Nanum Gothic', sans-serif; width: 104px; height:50px;  border-top: solid 1px #e9e9e9; border-right: solid 1px #e9e9e9; background-color: #fafafa; color: #000000; padding-left: 12px; font-size: 13px; font-weight: 800; border-bottom: solid 1px #e9e9e9;}
    .td_4{ font-family: 'Nanum Gothic', sans-serif; width: 261px; height:50px; border-top: solid 1px #e9e9e9; border-bottom: solid 1px #e9e9e9; padding-left: 10px;}
    .input1{border: solid 0px; background-color:#e9e9e9; width: 540px; height: 38px;}
    .input2{border: solid 0px; background-color:#e9e9e9; height: 38px;}
.STYLE4 {font-size: 11px}
.STYLE5 {color: #000000}
.button {
  background: #ffffff;
  -webkit-border-radius: 3;
  -moz-border-radius: 3;
  border-radius: 3px;
  border:1px solid #828282;
  font-family: 'Nanum Gothic', sans-serif;
  color: #333333;
  font-size: 14px;
  padding: 3px 10px 3px 10px;
  text-decoration: none;
}

.button:hover {
  color: #ffffff;
  background: #ff7277;
  border:1px solid #ff7277;
  text-decoration: none;
}
.selBtn {
    color: #ffffff;
    background: #ff7277;
    border: 1px solid #ff7277;
    text-decoration: none;
}
</style>
<script src="<?php echo G5_JS_URL; ?>/viewimageresize.js"></script>

<!-- 게시물 읽기 시작 { -->
<div id="bo_v_table"><?php echo $board['bo_subject']; ?></div>

<article id="bo_v" style="width:<?php echo $width; ?>">
    <header>
        <h1 id="bo_v_title">
            <?php
            if ($category_name) echo $view['ca_name'].' / '; // 분류 출력 끝
            echo cut_str(get_text($view['wr_subject']), 70); // 글제목 출력
            echo cut_str(get_text($view['bo_subject']), 90); // 글제목 출력
            
            ?>
        </h1>
    </header>

    
   
    <!-- 게시물 상단 버튼 시작 { -->
    <div id="bo_v_top">
        <?php
        ob_start();
         ?>
        <?php if ($prev_href || $next_href) { ?>
        <ul class="bo_v_nb">
            <?php if ($prev_href) { ?><li><a href="<?php echo $prev_href ?>" class="btn_b01">이전글</a></li><?php } ?>
            <?php if ($next_href) { ?><li><a href="<?php echo $next_href ?>" class="btn_b01">다음글</a></li><?php } ?>
        </ul>
        <?php } ?>

        <ul class="bo_v_com">
            <?php if ($update_href) { ?><li><a href="<?php echo $update_href ?>" class="btn_b01">수정</a></li><?php } ?>
            <?php if ($delete_href) { ?><li><a href="<?php echo $delete_href ?>" class="btn_b01" onclick="del(this.href); return false;">삭제</a></li><?php } ?>
            <?php if ($copy_href) { ?><li><a href="<?php echo $copy_href ?>" class="btn_admin" onclick="board_move(this.href); return false;">복사</a></li><?php } ?>
            <?php if ($move_href) { ?><li><a href="<?php echo $move_href ?>" class="btn_admin" onclick="board_move(this.href); return false;">이동</a></li><?php } ?>
            <?php if ($search_href) { ?><li><a href="<?php echo $search_href ?>" class="btn_b01">검색</a></li><?php } ?>
            <li><a href="<?php echo $list_href ?>" class="btn_b01">목록</a></li>
            <?php if ($reply_href) { ?><li><a href="<?php echo $reply_href ?>" class="btn_b01">답변</a></li><?php } ?>
            <?php if ($write_href) { ?><li><a href="<?php echo $write_href ?>" class="btn_b02">글쓰기</a></li><?php } ?>
        </ul>
        <?php
        $link_buttons = ob_get_contents();
        ob_end_flush();
         ?>
    </div>
    <!-- } 게시물 상단 버튼 끝 -->
<? if ($admin_href) { ?>
<? if($_GET[w]==""){?>
    <a href="/bbs/board.php?bo_table=<?=$_GET[bo_table]?>&wr_id=<?=$_GET[wr_id]?>&w=w"><button style="padding: 10px; background-color: #f50c0c; color: #fff; border: solid 0px;">회수등록하기</button></a>
<? } ?>
<div style="height: 20px;"></div>
<? if($_GET[w]=="w" || $_GET[w]=="u"){?>
<form method="post" action="" onSubmit="return InputCheck(this)" enctype="multipart/form-data">
<? if($_GET[w]=="w"){?>
<input type="hidden" name="type" value="new">
<input type="hidden" name="bo_table" value="<?=$_GET[bo_table]?>">
<input type="hidden" name="wr_id" value="<?=$_GET[wr_id]?>">
<? }else if($_GET[w]=="u"){ ?>
<? 
    $user_query = sql_query("select * from g5_drama_list where id = '$_GET[id]' limit 1");
    $video = sql_fetch_array($user_query);    
?>
<input type="hidden" name="type" value="update">
<input type="hidden" name="id" value="<?=$_GET[id]?>">
<input type="hidden" name="bo_table" value="<?=$_GET[bo_table]?>">
<input type="hidden" name="wr_id" value="<?=$_GET[wr_id]?>">
<? } ?>
 <table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tbody>
    <tr>
      <td class="td_1">회수입력</td>
      <td class="td_2"><input type="text" name="wr_subject" style="padding-left:10px; padding-right: 10px;" value="<?=$video[wr_subject]?>" class="input1" ></td>
    </tr>
    <tr>
      <td class="td_1">영상링크1</td>
      <td class="td_2"><input type="text" name="wr_link1" style="padding-left:10px; padding-right: 10px;" value="<?=$video[wr_link1]?>" class="input1" ></td>
    </tr>
    <tr>
      <td class="td_1">영상링크2</td>
      <td class="td_2"><input type="text" name="wr_link2" style="padding-left:10px; padding-right: 10px;" value="<?=$video[wr_link2]?>" class="input1"></td>
    </tr>
  </tbody>
</table>
<div style="margin: auto; width: 100px; padding-top: 10px; padding-bottom: 15px;">
    <? if($_GET[w]=="w"){?>
    <input type="submit" value="등록하기" id="btn_submit" accesskey="s" style="padding: 10px; background-color: #f50c0c; color: #fff; border: solid 0px;">
    <? }else{ ?>
    <input type="submit" value="수정하기" id="btn_submit" accesskey="s" style="padding: 10px; background-color: #f50c0c; color: #fff; border: solid 0px;">
    <? } ?>
</div>
</form>
<? } ?>
<? } ?>
<!--
<div class="widget-box" style="margin:0 15px 20px;">
<table width="100%" height="auto" border="0">
-->
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="max-width: 700px; margin: auto;">
  <tbody>
    <tr>
      <div align="center">
  <!--      <td width="100%" height="266" valign="top" background="/skin/board/video/img/playe.jpg" style="background-color: #FFFFFF;">   -->
  <?
    $view_query = sql_query("select * from g5_drama_list where id = '$_GET[list]' limit 1");
    $vplyer = sql_fetch_array($view_query);    
                
if($_GET[plyer]=="1"){ $vcontent=$vplyer[wr_link1];
}else if($_GET[plyer]=="2"){ $vcontent=$vplyer[wr_link2];
}else if($_GET[plyer]=="3"){ $vcontent=$vplyer[wr_link3];}
?>       
 </div>
      <td width="100%" valign="top" >
          <? if($list[wr_link2]){?>
      <iframe  width="100%;" class="widget-box" style="margin:0 0 15px; min-height:436px;" src="<?=$vcontent?>" frameborder="0" scrolling="no" allowfullscreen></iframe>
      <? }else{ ?>
      <table width="646" height="400" border="0" cellspacing="0" cellpadding="0" style="background-color: #000;">
                        <tr>
                            <td id="vod_player" width="100%" height="100%"><div id="video_view">
    <iframe id="main_lin" name="main_lin" src="./vod_playre_kongbai.php" width="100%" frameBorder=No height="436" scrolling="no">                                    </iframe></div></td>
                        </tr>
                        </table>
                        
                         <? } ?>
      </td>
      <tr>
      <td width="100%" valign="top" class="widget-box" style="background-color: #ffffff; border-top:40px solid #ff7277;position:relative;box-shadow:none;border-left:1px solid #e0e0e0;border-right:1px solid #e0e0e0;border-bottom:1px solid #e0e0e0;">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0"> 
                        <tbody>
                            <tr>

<!--                                <div style="height:400px; overflow:auto;"> -->
                                        <table width="100%" border="0" cellspacing="0" cellpadding="0" style="background:#ffffff; margin-top: 20px;">
                                            <tbody>
                                                <tr>
                                                  <td>
                                                        <ul style="padding:0px;">
                                                            <li style="list-style:none;">
                                            <?
                                                $video_list = sql_query("select * from g5_drama_list where bo_table ='$_GET[bo_table]' and wr_id ='$_GET[wr_id]' ORDER BY wr_id ASC ");
                                                for ($i; $list=sql_fetch_array($video_list); $i++) { 
                                            ?>
                                            <? if($list[wr_link2]){?>
                                                                <a href="/bbs/board.php?bo_table=<?=$_GET[bo_table]?>&wr_id=<?=$_GET[wr_id]?>&list=<?=$list[id]?>&plyer=2">
                                                                
                                                                <button style="margin-bottom:12px; margin-right:10px; border: solid 0px; ">
                                                                <? if($_GET["list"] ==$list[id] ) { 
                                                                   $recent=     $list[wr_subject]; 
                                                                ?>
                                                                <div align="center" class="button selBtn" style="width:78px;" id="button-<?php echo $list[wr_subject]?>">
                                                                <img style="width:22px;margin-right:3px;position:relative;top:-1px;" src="/skin/board/video/img/play.png" /><?=$list[wr_subject]?></span>
                                                        </div>
                                                        <? }else{ ?>
                                                              <div align="center" class="button" style="width:78px;" id="button-<?php echo $list[wr_subject]?>">
                                                              <img style="width:22px;margin-right:3px;position:relative;top:-1px;" src="/skin/board/video/img/play.png" /><?=$list[wr_subject]?></span>
                                                        </div>
                                                         <? }?>
                                                        </button>
                                                         </a>                                                                
                                                        <? } ?>
                                                        <? } ?>
                                                            </li>
                                                        </ul>
                                                        </td>
                                                </tr>                                
                                            </tbody>
                                        </table>
                                  </div>
                                  </td>
                            </tr>
                        </tbody>
                    </table>
        </td>
    </tr>
  </tbody>
</table>


    <!-- 링크 버튼 시작 { -->
    <div id="bo_v_bot">
        <?php echo $link_buttons ?>
    </div>
    <!-- } 링크 버튼 끝 -->

</article>
<!-- } 게시판 읽기 끝 -->

<script>
<?php if ($board['bo_download_point'] < 0) { ?>
$(function() {
    $("a.view_file_download").click(function() {
        if(!g5_is_member) {
            alert("다운로드 권한이 없습니다.\n회원이시라면 로그인 후 이용해 보십시오.");
            return false;
        }

        var msg = "파일을 다운로드 하시면 포인트가 차감(<?php echo number_format($board['bo_download_point']) ?>점)됩니다.\n\n포인트는 게시물당 한번만 차감되며 다음에 다시 다운로드 하셔도 중복하여 차감하지 않습니다.\n\n그래도 다운로드 하시겠습니까?";

        if(confirm(msg)) {
            var href = $(this).attr("href")+"&js=on";
            $(this).attr("href", href);

            return true;
        } else {
            return false;
        }
    });
});
<?php } ?>

function board_move(href)
{
    window.open(href, "boardmove", "left=50, top=50, width=500, height=550, scrollbars=1");
}
</script>

<script>
$(function() {
    $("a.view_image").click(function() {
        window.open(this.href, "large_image", "location=yes,links=no,toolbar=no,top=10,left=10,width=10,height=10,resizable=yes,scrollbars=no,status=no");
        return false;
    });

    // 추천, 비추천
    $("#good_button, #nogood_button").click(function() {
        var $tx;
        if(this.id == "good_button")
            $tx = $("#bo_v_act_good");
        else
            $tx = $("#bo_v_act_nogood");

        excute_good(this.href, $(this), $tx);
        return false;
    });

    // 이미지 리사이즈
    $("#bo_v_atc").viewimageresize();
});

function excute_good(href, $el, $tx)
{
    $.post(
        href,
        { js: "on" },
        function(data) {
            if(data.error) {
                alert(data.error);
                return false;
            }

            if(data.count) {
                $el.find("strong").text(number_format(String(data.count)));
                if($tx.attr("id").search("nogood") > -1) {
                    $tx.text("이 글을 비추천하셨습니다.");
                    $tx.fadeIn(200).delay(2500).fadeOut(200);
                } else {
                    $tx.text("이 글을 추천하셨습니다.");
                    $tx.fadeIn(200).delay(2500).fadeOut(200);
                }
            }
        }, "json"
    );
}
</script>
<!-- } 게시글 읽기 끝 -->

<div style="margin: auto; width: 100px; padding-top: 10px; padding-bottom: 15px;">
    <? if($_GET[w]=="w"){?>
    <input type="submit" value="등록하기" id="btn_submit" accesskey="s" style="padding: 10px; background-color: #f50c0c; color: #fff; border: solid 0px;">
    <? }else{ ?>
    <input type="submit" value="수정하기" id="btn_submit" accesskey="s" style="padding: 10px; background-color: #f50c0c; color: #fff; border: solid 0px;">
    <? } ?>
</div>

 

------------ 뷰 스킨에는 있는데 말이죠 ㅠㅠㅠ

$admin_href 값이 있고, $_GET['w']가 w, u 일때 진입하는 조건 내에서 w가 아닐 때 출력이니 그 부분부터 보세요.

답변을 작성하시기 전에 로그인 해주세요.
전체 59,590
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT