|
[inline:
-database=$dbname,
-username=$dbun,
-password=$dbpw,
-table=$dbt1,
-sortfield='sortdate',
-sortorder='descending',
-maxrecords='all',
-op='eq',
'section'=$section,
-search][records] [field:'title']
[/records][/inline]
|
|
[if:(var:'sid')==""][var:'searchstring'='select * from articles where section like "'+(var:'section')+'" order by sortdate desc'][else][var:'searchstring'='select * from articles where id like '+(var:'sid')][/if]
[inline:
-database=$dbname,
-username=$dbun,
-password=$dbpw,
-sql=$searchstring][var:'sid'=(field:'id')] |
|
|
|
[if:($section)!="mr agreeable"]
[inline:
-database=$dbname,
-username=$dbun,
-password=$dbpw,
-table=$dbt3,
-op='eq',
'section'=$section,
-search][field:'tagline'][/inline]
[/if][date_format:(field:'date'), -format='%d %B %Y']
[String_UpperCase: (field:'title')]
[if:(var:'section')=="mr agreeable"][else][field:'intro']
[/if]
[var:'body'=(string_replaceregexp:-find='\r\n|\r|\n',-replace=' \r',(field:'body'),-encodenone)][var:'body',-encodesmart]
[/inline]
|
|