일정관리 내용을 리스트 최신글 형식으로 뽑아오는 방법? 정보
일정관리 내용을 리스트 최신글 형식으로 뽑아오는 방법?
본문
안녕하세요?
늘 도움만 얻고 살아가는 왕초보입니다.
오늘도 한 도움 얻고자 이렇게 질문올려요~
Photofly님의 일정관리를 사용하는데,
달력으로 말고 최신글 뽑아오는 리스트를 이용해서 일정을 메인에 뿌려주고 싶습니다.
아래처럼요.
스케쥴 more
--------------------------------------
[ 1-15] 1월 1번 일정제목
[ 1-25] 1월 2번 일정제목
[ 3-15] 3월 1번 일정제목
[ 5-15] 5월 1번 일정제목
[ 7-15] 7월 1번 일정제목
---------------------------------------
질문.3 (보너스-이 기능까지 되면 제가 바라는 perfect 최신글입니다만 ;)
오늘 날짜를 기준으로 이전 일정은 리스트에서 지울 수 있게 정렬도 가능할까요?
지금이 3월 중순이니..위 그림을 빌린다면..
예정스케쥴 more
--------------------------------------
[ 5-15] 5월 1번 일정제목
[ 7-15] 7월 1번 일정제목
---------------------------------------
이렇게 되겠지요.
질문.4 (보너스2 ;)
오늘 날짜를 기준으로 한달 이내의 일정은 리스트에서 굵게 표현할 수도 있을까요?
질문1,2에 대한 답변에 대한 사례로 많지는 않지만 1000점씩 걸께요. :)
좀 도와 주십쇼~ (갑자기 웃찾사 생각이 나서 그만. ^-^a)
================== 포인트 더 올릴려고 했는데 수정이 안되네요. 쿨럭. ;
댓글 전체

삽질하면서 1번 답은 찾았네요 :)
{$list[$i]['wr_link1']} 을 넣으면 되는 것 같아요.
아래 소스는 시작 끝이 다르면 ~로 표현, 하루일때는 날짜 한개만 뽑게 해봤어요.
후~ 두번째 답은 어케 구해야할지 ;;
===============================================================================
<img src='<?=$latest_skin_path?>/img/latest_icon.gif' align=absmiddle>
<?
echo $list[$i]['icon_reply'] . " ";
echo "<a href='{$list[$i]['href']}'>";
if ($list[$i]['is_notice'])
if ($list[$i]['wr_link1']==$list[$i]['wr_link2'])
echo "<font style='font-family:돋움; font-size:9pt; color:#2C88B9;'><strong>[{$list[$i]['wr_link1']}] {$list[$i]['subject']}</strong></font>";
else
echo "<font style='font-family:돋움; font-size:9pt; color:#2C88B9;'><strong>[{$list[$i]['wr_link1']}~{$list[$i]['wr_link2']}] {$list[$i]['subject']}</strong></font>";
else
if ($list[$i]['wr_link1']==$list[$i]['wr_link2'])
echo "<font style='font-family:돋움; font-size:9pt; color:#6A6A6A;'>[{$list[$i]['wr_link1']}] {$list[$i]['subject']}</font>";
else
echo "<font style='font-family:돋움; font-size:9pt; color:#6A6A6A;'>[{$list[$i]['wr_link1']}~{$list[$i]['wr_link2']}] {$list[$i]['subject']}</font>";
echo "</a>";
if ($list[$i]['comment_cnt'])
echo " <a href=\"{$list[$i]['comment_href']}\"><span style='font-family:돋움; font-size:8pt; color:#9A9A9A;'>{$list[$i]['comment_cnt']}</span></a>";
// if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
// if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }
echo " " . $list[$i]['icon_new'];
//echo " " . $list[$i]['icon_file'];
//echo " " . $list[$i]['icon_link'];
// echo " " . $list[$i]['icon_hot'];
// echo " " . $list[$i]['icon_secret'];
?>
{$list[$i]['wr_link1']} 을 넣으면 되는 것 같아요.
아래 소스는 시작 끝이 다르면 ~로 표현, 하루일때는 날짜 한개만 뽑게 해봤어요.
후~ 두번째 답은 어케 구해야할지 ;;
===============================================================================
<img src='<?=$latest_skin_path?>/img/latest_icon.gif' align=absmiddle>
<?
echo $list[$i]['icon_reply'] . " ";
echo "<a href='{$list[$i]['href']}'>";
if ($list[$i]['is_notice'])
if ($list[$i]['wr_link1']==$list[$i]['wr_link2'])
echo "<font style='font-family:돋움; font-size:9pt; color:#2C88B9;'><strong>[{$list[$i]['wr_link1']}] {$list[$i]['subject']}</strong></font>";
else
echo "<font style='font-family:돋움; font-size:9pt; color:#2C88B9;'><strong>[{$list[$i]['wr_link1']}~{$list[$i]['wr_link2']}] {$list[$i]['subject']}</strong></font>";
else
if ($list[$i]['wr_link1']==$list[$i]['wr_link2'])
echo "<font style='font-family:돋움; font-size:9pt; color:#6A6A6A;'>[{$list[$i]['wr_link1']}] {$list[$i]['subject']}</font>";
else
echo "<font style='font-family:돋움; font-size:9pt; color:#6A6A6A;'>[{$list[$i]['wr_link1']}~{$list[$i]['wr_link2']}] {$list[$i]['subject']}</font>";
echo "</a>";
if ($list[$i]['comment_cnt'])
echo " <a href=\"{$list[$i]['comment_href']}\"><span style='font-family:돋움; font-size:8pt; color:#9A9A9A;'>{$list[$i]['comment_cnt']}</span></a>";
// if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
// if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }
echo " " . $list[$i]['icon_new'];
//echo " " . $list[$i]['icon_file'];
//echo " " . $list[$i]['icon_link'];
// echo " " . $list[$i]['icon_hot'];
// echo " " . $list[$i]['icon_secret'];
?>

질문 2번 답도 찾았네요 :)
혼자서 몇시간 끙끙대다가 졸음이 밀려오니까 갑자기 되네요!!
이제 포인트는 3/4번 보너스를 풀어주시는 분께~ ^-^a
-------------------------------------------------------------------
latest 함수를 약간 수정하니까 되는군요!!
lib/latest.lib.php 파일에서
latest 그대로 복사해 붙여넣고, latest_plan 이라고 한뒤, 아래와 같이 수정.
$sql = " select * from $tmp_write_table where wr_is_comment = 0 order by wr_link1 asc limit 0, $rows ";
그리고 최신글 불어올때 latest_plan으로 ~
혼자서 몇시간 끙끙대다가 졸음이 밀려오니까 갑자기 되네요!!
이제 포인트는 3/4번 보너스를 풀어주시는 분께~ ^-^a
-------------------------------------------------------------------
latest 함수를 약간 수정하니까 되는군요!!
lib/latest.lib.php 파일에서
latest 그대로 복사해 붙여넣고, latest_plan 이라고 한뒤, 아래와 같이 수정.
$sql = " select * from $tmp_write_table where wr_is_comment = 0 order by wr_link1 asc limit 0, $rows ";
그리고 최신글 불어올때 latest_plan으로 ~