[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),'uFlags'=(Array),'idfind'=(array),'acctfind'=(array),'findme'=(array),'uNabes'=(array),'catfind'=(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'), 'accttags' = (action_param:'mytags'), 'cat' = (action_param:'cat')] [If: ($sess_name)=='guest'] [Else] [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] [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
View All Categories
   

[If: ($sess_name)=='guest'] [Else] [Inline: -Search, -Database='MMS', -Table='Flags', -Keyfield='_Flags_ID', 'Flags_UserID'=($sess_acct), 'Flags_ContentType'='Survey', 'Flags_Type'='White'] [If: (Found_Count)>0] [Records] [$uFlags->(insert:(Field:'Flags_ContentID'))] [/Records] [/If] [If: ($accttags)==($sess_acct)] [If: ($uFlags->Size)>0] [Loop: ($uFlags->Size)] [$idfind->(insert:'_Survey_ID'=($uFlags->(Get:(Loop_Count))))] [$idfind->(insert: '-or')] [/Loop] [else] [$idfind->(insert:'_Survey_ID'=0)] [/If] [/If] [/Inline] [/If] [$catfind->(insert: 'Survey_CategoryID' = ($cat))] [$findme->(Merge:$catfind)] [$findme->(Merge:$idfind)] [$findme->(Merge:$forumWords)] [Inline: -Search, -Database='MMS', -Table='Survey', -Keyfield='_Survey_ID', ($findme), -SortField = 'Survey_Date', -SortOrder = 'Descending'] [If: (Found_Count)>0]
[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
[Records] [/Records]
Found: [Found_Count] in Category: [Field:'Survey_Category'] 
Last Vote
Votes
[If: ($sess_name)=='guest']   [Else] [If: ($uFlags) >> (Field:'_Survey_ID')] Remove the Tag from this item [Else] Tag this item for future reference [/If] [/If]
[If:($uAnswers->(Contains:(Field:'_Survey_ID')))] [Else] [/If]
[Var:'ftext'=(Field:'Survey_QuestTypical'), 'ftext_z'=($ftext->Size)] [$ftext->(Substring: 1, 72)] [If: ($ftext_z)>72] ...? [/If]
[If: (Field:'Survey_VoteLast')==''] No Votes Yet [Else] [Var:'MyDate2'=Date:(Field:'Survey_VoteLast')] [$MyDate2->(Format: '%D')]
[$MyDate2->(Format: '%h:%M %p')] [/If]
[Field:'Survey_VoteCount']
[Else]
No Surveys Found.
[/If] [/Inline]

[Include: 'GoogleAds/Footer_728x90.html']
 
               
[Include:'Includes/g_analytics.htm']