list.skin.php 에 공지사항 넣으려면

list.skin.php 에 공지사항 넣으려면

QA

list.skin.php 에 공지사항 넣으려면

본문

부동산 스킨 입니다 현재 list.skin.php  파일에 공지가 빠져 있는 사항입니다.

공지를 넣어주려면 어떻게 해야 하나요??

 

사용한 스킨 : https://sir.kr/g5_skin/8318

 

 

<!--전체테이블-->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="180" valign="top">

 <!-- 좌측메뉴시작-->
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
          <td valign="top" width=180 height=45>
      <div id="snb"><a href="./board.php?bo_table=<?=$bo_table?>"><img src="<?=$board_skin_url?>/img/l_title.gif" border=0></a>
   <!--<img src="<?=$g4['path']?>/<?=$gr_id?>/img/title_sub14.gif">-->
            <?
    // 카테고리 뽑아오기
    $cate_print = "";
    $cate_print .="
    <div class=\"wireframemenu\">
     <ul class=\"ca\">";
     $cate = explode("|", $board[bo_category_list]);
     for ($i=0; $i<count($cate); $i++){
     
      if ($sca == $cate[$i]) { $ca="class=on"; } else {$ca="class=off";}
      if (trim($cate[$i])){
       $cate_print .="<li {$ca}><a href=\"{$g5['bbs_path']}/board.php?bo_table={$bo_table}&sca={$cate[$i]}\">".$cate[$i]."</a></li>";
      }
    }
    $cate_print .= "
     </ul>
     <ul class=\"ca\"></ul>
    </div>
    ";

    // 메뉴 이미지 검사
    if($bo_table =="$bo_table"){
     $on = "on";
     } else {
     $on = "off";
     }
    ?>
          
    <?
    $line_aticle = 1; // 한줄당 출력 개수
    $gooin_bo_table = $bo_table; //게시판명

    $ms = " select * from g5_board where bo_table = '$gooin_bo_table' order by bo_category_list and bo_5 ";
    //echo $ms;
    //$rs = mysql_query($ms);
    $rs = sql_query($ms);

    //while ($dt=mysql_fetch_array($rs)) {
       while ($dt=sql_fetch_array($rs)) {

     $cat_dt = explode("|", $dt[bo_category_list]);
     $ex_bo_dt = explode("|", $dt[bo_5]);
   ?>
           
   
   <table width='100%' cellpadding='0' cellspacing='0' border='0'>
              <tr>
                <?
      for ($i=0; $i<count($ex_bo_dt); $i++) {
      $bo_dt3 = explode("^", $ex_bo_dt[$i]);
     
      if($i%$line_aticle==0) {
       echo "</tr><tr>";
      }
     
      if($cat_dt[$i]==$sca){
     $sub_on = "on";
     } else {
     $sub_on = "off";
     }
    ?>

                <td valign=top>


     <table width='100%' cellpadding='0' cellspacing='0' border='0'>
                  <tr>
                    <td height=28 style="padding-right:10px;"><div id="calink">
     <div id="name1" class="<?=$sub_on?>"> <a href="<?=$g5['path']?>/bbs/board.php?bo_table=<?=$gooin_bo_table?>&sca=<?=urlencode($cat_dt[$i])?>&wr_9=<?=$wr_9?>&wr_8=<?=$wr_8?>&wr_7=<?=$wr_7?>&wr_5=<?=$wr_5?>">
                        <?=$cat_dt[$i]?>
                      </a></div>
                      <!--<div id="name1" class="<?=$sub_on?>"> <a href="<?=$g5['path']?>/bbs/board.php?bo_table=<?=$gooin_bo_table?>&sca=<?=$cat_dt[$i]?>&wr_9=<?=$wr_9?>&wr_8=<?=$wr_8?>&wr_7=<?=$wr_7?>&wr_5=<?=$wr_5?>">
                        <?=$cat_dt[$i]?>
                      </a></div>-->
       <!--<div id="name1" class="<?=$sub_on?>"> <a href="<?=$g5['path']?>/bbs/board.php?bo_table=<?=$gooin_bo_table?>&sca=<?=$cat_dt[$i]?>">
                        <?=$cat_dt[$i]?>
                      </a></div>-->
                      <? for ($q=0; $q<count($bo_dt3); $q++) { ?>
                      <div id="name2"> <a href="<?=$g5['path']?>/bbs/board.php?bo_table=<?=$gooin_bo_table?>&sca=<?=$cat_dt[$i]?>&wr_9=<?=$wr_9?>&wr_8=<?=$wr_8?>&wr_7=<?=$wr_7?>&wr_5=<?=$bo_dt3[$q]?>">
                       
      <? if ($bo_dt3[$q] == '매매') {
       echo "<img src='$board_skin_url/img/icon_ca01.gif' width='14' height='14' border=0 align='absmiddle' alt='매매' title='매매'>";
        }
       else if ($bo_dt3[$q] == '전세') {
       echo "<img src='$board_skin_url/img/icon_ca02.gif' width='14' height='14' border='0' alt='전세'>";
       }
       else if ($bo_dt3[$q] == '월세') {
       echo "<img src='$board_skin_url/img/icon_ca03.gif' width='14' height='14' border='0' alt='월세'>";
       }
       else if ($bo_dt3[$q] == '임대') {
       echo "<img src='$board_skin_url/img/icon_ca04.gif' width='14' height='14' border='0' alt='임세'>";
       }
       ?>
                      </a> </div>
                      <? } ?>
                    </div></td>
                  </tr>
                  <tr>
                    <td height="1" colspan="2" bgcolor="#e9e9e9"></td>
                  </tr>
                </table></td>
                <? } ?>
              </tr>
            </table>
            <? } ?>
          </div>
  </td></tr></table> 
   
   
   <!--좌측메뉴 끝-->

 

 


 </td>

 <td width="10"> </td>
   
    <td valign="top">

           <table width="100%" cellpadding="0" cellspacing="0">
              <tr>
                <td>
    
    <div style="border:10px #F3F3F3 solid; padding:10px;">
    <form name="fcategory" method="get">
    <input type=hidden name=bo_table value="<?=$bo_table?>">
    <table width="100%" cellspacing="0" cellpadding="0"  border="0">
                  <tr align=center>
                    <!--<form name="fcategory" method="get">-->
                      <!--<input type=hidden name=bo_table value="<?=$bo_table?>">-->
                    
                      <td width="100%">
      
       <select name=wr_5 onchange="location='<?=$category_location?>'+this.form.sca.value+'&wr_9='+this.form.wr_9.value+'&wr_8='+this.form.wr_8.value+'&wr_7='+this.form.wr_7.value+'&wr_5='+this.value;">
         <option value=''>
                          <?//=$board[bo_5_subj]?>물건형태
      <option value='매매'>매매</option>
                        <option value='전세'>전세</option>
                        <option value='<?=urlencode(월세)?>'>월세</option>
                        <option value='임대'>임대</option>
      </select>

                    
      
       <select name=wr_8 onchange="location='<?=$category_location?>'+this.form.sca.value+'&wr_9='+this.form.wr_9.value+'&wr_8='+this.value+'&wr_7='+this.form.wr_7.value+'&wr_5='+this.form.wr_5.value;">
                        <option value=''>
                          <?//=$board[bo_8_subj]?>지역
                          </option>
                        <?=$bo_8_option?>
                      </select>
      
       <select name=sca onchange="location='<?=$category_location?>'+this.value+'&wr_9='+this.form.wr_9.value+'&wr_8='+this.form.wr_8.value+'&wr_7='+this.form.wr_7.value+'&wr_5='+this.form.wr_5.value;">
                        <option value=''>종류</option>
                        <?=$category_option?>
                      </select>
      
       
      
       <select name=wr_9 onchange="location='<?=$category_location?>'+this.form.sca.value+'&wr_9='+this.value+'&wr_8='+this.form.wr_8.value+'&wr_7='+this.form.wr_7.value+'&wr_5='+this.form.wr_5.value;">
                        <option value=''>
                          <?//=$board[bo_7_subj]?>아파트명
                        </option>
                        <?
      $apt_table = 'apt_info'; // 아파트정보등록게시판

      //$sql = mysql_query(" select distinct wr_subject from $g5[write_prefix]$apt_table where wr_subject != '' ");
      $sql = sql_query(" select distinct wr_subject from $g5[write_prefix]$apt_table where wr_subject != '' ");
      //for ($i=0; $row=mysql_fetch_array($sql); $i++) {
      for ($i=0; $row=sql_fetch_array($sql); $i++) {
      ?>
                        <option value='<?=$row[wr_subject]?>'>
                          <?=$row[wr_subject]?>
                          <? }?>
                        </option>
                      </select>
     
      <?
       if ($sca == '아파트') {
      ?>
                  
                        <select name=wr_7 onchange="location='<?=$category_location?>'+this.form.sca.value+'&wr_9='+this.form.wr_9.value+'&wr_8='+this.form.wr_8.value+'&wr_5='+this.form.wr_5.value+'&wr_7='+this.value;" >
                          <option value=''>
                            <?//=$board[bo_9_subj]?>공인중개사
                            </option>
                          <?
       $mem_table = 'apt_member'; //회원사등록 게시판

       //$sql = mysql_query(" select distinct wr_subject from $g5[write_prefix]$mem_table where wr_subject != '' ");
       $sql = sql_query(" select distinct wr_subject from $g5[write_prefix]$mem_table where wr_subject != '' ");
       //for ($i=0; $row=mysql_fetch_array($sql); $i++) {
       for ($i=0; $row=sql_fetch_array($sql); $i++) {
       ?>
                          <option value='<?=$row[wr_subject]?>'>
                            <?=$row[wr_subject]?>
                            <? }?>
                            </option>
                        </select>
                        <? } else{?>
                        <input type=hidden name=wr_7 value="<?=$wr_7?>" />
                        <? }?>
      </td>
       <!--</form>-->
                  </tr>
                </table></form>
   </div>

        

  <table width="100%"><tr><td height=5></td></tr></table>

   <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr><td colspan=8 height=2 bgcolor=#C22212></td></tr>
                  <tr bgcolor=#F1F1F1>
                   <td width="40" height="35" align=center>번호</td>
                      <td width="42" align=center>형태</td>

                      <td width="60" align=center>지역</td>

                      <td width="80" align=center>매물</td>

       <?php if ($is_checkbox) { ?><td width="30" align=left><label for="chkall" class="sound_only">현재 페이지 게시물 전체</label>
                <input type="checkbox" id="chkall" onclick="if (this.checked) all_checked(true); else all_checked(false);"></td><?php } ?>
      
       <td  style='word-break:break-all;' align=center>제목</td>

                    <!--<td width="120" align=center>평형</td>

                    <td width="110" align=center>가격</td>-->
     <td width="50" align=center>수정일</td>
                  </tr>
      <tr><td colspan=8 height=3></td></tr>
                </table>

   <div style="height:1px; line-height:1px; font-size:1px; background-color:#ddd; clear:both;"> </div>
                   
     <form name="fboardlist" id="fboardlist" action="./board_list_update.php" onsubmit="return fboardlist_submit(this);" method="post">
    <input type="hidden" name="bo_table" value="<?php echo $bo_table ?>">
    <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="sca" value="<?php echo $sca ?>">
    <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="sw" value="">
                    <? for ($i=0; $i<count($list); $i++) { ?>
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <!--<tr align=center <? if ($wr_id == $list[$i][wr_id]) { ?>bgcolor="#FFF9F9"<? }?> onmouseover=this.style.backgroundColor='#fafafa' onmouseout=this.style.backgroundColor='' style="FILTER: blendTrans(duration=0.5);">-->
       <tr align="center"
<? if ($wr_id == $list[$i][wr_id]) { ?>
bgcolor="#FFF9F9"
<? }?>
onmouseover="this.style.backgroundColor='#fafafa'" onmouseout="this.style.backgroundColor=''" style="FILTER:blendTrans(duration=0.5);">
                        <td width="40" height="35">
                          <?
       if ($wr_id == $list[$i][wr_id]) // 현재위치 (게시판 리스트 번호)
        echo "<span style='font:bold 11px tahoma; color:#E15916;'>{$list[$i][num]}</span>";
       else
        echo "<span style='font:normal 11px tahoma; color:#B3B3B3;'>{$list[$i][num]}</span>";
       ?>
                        </td>
                        <td width="42" class="list">
                          <?=$list[$i][wr_5]?>
                        </td>
                        <td width="60" class="list">
      <?=$list[$i]['wr_8']?>
                        </td>
                        <td width="80" class="list">
                          <?
       if ($is_category && $list[$i][ca_name]) {
        echo "{$list[$i][ca_name]}";
       }
      ?>
                        </td>
                        <td align=left class="list" style='word-break:break-all;'>
                          <?
       if ($is_checkbox)  
                   
          echo "<input type=checkbox name=chk_wr_id[] value='".$list[$i][wr_id]."' id='chk_wr_id_".$i."'>";

          //그누 echo "<input type=checkbox name=chk_wr_id[] value='".$list[$i]['wr_id']."'>";
       //php  echo "<input type=checkbox name=chk_wr_id[] value='".$list[$i][wr_id]."'>";
       //echo $list[$i][wr_id];
       //echo $nobr_begin;
       //echo $list[$i][reply];
       //echo $list[$i][icon_reply];
       
       $style = "";
       if ($list[$i][is_notice]) $style = " style='font-weight:bold;'";

       echo " <a href='{$list[$i][href]}' $style>";

       echo $list[$i][subject];
       echo "</a>";

       if ($sca == '아파트')
        echo $list[$i][ext3_03];

       if ($list[$i][comment_cnt])
        echo " <a href=\"{$list[$i][comment_href]}\"><span style='font-family:Tahoma;font-size:10px;color:#EE5A00;'>{$list[$i][comment_cnt]}</span></a>";

       //echo " " . $list[$i][icon_new];
       //echo " " . $list[$i][icon_file];
       //echo " " . $list[$i][icon_hot];
       //echo $nobr_end;
      ?>
                        </td>
      <?
       $p_two = explode("|",$list[$i][wr_2]);
         $two01 = $p_two[0];
         $two02 = $p_two[1];


         ++중간생략++


         $two09 = $p_two[8];
         $two10 = $p_two[9];

       $add_filed = explode("|",$list[$i][wr_6]);
         $add01 = $add_filed[0];
         $add02 = $add_filed[1];


         ++중간생략++         
         
         $add60 = $add_filed[59];
       ?>
                        <!--<td width="60" class="list">
                          <?=$add01?>
                          평형</td>
                        <td width="60" align=left>
                          <span style='font-size:10px;color:#EE5A00;'><?=$add02?></span>
                          m²</td>
                        <td width="110" align=right class="list"><? if ($list[$i]['wr_5'] == '매매') {?>
                          <?=$two01?> 만원
                          <? }?>
                          <? if ($list[$i]['wr_5'] == '전세') {?>
                          <?=$two03?> 만원
                          <? }?>
                          <? if ($list[$i]['wr_5'] == '월세') {?>
                          <?=$two04?> / <?=$two05?> 만원
                          <? }?>
                          <? if ($list[$i]['wr_5'] == '임대') {?>
                          <?=$two06?> / <?=$tow07?> 만원
                          <? }?></td>-->
        <td width="50" align=right class="list"><? if($list[$i][wr_11]){
    echo substr($list[$i][wr_11],2,8);
    }else{
    echo substr($list[$i][wr_datetime],2,8);
  }
?> </td>
                      </tr>
                    </table>
                    <div style="height:1px; line-height:1px; font-size:1px; background-color:#ddd; clear:both;"> </div>
                    <? }?>

        <!--</form>-->


 <table width="<?=$width?>" cellpadding=0 cellspacing=0>
                    <tr>
                      <td width="50%" height="55"><div class="bo_fx"><!-- <? if ($list_href) { ?>
                        <a href="<?=$list_href?>"><img src="<?=$board_skin_url?>/img/btn_list.gif" border="0" /></a>
                        <? } ?>
                        <? if ($write_href) { ?>
                        <a href="<?=$write_href?>"><img src="<?=$board_skin_url?>/img/btn_write.gif" border="0" /></a>
                        <? } ?> -->
                        <? if ($is_checkbox) { ?>
                        <!--<a href="javascript:select_delete();"><img src="<?=$board_skin_url?>/img/btn_select_delete.gif" border="0" /></a> <a href="javascript:select_copy('copy');"><img src="<?=$board_skin_url?>/img/btn_select_copy.gif" border="0" /></a> <a href="javascript:select_copy('move');"><img src="<?=$board_skin_url?>/img/btn_select_move.gif" border="0" /></a>-->
      <ul class="btn_bo_adm">
            <input type="submit" name="btn_submit" value="선택삭제" onclick="document.pressed=this.value">
            <input type="submit" name="btn_submit" value="선택복사" onclick="document.pressed=this.value">
            <input type="submit" name="btn_submit" value="선택이동" onclick="document.pressed=this.value">
        </ul>
                        <? } ?></div></td>
                      <td width="50%" align="right">
       <div style="float:right;">
       <!--<? if ($admin_href) { ?>
       <a href="<?=$admin_href?>"><img src="<?=$board_skin_url?>/img/btn_admin.gif" border='0' title="관리자" align="absmiddle" /></a>
       <?}?>
       <? if ($rss_href) { ?>
       <a href='<?=$rss_href?>'><img src='<?=$board_skin_url?>/img/btn_rss.gif' border='0' align="absmiddle" /></a>
       <?}?> -->
       <?php if ($rss_href || $write_href) { ?>
        <ul class="btn_bo_user">
            <?php if ($rss_href) { ?><li><a href="<?php echo $rss_href ?>" class="btn_b01">RSS</a></li><?php } ?>
            <?php if ($admin_href) { ?><li><a href="<?php echo $admin_href ?>" class="btn_admin">관리자</a></li><?php } ?>
            <?php if ($write_href) { ?><li><a href="<?php echo $write_href ?>" class="btn_b02">글쓰기</a></li><?php } ?>
        </ul>
        <?php } ?>
       <!--<img src="<?=$board_skin_url?>/img/icon_total.gif" align="absmiddle" border='0' /> <span style="color:#888888; font-weight:bold;">Total
         <?=number_format($total_count)?>
       </span>-->   </div>
       </td>
                    </tr>
                  </table> </form>
     

 

 </td></tr></table>
</td></tr></table>
<!-- 페이지 -->

<?php echo $write_pages;  ?>

 


 

이 질문에 댓글 쓰기 :

답변 1

  if ($list[$i][is_notice]) $style = " style='font-weight:bold;'";

       echo " <a href='{$list[$i][href]}' $style>";

       echo $list[$i][subject];
       echo "</a>";

 

이 부분이 공지 출력 부분인데 안나오나요??

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

회원로그인

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