帝国论坛帝国网站管理系统交流区模板/标签/插件共享交流列表页支持横向列表筛选各属性值的标签(取代下拉列表筛选) 【本版专题贴子】  
 17/21    |‹ ‹‹ 15 16 17 18 19 20 21 ›› ›|
主题:列表页支持横向列表筛选各属性值的标签(取代下拉列表筛选) [加入收藏夹]   

e9web
用户头衔:进士

精华贴   :0
发贴数   :719
经验值   :3104
注册时间:2010-07-29
信息 搜索 好友 发送悄悄话 免费开源-EBMA系统:更安全的MYSQL管理和备份系统】   [第 161 楼]

要是 东城区|西城区|崇文区','东城区|西城区|崇文区'  这里是从数据库里调用字段怎么弄呢,



古筝培训 长期接网站项目名片印刷
2011-12-15 09:33:45 已设置保密 顶部 回复 引用 报告 编辑 删除

chilijar
用户头衔:书生

精华贴   :0
发贴数   :25
经验值   :97
注册时间:2012-01-22
信息 搜索 好友 发送悄悄话 精益求精-帝国网站管理系统7.5正式版开源发布】   [第 162 楼]

向楼主致敬!~~~




2012-02-01 15:45:25 已设置保密 顶部 回复 引用 报告 编辑 删除

jjfjj
用户头衔:探花

精华贴   :0
发贴数   :3167
经验值   :8721
注册时间:2009-02-12
信息 搜索 好友 发送悄悄话 免费开源-EBMA系统:更安全的MYSQL管理和备份系统】   [第 163 楼]

支持




2012-02-02 08:49:43 已设置保密 顶部 回复 引用 报告 编辑 删除

ourd926
用户头衔:书生

精华贴   :0
发贴数   :4
经验值   :21
注册时间:2012-02-15
信息 搜索 好友 发送悄悄话 精益求精-帝国网站管理系统7.5正式版开源发布】   [第 164 楼]

先支持下,使用帝国6.6版本~

本人对PHP不是很熟悉

以下是栏目分类标题调用代码,不同栏目会显示相应的标题分类
<ul>
<?php
$ttids_sql=sys_ReturnEcmsLoopBq("select ttids from [!db.pre!]enewsclassadd where classid=$GLOBALS[navclassid]",0,24,0);
//$bqno=0;
while($bqr=$empire->fetch($ttids_sql))
{
                //   $bqsr=sys_ReturnEcmsLoopStext($bqr);
                //  $bqno++;
                                $ttids=explode(',',trim($bqr[ttids],","));
                                foreach($ttids as $id){
                                                $ttname_sql=sys_ReturnEcmsLoopBq("select  tname from [!db.pre!]enewsinfotype where typeid=$id",0,24,0);
                                                while($bqr2=$empire->fetch($ttname_sql)){
                                                                //  $bqsr2=sys_ReturnEcmsLoopStext($bqr2);
                                                                ?>
                                                                <li><?=$bqr2[tname]?></li>
                                                                <?php
                                }
                }
}
?>
</ul>
请教下 如何把

[echolistlink]'属性','标题分类','标题分类',cu,全部[/echolistlink]

2个套用到一起 我这老出现错误提示_____请高手指教





2012-02-17 16:13:21 已设置保密 顶部 回复 引用 报告 编辑 删除

sonyr
用户头衔:秀才

精华贴   :0
发贴数   :54
经验值   :530
注册时间:2008-05-17
信息 搜索 好友 发送悄悄话 免费开源-EBMA系统:更安全的MYSQL管理和备份系统】   [第 165 楼]

百年一见的好帖




2012-02-17 17:38:33 已设置保密 顶部 回复 引用 报告 编辑 删除

designba
用户头衔:举人

精华贴   :0
发贴数   :259
经验值   :1502
注册时间:2007-08-15
信息 搜索 好友 发送悄悄话 精益求精-帝国网站管理系统7.5正式版开源发布】   [第 166 楼]




http://www.jianjie8.com 帝国cms 7.2内核
qq:275333
2012-03-07 00:37:54 已设置保密 顶部 回复 引用 报告 编辑 删除

lcz312
用户头衔:书生

精华贴   :0
发贴数   :30
经验值   :263
注册时间:2012-04-05
信息 搜索 好友 发送悄悄话 免费开源-EBMA系统:更安全的MYSQL管理和备份系统】   [第 167 楼]

支持6.6么



海蓝网络工作室
qq:843214769
2012-04-06 13:48:18 已设置保密 顶部 回复 引用 报告 编辑 删除

marius
用户头衔:秀才

精华贴   :0
发贴数   :133
经验值   :575
注册时间:2010-09-20
信息 搜索 好友 发送悄悄话 精益求精-帝国网站管理系统7.5正式版开源发布】   [第 168 楼]

解决了!!!多谢分享,用了就要顶!



马瑞斯网络科技:http://www.ggbd.net/
2012-05-16 11:20:19 已设置保密 顶部 回复 引用 报告 编辑 删除

猛男蛋蛋
用户头衔:书生

精华贴   :0
发贴数   :12
经验值   :46
注册时间:2012-05-14
信息 搜索 好友 发送悄悄话 免费开源-EBMA系统:更安全的MYSQL管理和备份系统】   [第 169 楼]
POO好 按照步骤设置后出现404页面
Warning: include() [function.include]: Unable to access ../../class/class.php in D:\APMSer\www\upload\e\action\ListInfo\index.php on line 52

Warning: include(../../class/class.php) [function.include]: failed to open stream: No such file or directory in D:\APMSer\www\upload\e\action\ListInfo\index.php on line 52

Warning: include() [function.include]: Failed opening '../../class/class.php' for inclusion (include_path='.;C:\php5\pear') in D:\APMSer\www\upload\e\action\ListInfo\index.php on line 52

您能帮忙看看怎么解决吗? CMS版本6.6




2012-05-16 13:13:38 已设置保密 顶部 回复 引用 报告 编辑 删除

猛男蛋蛋
用户头衔:书生

精华贴   :0
发贴数   :12
经验值   :46
注册时间:2012-05-14
信息 搜索 好友 发送悄悄话 精益求精-帝国网站管理系统7.5正式版开源发布】   [第 170 楼]

POO好 404页面 问题解决了
但是点每一项都没内容 是不是ID哪里我设置的不对啊
<?php
/*********************/
/*                   */
/*  Version : 5.1.0  */
/*  Author  : RM     */
/*  Comment : 071223 */
/*                   */
/*********************/

function repbq( $indextext )
{
        global $empire;
        global $dbtbpre;
        $sql = $empire->query( "select bq,funname from ".$dbtbpre."enewsbq where isclose=0 order by bqid" );
        while ( $r = $empire->fetch( $sql ) )
        {
                $preg_str = "/\\[".$r[bq]."\\](.+?)\\[\\/".$r[bq]."\\]/is";
                $indextext = preg_replace( $preg_str, "<?php echo @".$r[funname]."(\\1);?>", $indextext );
        }
        return $indextext;
}

function replistinfovars( $listtemp, $url, $pagetitle, $classid, $listpage )
{
        global $public_r;
        global $class_r;
        global $class_zr;
        $listtemp = str_replace( "[!--news.url--]", $public_r[newsurl], $listtemp );
        $listtemp = str_replace( "[!--newsnav--]", $url, $listtemp );
        $listtemp = str_replace( "[!--pagetitle--]", $pagetitle, $listtemp );
        $listtemp = str_replace( "[!--self.classid--]", $classid, $listtemp );
        $listtemp = str_replace( "[!--show.listpage--]", $listpage, $listtemp );
        $listtemp = str_replace( "[!--show.page--]", $listpage, $listtemp );
        $path = $public_r['newsurl']."d/js/class/class".$classid."_";
        $listtemp = str_replace( "[!--hotnews--]", "<script src=".$public_r[newsurl]."d/js/js/hotnews.js></script>", $listtemp );
        $listtemp = str_replace( "[!--self.hotnews--]", "<script src=".$path."hotnews.js></script>", $listtemp );
        $listtemp = str_replace( "[!--page.stats--]", "<script src=/e/public/onclick?enews=doclass&classid=".$classid."></script>", $listtemp );
        $listtemp = str_replace( "[!--newnews--]", "<script src=".$public_r[newsurl]."d/js/js/newnews.js></script>", $listtemp );
        $listtemp = str_replace( "[!--self.newnews--]", "<script src=".$path."newnews.js></script>", $listtemp );
        $listtemp = str_replace( "[!--goodnews--]", "<script src=".$public_r[newsurl]."d/js/js/goodnews.js></script>", $listtemp );
        $listtemp = str_replace( "[!--self.goodnews--]", "<script src=".$path."goodnews.js></script>", $listtemp );
        $listtemp = str_replace( "[!--hotplnews--]", "<script src=".$public_r[newsurl]."d/js/js/hotplnews.js></script>", $listtemp );
        $listtemp = str_replace( "[!--self.hotplnews--]", "<script src=".$path."hotplnews.js></script>", $listtemp );
        $listtemp = str_replace( "[!--firstnews--]", "<script src=".$public_r[newsurl]."d/js/js/firstnews.js></script>", $listtemp );
        $listtemp = str_replace( "[!--self.firstnews--]", "<script src=".$path."firstnews.js></script>", $listtemp );
        return $listtemp;
}

require( "../../class/connect.php" );
include( "../../class/db_sql.php" );
include( "../../class/config.php" );
include( "../../class/classfun.php" );
include( "../../class/q_functions.php" );
include( "../../class/t_functions.php" );
include( "../".loadlang( "pub/fun.php" ) );
$page = ( integer )$_GET['page'];
$start = ( integer )$_GET['start'];
$classid = ( integer )$_GET['classid'];
if ( empty( $classid ) )
{
        printerror( "ErrorUrl", "history.go(-1)", 1 );
}
$area = $_GET['myarea'];
$navclassid = $classid;
foreach ( $GLOBALS['_GET'] as $key => $mvalue )
{
        $md5key .= $key."=".$mvalue."&";
}
$mymd5 = md5( $md5key );
$listtimes = "0";
$file = "../../data/tmp/classtmp_".$classid."_".$page."_".$area.".php";
$filen = "../../data/tmp/fclasstmp_".$classid."_".$page."_".$area.".php";
@$htmlfp = @file( $filen."" );
if ( $htmlfp )
{
        $pasum = count( $htmlfp ) - 1;
        $html = explode( "<!--", $htmlfp[$pasum] );
        $html1 = explode( "-->", $html[1] );
        $filetime = strtotime( $html1[0] );
        $thistime = strtotime( date( "Y-m-d H:i:s" ) );
        $cha = $thistime - $filetime;
        if ( $cha < $listtimes )
        {
                foreach ( $htmlfp as $string )
                {
                        echo $string;
                }
        }
        else
        {
                $link = db_connect( );
                $empire = new mysqlquery( );
                $editor = 1;
                $search = "&classid=".$classid;
                $page_line = 16;
                $line = $class_r[$classid]['lencord'];
                $offset = $start + $page * $line;
                $add = "";
                $tbname = $class_r[$classid][tbname];
                $modid = $class_r[$classid][modid];
                if ( empty( $tbname ) || empty( $modid ) )
                {
                        printerror( "ErrorUrl", "history.go(-1)", 1 );
                }
                if ( !$class_r[$classid]['listtempid'] || !$class_r[$classid]['dtlisttempid'] )
                {
                        printerror( "ErrorUrl", "history.go(-1)", 1 );
                }
                $ret_r = returnaddf( $modid, 2 );
                if ( $class_r[$classid][islast] )
                {
                        $add .= " and classid='".$classid."'";
                        $have_class = 0;
                }
                else
                {
                        $where = returnclass( $class_r[$classid][sonclass] );
                        $add .= " and (".$where.")";
                        $have_class = 1;
                }
                $pagetitle = $class_r[$classid]['classname'];
                if ( empty( $class_r[$classid][reorderf] ) )
                {
                        $addorder = ",newstime desc";
                }
                else
                {
                        $addorder = ",".$class_r[$classid][reorderf]." ".$class_r[$classid][reorder];
                }
                if ( !empty( $ret_r['listandf'] ) || $_GET['ph'] == 1 )
                {
                        $andor = $_GET['andor'] == "or" ? "or" : "and";
                        $search .= "&ph=1&andor=".$andor;
                        $listandf = "";
                        $andr = explode( ",", $ret_r['listandf'] );
                        $count = count( $andr );
                        $i = 1;
                        for ( ;        $i < $count - 1;        ++$i        )
                        {
                                $andval = $_GET[$andr[$i]];
                                if ( !empty( $andval ) )
                                {
                                        $doandor = empty( $listandf ) ? "" : " ".$andor." ";
                                        if ( empty( $ret_r['setandf'] ) )
                                        {
                                                $listandf .= $doandor.$andr[$i]."='".reppostvar2( $andval )."'";
                                        }
                                        else
                                        {
                                                $listandf .= $doandor.$andr[$i]." like '%".reppostvar2( $andval )."%'";
                                        }
                                        $search .= "&".$andr[$i].( "=".$andval );
                                }
                        }
                        if ( $listandf )
                        {
                                $add .= " and (".$listandf.")";
                        }
                }
                $url = "<!--empire.url-->".returnclasslink( $classid )."<!--empire.url-->";
                $totalnum = ( integer )$_GET['totalnum'];
                if ( empty( $totalnum ) )
                {
                        $totalquery = "select count(*) as total from ".$dbtbpre."ecms_".$tbname." where checked=1".$add;
                        $num = $empire->gettotal( $totalquery );
                }
                else
                {
                        $num = $totalnum;
                }
                $search .= "&totalnum=".$num;
                $query = "select * from ".$dbtbpre."ecms_".$tbname." where checked=1".$add;
                $query .= " order by istop desc".$addorder.( ",id desc limit ".$offset.",{$line}" );
                $sql = $empire->query( $query );
                $listpage = page1( $num, $line, $page_line, $start, $page, $search );
                $listtempid = $class_r[$classid]['dtlisttempid'] ? $class_r[$classid]['dtlisttempid'] : $class_r[$classid]['listtempid'];
                $tempr = $empire->fetch1( "select temptext,subnews,listvar,rownum,showdate,modid,subtitle from ".gettemptb( "enewslisttemp" )." where tempid='".$listtempid."'" );
                if ( $public_r['searchtempvar'] )
                {
                        $tempr[temptext] = replacetempvar( $tempr[temptext] );
                }
                $listtemp = replistinfovars( $tempr[temptext], $url, $pagetitle, $classid, $listpage );
                $rownum = $tempr[rownum];
                if ( empty( $rownum ) )
                {
                        $rownum = 1;
                }
                $formatdate = $tempr[showdate];
                $subnews = $tempr[subnews];
                $subtitle = $tempr[subtitle];
                $modid = $tempr[modid];
                $listvar = $tempr[listvar];
                $list_exp = "[!--empirenews.listtemp--]";
                $list_r = explode( $list_exp, $listtemp );
                $listtext = $list_r[1];
                $no = $offset;
                $changerow = 1;
                while ( $r = $empire->fetch( $sql ) )
                {
                        $repvar = replacelistvars( $no, $listvar, $subnews, $subtitle, $formatdate, $url, $have_class, $r, $ret_r );
                        $listtext = str_replace( "<!--list.var".$changerow."-->", $repvar, $listtext );
                        $odate = round( ( strtotime( $r[gqtime] ) - strtotime( date( "Y-m-d" ) ) ) / 86400, 0 );
                        if ( 0 < $odate )
                        {
                                $diffTime = "";
                        }
                        else if ( $odate == 0 )
                        {
                                $diffTime = "今天到期";
                        }
                        else
                        {
                                $diffTime = "<span class=\"expire\">已过期</span>";
                        }
                        $listtext = str_replace( "[!--diffTime--]", $diffTime, $listtext );
                        $changerow += 1;
                        if ( $rownum < $changerow )
                        {
                                $changerow = 1;
                                $string .= $listtext;
                                $listtext = $list_r[1];
                        }
                        ++$no;
                }
                if ( $changerow <= $rownum && $listtext != $list_r[1] )
                {
                        $string .= $listtext;
                }
                $string = $list_r[0].$string.$list_r[2];
                $string = repbq( $string );
                $string = str_replace( "[!--list.pageno--]", $page, $string );
                $string = str_replace( "selfinfo", $classid, $string );
                $filetime = date( "Y-m-d H:i:s" );
                $t = "\r\n<!--".$filetime."-->";
                $string .= $t;
                writefiletext( $file, $string );
                @ob_start( );
                @include( $file );
                $string = @ob_get_contents( );
                @ob_end_clean( );
                db_close( );
                $empire = null;
                echo stripslashes( $string );
                writefiletext( $filen, $string );
        }
}
else
{
        $filetime = date( "1970 00:00:00" );
        $t = "\r\n<!--".$filetime."-->";
        writefiletext( $filen, $t );
        $url_this = "http://".$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF']."?".$md5key;
        header( "Location: ".$url_this );
}
?>




2012-05-16 13:37:02 已设置保密 顶部 回复 引用 报告 编辑 删除
 17/21    |‹ ‹‹ 15 16 17 18 19 20 21 ›› ›|

快速回复
内容

表情
使用EBB代码 使用smile代码 显示签名 自动分析url 自动分析img
     【进入高级模式】   (按 Ctrl+Enter 直接提交)
    顶部  加入收藏夹
关于帝国 | 广告服务 | 联系我们 | 法律声明 | 隐私条款 | 许可协议
Powered by: EBB Version 2.2.1