최신글 일정관리 스킨 그누4용으로 수정하려면... > 그누4 질문답변

그누4 질문답변

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

최신글 일정관리 스킨 그누4용으로 수정하려면... 정보

최신글 일정관리 스킨 그누4용으로 수정하려면...

본문

http://sir.co.kr/bbs/board.php?bo_table=g3_skin&wr_id=9421&sca=&sfl=wr_subject%7C%7Cwr_content&stx=%C0%CF%C1%A4&sop=and

위 링크에는 그누3용 일정관리스킨과 최신글일정스킨이 포함되어있는데요~
요 최신글 일정스킨을 그누4용으로 만들려면 어떻게 해야 할까요..

조금만 고치면 될 것 같은데... php까막눈이라..
도와주세요~ --;

아래는 소스입니다.

<?
$today = getdate();
$today_mon = $today['mon'];
$today_day = $today['mday'];
$today_year = $today['year'];
$today_view = $today_year.'.'.$today_mon.'.'.$today_day;
$today_compareA = $today_year.$today_mon.$today_day; //오늘의 월일
?>

<table height="4"><tr><td></td></tr></table>
<table width='100%'  border=0 cellspacing=0 cellpadding=0>
<tr>
<td align=right colspan=2 >
<!-- 오늘은 약속이 있는 날입니다. 체크하세요. -->
<!-- today 오늘날짜 표시 -->
<img src="<?="./$cfg[bbs_dir]/skin/latest/$skin_dir/today.gif"?>" width="29" height="5" border="0">
<font color="red"><span style="font-size:8pt;"><?echo $today_view;?></span></font> &nbsp;
</td>
</tr>
<tr height="1">
        <td height="1" background="<?="./$cfg[bbs_dir]/skin/latest/$skin_dir/dot.gif"?>"  colspan=2 ></td>
</tr>

  <? for ($i=0; $i<count($list); $i++) { ?>
<tr height="21" >
<td nowrap valign="middle">&nbsp;
<a href='<?="./$cfg[index]?doc=$cfg[bbs_dir]/gnuboard.php&bo_table=$bo_table&wr_id={$list[$i][wr_id]}"?>'>
<img src="<?="./$cfg[bbs_dir]/skin/latest/$skin_dir/bul_black.gif"/*"./$cfg[bbs_dir]/skin/latest/$skin_dir/bul_black.gif"*/?>" width="7" height="7" border="0">
<?=//set_http(get_text(cut_str($link[$i][link1],45))) //이걸 변형해서 사용했음.?>
<?
$start_day = substr($link[$i][link1] , 7, 8);
$start_day_y = substr($start_day,0,4);
$start_day_m = substr($start_day,4,2);
$start_day_d = substr($start_day,6,2);
//$today_compareB=$start_day_m.$start_day_d; // 약속일
$end_day  = substr($link[$i][link2] , 7, 8);
$end_day_y = substr($end_day,0,4);
$end_day_m = substr($end_day,4,2);
$end_day_d = substr($end_day,6,2);
//$today_compareC=$end_day_m.$end_day_d; // 약속일
// 밑에서 조건에 해당할 경우에 글의 색을 지정하기 위한 것
$fontcolor ="black";

// 오늘이 약속의 첫날 부터 약속의 마지막날에 걸쳐 있는 경우엔 약속을 체크하게함..
// 즉 약속 기간동안은 체크표시가 뜨게 되어 있음.
//if(($today_compareA >= $today_compareB) && ($today_compareA <= $today_compareC) )
if(($today_compareA >= $start_day) && ($today_compareA <= $end_day) ){
// echo "<img src=\""."./$cfg[bbs_dir]/skin/latest/$skin_dir/icon_new_schedule.gif"."\"width=\"29\" height=\"5\" border=\"0\">";
$fontcolor ="red";
}
?>

<span style="font-size:8pt;"><font color='gray'>
<?
if($start_day == $end_day){
echo "$start_day_m.$start_day_d";
}else{
echo "$start_day_m.$start_day_d~$end_day_m.$end_day_d";
}
?>
</font></span>
<font color='<?=$fontcolor?>'>
<?//=get_text(cut_str($list[$i][subject],30));?>
<?=$list[$i][subject]?>
</font></a>
</td>
<td><?//=$list[$i][icon_new]?></td>
</tr>

<? if ( $i < ( count($list) - 1) ) { ?>
<tr width=100% >
<td height="1" background="<?="./$cfg[bbs_dir]/skin/latest/$skin_dir/dot.gif"?>"></td>
</tr>
<?
}
 }
?>
</table>

댓글 전체

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

회원로그인

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