calendar 스킨 사이즈 조정 문의 합니다 > 그누4 질문답변

그누4 질문답변

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

calendar 스킨 사이즈 조정 문의 합니다 정보

calendar 스킨 사이즈 조정 문의 합니다

본문

head.php에 넣으려니 다운받은 사이즈가 작아서 사이즈를 키우려고 합니다
가로사이즈를 220 으로 키우려고합니다
 
일정안내부분은 psd 파일이 있어서 사이즈를 키웠는데요
첨부한 스샷을 보시면 bottom 부분의 라인이 수정이 안되있습니다

latest.skin.php파일에서 meeting_right_bg.png 부분의 사이즈는 조정이 됬는데요
meeting_bottom.png 요거는 아직 수정을 못하고 있습니다

$cellh  = 21;
$cellw  = 21;
위의 소스를 변경해보라는 도움을 주셔서 제가  수정해보았는데요, right 하고 bottom 부분이 수정이 안되서요
 

막... 주무구구식으로 ^^
제가 수정을 해보았는데요
table width=190
table width=170  두 군데를 210으로 수정하니까 년도와 요일밑의 황색 실선도 키워지고 right 부분도 수정이 됬습니다

bottom 부분만 수정하면되는데요
요거는 주먹구구 식으로 해결이 안되네요
어떻게 수정해야 하는지  좀 도와주세요~~
아래 소스도 올려드립니다


<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

$cellh  = 21;
$cellw  = 21;
?>
<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: #da0303; padding-top: 2pt; height:<?=$cellh?>; width:<?=$cellh?>;
background-image: url(<?=$latest_skin_path?>/img/mini2.gif);
}
.bgsat  {text-align: center; font-size: 8pt; color: #3285ec; padding-top: 2pt; height:<?=$cellh?>; width:<?=$cellh?>;
background-image: url(<?=$latest_skin_path?>/img/mini2.gif);
}
.bgweek  {text-align: center; font-size: 8pt; padding-top: 2pt; height:<?=$cellh?>; width:<?=$cellh?>;
background-image: url(<?=$latest_skin_path?>/img/mini2.gif);
}

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

a:link.writeday, a:visited.writeday  {text-align: center; font-size: 8pt; color: #0069D2; 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));
?>
<table width="210" cellpadding=0 cellspacing=0 border=0>
<tr>
    <td colspan=3 align=center><a href="<?=$g4[path]?>/bbs/board.php?bo_table=customer_06" onfocus=this.blur()><img src="<?=$latest_skin_path?>/img/meeting_title.png" border="0"></a></td>
</tr>
<tr>
    <td align=center width="5" height="120" background="<?=$latest_skin_path?>/img/meeting_left_bg.png"></td>
    <td align=center width="180" valign="top">
<!-- 반복구문 시작 -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr height="20">
    <td width="45" align="right"><a href="<?="$_SERVER[PHP_SELF]?&"?><?if ($month == 1) { $year_pre=$year-1; $month_pre=12; } else {$year_pre=$year; $month_pre=$month-1;} echo ("year=$year_pre&month=$month_pre&bo_table=$bo_table");?>" target="_self"onfocus="this.blur()" title="<?=$month_pre?> 월"><img src="<?=$latest_skin_path?>/img/month_prev.gif" align=absmiddle border=0></a></td>
    <td width="80" align="center"><b><font style='font-family:돋움; font-size:9pt; color:#FB6900;'><?=$year?></a> 년 <?=$month?></a> 월</font></b></td>
    <td width="45" align="left"><a href="<?="$_SERVER[PHP_SELF]?&"?><?if ($month == 12) { $year_pre=$year+1; $month_pre=1; } else {$year_pre=$year; $month_pre=$month+1;} echo ("&year=$year_pre&month=$month_pre&bo_table=$bo_table");?>" target="_self"onfocus="this.blur()" title="<?=$month_pre?> 월"><img src="<?=$latest_skin_path?>/img/month_next.gif" align=absmiddle border=0></a></td>
  </tr>
  <tr><td colspan="3" height='1' align="center"><table width=210 height="1" cellSpacing=0 cellPadding=0 border=0 align="center"><tr><td height="1" bgcolor="#FFAC59"></td></tr></table></td></tr>
</table>
<TABLE width=210 cellSpacing=0 cellPadding=0 border=0 align=center>
<TR>
<td align="center" height="15"><img src="<?=$latest_skin_path?>/img/sun.jpg"></td>
<td align="center"><img src="<?=$latest_skin_path?>/img/mon.jpg"></td>
<td align="center"><img src="<?=$latest_skin_path?>/img/thu.jpg"></td>
<td align="center"><img src="<?=$latest_skin_path?>/img/wed.jpg"></td>
<td align="center"><img src="<?=$latest_skin_path?>/img/thu.jpg"></td>
<td align="center"><img src="<?=$latest_skin_path?>/img/fri.jpg"></td>
<td align="center"><img src="<?=$latest_skin_path?>/img/sat.jpg"></td>
</TR>
<tr><td colspan="7" height='1' align="center"><table width=210 height="1" cellSpacing=0 cellPadding=0 border=0 align="center"><tr><td height="1" bgcolor="#FFAC59"></td></tr></table></td></tr>
<TR>
<?
$cday = 1;
$sel_mon = sprintf("%02d",$month);
$query = "SELECT * FROM $write_table WHERE left(wr_link1,6) <= '$year$sel_mon'  and left(wr_link2,6) >= '$year$sel_mon'  ORDER BY wr_id ASC";
$result = sql_query($query);

// 내용을 보여주는 부분
while ($row = mysql_fetch_array($result)) {  // 제목글 뽑아서 링크 문자열 만들기..
if( substr($row[wr_link1],0,6) <  $year.$sel_mon ) {
$start_day =1;
$start_day= (int)$start_day;
} else {
$start_day = substr($row[wr_link1],6,2);
    $start_day= (int)$start_day;
}

if( substr($row[wr_link2],0,6) >  $year.$sel_mon ) {
$end_day = $lastday[$month];
$end_day= (int)$end_day;
} else {
$end_day = substr($row[wr_link2],6,2);
$end_day= (int)$end_day;
}

for ($i = $start_day ; $i <= $end_day;  $i++) {
// $html_day[$i].= 은  문자를 덧붙이는 작업이다. 바로 . (쩜) 의 위력이다.
$html_day[$i] = "1"; //"<p><a href='javascript:;' onclick=\"popup_schedule('./pop_schedule.php?bo_table=$bo_table&year=$year&month=$month&day=$i');\" class=writeday>"; //.</a>"."\n";
// $html_day[$i].= "<p><a href='javascript:;' onclick=\"popup_schedule('./popup_schedule.php?bo_table=$bo_table&wr_id=$row[wr_id]');\" class=writeday>"; //.</a>"."\n";
//$html_day[$i].= "<br><a href='?doc=bbs/gnuboard.php&bo_table=$bo_table&wr_id=$row[wr_id]'>".substr($row[wr_subject],0,18)."</a>"."\n";
// substr로 끊으면 경우에 따라 지져분해 지므로..
  }
 }
// 달력의 틀을 보여주는 부분
// 여기부터 분석하면 됨
$temp = 7- (($lastday[$month]+$dayoftheweek)%7);
// $dayoftheweek; // 6 이다.
// $temp = 6 이다. 무슨 의미인가?

if ($temp == 7) $temp = 0;
    $lastcount = $lastday[$month]+$dayoftheweek + $temp;

// $lastcount = 42
// $lastcount 는 달력을 이루고 있는 전체 셀의 갯수이다.  2003년 11월은 날짜 30개와 빈칸 12개 다.
//
for ($iz = 1; $iz <= $lastcount; $iz++) { // 42번을 칠하게 된다.
$bgcolor = "#ffffff";  // 쭉 흰색으로 칠하고
$offset = $iz%7;
if ($offset == 1) echo ("  <tr>\n"); // 주당 7개씩 한쎌씩을 쌓는다.
if ($dayoftheweek < $iz  &&  $iz <= $lastday[$month]+$dayoftheweek) {
  if ($b_year==$year && $b_mon==$month && $b_day==$cday) {
$cstyle = 'today';
  } else {
$cstyle = 'valid';
  }

  switch ($offset) {            // 요일에 따라 날짜의 색깔 결정
case 1: $dstyle = 'sunday';
break;
case 0: $dstyle = 'saturday';
break;
default: $dstyle = 'weekday';
  }
// 전체 루프안에서 숫자가 들어가는 셀들만 해당됨
// 즉 11월 달에서 1일부터 30 일까지만 해당
  $daytext = "$cday";  // $cday 는 숫자 예> 11월달은 1~ 30일 까지
  //$daytext 은 셀에 써질 날짜 숫자 넣을 공간
//   if ($iz%7 == 1) $daytext = "<font color=red>$daytext</font>"; // 일요일
//   if ($iz%7 == 0) $daytext = "<font color=blue>$daytext</font>"; // 토요일
 
      // 여기까지 숫자와 들어갈 내용에 대한 변수들의 세팅이 끝나고
      // 이제 여기 부터 직접 셀이 그려지면서 그 안에 내용이 들어 간다.

  echo ("    <td align='center' height='15'>\n");
  if ($html_day[$cday]) {
$f_date = $year.sprintf("%02d",$month).sprintf("%02d",$cday);
        echo "<p><a href=\"javascript:win_open('$g4[path]/pop_schedule.php?bo_table=$bo_table&year=$year&month=$month&day=$cday', 'schedule', 'left=50, top=50, width=300, height=400, scrollbars=1');\" class=writeday><b>$daytext</b></a></p>\n";
  }
  else { // 글쓰기 권한이 없으면 글쓰기 링크는 넣지 않고 그냥 숫자만 출력하기
        echo "<p class=$dstyle>$daytext</p>\n";
      }
//   echo $html_day[$cday];
  echo ("    </td>\n");  // 한칸을 마무리
  $cday++; // 날짜를 카운팅
}
// 11월에서 1일부터 30일에 해당되지 않으면 그냥 회색을 칠한다.
else { echo ("    <td>&nbsp;</td>\n"); }
  if (($iz%7) == 0) echo ("  </tr>\n");

} // 반복구문이 끝남
?>
</table>  
<!-- 반복구문 끝 -->
</td>
    <td align=center width="5" background="<?=$latest_skin_path?>/img/meeting_right_bg.png"></td>
</tr>
<tr>
    <td colspan=3 align=center><img src="<?=$latest_skin_path?>/img/meeting_bottom.png"></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