게시판 스케쥴 스킨 공지사항 제목색상 변경

게시판 스케쥴 스킨 공지사항 제목색상 변경

QA

게시판 스케쥴 스킨 공지사항 제목색상 변경

답변 1

본문

스케쥴 스킨 사용하고 있습니다.

달력으로 나오는..

 

이스킨의 경우 글쓰기시에 공지사항을 체크해도 아무런 효과가 없는데

공지사항을 체크할경우 텍스트색갈을 빨간색으로 표기해주고싶은데 어느식으로 해야할까요..?

 

리스트.스킨 파일 소스 첨부합니다!

 

도움이절실합니다 ㅠㅠ

 

<?

include_once($board_skin_path . '/lib/skin.lib.php');

$VAR['today'] = date('Ymd');

$VAR['select'] = date('Ym');

if(preg_match('/^[0-9]{6}$/', $_GET['schedule_ym']) == true && checkdate(substr($_GET['schedule_ym'], 4, 2), 1, substr($_GET['schedule_ym'], 0, 4)) == true) $VAR['select'] = $_GET['schedule_ym'];

$VAR['timestamp'] = strtotime($VAR['select'] . '01');

$VAR['weekday'] = date('w', $VAR['timestamp']);

$VAR['count'] = date('t', $VAR['timestamp']) + $VAR['weekday'] + 1;

$VAR['path'] = "{$g4['bbs_path']}/board.php?bo_table={$bo_table}";

?>

<style type="text/css">

#JS_LIST{margin:0 auto; text-align:left;}

#JS_LIST *{margin:0; padding:0; color:#333333; vertical-align:middle;}

#JS_LIST img{border:0;}

#JS_LIST p.subject{padding-bottom:10px; font-size:12pt; text-align:center;}

#JS_LIST table{width:100%; border-collaspe:separate;}

#JS_LIST table tr td.sunday{width:15%; padding:7px 0 5px 0; background:#ED7246 url("img/g_sunday.gif") repeat-x; color:#FFFFFF; font-weight:bold; text-align:center;}

#JS_LIST table tr td.saturday{width:15%; padding:7px 0 5px 0; background:#4496BE url("img/g_saturday.gif") repeat-x; color:#FFFFFF; font-weight:bold; text-align:center;}

#JS_LIST table tr td.weekday{width:14%; padding:7px 0 5px 0; background:#C9C9C9 url("img/g_weekday.gif") repeat-x; color:#FFFFFF; font-weight:bold; text-align:center;}

#JS_LIST table tr td.default{height:100px; padding:7px 5px 0 5px; border:1px solid #E1E1E1; vertical-align:top;}

#JS_LIST table tr td strong.white{color:#FFFFFF;}

#JS_LIST table tr td strong.red{color:#FF0000;}

#JS_LIST table tr td div{padding-bottom:5px;}

#JS_LIST p.button{padding-top:10px; text-align:right;}

#JS_LIST p.button input.root{height:23px; padding:4px 3px 0 3px; border:1px solid #577F1F; background:#4fb061; color:#FFFFFF; font-weight:bold; cursor:pointer;}

#JS_LIST p.button input.button{height:23px; padding:4px 3px 0 3px; border:1px solid #DCDCDC; background:#FAFAFA; color:#888888; font-weight:bold; cursor:pointer;}

#list_not_text {color:red;}

</style>

<center id="JS_LIST" style="width:<?= $width; ?>;">

<p class="subject">

<a href="<?= phpself('schedule_ym', date('Ym', strtotime('-1 month', $VAR['timestamp']))); ?>"><img src="<?=$board_skin_path?>/img/b_prev_month.gif" alt="이전달" /></a>

   

<a href="<?= $VAR['path'] . "&schedule_ym={$VAR['select']}"; ?>"><strong><?= date('Y년 m월', $VAR['timestamp']); ?></strong></a>

   

<a href="<?= phpself('schedule_ym', date('Ym', strtotime('+1 month', $VAR['timestamp']))); ?>"><img src="<?=$board_skin_path?>/img/b_next_month.gif" alt="다음달" /></a>

</p>

<table>

<tr>

<td class="sunday"><strong class="white">일</strong></td>

<td class="weekday"><strong class="white">월</strong></td>

<td class="weekday"><strong class="white">화</strong></td>

<td class="weekday"><strong class="white">수</strong></td>

<td class="weekday"><strong class="white">목</strong></td>

<td class="weekday"><strong class="white">금</strong></td>

<td class="saturday"><strong class="white">토</strong></td>

</tr>

<tr>

<?

for($i = $row = 1; $i < $VAR['count']; $i++, $row++)

{

$date = $i - $VAR['weekday'];

if($date < 1) echo '<td class="default"> </td>';

else

{

$wr_1 = $VAR['select'] . sprintf('%02d', $date);

if($VAR['today'] == $wr_1) $date = "<ins>{$date}</ins>";

$schedule = null;

$query = sql_query("SELECT wr_id, wr_subject FROM {$write_table} WHERE wr_1 = '{$wr_1}' AND wr_is_comment = 0");

while($result = mysql_fetch_array($query))

{

$schedule .= "<div><a href=\"{$VAR['path']}&wr_id={$result['wr_id']}\">{$result['wr_subject']}</a></div>";

}

if($schedule) $date = "<strong class=\"red\">{$date}</strong>";

echo "<td class=\"default\"><div>{$date}ddd</div>{$schedule}</td>";

}

if($row > 0 && $row % 7 == 0 && $row < $VAR['count']) echo '</tr><tr height="100">';

}

$count = 7 - (($row - 1) % 7);

if($count != 7)

{

for($i = 1; $i <= $count; $i++) echo '<td class="default"> </td>';

}

?>

</tr>

</table>

<? if($admin_href || !$member['mb_id'] || $write_href){ ?>

<p class="button">

<? if($admin_href) echo "<input type=\"button\" name=\"write\" value=\"관리자\" class=\"root\" onclick=\"window.document.location.href='{$admin_href}';\" />"; ?>

<? if(!$member['mb_id']) echo "<input type=\"button\" name=\"write\" value=\"로그인\" class=\"button\" onclick=\"window.document.location.href='{$g4['bbs_path']}/login.php?url={$urlencode}';\" />"; ?>

<? if($write_href) echo "<input type=\"button\" name=\"write\" value=\"작성\" class=\"button\" onclick=\"window.document.location.href='{$write_href}';\" />"; ?>

</p>

 

<? 

    if ($list[$i][is_notice])

            echo "<span class='list_not_text'>{$list[$i][subject]}</span>";

 

?>

<? } ?>

</center>

이 질문에 댓글 쓰기 :

답변 1

답변을 작성하시기 전에 로그인 해주세요.
QA 내용 검색
질문등록
전체 65
© SIRSOFT
현재 페이지 제일 처음으로