当前位置: 首页>>代码示例>>PHP>>正文


PHP ShowClass_AddClass函数代码示例

本文整理汇总了PHP中ShowClass_AddClass函数的典型用法代码示例。如果您正苦于以下问题:PHP ShowClass_AddClass函数的具体用法?PHP ShowClass_AddClass怎么用?PHP ShowClass_AddClass使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了ShowClass_AddClass函数的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: intval

$bclassid = 0;
if ($classid != 'all' && strlen($classid) != 0) {
    $bclassid = $classid;
    $query .= " where trueclassid='" . intval($classid) . "'";
    $totalquery .= " where trueclassid='" . intval($classid) . "'";
}
$search = "&classid=" . $classid . $ecms_hashur['ehref'];
//取得总条数
$num = $empire->gettotal($totalquery);
$query .= " order by onclick desc limit {$offset},{$line}";
$sql = $empire->query($query);
//类别
$fcfile = "../data/fc/ListEnews.php";
$class = "<script src=../data/fc/cmsclass.js></script>";
if (!file_exists($fcfile)) {
    $class = ShowClass_AddClass("", $bclassid, 0, "|-", 0, 0);
}
$returnpage = page2($num, $line, $page_line, $start, $page, $search);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>搜索关键字排行</title>
<link href="adminstyle/<?php 
echo $loginadminstyleid;
?>
/adminstyle.css" rel="stylesheet" type="text/css">
<script>
function CheckAll(form)
  {
开发者ID:novnan,项目名称:meiju,代码行数:31,代码来源:SearchKey.php

示例2: TogTwoArray

        $r = TogTwoArray($r, $ra);
    }
    if (empty($r[pagetype])) {
        $pagetype0 = " checked";
        $pagetype1 = "";
    } else {
        $pagetype0 = "";
        $pagetype1 = " checked";
    }
    $url = "采集&nbsp;>&nbsp;<a href=" . $listclasslink . $ecms_hashur['whehref'] . ">管理节点</a>&nbsp;>&nbsp;修改节点";
}
//模型
$modid = $class_r[$r[newsclassid]][modid];
$modr = $empire->fetch1("select enter from {$dbtbpre}enewsmod where mid='{$modid}'");
//栏目
$options = ShowClass_AddClass("", $r[newsclassid], 0, "|-", $class_r[$r[newsclassid]][modid], 4);
if ($r[retitlewriter]) {
    $retitlewriter = " checked";
}
if ($r[copyimg]) {
    $copyimg = " checked";
}
if ($r[copyflash]) {
    $copyflash = " checked";
}
//节点
$infoclass = ShowClass_AddInfoClass($r[bclassid], 0, "|-", 0);
//采集表单文件
$cjfile = "../data/html/cj" . $class_r[$r[newsclassid]][modid] . ".php";
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
开发者ID:novnan,项目名称:meiju,代码行数:31,代码来源:AddInfoClass.php

示例3: while

    $wapstyles .= "<option value='" . $wapstyle_r[styleid] . "'" . $select . ">" . $wapstyle_r[stylename] . "</option>";
}
//预设投票
$infovotesql = $empire->query("select voteid,ysvotename from {$dbtbpre}enewsvotemod order by voteid desc");
while ($infovoter = $empire->fetch($infovotesql)) {
    $select = "";
    if ($r[definfovoteid] == $infovoter[voteid]) {
        $select = " selected";
    }
    $definfovote .= "<option value='" . $infovoter[voteid] . "'" . $select . ">" . $infovoter[ysvotename] . "</option>";
}
//--------------------操作的栏目
$fcfile = "../data/fc/ListEnews.php";
$do_class = "<script src=../data/fc/cmsclass.js></script>";
if (!file_exists($fcfile)) {
    $do_class = ShowClass_AddClass("", "n", 0, "|-", 0, 0);
}
db_close();
$empire = null;
//当前使用的模板组
$thegid = GetDoTempGid();
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>批量设置栏目</title>
<link href="adminstyle/<?php 
echo $loginadminstyleid;
?>
/adminstyle.css" rel="stylesheet" type="text/css">
开发者ID:BGCX261,项目名称:zjh-dev-svn-to-git,代码行数:31,代码来源:SetMoreClass.php

示例4: GetFcfiletext

    }
}
//栏目
if ($r['doing'] == 1 || $cdoing == 1) {
    $cname = '栏目';
    $fcfile = "../data/fc/ListEnews.php";
    $fcjsfile = "../data/fc/cmsclass.js";
    if (file_exists($fcjsfile) && file_exists($fcfile)) {
        $class = GetFcfiletext($fcjsfile);
        $acr = explode(",", $r[classid]);
        $count = count($acr);
        for ($i = 1; $i < $count - 1; $i++) {
            $class = str_replace("<option value='{$acr[$i]}'", "<option value='{$acr[$i]}' selected", $class);
        }
    } else {
        $class = ShowClass_AddClass(str_replace(',', '|', $r[classid]), "n", 0, "|-", 0, 3);
    }
} elseif ($r['doing'] == 2 || $cdoing == 2) {
    $cname = '专题';
    $ztsql = $empire->query("select ztid,ztname from {$dbtbpre}enewszt order by ztid");
    while ($ztr = $empire->fetch($ztsql)) {
        $selected = strstr($r[classid], ',' . $ztr[ztid] . ',') ? ' selected' : '';
        $class .= "<option value='{$ztr['ztid']}'" . $selected . ">{$ztr['ztname']}</option>";
    }
} elseif ($r['doing'] == 3 || $cdoing == 3) {
    $cname = '列表';
    $ulsql = $empire->query("select listid,listname from {$dbtbpre}enewsuserlist order by listid");
    while ($ulr = $empire->fetch($ulsql)) {
        $selected = strstr($r[classid], ',' . $ulr[listid] . ',') ? ' selected' : '';
        $class .= "<option value='{$ulr['listid']}'" . $selected . ">{$ulr['listname']}</option>";
    }
开发者ID:novnan,项目名称:meiju,代码行数:31,代码来源:AddDo.php

示例5: GetSearch

function GetSearch($mid = 0)
{
    global $empire, $public_r, $fun_r, $dbtbpre;
    //取得模板
    $tr = $empire->fetch1("select searchtemp,searchjstemp,searchjstemp1 from " . GetTemptb("enewspubtemp") . " limit 1");
    //返回栏目搜索
    $fcfile = "../data/fc/ListEnews.php";
    $fcjsfile = "../data/fc/cmsclass.js";
    if (file_exists($fcjsfile) && file_exists($fcfile)) {
        $options = GetFcfiletext($fcjsfile);
    } else {
        $options = ShowClass_AddClass("", "n", 0, "|-", 0, 1);
    }
    //$options="<script src=".$public_r[newsurl]."e/data/fc/searchclass.js></script>";
    $functions = "function search_check(obj){if(obj.keyboard.value.length==0){alert('" . $fun_r['EmptyKey'] . "');return false;}return true;}";
    //横向搜索
    $searchjstemp = ReplaceStemp($tr[searchjstemp], $options, $url, 0, '', '', '');
    $text2 = $functions . "document.write(\"" . $searchjstemp . "\");";
    //纵向搜索
    $searchjstemp1 = ReplaceStemp($tr[searchjstemp1], $options, $url, 0, '', '', '');
    $text3 .= $functions . "document.write(\"" . $searchjstemp1 . "\");";
    //高级搜索
    $url = "<a href='" . $public_r[newsurl] . "'>" . $fun_r['index'] . "</a>&nbsp;>&nbsp;<a href='../search/'>" . $fun_r['adsearch'] . "</a>&nbsp;>";
    //导航栏
    //搜索模板替换
    $dbsearchtemp = ReplaceStemp($tr[searchtemp], $options, $url, 0, $fun_r['adsearch'], $fun_r['adsearch'], $fun_r['adsearch'], 1);
    $text4 = $dbsearchtemp;
    //增加信息栏目
    if ($mid) {
        $options1 = ShowClass_AddClass("", "n", 0, "|-", $mid, 2);
        $addnews_class = "document.write(\"" . addslashes($options1) . "\");";
        $filename3 = "../../d/js/js/addinfo" . $mid . ".js";
        WriteFiletext_n($filename3, $addnews_class);
    }
    $filename = "../../d/js/js/search_news1.js";
    WriteFiletext_n($filename, $text2);
    $filename1 = "../../d/js/js/search_news2.js";
    WriteFiletext_n($filename1, $text3);
    $filename2 = "../../search/index" . $public_r[searchtype];
    WriteFiletext($filename2, $text4);
}
开发者ID:BGCX261,项目名称:zjh-dev-svn-to-git,代码行数:41,代码来源:functions.php

示例6: substr

    $sptypehidden = '<input type="hidden" name="sptype" value="' . $r[sptype] . '">';
    $url = "<a href=ListSp.php" . $ecms_hashur['whehref'] . ">管理碎片</a> &gt; 修改碎片:<b>" . $r[spname] . "</b>";
    $username = substr($r[username], 1, -1);
}
//标签模板
$bqtemp = '';
$bqtempsql = $empire->query("select tempid,tempname from " . GetTemptb("enewsbqtemp") . " order by tempid");
while ($bqtempr = $empire->fetch($bqtempsql)) {
    $select = "";
    if ($r[tempid] == $bqtempr[tempid]) {
        $select = " selected";
    }
    $bqtemp .= "<option value='" . $bqtempr[tempid] . "'" . $select . ">" . $bqtempr[tempname] . "</option>";
}
//栏目
$options = ShowClass_AddClass("", $r[classid], 0, "|-", 0, 0);
//分类
$scstr = '';
$scsql = $empire->query("select classid,classname from {$dbtbpre}enewsspclass order by classid");
while ($scr = $empire->fetch($scsql)) {
    $select = "";
    if ($scr[classid] == $r[cid]) {
        $select = " selected";
    }
    $scstr .= "<option value='" . $scr[classid] . "'" . $select . ">" . $scr[classname] . "</option>";
}
//用户组
$group = '';
$groupsql = $empire->query("select groupid,groupname from {$dbtbpre}enewsgroup order by groupid");
while ($groupr = $empire->fetch($groupsql)) {
    $select = '';
开发者ID:novnan,项目名称:meiju,代码行数:31,代码来源:AddSp.php

示例7: GetFcfiletext

        $select = "";
    }
    $userclass .= "<option value='{$ucr['classid']}'" . $select . ">" . $ucr[classname] . "</option>";
}
//--------------------操作的栏目
$fcfile = "../../data/fc/ListEnews.php";
$fcjsfile = "../../data/fc/cmsclass.js";
if (file_exists($fcjsfile) && file_exists($fcfile)) {
    $class = GetFcfiletext($fcjsfile);
    $acr = explode("|", $r[adminclass]);
    $count = count($acr);
    for ($i = 1; $i < $count - 1; $i++) {
        $class = str_replace("<option value='{$acr[$i]}'", "<option value='{$acr[$i]}' selected", $class);
    }
} else {
    $class = ShowClass_AddClass($r[adminclass], "n", 0, "|-", 0, 3);
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>增加用户 </title>
<link href="../adminstyle/<?php 
echo $loginadminstyleid;
?>
/adminstyle.css" rel="stylesheet" type="text/css">
<script>
function selectalls(doselect,formvar)
{  
	 var bool=doselect==1?true:false;
开发者ID:novnan,项目名称:meiju,代码行数:31,代码来源:AddUser.php


注:本文中的ShowClass_AddClass函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。