{foreach key=dbrKey item=dbrValue from=$displayDebateResponse_arr}
	<div class="clsDebatesBorder"><div id="{$dbrValue.selReplyIdComm}" class="clsAnswers clsDebates">
		<a id="{$dbrValue.anchor}" href=""></a>
		{if $dbrValue.record.status =='Active' || ($CFG.user.user_id == $myobj->debate_details.user_id AND $dbrValue.record.status == 'ToActivate')}
			<div class="clsClearfix clsDebateEndDetails {if $dbrKey eq 1}clsNoBorder{/if} {if $dbrValue.record.response_id == $myobj->debate_details.best_response_id}clsBestResponses{/if}">
				{if $dbrValue.record.response_id == $myobj->debate_details.best_response_id}
	                <p class="clsBold">{$LANG.debatesResponse_best_response}</p>
	            {/if}
				<div class="clsAgainstAns">
					<p class="clsQuestionDesc">{$dbrValue.row_response_manual}</p>
				</div>
				<div class="clsClearfix clsUserSubLinks">
					<div class="clsNoLeftBgPadngMrgn clsUserLinkBy">{$LANG.debatesResponse_by}</div>
					{if isUserImageAllowed()}
						<div class="clsUserLinkImage">
                        	<span class="clsImageBorder">{$myobj->displayProfileImage($dbrValue.record, 'tiny', false, false)} </span>
                        </div>
					{/if}
					<div class="clsUserLinkName clsNoLeftBgPadngMrgn">
						<a href="{$dbrValue.myanswers.url}">{$dbrValue.row_answered_by_manual}</a>
					</div>
					<div class="clsUserLinkDate">{$myobj->getTimeDiffernceFormat($dbrValue.record.date_answered)}</div>
				</div>
				<ul class="clsAgainstDisplayLinks">
                    {if $CFG.user.user_id == $myobj->debate_details.user_id AND $dbrValue.record.status == 'ToActivate' AND $myobj->debate_details.is_open}
                        <li class="clsNoBorder clsBlogInfoTitle clsAgainstNoBg"><a href="{$dbrValue.debates_response.url}" onClick="doActionOnAnswer('publishanswer', '{$dbrValue.anchor}', '{$LANG.publish_response_confirm_message}', '{$dbrValue.record.response_id}'); return false;">{$LANG.debatesResponse_publish_response}</a></lin>
                    {/if}
					{if $dbrValue.record.status == 'Active'}
						<a href="#" id="{$dbrValue.anchor}"></a>
						{if $myobj->isDebatesOpen() AND $CFG.admin.abuse_responses.allowed AND $dbrValue.record.user_id != $CFG.user.user_id}
                            {if isMember()}
								{if $myobj->chkIsdebateResponseAbusedAlready($dbrValue.record.response_id)}
                                    <li class="clsBlogInfoTitle clsAgainstNoBg">{$LANG.already_abused_debateResponse}</li>
                                {else}
									<li class="clsBlogInfoTitle clsAgainstNoBg"><a href="{$dbrValue.abuse_response.url}" onClick="abuseContent('abuseDebateResponse', '{$dbrValue.record.response_id}', '{$dbrValue.anchor}', '{$LANG.confirm_abuse_debate_response_message}'); return false;">{$LANG.debatesResponse_report_abuse}</a></li>
                                {/if}
                            {else}
                                <li class="clsBlogInfoTitle clsAgainstNoBg"><a href="{$dbrValue.abuse_response.url}" class="lightwindow">{$LANG.debatesResponse_report_abuse}</a></li>
                        	{/if}
						{/if}
                    {if $CFG.admin.response.delete AND $myobj->isDebatesOpen() AND ($dbrValue.record.user_id == $CFG.user.user_id OR $myobj->debate_details.user_id == $CFG.user.user_id)}
                      	<li class="clsBlogInfoTitle {if $dbrValue.record.user_id == $CFG.user.user_id}clsAgainstNoBg{/if}">  <a href="{$dbrValue.debate_response_delete.url}" onClick="doActionOnDebateResponse('deleteResponse', '{$dbrValue.anchor}', '{$LANG.confirm_delete_message_response}', '{$dbrValue.record.response_id}'); return false;">{$LANG.debatesResponse_delete_debate}</a></li>
                    {/if}
                    {if $CFG.admin.response.delete AND $myobj->isDebatesOpen() AND ($dbrValue.record.user_id == $CFG.user.user_id || $myobj->debate_details.user_id == $CFG.user.user_id) AND ($CFG.admin.best_responses.allowed AND $CFG.user.user_id == $myobj->debate_details.user_id AND $myobj->isDebatesOpen() AND $myobj->debate_details.best_response_id == 0 AND $dbrValue.record.status == 'Active') AND (!$myobj->chkIsdebateResponseAbusedAlready($dbrValue.record.response_id))}

                    {/if}
                    {if $CFG.admin.best_responses.allowed AND $CFG.user.user_id == $myobj->debate_details.user_id AND $myobj->isDebatesOpen() AND $myobj->debate_details.best_response_id == 0 AND $dbrValue.record.status == 'Active' AND (!$myobj->chkIsdebateResponseAbusedAlready($dbrValue.record.response_id))}
                       <li class="clsBlogInfoTitle"> <a href="{$dbrValue.best_responses.url}" onClick="doActionOnAnswer('bestanswers', '{$dbrValue.anchor}', '{$LANG.debatesResponse_response_confirm_message}', '{$dbrValue.record.response_id}'); return false;">{$LANG.debatesResponse_best_response}</a></li>
                    {/if}
                    <!--start-->
                    {if isMember() AND $myobj->isDebatesOpen()}
                        <li class="clsBlogInfoTitle clsNoBorder" id="{$dbrValue.replySpanIDId}"><a href="{$dbrValue.debates_open.url}" onclick="ajaxUpdateDiv('{$dbrValue.debates_open.url}', '&amp;ajax_page=true&amp;showOptionToAnswer=1&amp;ans_id={$dbrValue.record.response_id}&amp;selReplyId={$dbrValue.selReplyId}&amp;type={$dbrValue.record.debate_type}', '{$dbrValue.selReplyId}'); return false;">{$LANG.debatesResponse_post_comment}</a></li>
                    {/if}
				</ul>
			</div>
			<div id="{$dbrValue.selReplyId}" class="clsDebateReplies">
				{if $myobj->hasReply($dbrValue.record.response_id)}
				<div class="clsClearfix clsDetailsComments">
					<div id="{$dbrValue.selViewReplyId}" class="clsViewReplies">{$myobj->fetchReply($dbrValue.record.response_id)}</div>
                </div>
				{/if}
			</div>
                <!--end-->
			{/if}
		{/if}
	</div>
</div>
{foreachelse}
	{$LANG.no_responses_found}
{/foreach}
