[Include: 'Includes/metatag_Survey.htm'] [Include: 'Includes/guest_access.html'] [If: ($sess_name)=='guest'] [Variable: 'Inc_1'='NavHeader.html', 'Link_1'='Account_Signup.html', 'Link_2'='Account_Signup.html', 'Link_3'='Survey_Category.html', 'member_guest'='member=guest'] [Else] [Variable: 'Inc_1'='NavHeader.html', 'Link_1'='Survey_Category.html', 'Link_2'='Survey_Detail.html', 'Link_3'='Survey_Category.html', 'member_guest'=''] [/If] [Variable: 'forumWords'=(array), 'uAnswers'=(array), 'path'=(String_Concatenate: '/Accounts/',($sess_acct), '/'), 'pathThumb'=(String_Concatenate: '/Accounts/',($sess_acct), '/Thumb/'), 'monitor' = (action_param:'monitor'), 'forumSearch' = (action_Param:'forumSearch'), 'forumKeywords'=($forumSearch->split:' '), 'Survey' = (action_Param:'Survey'), 'thread' = (action_Param:'thread'), 'respond' = (action_Param:'respond'), 'reply' = (action_Param:'reply')] [Loop: ($forumKeywords->Size)] [$forumWords->(insert:'Survey_Searchable'=($forumKeywords->(Get:(Loop_Count))))] [/Loop] [Inline: -Search, -Database='MMS', -Table='Response', -Keyfield='_Response_ID', 'Response_UserID'=($sess_acct), -MaxRecords=500] [If: (Found_Count)>0] [Records] [$uAnswers->(insert:(Field:'Response_SurveyID'))] [/Records] [/If] [/Inline]
[If: (Cache_Exists: -Name='SurveyAds', -Expires='86400')]
[Else]
[Inline: -Search, -Database='MMS', -Table='Ads', -Keyfield='_Ads_ID', 'Ads_Page'='Survey_Home', 'Ads_Orientation'='Banner', 'Ads_Position'='Header', 'Ads_Active'='Yes']
[Variable:'ads'=(Array)]
[If: (Found_Count)>0]
[Records]
[$ads->Insert:(Field:'Ads_HTML')]
[/Records]
[Else]
[$ads->Insert:'GoogleAds/Header_468x60.html']
[/If]
[/Inline]
[Cache_Store: -Name='SurveyAds', -Content=($ads)]
[/If]
[Variable:'bAads'=(Array)]
[Variable:'bAds'=(Cache_Fetch: -Name='SurveyAds')]
[Variable:'cnt'=($bAds->Size)+1, 'rdm'=(Math_Random: -Min=1, -Max=($cnt))]
[Include: ($bAds->Get:$rdm)]
|
||||||||||||
[Include: ($sess_side)]
|
||||||||||||
| |
[Include: 'MMS_Search_Survey.htm']
|
|||||||||||
| [If: (Var:'sess_acct') == '100000007'] Submit Survey [Else] [/If] | ||||||||||||
|
||||||||||||