",$content); $content=str_replace(" ","  ",$content); ?>

政治协商 民主监督 参政议政


辽宁政协>> ".$myrow[title].""; ?>


源于:"; echo $newssource."  ".$time."
"; echo "
".$title."
"; ?>
0) { if($pic=='true') { $query="select path,title,place from newspic where place=0 and id='".$id."'"; $result=mysql_query($query,$db); $myrow=mysql_fetch_array($result); if($myrow[0]<>'') { echo"
"; } if(strlen($myrow[title])>0) { echo "

".$myrow[title]; } echo"

"; } else { echo"
"; echo"

"; } } // print $temphtml; //echo ubbcode($content); echo $content; $query="select path,title,place from newspic where place<>0 and id='".$id."'"; $result=mysql_query($query,$db); while($myrow=mysql_fetch_array($result)) { echo"
"; if(strlen($myrow[title])>0) { echo "
".$myrow[title]; } echo"

"; $i=$i+1; } $query="update news set click='".$newsclick."' where id='".$id."'" ; $result=mysql_query($query,$db); $query="select click from person where id='".$person."'"; $result=mysql_query($query,$db); $myrow=mysql_fetch_array($result); $click=$myrow[click]; $click=$click+1; $query="update person set click='".$click."' where id='".$person."'" ; $result=mysql_query($query,$db); $myrow=mysql_affected_rows($db); ?>


"; $i=1; $newskey=substr($newskey,0,(strlen($newskey))); while(strlen($newskey)>0) { //echo $i; $len=strpos($newskey,' '); //echo $len; if($len>0) { if($i==1) { $temp=" newskey like '%".trim(substr($newskey,0,$len))."%'"; } else { $temp=$temp." or newskey like '%".trim(substr($newskey,0,$len))."%'"; } $newskey=substr($newskey,$len+1,(strlen($newskey))); //echo $newskey."
"; } else { //echo $i; if($i==1) { $temp="newskey like '%".trim($newskey)."%'"; } else { $temp=$temp." or newskey like '%".trim($newskey)."%'"; } $newskey=''; } //echo $temp."
"; $i=$i+1; } $query="select id,title,substring(time,6,11) from news where (".$temp.")and id<>".$id." and verify='yes' order by time desc limit 10"; // echo $query; $result=mysql_query($query,$db); echo "
"; $i=1; while($myrow=mysql_fetch_array($result)) { echo"".$myrow[title]."(".$myrow[2].")"; echo"
"; if($i==5) { echo "
"; } $i=$i+1; } echo"
"; ?>
\\1',$str); //=========================== $str=str_replace("[olist]","
    ",$str); $str=str_replace("[/olist]","
",$str); $str=str_replace("[*]","
  • ",$str); $str=str_replace("[list]","
      ",$str); $str=str_replace("[/list]","
    ",$str); $str=str_replace("[u]","",$str); $str=str_replace(" "," ",$str); $str=str_replace("\n","
    ",$str); $str=str_replace("[/u]","
    ",$str); $str=str_replace("

    ","

    ",$str); $str=eregi_replace('\[sub\](.+)\[\/sub\]','\\1',$str);//下裱 $str=eregi_replace('\[sup\](.+)\[\/sup\]','\\1',$str);//上标 $str=eregi_replace('\[b\](.+)\[\/b\]','\\1',$str); $str=eregi_replace('\[i\](.+)\[\/i\]','\\1',$str); $str=eregi_replace('\[size=(.+)\](.+)\[\/size\]','\\2',$str); $str=eregi_replace('\[color=(.+)\](.+)\[\/color\]','\\2',$str); $str=eregi_replace('\[url\]([a-zA-Z0-9@:%_.~#-\?&]+)\[\/url\]','\\1',$str);//url $str=eregi_replace('\[url=http://([a-zA-Z0-9@:%_.~#-\?&]+)\](.+)\[\/url\]','\\2',$str); $str=eregi_replace('\[url=([a-zA-Z0-9@:%_.~#-\?&]+)\](.+)\[\/url\]','\\2',$str); //img $str=eregi_replace('\[h([1-6])\](.+)\[\/h[1-6]\]','\\2',$str);//h1-6 $str=eregi_replace('\[email\]([_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,3})\[\/email\]','\\1',$str);//email $str=eregi_replace('\[email=([_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,3})\](.+)\[\/email\]','\\3',$str); $str=preg_replace('/(\[move\])(.+?)(\[\/move\])/is','\\2',$str); $str=preg_replace("/(\[fly\])(.+?)(\[\/fly\])/is","\\2",$str); $str=preg_replace("/(\[glow=)(\S+?)(\,)(.+?)(\,)(.+?)(\])(.+?)(\[\/glow\])/is","\\8
    ",$str); $str=preg_replace("/(\[shadow=)(\S+?)(\,)(.+?)(\,)(.+?)(\])(.+?)(\[\/shadow\])/is","\\8
    ",$str); $str=preg_replace("/\[quote\](.+?)\[\/quote\]/is","

    quote:
    \\1
    ", $str); $str=preg_replace("/(\[align=)(left|center|right)(\])(.+?)(\[\/align\])/is",'
    \\4
    ',$str); $str=preg_replace("/\[font=([^\[]*)\](.+?)\[\/font\]/is","\\2",$str); $str=preg_replace("/\[quote\](.*)\[\/quote\]/is","",$str); //================================== $str=preg_replace("/\[sig\](.+?)\[\/sig\]/is","


    --------------------------
    \\1
    - -------------------------
    ", $str); return $str; } ?>