[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] [Include: ($Inc_1)] [Include: 'NavFooter.html']
 
[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']
 
       
View Surveys you have previously tagged
[If: (Var:'sess_acct') == '100000007'] Submit Survey [Else]   [/If]    
 
[If: (Cache_Exists: -Name='SurveyCats', -Expires='86400')] [Else] [Inline: -Search, -Database='MMS', -Table='Categories', -Keyfield='_Cat_ID', -SortField='Cat_Sort', 'Cat_Type'='Survey'] [Variable:'recrecs'=(Records_Map: -ReturnField='Cat_Topics_SurveyVotes', -ReturnField='Cat_Photo', -ReturnField='Cat_Description', -ReturnField='Cat_Name', -ReturnField='_Cat_ID')] [/Inline] [Cache_Store: -Name='SurveyCats', -Content=($recrecs)] [/If] [Variable:'Recs'=(Cache_Fetch: -Name='SurveyCats')] [Loop:($Recs->Size)] [Variable:'CRecs'=($Recs->Get:(Loop_Count))] [Variable:'CRec'=($CRecs->Second)] [Variable:'gotocat'=($Link_3)+'?cat='+($CRec->(Find:'_Cat_ID'))+'&cat4='+($CRec->(Find:'Cat_Name'))+'&'+($member_guest)] [/Loop]
 Categories
[Loop: ($Recs->Size)] [Variable:'CRecs'=($Recs->Get:(Loop_Count))] [Variable:'CRec'=($CRecs->Second)] [Variable:'cfoto'='images/' +($CRec->(Find:'Cat_Photo'))] [Variable:'gotocat'=($Link_3)+'?cat='+($CRec->(Find:'_Cat_ID'))+'&cat4='+($CRec->(Find:'Cat_Name'))+'&'+($member_guest)] [If: (Loop_Count % 3) == 0] [/If] [/Loop]
[$CRec->(Find:'Cat_Name')]
[If: ($cfoto)==''] [else] [/If]
[$CRec->(Find:'Cat_Description')]
 

   
[Include:'Includes/g_analytics.htm']