【小(xiǎo)編推薦】維信科(kē)技(jì)分(fē↕>γ<n)類ajax分(fēn)類套分(fēn)類遍曆數(shù)據-----許‌ ₩振宇

2015-09-09   | &"≈¥nbsp; 發布者:梁國(guó)芳&nb↕✘sp;  |   查看↕λ ≠(kàn):3320次

php
 第一(yī)步:先把最外(wà&Ωφi)層分(fēn)類遍曆出來(lái)
query("select * FROΩ≤αδM weixin_category WHERE parentid=59 ‌ order by catid desc");≠★¥★
while($res =$db->fet<π←☆ch_array($result)){
?>

第二步:通(tōng)過ajax遍曆出對(duì)應的(de≤σ )分(fēn)類
$('.gao_title dd a').click(♣≈σfunction(){
$('.gao_title dd a').parent('₩♠'↔dd').parent('dl').children('dt₽‍♦').children('span').removeCl•‍ass('c_java');
$(this).parent('dd').parent('dl').ch€$ildren('dt').children('span').addClas♦§ s('c_java');
$('.gao_title dd a').removeClass('erdaπγ♥n');
$(this).addClass('erd₽¥±©an')
$("#j_title").text($(this).p≠σ arent('dd').parent('dl').childr←<en('dt').text());
$("#j_s").text☆¶≈β($(this).html());
$(".t_gao span").text($(thα'is).html());
$.ajax({
type:'get',
url:'ajax.php?catid='+$(this).att♦€r('to'),
//dataType:'json',
success:function(msg){
//alert(msg);
$('.t_gao dl').html(msg);
}
});
})
PS:ajax.php中的(de):
header("Content-Type: text/htm←§₩✘l; charset=utf-8"☆"σ;);
define('DT_REWRITE', true);
require '../common.inc.php';
$i=1;
$A = array();
//$result = $db->query(&•±λquot;select * FROM wei∞δ©​xin_category where parentid=&qu"←εot;.$_GET['catid']."'order ©®by catdir desc'");
$result = $db->query("sΩ☆©δelect * FROM weixin_cateδ≤gory where parentid='$_G∑¥↔ET[catid]' order by catd↑↑πir desc");
while($r = $db->fetch_ar→≈ray($result)) {
    ?>
to="">
$i++;}
 
 
?>
第三步:遍曆內(nèi)容
contect.php中的(de)內(nèi)容
header("Content-Type: text/html$≤↕₩; charset=utf-8");
define('DT_REWRITE', true);∏>
require '../common.incα♠∞§.php';
$result = $db->query("←•;select * FROM weixin_down_±♣31 where catid='$_GET[catid]' order b®λφδy itemid desc")≤↕;
while($r = $db->fetch_array($result ®↓£)) {
?>
       ¶≤         &♦&©♠nbsp;  
 
      β≤          &nb δsp;      
      & ​↓•nbsp;          ♠       
 
         αβ;       &n♠Ωδbsp;          Ω";
 
      &nb ₹§♥sp;       ₹♣      &nbs↓ λ★p;          

 

          &nbs<<λp;         &‍✘≥ nbsp;      
       φ€;         ♦∑↓       
       $δ&δ       &nb♣<©sp;    
      σ ♠        &nbΩ'δ"sp;    
 
      €β       ± ‌>;       &<→★♦nbsp;  

 

      &n¥®±≈bsp;       ₽Ωπ        &nbsδβ§p;
          ✔↑©↔          £→≠☆       
  • 實施院校(xiào):
          &n ✘☆​bsp;          σ₩λ;      
  • 實施時(shí)間(jiān):
        ₽×♦✘         >₽;          
  • 方案提供方:
     €'✔           ÷"♠       
        λ✔&•      &Ω∏©nbsp;       ♠¶  文(wén)檔下(xià)載
     ↑σ        σ★;      
        &nbs♠∑•p;     &nb÷✔♦sp;