数据库连接失败!请联系管理员    EMAIL:CHINAFENDY@163.COM     QQ:3134451"; ?>$val) { $string .= ''."\n"; } return $string; } return 'do false'; } //select函数 function select($vlaue,$checked){ $arr = explode(",",$vlaue); foreach($arr as $key => $value){ if(ereg("=>",$value)==true){ $vlaues = explode("=>",$value); if($checked==$vlaues[0]){ echo ""; }else{ echo ""; } } } } //时间对比函数 function comparetime($time1,$time2) { if(strtotime($time1)>strtotime($time2)) return "true"; else return "false"; } //radio函数 function radio($name,$vlaue,$checked){ $arr = explode("|",$vlaue); foreach($arr as $key => $value){ $vlaues = explode("->",$value); if($checked==$vlaues[1]){ echo "".$vlaues[0]."     "; }else{ echo "".$vlaues[0]."     "; } } } //vote函数 function vote($name,$vlaue,$checked){ $arr = explode("\r\n",$vlaue); foreach($arr as $key => $value){ $vlaues = explode("=>",$value); if($checked==$vlaues[0]){ echo "
".$vlaues[0]." [".$vlaues[1]."票]
"; }else{ echo "
".$vlaues[0]." [".$vlaues[1]."票]
"; } } } //图片减缩函数 function loadpic($pic,$w=80,$h=80){ list($width,$height)=getimagesize($pic); if($width>$w){ $nwidth=$w; $nheight=($height*$w)/$width; } if($nheight>$h){ $nheight=$h; $nwidth=($nwidth*$h)/$nheight; } if($nwidth==""||$nheight==""){ $nwidth=$w; $nheight=$h; } echo "width='$nwidth' height='$nheight'"; } //得到上传文件的扩展名函数 function extend($file_name) { $extend =explode("." , $file_name); $va=count($extend)-1; return $extend[$va]; } //新闻标题函数 function newstitle($titlecolor,$titlestyle,$titlesimg,$title,$limit) { $title=preg_replace('/\s/', '', $title); if($titlecolor!=""&&$titlecolor!="null") { $color="color=".$titlecolor; }else{ $color=""; } if($titlestyle!=""&&$titlestyle!="null") { if($titlestyle!="bold"){ $style="style='text-decoration:".$titlestyle."'"; }else{ $style="style='font-weight:bold'"; } }else{ $style=""; } if($titlesimg!=""&&$titlesimg!="null") { $name=""; $limit=$limit-4; } if($color==""&&$style==""){ $name=showShort($title,$limit).$name; }else{ $name="".showShort($title,$limit)." ".$name; } return $name; } //截取字段 function showShort($string,$sublen) { $endstr='..'; $pa= "/[\x01-\x7f]|[\xc2-\xdf][\x80-\xbf]|\xe0[\xa0-\xbf][\x80-\xbf]|[\xe1-\xef][\x80-\xbf][\x80-\xbf]|\xf0[\x90-\xbf][\x80-\xbf][\x80-\xbf]|[\xf1-\xf7][\x80-\xbf][\x80-\xbf][\x80-\xbf]/"; preg_match_all($pa, $string, $t_string); if(count($t_string[0]) - $start > $sublen) return join('', array_slice($t_string[0], $start, $sublen)).$endstr; return join('', array_slice($t_string[0], 0, $sublen)); } //------分页类-------// function genpage(&$sql,$each_page=8) { global $total,$each_size,$page,$currentend,$prevpage,$url; $each_size=$each_page; #取得当前页数 $page=$_GET['page']; #计算页面开始位置 if(!$page||$page==1) { $start=0; } else { $offset=$page-1; $start=($offset*$each_page); } #URL分析 $query=str_replace(".html",'',$_SERVER['QUERY_STRING']); $query=str_replace("-page_$page","",$query); if(INC_ishtml==0){ $url="./?".$query."-page"; }else{ $url=$query."-page"; } #计算前一页 if($page>1) { $prevpage=$page-1; } #当前记录 $currentend=$start+$each_page; #取得所有的记录数 $pagesql = strstr($sql,"from"); $pagesql = "select count(*) ".$pagesql; $result = mysql_query($pagesql); $row=mysql_fetch_row($result); $total=$row[0]; $sql.=" limit $start,$each_page"; } #--显示分页样式01--# function showpage($lang="cn") { $num=$GLOBALS["total"]; $perpage=$GLOBALS["each_size"]; $curr_page=$_GET['page']; $mpurl=$GLOBALS["url"]; if($lang=="cn"){ $lang_first="首页"; $lang_last="尾页"; }else{ $lang_first="First"; $lang_last="Last"; } if($GLOBALS['ishtml']=="1"){ $mpurl=$_GET['weburl'].".php?typeid=".$_GET['typeid']."&page"; } $multipage = ''; if($num > $perpage) { $page = 10; $offset = 2; $pages = ceil($num / $perpage); $from = $curr_page - $offset; $to = $curr_page + $page - $offset - 1; if($page > $pages) { $from = 1; $to = $pages; } else { if($from < 1) { $to = $curr_page + 1 - $from; $from = 1; if(($to - $from) < $page && ($to - $from) < $pages) { $to = $page; } } elseif($to > $pages) { $from = $curr_page - $pages + $to; $to = $pages; if(($to - $from) < $page && ($to - $from) < $pages) { $from = $pages - $page + 1; } } } //$multipage .= $page<$curr_page? "
«".$lang_first." ... ":"
«".$lang_first.""; $multipage .= $page<$curr_page? "
«".$lang_first." ... ":"
"; for($i = $from;$i<= $to; $i++) { if($i==1&&$curr_page==""){ $multipage .= "".$i.""; }elseif($i!=$curr_page) { $multipage .= "$i"; } else { $multipage .= "".$i.""; } } //$multipage .=$pages-$page>$curr_page? " ... ".$lang_last."»
" : "".$lang_last."»
"; $multipage .=$pages-$page>$curr_page? " ... ".$lang_last."»
":"
"; } return $multipage; } #--显示分页样式02-- function showpage02($lang="cn") { $total=$GLOBALS["total"]; $each_size=$GLOBALS["each_size"]; $page=$GLOBALS["page"]; $currentend=$GLOBALS["currentend"]; $prevpage=$GLOBALS["prevpage"]; $url=$GLOBALS["url"]; $lastpg=ceil($total/$each_size); //最后页,也是总页数 //语言判断 if($lang=="cn") { $first="首 页"; $prev="上一页"; $next="下一页"; $last="尾 页"; }else{ $first="FIRST"; $prev="PREV"; $next="NEXT"; $last="LAST"; } //计算后一页 if($total>$currentend) { if(!$page) { $nextpage=2; } else { $nextpage=$page+1; } } //最前一页 if($prevpage) { echo "[$first] "; } else { echo $first; } //前一页 if($prevpage) { echo " [$prev] "; } else { echo " $prev"; } //后一页 if($nextpage) { echo " [$next]"; } else { echo " $next"; } //最后一页 if($_GET['page']<$lastpg) { echo " [$last]"; } else { echo " $last"; } //所在页数 if($_GET['page']) { $page=$_GET['page']; } else { $page=1; } echo "   [".$page."/".$lastpg."]"; //下拉跳转 echo " "; } //鼠标滑过改变样式 function MouseOver($y,$c){ echo 'class="'.$y.'" onMouseOver="this.className=\''.$c.'\'" onmouseout="this.className=\''.$y.'\'"'; } //获得文件扩展名 function extname($file_name,$i) { $extend =explode("." , $file_name); return $extend[$i]; } //改变语言目录 function lang($default) { $url="./?index-Dlang_".$default.".html"; return $url; } ?>
您还有登陆,页面跳转中...

如果您的浏览器不支持跳转,请点击这里
"; }else{ $rs=1; } return $rs; } function mytagList($table='null',$page='off',$limit="null",$set="null",$orderby='sortid asc,id desc'){ $sql="select * from ".$GLOBALS['db'].$table; if($set!="null"){ $sql.=" where ".$set; } $sql.=" Order by ".$orderby; if($limit!="null"&&$page!="on"){ $sql.=" limit ".$limit; } if($page=="on"){ genpage($sql,$each_page=$limit); } $result=mysql_query($sql); while($rs=mysql_fetch_array($result)){ $rows[]=$rs; } return $rows; } function mytagView($table='null',$set="null"){ $sql="select * from ".$GLOBALS['db'].$table." where "; if($set!="null"){ $sql.=$set; } $result=mysql_query($sql); return $rs=mysql_fetch_array($result); } function mytagModule($url){ $url="_bin/module/".$url.".php"; require_once($url); } ?>
数据库链接失败,请检查数据库链接!第一次使用请先安装!
[xingTemplate]

文件名称: c22d07c2e6f9c558a6002c4a04797380.temT
错误等级: 1
错误所在: <!--<?php $sql=mytagList($table="products",$page="on",$limit="12",$set="$set",$orderby="sortid asc,id desc")?>-->
错误信息: Call to undefined function mytagList()

缓存文件路径: {SERVER_PATH}//c22d07c2e6f9c558a6002c4a04797380.temT
错误源产生在: 7 行