Difference between revisions of "PsyCrit:Add Response"
(date -> respDate (probably left over from issuepedia news-filing form); also added null default option for target selection) |
(option to select default target from a URL argument) |
||
Line 6: | Line 6: | ||
<echo><get name=out raw /></echo> | <echo><get name=out raw /></echo> | ||
</func> | </func> | ||
<let name=target arg=target /> get requested target, if any | |||
</hide> | </hide> | ||
{| | {| | ||
Line 20: | Line 22: | ||
<let name=opt_tag append copy=keyname /> | <let name=opt_tag append copy=keyname /> | ||
<let name=opt_tag append>"</let> | <let name=opt_tag append>"</let> | ||
<if comp=$keyname with=target> | |||
<let name=opt_tag append> selected</let> | |||
</if> | |||
<echo><call xmltag contents=$opt_tag /><get name=keyname /> - <get name=title /><call xmltag contents="/OPTION" /></echo> | <echo><call xmltag contents=$opt_tag /><get name=keyname /> - <get name=title /><call xmltag contents="/OPTION" /></echo> | ||
</for> | </for> |
Revision as of 23:16, 17 September 2008
Target article: | <call xmltag contents="SELECT NAME=target" />
<call xmltag contents="option value" />Select a target...<call xmltag contents="/option" /> <for table="qryW3_Titles_Catgs" where="(cl_to='Data/target') AND (page_namespace=0)" sort="page_title DESC" name=pg hide> <load page=$pg_title /> <call xmltag contents=$opt_tag />ERROR: there is no variable named [keyname]. - ERROR: there is no variable named [title].<call xmltag contents="/OPTION" /> </for> <call xmltag contents="/SELECT" /> [refresh] |
Title: | |
Author attribution: |
|
Date: | |
Short name: |
|
Snippet: |