fetch_one("SELECT * FROM `cms_archives15` where subject ='".$lpmc."'");
if (count($Arr)>0)
return $Arr["aid"];
else
return "";
}
for ($i=1 ; $i<=6;$i++)
{
$sj="";
$YearMonth= Date('Y')."年".$i."月";
echo "
\r";
$query = $db->query("SELECT cms_coclass1.ccid,cms_coclass1.title,cms_archives101.aid,cms_archives101.`subject`,cms_archives101.ccid1,cms_archives101.lpmc,kpsj as kpTime , FROM_UNIXTIME(kpsj,'%Y年%c月') as kpsj FROM cms_coclass1 INNER JOIN cms_archives101 ON cms_coclass1.ccid = cms_archives101.ccid1 where FROM_UNIXTIME(kpsj,'%Y年%c月') ='".$YearMonth."' order by kpsj asc ","","1");
$Arr= $db->num_rows($query);
while($r = $db->fetch_array($query))
{
$aid=getlpAid($r["lpmc"]);
if ($YearMonth==date('Y年m月',$r["kpTime"]))
echo "
\r";
$query = $db->query("SELECT cms_coclass1.ccid,cms_coclass1.title,cms_archives101.aid,cms_archives101.`subject`,cms_archives101.ccid1,cms_archives101.lpmc,kpsj as kpTime , FROM_UNIXTIME(kpsj,'%Y年%c月') as kpsj FROM cms_coclass1 INNER JOIN cms_archives101 ON cms_coclass1.ccid = cms_archives101.ccid1 where FROM_UNIXTIME(kpsj,'%Y年%c月') ='".$YearMonth."' order by kpsj asc ","","1");
$Arr= $db->num_rows($query);
while($r = $db->fetch_array($query))
{
$aid=getlpAid($r["lpmc"]);
if ($YearMonth==date('Y年m月',$r["kpTime"]))
echo "
\r";
$query = $db->query("SELECT cms_coclass1.ccid,cms_coclass1.title,cms_archives101.aid,cms_archives101.`subject`,cms_archives101.ccid1,cms_archives101.lpmc,kpsj as kpTime , FROM_UNIXTIME(kpsj,'%Y年%c月') as kpsj FROM cms_coclass1 INNER JOIN cms_archives101 ON cms_coclass1.ccid = cms_archives101.ccid1 where FROM_UNIXTIME(kpsj,'%Y年%c月') ='".$YearMonth."' order by kpsj asc ","","1");
$Arr= $db->num_rows($query);
while($r = $db->fetch_array($query))
{
$aid=getlpAid($r["lpmc"]);
if ($YearMonth==date('Y年m月',$r["kpTime"]))
echo "
fetch_one("SELECT * FROM `cms_archives15` where subject ='".$lpmc."'");
if (!empty($Arr))
return $Arr["aid"];
else
return "";
}
for ($i=7 ; $i<=12;$i++)
{
$sj="";
$YearMonth= Date('Y')."年".$i."月";
echo "
\r";
$query = $db->query("SELECT cms_coclass1.ccid,cms_coclass1.title,cms_archives101.aid,cms_archives101.`subject`,cms_archives101.ccid1,cms_archives101.lpmc,kpsj as kpTime , FROM_UNIXTIME(kpsj,'%Y年%c月') as kpsj FROM cms_coclass1 INNER JOIN cms_archives101 ON cms_coclass1.ccid = cms_archives101.ccid1 where FROM_UNIXTIME(kpsj,'%Y年%c月') ='".$YearMonth."' order by kpsj asc ","","1");
$Arr= $db->num_rows($query);
while($r = $db->fetch_array($query))
{
$aid=getlpAid($r["lpmc"]);
if ($YearMonth==date('Y年m月',$r["kpTime"]))
echo "
\r";
$query = $db->query("SELECT cms_coclass1.ccid,cms_coclass1.title,cms_archives101.aid,cms_archives101.`subject`,cms_archives101.ccid1,cms_archives101.lpmc,kpsj as kpTime , FROM_UNIXTIME(kpsj,'%Y年%c月') as kpsj FROM cms_coclass1 INNER JOIN cms_archives101 ON cms_coclass1.ccid = cms_archives101.ccid1 where FROM_UNIXTIME(kpsj,'%Y年%c月') ='".$YearMonth."' order by kpsj asc ","","1");
$Arr= $db->num_rows($query);
while($r = $db->fetch_array($query))
{
$aid=getlpAid($r["lpmc"]);
if ($YearMonth==date('Y年m月',$r["kpTime"]))
echo "
\r";
$query = $db->query("SELECT cms_coclass1.ccid,cms_coclass1.title,cms_archives101.aid,cms_archives101.`subject`,cms_archives101.ccid1,cms_archives101.lpmc,kpsj as kpTime , FROM_UNIXTIME(kpsj,'%Y年%c月') as kpsj FROM cms_coclass1 INNER JOIN cms_archives101 ON cms_coclass1.ccid = cms_archives101.ccid1 where FROM_UNIXTIME(kpsj,'%Y年%c月') ='".$YearMonth."' order by kpsj asc ","","1");
$Arr= $db->num_rows($query);
while($r = $db->fetch_array($query))
{
$aid=getlpAid($r["lpmc"]);
if ($YearMonth==date('Y年m月',$r["kpTime"]))
echo "
result_one("select COUNT(*) AS num from `cms_commu_yx` ");
else
$count = $db->result_one("select COUNT(*) AS num from `cms_commu_yx` where aid=$aid");
if ($count==0)
$count=0;
return $count;
}
?>
{c$pushs [tclass=pushs/] [paid=push_rxlp/] [startno=0/] [limits=4/] [ttl=600/]}
{c$archive [tclass=archive/] [chid=4/] [val=a/] [id=$v[fromid]/] [detail=1/]}