⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 specialtopic.lib.php

📁 这是matlab的一个小程序
💻 PHP
字号:
<?php
if(!defined('DEDEINC'))
{
	exit("Request Error!");
}

function ch_specialtopic($noteinfo,&$arcTag,&$refObj,$fname='')
{
	require_once(DEDEINC."/taglib/arclist.lib.php");
	if($noteinfo=='')
	{
		return '';
	}
	$noteid = $arcTag->GetAtt('noteid');
	$rvalue = '';
	$tempStr = GetSysTemplets("channel_spec_note.htm");
	$dtp = new DedeTagParse();
	$dtp->LoadSource($noteinfo);
	if(is_array($dtp->CTags))
	{
		foreach($dtp->CTags as $k=>$ctag)
		{
			$notename = $ctag->GetAtt("name");

			//指定名称的专题节点
			if($noteid!='' && $ctag->GetAtt('noteid')!=$noteid)
			{
				continue;
			}
			$isauto = $ctag->GetAtt("isauto");
			$idlist = trim($ctag->GetAtt("idlist"));
			$rownum = trim($ctag->GetAtt("rownum"));
			if(empty($rownum))
			{
				$rownum = 40;
			}
			$keywords = '';
			$stypeid = 0;

			//通过关键字和栏目ID自动获取模式
			if($isauto==1)
			{
				$idlist = '';
				$keywords = trim($ctag->GetAtt("keywords"));
				$stypeid = $ctag->GetAtt("typeid");
			}

			if(trim($ctag->GetInnerText())!='')
			{
				$listTemplet = $ctag->GetInnerText();
			}
			else
			{
				$listTemplet = GetSysTemplets("spec_arclist.htm");
			}
			$idvalue = lib_arclistDone($ctag,$stypeid,$rownum,$ctag->GetAtt("col"),$ctag->GetAtt("titlelen"),$ctag->GetAtt("infolen"),
			$ctag->GetAtt("imgwidth"),$ctag->GetAtt("imgheight"),'all','default',$keywords,$listTemplet,0,$idlist,
			$ctag->GetAtt("channel"),'',$ctag->GetAtt("att"));
			$notestr = str_replace("~notename~",$notename,$tempStr);
			$notestr = str_replace("~spec_arclist~",$idvalue,$notestr);
			$rvalue .= $notestr;
			if($noteid!="" && $ctag->GetAtt("noteid")==$noteid)
			{
				break;
			}
		}
	}
	$dtp->Clear();
	return $rvalue;
}

?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -