<div id="selMyAnswers">
  {include file='../general/information.tpl'}
  {if $myobj->isShowPageBlock('twitter_user')}
   <div class="lbblog">
      <div class="rbblog">
        <div class="bbblog">
          <div class="blcblog">
            <div class="brcblog">
              <div class="tbblog">
                <div class="tlcblog">
                  <div class="trcblog">
				     <div class="clsBold clsTwitterAlertIcon">
					   {$LANG.twitter_user}
					  </div>	
				   </div>
				</div>
			  </div>
			</div>
		  </div>
		</div>
	  </div>
	 </div> 	  	  	   		
  {/if}	
  {if $myobj->isShowPageBlock('form_user_details')}
  <div class="clsCommonBlogRoundedCorner">
    <!--rounded corners-->
	   {if $CFG.user.user_id == $myobj->getFormField('uid')}
		  <div class="lb-profile">
		   <div class="rb-profile">
		    <div class="bb-ourprofile">
			  <div class="blc-ourprofile">
				<div class="brc-ourprofile">
				  <div class="tb-profile">
					<div class="tlc-profile">
					  <div class="trc-profile">
	   {else}
		    <div class="lb-profile">
		      <div class="rb-profile">
		        <div class="bb-profile">
		          <div class="blc-profile">
		            <div class="brc-profile">
		              <div class="tb-profile">
		                <div class="tlc-profile">
		                  <div class="trc-profile">
	   {/if}
                    <div class="clsUserInfo">
                     <div class="clsClearfix">
					  	<h3 class="clsProfileTitle"> {$myobj->form_user_details.displayUserDetails.user_details.display_name}<span>'s {$LANG.myanswers_profile}</span></h3>
						<p class="clsProfileTitleRight">
							{$LANG.myanswers_total_points}:<span>{$myobj->user_ans_log.total_points}</span>
						</p>
					  </div>
                      <div class="clsUserProfileImageInfo clsClearfix"> {if isUserImageAllowed()}
                        <div class="clsUserProfileImage">
                          <p id="selImageBorder"> {$myobj->displayProfileImage($myobj->form_user_details.displayUserDetails.user_details, 'medium', false)} </p>
                        </div>
                        {/if}
                        <div class="clsUserProfileInfo">

                          <div class="clsMyHomeDetails">
						  	 <p class="">{$LANG.member_since}: <span class="">{$myobj->form_user_details.displayUserDetails.date}</span> </p>
                            {if $CFG.admin.best_answers.allowed}
                            <p class="">{$LANG.best_answer_percentage} <span class="">{$myobj->form_user_details.displayUserDetails.percentage}%</span></p>
                            {/if}
							<p class="">{$LANG.myanswers_profile_views}: <span class="clsProfileViews">{$myobj->form_user_details.displayUserDetails.user_ans_log.profile_views}</span> </p>
							{if $CFG.admin.module.payment}
								<p>{$LANG.myanswers_membership_plan}:
									{if $myobj->form_user_details.displayUserDetails.show_upgrade}
										<span class=""><a href="{$myobj->form_user_details.displayUserDetails.payment_upgrade_url}">{$LANG.myanswers_upgrade_plan}</a></span>
									{else}
										<span class="">{$myobj->form_user_details.displayUserDetails.plan_details.plan_name}</span>
									{/if}
								</p>
							{/if}
							{if $myobj->form_user_details.displayUserDetails.user_details.user_id eq $CFG.user.user_id}
								<p class="clsEditProfile"><a href="{$header->headerBlock.editprofile_link}">{$LANG.myanswers_edit_profile}</a></p>
							{/if}

                          </div>
                        </div>
						<div class="clsProfileRating">
							<p class="clsProfileRatingIcon"><span>{$myobj->form_user_details.displayUserDetails.userLevelNumber}</span></p>
							<p class="clsProfileRatingValue">{$myobj->form_user_details.displayUserDetails.userLevelTitle}</p>
						</div>
                      </div>
					{if $CFG.user.user_id != $myobj->getFormField('uid')}
						<div class="clsUserProfileOptions">
					  	{if  $CFG.admin.subscribe.users && $myobj->getFormField('uid') neq $CFG.user.user_id}
								<span class="clsSubscribe" id="selShowFavoriteText_User_{$myobj->getFormField('uid')}">
									{if isMember()}
										{if  $myobj->isFavoriteContent($myobj->getFormField('uid'), 'User')}
										  	<a href="{$myobj->getCurrentUrl('true')}" onClick="{$myobj->form_user_details.displayUserDetails.toggleFavorites}">{$LANG.common_user_remove_favorites}</a>
										{else}
										  	<a href="{$myobj->getCurrentUrl('true')}" onClick="{$myobj->form_user_details.displayUserDetails.toggleFavorites}">{$LANG.common_user_add_to_favorites}</a>
										{/if}
									{else}
										<a href="{$myobj->getCurrentUrl('true')}" onClick="{$myobj->form_user_details.displayUserDetails.toggleFavorites}">{$LANG.common_user_add_to_favorites}</a>
									{/if}
								  </span>
						  {/if}
                          {if  $CFG.admin.ignore_user && $myobj->getFormField('uid') neq $CFG.user.user_id}
							  <span class="clsIgnoreUser" id="selShowIgnoreUser">
								{if isMember()}
									{if  $myobj->isIgnoredUser($myobj->getFormField('uid')) }
									  	<a href="{$myobj->getCurrentUrl('true')}" onClick="{$myobj->form_user_details.displayUserDetails.toggleFavorites1}">{$LANG.myanswers_unignore_user}</a>
									{else}
										<a href="{$myobj->getCurrentUrl('true')}" onClick="{$myobj->form_user_details.displayUserDetails.toggleFavorites1}">{$LANG.myanswers_ignore_user}</a>
									{/if}
								{else}
									<a href="{$myobj->getCurrentUrl('true')}" onClick="{$myobj->form_user_details.displayUserDetails.toggleFavorites1}">{$LANG.myanswers_ignore_user}</a>
								{/if}
							  </span>
						  {/if}
                          {if  $myobj->getFormField('uid') neq $CFG.user.user_id && $myobj->chkIsIntenalMailAllowed($myobj->getFormField('uid'))}
						  	<span class="clsSendUserMsg">
						  		<a class="clsNoBorder" href="{$myobj->form_user_details.displayUserDetails.members_url}">{$LANG.myanswers_send_message}</a>
						  	</span>
						  </div>
						  {/if}
                    </div>
                    {/if}
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
    <!--end of rounded corners-->
  </div>

    <!--end of rounded corners-->
  </div>


  <div id="selShowQuestions" class="clsProfilePageDetails clsMargintop30">
    <div class="clsCommonIndexRoundedCorner">
      <!--rounded corners-->
	  	<div class="clsQuestionsLink clsClearfix">
            <ul class="clsProfileNameLeft"><li class="clsSubscribeName">{$myobj->form_answer_details.displayAnswerDetails.stripString_disp_name}</li></ul>
			<ul class="clsProfileNameRight">
			  	{if $CFG.user.user_id neq $myobj->getFormField('uid')}
			  		<li id="selAnsweredQuestionsLI" class="clsLeftActiveQuestionsLink"> <span id="selAnsweredQuestionsSPAN" class="clsRightActiveQuestionsLink"> <a id="selAnsweredQuestionsA" class="clsMiddleActiveQuestionsLink" onclick="hideBlocks('selAskedQuestions','selFavoriteQuestions','selForums','selBlogs');showBlocks('selAnsweredQuestions'); toggleNavBar(); return false;" href="{$myobj->getCurrentUrl('true')}"> {$LANG.myanswers_answered} </a> </span> </li>
				{else}
              	  	<li id="selAnsweredQuestionsLI" class="clsFirstQuestionLink clsLeftActiveQuestionsLink"> <span id="selAnsweredQuestionsSPAN" class="clsRightActiveQuestionsLink"> <a id="selAnsweredQuestionsA" class="clsMiddleActiveQuestionsLink" onclick="hideBlocks('selAskedQuestions','selFavoriteQuestions','selForums','selBlogs');showBlocks('selAnsweredQuestions'); showBlockAsFirst('selAnsweredQuestions'); toggleNavBar(); return false;" href="{$myobj->getCurrentUrl('true')}"> {$LANG.myanswers_answered} </a> </span> 		</li>
              	{/if}

                  <li id="selAskedQuestionsLI" class="clsLeftInActiveQuestionsLink"> <span id="selAskedQuestionsSPAN" class="clsRightInActiveQuestionsLink"> <a id="selAskedQuestionsA" class="clsMiddleInActiveQuestionsLink" onclick="hideBlocks('selAnsweredQuestions','selFavoriteQuestions','selForums','selBlogs');showBlocks('selAskedQuestions'); updateContent('selAskedQuestions'); return false;" href="{$myobj->getCurrentUrl('true')}"> {$myobj->form_answer_details.displayAnswerDetails.users_questions} </a> </span> </li>

                {if  $CFG.admin.favorite.allowed}
                  	<li id="selFavoriteQuestionsLI" class="clsLeftInActiveQuestionsLink"> <span id="selFavoriteQuestionsSPAN" class="clsRightInActiveQuestionsLink"> <a id="selFavoriteQuestionsA" class="clsMiddleInActiveQuestionsLink" onclick="hideBlocks('selAskedQuestions','selAnsweredQuestions','selForums','selBlogs');showBlocks('selFavoriteQuestions'); updateContent('selFavoriteQuestions'); return false;" href="{$myobj->getCurrentUrl('true')}"> {$myobj->form_answer_details.displayAnswerDetails.users_favorites} </a> </span> </li>
                {/if}
                {if chkIsAllowedModule(array('forums'))}
                  	<li id="selForumsLI" class="clsLeftInActiveQuestionsLink"> <span id="selForumsSPAN" class="clsRightInActiveQuestionsLink"> <a id="selForumsA" class="clsMiddleInActiveQuestionsLink" onclick="hideBlocks('selAskedQuestions','selAnsweredQuestions','selFavoriteQuestions','selBlogs');showBlocks('selForums'); updateContent('selForums'); return false;" href="{$myobj->getCurrentUrl('true')}"> {$myobj->form_answer_details.displayAnswerDetails.users_forums} </a> </span> </li>
                {/if}
                {if chkIsAllowedModule(array('blog'))}
                  	<li id="selBlogsLI" class="clsLeftInActiveQuestionsLink"> <span id="selBlogsSPAN" class="clsRightInActiveQuestionsLink"> <a id="selBlogsA" class="clsMiddleInActiveQuestionsLink" onclick="hideBlocks('selAskedQuestions','selAnsweredQuestions','selFavoriteQuestions','selForums');showBlocks('selBlogs'); updateContent('selBlogs'); return false;" href="{$myobj->getCurrentUrl('true')}"> {$myobj->form_answer_details.displayAnswerDetails.users_blogs} </a> </span> </li>
                {/if}
        	</ul>
        </div>
      <div class="lbindex">
        <div class="rbindex">
          <div class="bbindex">
            <div class="blcindex">
              <div class="brcindex">
                <div class="tbindex">
                  <div class="tlcindex">
                    <div class="trcindex"> {if $myobj->isShowPageBlock('form_answer_details')}

                      <div id="selAnsweredQuestions" class="clsCommonIndexSection">
                        <div id="selWidgetRecentQuestions" class="clsSideBarSections">
                          {if $myobj->form_answer_details.displayAnswerDetails.displayAnsweredQuestions.RecordCount}
                          <div class="clsSideBarContents"> {foreach key=inc item=value from=$myobj->form_answer_details.displayAnswerDetails.displayAnsweredQuestions.displayQuestions}
                            <div>
                              <div class="{$value.clsOddOrEvenQuestion} clsUserThumbDetails">
							  	{if $CFG.admin.questions_module.voting}
									<div class="clsUserThumb clsUserThumbIndex">
								  {else}
									 <div class="clsUserThumb">
								   {/if}
                                  <div class="clsClearFix">
                                    {if $CFG.admin.questions_module.voting}<div class="clsUserThumbLeft">
                                      <div class="clsVotingCount"><a href="{$value.questionDetails.qLink}">
                                        <div class="clsVotingCountInner">
                                          <p class="clsCont">{$value.questionDetails.votes}</p>
                                          <p class="clsContText">{if $value.questionDetails.votes eq '1'}{$LANG.vote}{else}{$LANG.helpful}{/if}</p>
                                        </div></a>
                                      </div>
                                       </div>{/if}
                                  </div>
                                </div>
                                <div class="clsUserDetails">
                                  	<p class="clsQuestionLink">{$value.questionDetails.question_link}</p>
	                                <div class="clsClearfix clsUserSubLinks">
	                                	<div class="clsUserLinkBy clsNoLeftBgPadngMrgn">{$LANG.common_in}&nbsp;</div>
										<div class="clsUserCategory clsNoLeftBgPadngMrgn">{$value.questionDetails.showCategoryName}</div>
										<div class="clsUserLinkBy">{$LANG.common_question_asked_by}</div>
										<div class="clsUserLinkImage">
									  	{if isUserImageAllowed()}
                                        	{$myobj->displayProfileImage($value.questionDetails, 'tiny')}
                                        {/if}
										</div>
										<div class="clsUserLinkName clsNoLeftBgPadngMrgn"> {$value.questionDetails.asked_by_link}</div>
									</div>
									<div class="clsClearfix clsUserSubLinks">
										{assign var="clsNoLeftBgPadngMrgn" value="clsNoLeftBgPadngMrgn"}
										{if ($CFG.admin.attachments_questions.allowed and $value.questionDetails.has_attachment) or (chkIsAudioAllowed('question') and $value.questionDetails.audio_id) or (chkIsVideoAllowed('question') and $value.questionDetails.video_id)
											or (chkExternalVideoAllowed('question') and $value.questionDetails.external_video_id) or (chkExternalAudioAllowed('question') and $value.questionDetails.external_audio_id)}
											{assign var="clsNoLeftBgPadngMrgn" value=""}
											<div class="clsUserUploaded clsNoLeftBgPadngMrgn">
												{if ($CFG.admin.attachments_questions.allowed and $value.questionDetails.has_attachment)}
													<a id="{$value.questionDetails.img_id}" href="{$value.questionDetails.attachment_path}" onclick="return displayImageGallery('{$value.questionDetails.img_id}');">
													<img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/icon-qusimage.gif" /></a>
													<img src="{$value.questionDetails.image_large_path}" alt="" style="display: none;" />
												{/if}
												{if chkIsAudioAllowed('question') and $value.questionDetails.audio_id}
													<a id="{$value.questionDetails.audio_on_click}" href="{$value.questionDetails.audio_url}" onClick="{$myobj->getBrowser($value.questionDetails.audio_on_click)}">
													<img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/icon-qusaudio.gif" /></a>
												{/if}
												{if chkIsVideoAllowed('question') and $value.questionDetails.video_id}
													<a id="{$value.questionDetails.video_on_click}" href="{$value.questionDetails.video_url}" onClick="{$myobj->getBrowser($value.questionDetails.video_on_click)}">
													<img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/icon-qusvideo.gif" /></a>
												{/if}
												{if chkExternalVideoAllowed('question') and $value.questionDetails.external_video_id}
				                                	<a id="{$value.questionDetails.ext_ans_view_video.on_click}" href="{$value.questionDetails.ext_ans_view_video.url}" onClick="{$myobj->getBrowser($value.questionDetails.ext_ans_view_video.on_click)}"><img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/icon-externalvideo.gif" alt="{$LANG.external_video_available}" title="{$LANG.external_video_available}" /></a>
				                            	{/if}
				                            	{if chkExternalAudioAllowed('question') and $value.questionDetails.external_audio_id}
				                                	<a id="{$value.questionDetails.ext_ans_view_audio.on_click}" href="{$value.questionDetails.ext_ans_view_audio.url}" onClick="{$myobj->getBrowser($value.questionDetails.ext_ans_view_audio.on_click)}"><img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/icon-externalaudio.gif" alt="{$LANG.external_video_available}" title="{$LANG.external_video_available}" /></a>
				                            	{/if}
											</div>
										{/if}
										<div class="clsUserLinkViews {$clsNoLeftBgPadngMrgn}"><b>{$value.questionDetails.total_views} </b> {$value.views_plural}</div>
										<div class="clsUserLinkDate">{$myobj->getTimeDiffernceFormat($value.questionDetails.date_asked)}</div>
										{if $value.questionDetails.is_open and $value.questionDetails.user_id == $CFG.user.user_id}

										{elseif $value.questionDetails.is_open and !$value.questionDetails.total_answer}
											<div class="clsFirstPerson"><a href="{$value.questionDetails.qLink}">{$LANG.be_the_first_one}</a></div>
										{elseif $value.questionDetails.is_open and $value.questionDetails.total_answer}
											<div class="clsShareAnswer"><a href="{$value.questionDetails.qLink}">{$LANG.common_share_your_answer}</a></div>
										{else}
											<div class="clsIndexResolved">{$LANG.common_resolved}</div>
										{/if}
									</div>
	                            </div>
	                            <div class="clsAnswerCount">
										<p><span>{$value.questionDetails.total_answer}</span> {$value.answer_plural}</p>
	                            </div>
                              </div>
                            </div>
                            {/foreach}
                            {if $myobj->form_answer_details.displayAnswerDetails.displayAnsweredQuestions.limit_chk}
                            <p class="clsMoreLink"><a href="{$myobj->form_answer_details.displayAnswerDetails.displayAnsweredQuestions.questions_url}">{$LANG.common_more}</a></p>
                            {/if} </div>
                          {else}
                          <div class="clsNoRecords">
                            <p>{$LANG.myanswers_no_answered_question}</p>
                          </div>
                          {/if} </div>
                      </div>
                      <div id="selAskedQuestions" class="clsCommonIndexSection" style="display:none;"> </div>
                      {if  $CFG.admin.favorite.allowed}
                      <div id="selFavoriteQuestions" class="clsCommonIndexSection" style="display:none;"> </div>
                      {/if}

                      {if  chkIsAllowedModule(array('forums'))}
                      <div id="selForums" class="clsCommonIndexSection" style="display:none;"> </div>
                      {/if}

                      {if  chkIsAllowedModule(array('blog'))}
                      <div id="selBlogs" class="clsCommonIndexSection" style="display:none;"> </div>
                      {/if} </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <!--end of rounded corners-->
    </div>
    {if $CFG.admin.subscribe.tags || $CFG.admin.subscribe.users || $CFG.admin.subscribe.forums}
    <div class="clsCommonIndexRoundedCorner">
	 <div class="clsQuestionsLink clsClearfix">
                    	<ul class="clsProfileNameLeft">
                          <li class="clsSubscribeName"> {$myobj->form_answer_details.displayAnswerDetails.display_username} </li>
					   	</ul>
					  	<ul class="clsProfileNameRight">
                          {if $CFG.admin.subscribe.tags}
                          	<li id="selSubscribedTagsLI" class="clsLeftActiveQuestionsLink"> <span id="selSubscribedTagsSPAN" class="clsRightActiveQuestionsLink"> <a id="selSubscribedTagsA" class="clsMiddleActiveQuestionsLink" onclick="hideBlocks({$myobj->form_answer_details.displayAnswerDetails.hide_arr});showBlocks('selSubscribedTags'); toggleNavBar(); return false;" href="{$myobj->getCurrentUrl('true')}"> {$LANG.common_subscribed_tag}</a> </span> </li>
                          {/if}

                          {if $CFG.admin.subscribe.users}
                          	{if !$myobj->form_answer_details.displayAnswerDetails.userSubscribeStyle}
                          		<li id="selSubscribedUsersLI" class="clsLeftActiveQuestionsLink"> <span id="selSubscribedUsersSPAN" class="clsRightActiveQuestionsLink"> <a id="selSubscribedUsersA" class="clsMiddleActiveQuestionsLink" onclick="hideBlocks({$myobj->form_answer_details.displayAnswerDetails.hide_arr1});showBlocks('selSubscribedUsers'); toggleNavBar(); return false;" href="{$myobj->getCurrentUrl('true')}"> {$LANG.common_subscribed_user} </a> </span> </li>
                          	{else}
                          		<li id="selSubscribedUsersLI" class="clsLeftInActiveQuestionsLink"> <span id="selSubscribedUsersSPAN" class="clsRightInActiveQuestionsLink"> <a id="selSubscribedUsersA" class="clsMiddleInActiveQuestionsLink" onclick="hideBlocks({$myobj->form_answer_details.displayAnswerDetails.hide_arr1});showBlocks('selSubscribedUsers'); updateContent('selSubscribedUsers');  return false;" href="{$myobj->getCurrentUrl('true')}"> {$LANG.common_subscribed_user} </a> </span> </li>
                          	{/if}
                          {/if}
                          {if chkIsAllowedModule(array('forums')) && $CFG.admin.subscribe.forums}
                          	{if !$myobj->form_answer_details.displayAnswerDetails.userSubscribeStyle}
                          		<li id="selSubscribedForumsLI" class="clsLeftActiveQuestionsLink"> <span id="selSubscribedForumsSPAN" class="clsRightActiveQuestionsLink"> <a id="selSubscribedForumsA" class="clsMiddleActiveQuestionsLink" onclick="hideBlocks('selSubscribedUsers','selSubscribedTags');showBlocks('selSubscribedForums'); toggleNavBar(); return false;" href="{$myobj->getCurrentUrl('true')}"> {$LANG.common_subscribed_forum} </a> </span> </li>
                          	{else}
                          		<li id="selSubscribedForumsLI" class="clsLeftInActiveQuestionsLink"> <span id="selSubscribedForumsSPAN" class="clsRightInActiveQuestionsLink"> <a id="selSubscribedForumsA" class="clsMiddleInActiveQuestionsLink" onclick="hideBlocks('selSubscribedUsers','selSubscribedTags');showBlocks('selSubscribedForums'); updateContent('selSubscribedForums'); return false;" href="{$myobj->getCurrentUrl('true')}"> {$LANG.common_subscribed_forum} </a> </span> </li>
                          	{/if}
                          {/if}
                        </ul>
                      </div>
      <!--rounded corners-->
      <div class="lbindex">
        <div class="rbindex">
          <div class="bbindex">
            <div class="blcindex">
              <div class="brcindex">
                <div class="tbindex">
                  <div class="tlcindex">
                    <div class="trcindex">

                      {if $CFG.admin.subscribe.tags}
                      <div id="selSubscribedTags" class="clsCommonIndexSection">
                        <div id="selWidgetRecentQuestions" class="clsSideBarSections">
                          {if $myobj->form_answer_details.displayAnswerDetails.displaySubscribedTags.RecordCount}
                              <div class="clsSubscribedTags clsSideBarContents">
                                  {foreach key=inc item=value from=$myobj->form_answer_details.displayAnswerDetails.displaySubscribedTags.row} <span class="{$value.class}"> <a href="{$value.url}" {$value.fontSizeClass} > {$value.tag} </a> </span>
                                  {/foreach}
                                  {if $myobj->form_answer_details.displayAnswerDetails.displaySubscribedTags.cntTagsGTlimit}
                                <p class="clsMoreLink"> <a href="{$myobj->form_answer_details.displayAnswerDetails.displaySubscribedTags.subscribedtags}"> {$LANG.common_more} </a> </p>
                                  {/if}
                               </div>
                          {else}
                              <div class="clsNoRecords">
                                <p>{$LANG.myanswers_no_subscribed_tags}</p>
                              </div>
                          {/if}
                        </div>
                      </div>
                      {/if}

                      {if $CFG.admin.subscribe.users}
                      <div id="selSubscribedUsers" class="clsCommonIndexSection" {$myobj->form_answer_details.displayAnswerDetails.userSubscribeStyle}> </div>
                      {/if}

                      {if {$CFG.admin.subscribe.forums}
                      <div id="selSubscribedForums" class="clsCommonIndexSection" {$myobj->form_answer_details.displayAnswerDetails.forumSubscribeStyle}> </div>
                      {/if}

                      {/if} </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <!--end of rounded corners-->
    </div>
    {/if} </div>
  {/if}
</div>
