일정 최신글에서 링크부분을 해결 할 수 가 없습니다. ㅠㅠ > 그누4 질문답변

그누4 질문답변

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

일정 최신글에서 링크부분을 해결 할 수 가 없습니다. ㅠㅠ 정보

일정 최신글에서 링크부분을 해결 할 수 가 없습니다. ㅠㅠ

본문

PHP 왕초보 선배님들에게 질문 올려드립니다. ㅠㅠ
위 링크에 있는 미니달력을 수정하고 있습니다. .

달력부분은 삭제하고 아래 날자하고 내용부분만 만들고 있는대
해당제목이나 글을 클릭할 경우 해당 게시글로 가야 하지만 아직 실력이 부족해서 ㅠㅠ
게시판 테이블까지만 접근한 상태입니다. ㅠㅠ

echo "<a href='$g4[bbs_path]/board.php?bo_table=$bo_table' ";
위 라인중에 뒤에 뭐라 뭐라 붙이면 될듯 하지만 도통 모르겠네요 ㅠㅠ

----------------------------------------------------------------
아래는 소스전체 입니다. ㅠㅠ
-----------------------------------------------------------------
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

$cellh  = 21;
$cellw  = 22;
?>

<style type="text/css">
td.title    {text-align: center; padding-top: 1pt; padding-bottom: 1pt; height: 25px; font-weight:bold;}
td.invalid  {
text-align: center; padding-top: 2pt; height:<?=$cellh?>; width:<?=$cellh?>;
/*background-image: url(<?=$latest_skin_path?>/img/mini2.gif);*/
}

td.valid    {
text-align: center; padding-top: 2pt; height:<?=$cellh?>; width:<?=$cellh?>;
/*background-image: url(<?=$latest_skin_path?>/img/mini2.gif);*/
}

td.today    {
text-align: center; padding-top: 2pt; height:<?=$cellh?>; width:<?=$cellh?>;
background-image: url(<?=$latest_skin_path?>/img/mini3.gif);
}
.bgsun    {text-align: center; font-size: 8pt; color: #ff00ff; padding-top: 2pt; height:<?=$cellh?>; width:<?=$cellh?>;
background-image: url(<?=$latest_skin_path?>/img/mini.gif);
}
.bgsat  {text-align: center; font-size: 8pt; color: #3366cc; padding-top: 2pt; height:<?=$cellh?>; width:<?=$cellh?>;
background-image: url(<?=$latest_skin_path?>/img/mini.gif);
}
.bgweek  {text-align: center; font-size: 8pt; padding-top: 2pt; height:<?=$cellh?>; width:<?=$cellh?>;
background-image: url(<?=$latest_skin_path?>/img/mini.gif);
}

p.title    {font-size: 1em; font-weight:bold}
p.sunday    {text-align: center; font-size: 8pt; color: #FF0000;}
p.saturday  {text-align: center; font-size: 8pt; color: #3366CC;}
p.weekday  {text-align: center; font-size: 8pt;}

a:link.writeday, a:visited.writeday  {text-align: center; font-size: 8pt; color: #0000FF; font-weight:bold;}
 img {border:0}
 </style>

<?
$today = getdate();
$b_mon = $today['mon'];
$b_day = $today['mday'];
$b_year = $today['year'];

if ($year < 1) {
  $month = $b_mon;
  $mday = $b_day;
  $year = $b_year;
}
$lastday=array(0,31,28,31,30,31,30,31,31,30,31,30,31);
if ($year%4 == 0) $lastday[2] = 29;
$dayoftheweek = date("w", mktime (0,0,0,$month,1,$year));

?>
  <!--행사 예정 뽑아오기 시작-->
<?  
$new_date = date('Y-m-d',time()); //오늘 날짜
$years  = date('Y');  // 2000
$months = date('m');  // 1, 2, 3, ..., 12
$days    = date('d');  // 1, 2, 3, ..., 31
$limit = '5';
$today_row = date('Ymd');
$qry  = "select  * from $write_table where $today_row <= wr_link1 or $today_row <= wr_link2 order by wr_link1 ASC LIMIT 0, $limit";
$result1 = sql_query($qry);
    for ($i=0; $row=sql_fetch_array($result1); $i++){
    $OID = $row[wr_id];         
    $SUBJECT = stripslashes($row[wr_subject]);
    $SUBJECT = strip_tags($SUBJECT);
    $S_Year= substr ($row[wr_link1], 0, 4);
$S_MON = substr ($row[wr_link1], 4, 2);
$S_Date = substr ($row[wr_link1], 6,2);
$E_MON = substr ($row[wr_link2], 4, 2);
$E_Date = substr ($row[wr_link2], 6,2);

if($i > 0){ echo "<br>";} echo "  ";
echo "<img src='skin/latest/calendar/img/arrow.gif' align=absmiddle>";
echo "  ";
            echo $row['icon_reply'] . " ";


echo "<a href='$g4[bbs_path]/board.php?bo_table=$bo_table' ";            
            if ($row['is_notice'])
              if ($row['wr_link1']==$row['wr_link2'])
            echo "<font style='font-family:돋움; font-size:9pt; color:#2C88B9;'><strong>[{$S_MON}월 {$S_Date}일] $SUBJECT</strong></font>";
            else
                echo "<font style='font-family:돋움; font-size:9pt; color:#2C88B9;'><strong>[{$S_MON}월 {$S_Date}일~{$E_MON}월 {$E_Date}일]  $SUBJECT</strong></font>";
            else
            if ($row['wr_link1']==$row['wr_link2'])
            echo "<font style='font-family:돋움; font-size:9pt; color:#6A6A6A;'>[{$S_MON}월 {$S_Date}일]  $SUBJECT </font>";
            else
                echo "<font style='font-family:돋움; font-size:9pt; color:#6A6A6A;'>[{$S_MON}월 {$S_Date}일~{$E_MON}월 {$E_Date}일]  $SUBJECT</font>";
            echo "</a>";

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

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

            echo " " . $row['icon_new'];
            //echo " " . $row['icon_file'];
            //echo " " . $row['icon_link'];
            //echo " " . $row['icon_hot'];
            //echo " " . $row['icon_secret'];

}
?>
        <!--행사 예정 뽑아오기 끝-->
  • 복사

댓글 전체

그 돌던지기가 한방에 성공했습니다. ^^ ;;.. .
감사감사 어떤 구조인지 한번 공부해봐야 겠네요 ㅠㅠ
시하님 감사 감사 ^^
복받으실꺼에욥 ㅠㅠ
© SIRSOFT
현재 페이지 제일 처음으로