최신글 글쓰기 관련해서 질문드립니다.. > 그누4 질문답변

매출이 오르면 내리는 수수료! 지금 수수료센터에서 전자결제(PG)수수료 비교견적 신청해 보세요!

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

최신글 글쓰기 관련해서 질문드립니다.. 정보

최신글 글쓰기 관련해서 질문드립니다..

본문

최신글 글쓰기 관련해서 질문드립니다..

최신글에 글쓰기 양식을 만들었는데 글쓰고 파일을 첨부해서 올리게되면 글은 써지고 파일은 안올라가게 됩니다 ㅠㅠ

어떤게 문제일까요? ㅠㅠㅠ

주소는

http://g319.net/bd/index.php

이곳이고 메인화면에 ????부분입니다.

////////////////소스코드////////////////////////

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

global $is_member;
?>

<!--
<table width=100% cellpadding=0 cellspacing=0>
<tr>
    <td width=14><img src='<?=$latest_skin_path?>/img/latest_t01.gif'></td>
    <td width='100%' background='<?=$latest_skin_path?>/img/bg_latest.gif'>&nbsp;&nbsp;<strong><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><?=$board[bo_subject]?></a></strong></td>
    <td width=37 background='<?=$latest_skin_path?>/img/bg_latest.gif'><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><img src='<?=$latest_skin_path?>/img/more.gif' border=0></a></td>
    <td width=14><img src='<?=$latest_skin_path?>/img/latest_t02.gif'></td>
</tr>
</table>
-->
<script type="text/javascript" src="<?php echo $latest_skin_path; ?>/js/jquery.quick.pagination.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$("ul.pagination").quickPagination({pageSize:"<?php echo $one_page_cnt; ?>"});
});
</script>

<? if($is_member) { ?>
<div id="frm_div">
<form id="frm" name="frm" method="post" action="<?php echo $g4['path']; ?>/bbs/write_update.php">
      <input type="hidden" name="w" value="<?php echo $w; ?>">
      <input type="hidden" name="bo_table" value="<?php echo $bo_table; ?>">
      <input type="hidden" name="wr_id" value="<?php echo $wr_id; ?>">
      <input type="hidden" name="sca" value="<?php echo $sca; ?>">
      <input type="hidden" name="sfl" value="<?php echo $sfl; ?>">
      <input type="hidden" name="stx" value="<?php echo $stx; ?>">
      <input type="hidden" name="spt" value="<?php echo $spt; ?>">
      <input type="hidden" name="sst" value="<?php echo $sst; ?>">
      <input type="hidden" name="sod" value="<?php echo $sod; ?>">
      <input type="hidden" name="page" value="<?php echo $page; ?>">
  <input type="hidden" name="wr_subject" id="wr_subject" value="FaceMain">

<table width=100% cellpadding=0 cellspacing=0 style='margin-left:5px; line-height:22px;'>
<tr>
<td width="83%">
<textarea id="wr_content" name="wr_content" class=tx  value="" itemname="" required style="margin-top:5px; height:50px;" ></textarea>
</td>
<td>
<input name="sendbutton" type="image" src="<?php echo $latest_skin_path; ?>/img/btn_write.gif" onclick="send()" style="vertical-align:middle; padding-left:10px;">
</td>
</tr>
</table>

<div style="margin-left:10px;">
파일첨부
<span onclick="add_file();" style="cursor:pointer;"><img src="<?php echo $latest_skin_path; ?>/img/add.gif"></span>
                <span onclick="del_file();" style="cursor:pointer;"><img src="<?php echo $latest_skin_path; ?>/img/delete.gif"></span>
</div>
<table id="variableFiles" cellpadding=0 cellspacing=0></table><?// print_r2($file); ?>
        <script type="text/javascript">
        var flen = 0;
        function add_file(delete_code)
        {
            var upload_count = <?=(int)$board[bo_upload_count]?>;
            if (upload_count && flen >= upload_count)
            {
                alert("파일 업로드는 "+upload_count+"개 까지만 가능합니다.");
                return;
            }

            var objTbl;
            var objRow;
            var objCell;
            if (document.getElementById) objTbl = document.getElementById("variableFiles");
            else objTbl = document.all["variableFiles"];

            objRow = objTbl.insertRow(objTbl.rows.length);
            objCell = objRow.insertCell(0);

            objCell.innerHTML = "<input type='file' class='ed' name='bf_file[]' title='파일 용량 <?=$upload_max_filesize?> 이하만 업로드 가능'>";
            if (delete_code) objCell.innerHTML += delete_code;
            else
            {
                <? if ($is_file_content) { ?>
                objCell.innerHTML += "<br><input type='text' class='ed' size=50 name='bf_content[]' title='업로드 이미지 파일에 해당 되는 내용을 입력하세요.'>";
                <? } ?>
                ;
            }

            flen++;
        }

        <?=$file_script; //수정시에 필요한 스크립트?>

        function del_file()
        {
            // file_length 이하로는 필드가 삭제되지 않아야 합니다.
            //var file_length = <?=(int)$file_length?>;
            var file_length = -1;
            var objTbl = document.getElementById("variableFiles");
            if (objTbl.rows.length - 1 > file_length)
            {
                objTbl.deleteRow(objTbl.rows.length - 1);
                flen--;
            }
        }
        </script></td>

</form>
</div>
<? } ?>

<table width=100% cellpadding=0 cellspacing=0 style='margin-left:5px; line-height:22px;'>
<? for ($i=0; $i<count($list); $i++) { ?>
<tr>
    <td colspan=4 align=left>
        <table width=95%>
        <tr>
            <td height=25><img src='<?=$latest_skin_path?>/img/icon_li.gif' align=absmiddle>
            <?
/*            echo "<a href='{$list[$i]['href']}'>";
            if ($list[$i]['is_notice'])
                echo "<font style='font-family:ttch; font-size:9pt; color:#2C88B9;'><strong>{$list[$i]['subject']}</strong></font>";
            else {
                echo "<font style='font-family:ttch; font-size:9pt; color:#6A6A6A;'>{$list[$i]['subject']}</font>";
}
echo "</a> <br><font style='font-family:tthc; font-size:9pt; color:#2C88B9; padding-left:20px;'>{$list[$i]['wr_content']}</font>";*/
echo "<font style='font-family:tthc; font-size:9pt; color:#2C88B9; padding-left:20px;'>{$list[$i]['wr_content']}</font>";


            if ($list[$i]['comment_cnt'])
                echo " <a href=\"{$list[$i]['comment_href']}\"><span style='font-family:돋움; font-size:8pt; color:#9A9A9A;'>{$list[$i]['comment_cnt']}</span></a>";

            // if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
            // if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }

            echo " " . $list[$i]['icon_new'];
            echo " " . $list[$i]['icon_file'];
            echo " " . $list[$i]['icon_link'];
            echo " " . $list[$i]['icon_hot'];
            echo " " . $list[$i]['icon_secret'];
            ?>
            </td></tr>
        <tr><td bgcolor=#EBEBEB height=1></td></tr>
        </table></td>
</tr>
<? } ?>

<? if (count($list) == 0) { ?><tr><td colspan=4 align=center height=50><font color=#6A6A6A>게시물이 없습니다.</a></td></tr><? } ?>

</table>

댓글 전체

전체 1 |RSS
그누4 질문답변 내용 검색

회원로그인

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