chiang_mysql_db_query("select * from articles where aid = '{$_GET['aid']}' and status = 1"); $exArt=$primDB->chiang_mysql_fetch_array($queryArt); $extraTitle = $exArt['artName']; $extraid = $_GET['aid']; $exArt["artDesc"] = explode("。", $exArt["artDesc"]); if(sizeof($exArt["artDesc"]) == 1){ $exArt["artDesc"] = explode(".", $exArt["artDesc"]); $exArt["artDesc"] = $exArt["artDesc"][0]."."; }else{ $exArt["artDesc"] = $exArt["artDesc"][0]."。"; } $metaDescription = $exArt["artDesc"]; } $mKeyword = $exDomain["keyword"]; $newKeyword = array(); if($extraTitle != ""){ $mKeyWordsArray = explode(",", $mKeyword); $mKeyword = $extraTitle; $xx= intval($extraid%sizeof($mKeyWordsArray)); for($x=0;$x<9;$x++){ $mIdx = $xx+$x; if($mIdx>sizeof($mKeyWordsArray)-1){ $mIdx = $x; } if(!in_array($mKeyWordsArray[$mIdx], $newKeyword) and !empty(trim($mKeyWordsArray[$mIdx]))) { $newKeyword[] = $mKeyWordsArray[$mIdx]; } } $mKeyword = implode(",", $newKeyword); } ?> 戒毒症狀案例-吸毒人口接觸毒品的前2年是黃金進入時期-台灣零毒品行動
戒毒症狀里程碑 chiang_mysql_db_query("select * from articles where aid = '{$aid}' and status = 1"); if ($exArt = $primDB->chiang_mysql_fetch_array($queryArt)) { echo "

" . $exArt['artName'] . "

"; $artDesc = $exArt["artDesc"]; /*$strongLen = mb_strlen($strong_com) * 2; $artDesc = mb_substr($artDesc, 0, 7, "UTF-8") . "" . $strong_com . "" . mb_substr($artDesc, 7, mb_strlen($artDesc), "UTF-8"); if (mb_strlen($artDesc) > 23 + $strongLen) { $artDesc = mb_substr($artDesc, 0, 48 + $strongLen, "UTF-8") . "" . $strong_com . "" . mb_substr($artDesc, 48 + $strongLen, mb_strlen($artDesc), "UTF-8"); } if (mb_strlen($artDesc) > 48 + $strongLen) { $artDesc = mb_substr($artDesc, 0, 106 + $strongLen, "UTF-8") . "" . $strong_com . "" . mb_substr($artDesc, 106 + $strongLen, mb_strlen($artDesc), "UTF-8"); }*/ echo "

" . $artDesc . "

"; } } elseif(isset($_GET["aid"]) or isset($_GET["aid2"])) { $get_artName = ""; $aid = $_GET['aid']; $aid2 = $_GET['aid2']; $xid = 0; if ($aid == 6) { $xid = 1; $get_artName = $strong_com; } if ($aid != "" and sizeof($innerTitle2Array) >= $aid) { $xid = $aid + 1; $get_artName = $innerTitle2Array[$aid]; } if ($aid2 != "" and sizeof($innerTitleArray) >= $aid2) { $xid = $aid2 + 1; $get_artName = $innerTitleArray[$aid2]; } if ($xid > 0) { $queryArt = $primDB->chiang_mysql_db_query("select articles.* from domain2articles left join articles using(aid) where did = '{$exDomain['did']}' and articles.aid is not null and status = 1 order by domain2articles.aid limit {$xid}, 1"); if ($exArt = $primDB->chiang_mysql_fetch_array($queryArt)) { $artDesc = $exArt["artDesc"]; } echo "

" . $get_artName . "

"; /* $strongLen = mb_strlen($strong_com) * 2; $artDesc = mb_substr($artDesc, 0, 7, "UTF-8") . "" . $strong_com . "" . mb_substr($artDesc, 7, mb_strlen($artDesc), "UTF-8"); if (mb_strlen($artDesc) > 23 + $strongLen) { $artDesc = mb_substr($artDesc, 0, 48 + $strongLen, "UTF-8") . "" . $strong_com . "" . mb_substr($artDesc, 48 + $strongLen, mb_strlen($artDesc), "UTF-8"); } if (mb_strlen($artDesc) > 48 + $strongLen) { $artDesc = mb_substr($artDesc, 0, 106 + $strongLen, "UTF-8") . "" . $strong_com . "" . mb_substr($artDesc, 106 + $strongLen, mb_strlen($artDesc), "UTF-8"); }*/ echo "

" . $artDesc . "

"; } }else{ echo "

" . $strong_com . "

"; } ?>
    chiang_mysql_db_query("select articles.* from domain2articles left join articles using(aid) where did = '{$exDomain['did']}' and status = 1 order by articles.aid"); $totalItem = $primDB->chiang_mysql_num_rows($queryArt); $allpage = ceil($totalItem / 5); $queryArt = $primDB->chiang_mysql_db_query("select articles.* from domain2articles left join articles using(aid) where did = '{$exDomain['did']}' and status = 1 order by articles.aid desc limit " . (($page - 1) * 5) . ", 5"); while ($exArt = $primDB->chiang_mysql_fetch_array($queryArt)) { $artName = $exArt["artName"]; $aid = $exArt["aid"]; echo '
  • ' . $artName . '
  • '; } ?>
首頁 上一頁  下一頁 尾頁  頁碼:/  總計: