2.5ģ﷨˵

 Version 2.5 RC3 ʼCMSwareʼµXMLƵģ﷨


- New °ģ﷨μ˵
- New °ģ﷨OP䣬ڱʽ
- New   ϵͳ -> ҳʾ¼ҳʾ¼ɼҳʾ¼

- Fixed ɼ²вɼ
- Fixed ̨ĸԡӡӡ
- Notice ͼƬ⣬£ûϴͼƬϴͼƬԴĿ¼resource/hxxx/hxx£ͼƬΪ̨ӣ·֮ʱеͼƬŽķһƪµķ̬ҳɺͼƬķ2̣ͼƬڵԴPSN棬еͼƬַҲԶ滻ΪĵַԣҪ⣬ͼƬ2ϵĿ̨resourceиɾʱԶɾǰͼƬùΪ0ԴPSNҲһȡʱԶɾ




[SQL]
INSERT INTO `cmsware_sys` (`varName`, `varValue`) VALUES ('CollectionPageNum', '15');
INSERT INTO `cmsware_sys` (`varName`, `varValue`) VALUES ('ContentPageNum', '15');
INSERT INTO `cmsware_sys` (`varName`, `varValue`) VALUES ('SearchPageNum', '15');

[ģ﷨]
2.5RC3ģµģ﷨ģ﷨Ϊcmsware3.0ļƻǰйɲԣͬʱȫ1.x/2.xģ﷨

CMS
<CMS action="LIST" return="ListOne" where="(c.Title=='{$var.Title}' and c.Photo!='') or c.Hit>=10" NodeID="1"/>
<CMS action="CONTENT" return="contentInfo" IndexID="{$var.IndexID}" /> 
<CMS action="SQL" return="ListTwo" query="select * from cmsware_site where Disabled=0" /> 

IF
<if test="$a > $b && ($b>$e)">
<elseif test="$c > $b || $a == 0" >
<else> 
</if>

LOOP
<loop name="List" var="var" key="key" >
</loop> 


OP䣺Ϊ䣬ڱʽ
ʽ<op exp="Ҫıʽ" />
ӣ
<op exp="$var=$var+1" />
<op exp="$var++"/>
<op exp="$var=($var - 5)/10"/> 
<op exp="$var=date()"/> 
<op exp="$var=date('Y-m-d', $info.Time)"/>

OPĹܷǳǿ󣬿滻varиӱ
<var name="hello" value="world"/> ͬ<op exp="$hello='world'" />

ʹOPиӱ壺<op exp="$hello=Cstrsub($var.Content,1,10,'...').'New!'" />




[¾ģ﷨Ƚ]

   עΪ˷XML淶°汾<CMS...>еԱʹ""бպϣͬʱϰ<CMS...>..</CMS>պϸΪ<CMS.../>պϡ

   °CMS:
   <CMS action="LIST" return="ListOne" where="(c.Title=='{$var.Title}' and c.Photo!='') or c.Hit>=10" NodeID="1"/> °汾whereֱ֧ж,ӱʽ
   <CMS action="SQL" return="ListTwo" query="select * from cmsware_site where Disabled=0" /> 


   ϰCMS:
   <CMS::LIST:ListOne  NodeID="1">
   <where:  (c.Title=='{$var.Title}' and c.Photo!='') or c.Hit>=10 > ϰ汾whereòֱ֧ж,ӱʽ
   ...
   ..
   .
   </CMS>

  
   -------------------------------------------------------------
   °LOOP:
   <loop name="List" var="var" key="key">
   </loop> 
   ϰLOOP:
   <loop $List var=var key=key>

   -------------------------------------------------------------
   °IF:
   <if test="$a > $b && ($b>$e)">
   <elseif test="$c > $b || $a == 0" >
   <else> 
   </if>
   ϰIF:
   <if $a > $b && ($b>$e)>
   <elseif $c > $b || $a == 0 >
   <else> 
   </if>  



