이 소스에도 페이징 처리가 될 수 있나요? 정보
이 소스에도 페이징 처리가 될 수 있나요?
본문
<!-- 공백 --><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td height="3"></td></tr></table>
<!-- 시작 -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height=30>
<b>
<a href=<?=$g4[path]?>/new/cross_rss.php>@ 천연과자연</a> /
<a href=<?=$g4[path]?>/new/cross_rss.php?channel=1>@ 천연과자연</a> /
<a href=<?=$g4[path]?>/new/cross_rss.php?channel=2>@ 동물과자연</a> /
<tr>
<td height=30>
<b>
<a href=<?=$g4[path]?>/new/cross_rss.php>@ 천연과자연</a> /
<a href=<?=$g4[path]?>/new/cross_rss.php?channel=1>@ 천연과자연</a> /
<a href=<?=$g4[path]?>/new/cross_rss.php?channel=2>@ 동물과자연</a> /
</b>
</td>
</tr>
</table>
<!-- 끝 -->
<?
// url_fopen 허용
if (ini_get("allow_url_fopen") == 0) {
ini_set("allow_url_fopen", 1);
}
// 뉴스 검색 RSS 주소입니다.
if ($channel == "") $channel_list = "http://club.djcic.net/bbs/rss_club.php?bo_table=cb_lll&sca=천연과%20자연";
else if ($channel == "1") $channel_list = "http://club.djcic.net/bbs/rss_club.php?bo_table=cb_lll&sca=동물과자연";
// url_fopen 허용
if (ini_get("allow_url_fopen") == 0) {
ini_set("allow_url_fopen", 1);
}
// 뉴스 검색 RSS 주소입니다.
if ($channel == "") $channel_list = "http://club.djcic.net/bbs/rss_club.php?bo_table=cb_lll&sca=천연과%20자연";
else if ($channel == "1") $channel_list = "http://club.djcic.net/bbs/rss_club.php?bo_table=cb_lll&sca=동물과자연";
// 설정한 채널에서 검색된 뉴스를 읽어온다.
$rss_search_array = rss_search_array($channel_list);
$channel = $rss_search_array['channel']['description'];
$mt_cha =$channel;
// $mt_cha =iconv("euc-kr","utf-8","$channel");
?>
$mt_cha =$channel;
// $mt_cha =iconv("euc-kr","utf-8","$channel");
?>
<table width="700" border="0" cellspacing="0" cellpadding="0" bgcolor=white>
<tr><td colspan=3 height=2 bgcolor=#B0ADF5></td></tr>
<tr bgcolor=#F8F8F9 height=30 align=center>
<td ><b><?=$mt_cha?></b> (RSS)</td>
<td width=80 align=center>기자</td>
<td width=100>시간</td>
</tr>
<tr><td colspan=3 height=1 bgcolor=#B0ADF5></td></tr>
<?
<tr><td colspan=3 height=2 bgcolor=#B0ADF5></td></tr>
<tr bgcolor=#F8F8F9 height=30 align=center>
<td ><b><?=$mt_cha?></b> (RSS)</td>
<td width=80 align=center>기자</td>
<td width=100>시간</td>
</tr>
<tr><td colspan=3 height=1 bgcolor=#B0ADF5></td></tr>
<?
if(count($rss_search_array['items']) > 0 ) {
foreach ($rss_search_array['items'] as $item) {
// 뉴스 제목과 뉴스제공 기자를 euc_kr로 변환한다.
$mtt1 =iconv("euc-kr","euc-kr","{$item[title]}");
$item['dccreator'] =$item['dccreator'];
$item['dcdate'] = str_replace('+0900','',$item['dcdate']);
$item['dcdate'] = str_replace('T',' ',$item['dcdate']);
$item[description] = trim(strip_tags($item[description]));
?>
<tr><td colspan='3' height=5 ></td></tr>
<tr onmouseover="this.style.backgroundColor='#ffff00';" onmouseout="this.style.backgroundColor='';"><td height='26' style='padding-left:10px;'> <li> <a href='<?=$item['link']?>' target='_blank'><b><font color=blue><?=$mtt1?></font></b></a></td><td class=small align=center width=80><?=$item['dccreator']?></td><td class=small align=center><?=$item['dcdate']?></td></tr>
<tr style='padding-left:10px;'><td colspan='3' ><?=$item['description']?></td></tr>
<tr><td colspan='3' height=5></td></tr>
<tr><td colspan='3' height=1 bgcolor=#E7E7E7></td></tr>
<?
<tr><td colspan='3' height=5 ></td></tr>
<tr onmouseover="this.style.backgroundColor='#ffff00';" onmouseout="this.style.backgroundColor='';"><td height='26' style='padding-left:10px;'> <li> <a href='<?=$item['link']?>' target='_blank'><b><font color=blue><?=$mtt1?></font></b></a></td><td class=small align=center width=80><?=$item['dccreator']?></td><td class=small align=center><?=$item['dcdate']?></td></tr>
<tr style='padding-left:10px;'><td colspan='3' ><?=$item['description']?></td></tr>
<tr><td colspan='3' height=5></td></tr>
<tr><td colspan='3' height=1 bgcolor=#E7E7E7></td></tr>
<?
} //foreach
} // 검색된 뉴스 갯수 IF
include_once("./_tail.php");
?>
댓글 전체
if ($channel == "") $channel_list = "http://club.djcic.net/bbs/rss_club.php?bo_table=cb_lll&sca=천연과%20자연";
else if ($channel == "1") $channel_list = "http://club.djcic.net/bbs/rss_club.php?bo_table=cb_lll&sca=동물과자연";
여기서 page 값을 넘겨 주면 되지 않을까요?
else if ($channel == "1") $channel_list = "http://club.djcic.net/bbs/rss_club.php?bo_table=cb_lll&sca=동물과자연";
여기서 page 값을 넘겨 주면 되지 않을까요?