 |
 |
 |
 |
 |
|
|
|
 |
 |
 |
 |
 |
 |
글쓴사람 | 왕초보 |
글쓴시간 | 2004년 4월 13일 오후 12시 49분 0초 |
제목 | 일정관리 미비한부분 가르쳐주세요.... |
 |
 |
저번에 관리자님께서 주신소스 잘받아 보았습니다.
그래서 제 나름대로 해보았는데요
사실....잘 안되서리. 전반적인 소스를 올려보아염..
관리자님과 고수님들의 머찐 답변 부탁드립니다.
///////////////// 메인소스 ////////////////
$this->tpl->Assign(array(
"tr_open"=>"<tr align=left height=80>",
"tr_close"=>"</tr>",
));
$this->tpl->loopLoad("diary_1", 1);
$j=0;
for($k=0; $k<6; $k++) {
$this->tpl->loopPushLoad("diary_2", 2);
for($i=0; $i<7; $i++) {
if(($weekStartNumber == $i or $j > 0) and $lastDay > $j) {
$j++;
if($this->statusDD == $j) {
$td_bgcolor="bgcolor=#DEE0EF";
} else if($j == date("d")) {
$td_bgcolor="bgcolor=#FFDFDF";
} else {
$td_bgcolor="bgcolor=#FBFAFC";
}
if($i == 0) {
$font_color = "#DB0B00";
} else if($i == 6) {
$font_color = "#5A6CB6";
} else {
$font_color = "#666666";
}
$days = "<font color='$font_color'>$j</font>";
if(strlen($this->statusYY)==1){
$this->statusYY="0".$this->statusYY;
}
if(strlen($this->statusMM)==1){
$this->statusMM="0".$this->statusMM;
}
if(strlen($this->statusDD)==1){
$this->statusDD="0".$this->statusDD;
}
$style = "onClick=window.open('open_win/open_schedule.php','schedule','screenX=50,screenY=50,width=600,height=300,top=50,left=100,scrollbars=no,status=no,resizable=no,alwaysRaised=yes'); style='cursor:hand'";
} else {
$td_bgcolor="bgcolor=#FFFFFF";
$days = "";
$style = "";
}
if($statusYY==""){
$s_date=date("Y")."/".date("m")."/".$j;
}else{
$s_date=$statusYY."/".$statusMM."/".$j;
}
$this->tpl->loopPushAssign(array(
"days"=>"<td ".$td_bgcolor."><table border=0 width=100% height=100%><tr><td ".$style.">".$days."</td></tr>".$subject1.$s_date."</table></td>",
),2);
}
}
////////////////// 스킨 소스부분 //////////////////
{@diary_1}
{tr_open}
{@diary_2}
{..days}
{/}
{tr_close}
{/}
////////////////////////////////////////////////////
/////////////////출력부분 //////////////
2004/04/0 | 2004/04/0 | 2004/04/0 | 2004/04/0 | 2004/04/1 .....
이런식으로 출력되더라구요.....
0 --> 부분을 없애고 싶네요...
그리고 날짜를 눌렀을때 창이뜨는데요..
추가 삭제 수정 다 될수있도록 하려면 어캐해야될까여...
답글부탁드립니다.
|
 |
 |
관리자 |
소스를 일일이 만들어 드리거나 템플릿과 관련되지 않은 질문에 답하기는 어렵습니다. 루프도 예전 방식이고..템플릿언더바를 사용했을 뿐 코드분리는 전혀 안되어 있네요. 너무 서두르지 마시고.. 천천히 설명서를 먼저 읽어 보시기 바랍니다. |
04-04-13 13:23 |
 |
|
 |
왕초보 |
네네...충고 감사합니다...^^
|
04-04-13 13:34 |
 |
|
 |
 |
 |
 |
|
|
|
|