%STARTINCLUDE% *~~ %STOPALIASAREA% <noautolink> *~~ <div class="blogArchiveDateSelect"> <div class="blogArchiveYears"> %~~ DBSTATS{"TopicType=~'\bBlogEntry\b' AND State='enabled' ~~~ %IFDEFINED{"%URLPARAM{"year"}%" then="AND Date=~'%URLPARAM{"year"}%'" glue="off"}% ~~~ " ~~~ field="Date" sort="created" ~~~ pattern="(\d\d\d\d)" ~~~ format=" ~~~ <span class=\"blogArchiveYear\"> ~~~ <a href=\"%SCRIPTURL{"view"}%/%BASEWEB%/%BASETOPIC%?mode=chron;year=$key ~~~ %IFDEFINED{"%URLPARAM{"month"}%" then=";month=%URLPARAM{"month"}%"}% ~~~ \" ~~~ class=\"$percntCALC{\"$IF($EXACT(%URLPARAM{"year"}%,$key),current)\"}$percnt\" ~~~ >$key</a> ~~~ </span>" ~~~ }% </div> <div class="blogArchiveMonths"> %~~ DBSTATS{"TopicType=~'\bBlogEntry\b' AND State='enabled' ~~~ %IFDEFINED{"%URLPARAM{"year"}%" then="AND Date=~'%URLPARAM{"year"}%'" glue="off"}% ~~~ %IFDEFINED{"%URLPARAM{"month"}%" then="AND Date=~'%URLPARAM{"month"}%'" glue="off"}% ~~~ " ~~~ field="Date" sort="created" ~~~ pattern="(\w+) \d\d\d\d" ~~~ format=" ~~~ <span class=\"blogArchiveMonth\"> ~~~ <a href=\"%SCRIPTURL{"view"}%/%BASEWEB%/%BASETOPIC%? *~~ mode=chron;month=$key;year=%URLPARAM{"year" default=".*"}%\" ~~~ class=\"$percntCALC{\"$IF($EXACT(%URLPARAM{"month"}%,$key),current)\"}$percnt\" ~~~ >$key</a> ~~~ </span>" ~~~ }% </div> </div> %~~ DBCALL{"RenderBlogArchiveHitList" ~~~ QUERY=" *~~ %IFDEFINED{"%URLPARAM{"year"}%" then="AND Date=~'%URLPARAM{"year"}%'" glue="off"}% ~~~ %IFDEFINED{"%URLPARAM{"month"}%" then="AND Date=~'%URLPARAM{"month"}%'" glue="off"}% *~~ " ~~~ PARAMS=" *~~ mode=chron; *~~ month=%URLPARAM{"month" default=".*"}%; *~~ year=%URLPARAM{"year" default=".*"}% *~~ " ~~~ }% *~~ </noautolink> %STARTALIASAREA% *~~ %STOPINCLUDE%