2026 년 4 월

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

 
그누스킨 그누소스 소스변경 소스문법 홈준비 기타
 
작성일 : 11-09-15 14:38
[문법] 그룹 카테고리
 글쓴이 : Yemam (211.♡.235.69)
조회 : 4,759  
<?
 // 특정그룹 선택
 // http://sir.co.kr/bbs/board.php?bo_table=g4_tiptech&wr_id=1283&sca=&sfl=wr_name%2C1&stx=morning&sop=and
 echo "<table border=0 cellpadding=7 cellspacing=5 align=center>";
 $sql = " select * from $g4[board_table] where gr_id in ('Link', '원하는그룹2') and bo_table not in ('제외게시판1', '제외게시판2', '제외게시판3') order by bo_table ";
 $result = sql_query($sql);
 $k=0;
 echo "<tr>";
 
    for ($i=0; $row=mysql_fetch_array($result); $i++) {
       $k=$k+1;
       echo "<td width='50%' valign='top'><a href='$g4[bbs_path]/board.php?bo_table=$row[bo_table]'><b><font style='font-family:돋움; font-size:11pt; ' style='text-decoration:none;' onMouseOver='this.style.backgroundColor=\"#FBE497\"' onMouseOut='this.style.backgroundColor=\"white\"'>$row[bo_subject]</font></b></a><br><table cellpadding=0 cellspacing=0><tr><td height='3'></td></tr></table>";
       
       // 그룹내 게시판에서 카테고리 선택
       $sql2 = " select bo_category_list from $g4[board_table] where bo_table = '$row[bo_table]' order by bo_table ";
       $result2 = sql_fetch($sql2);
       $row2 = explode("|", $result2[bo_category_list]);
       $c=0;
       
       for ($j=0; $j<count($row2); $j++) {
          $c++;
          echo "<a href='$g4[bbs_path]/board.php?bo_table=$row[bo_table]&page=1&mode=&sca={$row2[$j]}' style='text-decoration:none;' onMouseOver='this.style.backgroundColor=\"#FBE497\"' onMouseOut='this.style.backgroundColor=\"white\"'>".$row2[$j]."</a>&nbsp;&nbsp;";
          
          if($c%3==0){    // 게시판 내 카테고리를 3개만 보여주고 칸을 바꾼다. $c%=='숫자'로 한 줄에 보여줄 카테고리 수를 조정
          
             echo "<br>";
          }
          
          if($c==15){    // 카테고리가 15개 이상이면 15개에서 멈춘다. $c=='숫자'를 조정하여 최대보여줄 카테고리 수를 조정
          
             echo "</td>";
             break;
          }
       }
       
       if($k==2) {echo "</tr><tr valign='top'>"; $k=0;}  // 그룹 내 게시판을 2줄로 보여준다. $k=='숫자'를 조정하여 게시판 줄수를 조정
       
    }
    
 echo "</td></tr></table>";
 ?> [이 게시물은 morning님에 의해 2012-02-26 10:49:39 그누소스에서 이동 됨]

 
 

Total 8
번호 제   목 글쓴이 날짜 조회
8 [문법] 심볼릭 링크 (1) Yemam 04-10 6072
7 [문법] 원하는 날짜에서 특정아이디의 데이타를 내… Yemam 09-16 4733
6 [문법] for($i=0,$cnt=count($list);$i<$cnt;$i++) 사용방식 Yemam 09-15 4683
5 [문법] 그룹 카테고리 Yemam 09-15 4760
4 [문법] 링크 보드 카테고리 Yemam 09-15 4592
3 [문법] 카테고리 (9) Yemam 09-15 6270
2 [문법] 기간설정 (1) Yemam 09-04 4831
1 [문법] 여러가지 position Yemam 08-01 6058

Therefore, holy brothers, who share in the heavenly calling,
fix your thoughts on Jesus, the apostle and high priest whom we confess.
Let us fix our eyes on Jesus, the author and perfecter of our faith,
who for the joy set before him endured the cross, scorning its shame,
and sat down at the right hand of the throne of God