<div id="selListAll" class="clsPopularVideosContent">

	{include file='../general/information.tpl'}
	{if $myobj->isShowPageBlock('form_popular_video_audio')}
		{if $myobj->_popularVideoAudioCnt}
		<div class="clsClearfix">
	<h2 class="clsFloatleft">{$LANG.popular_page_title}</h2>
		   	{if $myobj->pagination_top}
	           <div class="clsFloatright"> {$myobj->pagination_top}</div>
            {/if}
		</div>
             <div class="clsCommonTopAnalystRoundedCorner clsIndexPopular">
  <!--rounded corners-->
       <div class="clsShadedBg">
  <div class="lbtopanalyst">
    <div class="rbtopanalyst">
      <div class="bbtopanalyst">
        <div class="blctopanalyst">
          <div class="brctopanalyst">
            <div class="tbtopanalyst">
              <div class="tlctopanalyst">
                <div class="trctopanalyst">
	        <table summary="{$LANG.popular_tbl_summary}" class="clsForumTbl">
                <tr>
                    <th>{$LANG.popular_videos_audios}</th>
                    <th>{$LANG.common_details}</th>
               </tr>
                {foreach key=dprKey item=dprValue from=$myobj->form_popular_video_audio.displayPopularRecords}
                	{if $dprValue.displayPopularVideoAudio_arr}
						<tr>
							<td class="clsVideoAudioImage"><p id="selImageBorder"><a id="{$dprValue.displayPopularVideoAudio_arr.popularId}" href="{$dprValue.displayPopularVideoAudio_arr.popularVideoAudioUrl}" onClick="{$myobj->getBrowser($dprValue.displayPopularVideoAudio_arr.popularId)}" ><img src="{$dprValue.displayPopularVideoAudio_arr.contentDetails.imgSrc}" /></a></p>
							</td>
							<td>
								<p>
									<span class="clsTotalAnswer">{$LANG.popular_added_by}</span>
									<span class="clsDetails"><a href="{$dprValue.displayPopularVideoAudio_arr.userDetails.uLink}">{$dprValue.displayPopularVideoAudio_arr.userDetails.display_name}</a></span>
								</p>


								{if $dprValue.record.type_for == 'Question'}

									<p>
										<span class="clsTotalAnswer">{$LANG.popular_for_question}</span>
										<span class="clsDetails">{$dprValue.displayPopularVideoAudio_arr.contentDetails.question_link}</span>
									</p>

								{elseif $dprValue.record.type_for == 'Answer'}

									<p>
										<span class="clsTotalAnswer">{$LANG.popular_for_answer}</span>
										<span class="clsDetails">{$dprValue.displayPopularVideoAudio_arr.contentDetails.answer_link}</span>
									</p>
									<p>
										<span class="clsTotalAnswer">{$LANG.popular_in_question}</span>
										<span class="clsDetails">{$dprValue.displayPopularVideoAudio_arr.contentDetails.question_link}</span>
									</p>

								{elseif $dprValue.record.type_for == 'Forumresponse'}

									<p>
										<span class="clsTotalAnswer">{$LANG.popular_for_forumresponse}</span>
										<span class="clsDetails">{$dprValue.displayPopularVideoAudio_arr.contentDetails.forumresponse_link}</span>
									</p>
									<p>
										<span class="clsTotalAnswer">{$LANG.popular_in_forum_topic}</span>
										<span class="clsDetails">{$dprValue.displayPopularVideoAudio_arr.contentDetails.forum_link}</span>
									</p>

								{elseif $dprValue.record.type_for == 'Blog'}

									<p>
										<span class="clsTotalAnswer">{$LANG.popular_for_blog}</span>
										<span class="clsDetails">{$dprValue.displayPopularVideoAudio_arr.contentDetails.blog_link}</span>
									</p>

								{elseif $dprValue.record.type_for == 'Blogcomment'}

									<p>
										<span class="clsTotalAnswer">{$LANG.popular_for_blogcomment}</span>
										<span class="clsDetails">{$dprValue.displayPopularVideoAudio_arr.contentDetails.blogcomment_link}</span>
									</p>
									<p>
										<span class="clsTotalAnswer">{$LANG.popular_in_blog}</span>
										<span class="clsDetails">{$dprValue.displayPopularVideoAudio_arr.contentDetails.blog_link}</span>
									</p>

								{elseif $dprValue.record.type_for == 'Product'}
									<p>
										<span class="clsTotalAnswer">{$LANG.popular_for_product}</span>
										<span class="clsDetails">{$dprValue.displayPopularVideoAudio_arr.contentDetails.product_link}</span>
									</p>
								{elseif $dprValue.record.type_for == 'Debate'}
									<p>
										<span class="clsTotalAnswer">{$LANG.popular_for_debate}</span>
										<span class="clsDetails">{$dprValue.displayPopularVideoAudio_arr.contentDetails.debate_link}</span>
									</p>

								{/if}



						<p>
							<span class="clsTotalAnswer">{$LANG.popular_added_on}</span>
							<span class="clsDetails clsTimeDaysColor">{$myobj->getTimeDiffernceFormat($dprValue.record.date_added)}</span>
						</p>
						<p>
							<span class="clsTotalAnswer"> {$LANG.common_total_views}</span>
							<span class="clsDetails">{$dprValue.record.view_count}</span>
						</p>
					</td>
			   </tr>
                    {/if}

                {/foreach}

			</table>
                                    </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
  </div>
  <!--end of rounded corners-->
</div>
            {if $myobj->pagination_bottom}
				{$myobj->pagination_bottom}
			{/if}
       {else}
            <div id="selMsgError">
                <p>{$LANG.popular_no_records}</p>
            </div>

        {/if}
	{/if}
</div>