<div id="selForumsTopicListAll" class="clsForums">
  <h2 class="clsForumTopic"><span>
  <a href="forums.php">{$LANG.forumlistall_title_index}</a>
  &nbsp;-&nbsp;
  {$myobj->forum_details_arr.forum_title}
  </span></h2>
  <div id="selMsgConfirm" class="clsPopupConfirmation" style="display:none;position:absolute;">
		<p id="confirmMessage"></p>
		<form name="msgConfirmform" id="msgConfirmform" method="post" action="{$myobj->getCurrentUrl()}">
			<table summary="{$LANG.forums_confirm_tbl_summary}">
				<tr>
					<td>
						<input type="submit" class="clsSubmitButton" name="confirm_action" id="confirm_action" tabindex="{smartyTabIndex}" value="{$LANG.common_confirm}" />
						&nbsp;
						<input type="button" class="clsCancelButton" name="cancel" id="cancel" tabindex="{smartyTabIndex}" value="{$LANG.common_cancel}"  onClick="return hideAllBlocks('selFormShowTopics');" />
						<input type="hidden" name="topic_ids" id="topic_ids" />
						<input type="hidden" name="action" id="action" />
						{$myobj->populateHidden($myobj->hidden_arr)}
					</td>
				</tr>
			</table>
		</form>
	</div>
    <div id="selLeftNavigation">
	{include file='information.tpl'}
	{if $myobj->isShowPageBlock('form_forum_title')}
    	<div id="selShowGroupTitle">
         <div class="clsForumBackIndexTopic"> <p class="clsForumBackIndex" id="selBackToForum">
            <a href="forums.php"> {$LANG.forumlistall_back_index}</a>
          </p>
          <p class="clsForumPostTopic" id="post"><a href="forumsTopicCreate.php?forum_id={$myobj->forum_details_arr.forum_id}"> {$LANG.forumstopics_post_topic} </a> </p></div>
        </div>
	{/if}
	{if $myobj->isShowPageBlock('form_search')}
		<div id="selShowSearchGroup">
			<form name="form_search" id="selFormSearch" method="post" action="{$CFG.site.relative_url}forumsTopics.php?forum_id={$myobj->getFormField('forum_id')}">
				<table cellspacing="0" summary="{$LANG.topicsearch_tbl_summary}">
					<tr>
						<td class="{$myobj->getCSSFormLabelCellClass('srch_topic')}"><label for="srch_topic">{$LANG.topicsearch_search_topics}</label></td>
						<td class="{$myobj->getCSSFormFieldCellClass('srch_topic')}"><input type="text" class="clsTextBox" name="srch_topic" id="srch_topic" value="{$myobj->getFormField('srch_topic')}" tabindex="{smartyTabIndex}"/></td>
					</tr>
					<tr>
						<td class="{$myobj->getCSSFormLabelCellClass('srch_response')}"><label for="srch_response">{$LANG.common_total_response}</label></td>
						<td class="{$myobj->getCSSFormFieldCellClass('srch_response')}"><input type="text" class="clsTextBox" name="srch_response" id="srch_response" value="{$myobj->getFormField('srch_response')}" tabindex="{smartyTabIndex}"/></td>
					</tr>
					<tr>
						<td class="{$myobj->getCSSFormLabelCellClass('srch_response_cnt')}"><label for="srch_response_cnt">{$LANG.topicsearch_search_response_count}</label></td>
						<td class="{$myobj->getCSSFormFieldCellClass('srch_response_cnt')}">
							<select name="response_condition" id="response_condition" tabindex="{smartyTabIndex}" >
								{$myobj->generalPopulateArray($myobj->populateConditionOperators_arr, $myobj->getFormField('response_condition'))}
							</select>
							<input type="text" class="clsTextBox" name="srch_response_cnt" id="srch_response_cnt" value="{$myobj->getFormField('srch_response_cnt')}" tabindex="{smartyTabIndex}"/>
						</td>
					</tr>
					<tr>
						<td class="{$myobj->getCSSFormLabelCellClass('srch_views')}"><label for="srch_views">{$LANG.common_total_views}</label></td>
						<td class="{$myobj->getCSSFormFieldCellClass('srch_views')}">
							<select name="views_condition" id="views_condition" tabindex="{smartyTabIndex}" >
								{$myobj->generalPopulateArray($myobj->populateConditionOperators_arr, $myobj->getFormField('views_condition'))}
							</select>
							<input type="text" class="clsTextBox" name="srch_views" id="srch_views" value="{$myobj->getFormField('srch_views')}" tabindex="{smartyTabIndex}"/>
						</td>
					</tr>
					<tr>
						<td class="{$myobj->getCSSFormLabelCellClass('srch_uname')}"><label for="srch_uname">{$LANG.login_user_name}</label></td>
						<td class="{$myobj->getCSSFormFieldCellClass('srch_uname')}"><input type="text" class="clsTextBox" name="srch_uname" id="srch_uname" value="{$myobj->getFormField('srch_uname')}" tabindex="{smartyTabIndex}"/></td>
					</tr>
					<tr>
						<td class="{$myobj->getCSSFormLabelCellClass('srch_date_from')}"><label for="srch_date">{$LANG.topicsearch_search_date_created_from}</label></td>
						<td class="{$myobj->getCSSFormFieldCellClass('srch_date_from')}">
							<select name="srch_date" id="srch_date" tabindex="{smartyTabIndex}">
								<option value="">{$LANG.topicsearch_search_date}</option>
								{$myobj->populateBWNumbers(1, 31, $myobj->getFormField('srch_date'))}
							</select>
							<select name="srch_month" id="srch_month" tabindex="{smartyTabIndex}">
								<option value="">{$LANG.common_month}</option>
								{$myobj->populateMonthsList($myobj->getFormField('srch_month'))}
							</select>
							<select name="srch_year" id="srch_year" tabindex="{smartyTabIndex}">
								<option value="">{$LANG.common_year}</option>
								{$myobj->populateBWNumbers(1920, $myobj->current_year, $myobj->getFormField('srch_year'))}
							</select>
							{$myobj->getFormFieldElementErrorTip('srch_date_from')}
						</td>
					</tr>
					<tr>
						<td class="{$myobj->getCSSFormLabelCellClass('srch_date_to')}"><label for="srch_todate">{$LANG.topicsearch_search_date_created_to}</label></td>
						<td class="{$myobj->getCSSFormFieldCellClass('srch_date_to')}">
							<select name="srch_todate" id="srch_todate" tabindex="{smartyTabIndex}">
								<option value="">{$LANG.topicsearch_search_date}</option>
								{$myobj->populateBWNumbers(1, 31, $myobj->getFormField('srch_todate'))}
							</select>
							<select name="srch_tomonth" id="srch_tomonth" tabindex="{smartyTabIndex}">
								<option value="">{$LANG.common_month}</option>
								{$myobj->populateMonthsList($myobj->getFormField('srch_tomonth'))}
							</select>
							<select name="srch_toyear" id="srch_toyear" tabindex="{smartyTabIndex}">
								<option value="">{$LANG.common_year}</option>
								{$myobj->populateBWNumbers(1920, $myobj->current_year, $myobj->getFormField('srch_toyear'))}
							</select>
							{$myobj->getFormFieldElementErrorTip('srch_date_to')}
						</td>
					</tr>
					<tr>
						<td></td>
						<td class="{$myobj->getCSSFormFieldCellClass('topicsearch_search')}" ><input type="submit" class="clsSubmitButton" value="{$LANG.search}" id="topicsearch_search" name="topicsearch_search" tabindex="{smartyTabIndex}"/></td>
					</tr>
				</table>
				<input type="hidden" name="forum_id" value="{$myobj->getFormField('forum_id')}" />
				</form>
		</div>
	{/if}
	{if $myobj->isShowPageBlock('form_show_topics')}
		<div id="selShowForumTopics">
			{if $myobj->isResultsFound()}
				{if $CFG.admin.navigation.top}
					{include file='pagination.tpl'}
				{/if}
				  <form name="selFormShowTopics" id="selFormShowTopics" method="post" action="{$myobj->getCurrentUrl()}" autocomplete="off">
						<table border="1" cellspacing="0" summary="{$LANG.forumstopics_tbl_summary}">
						  <tr>
							<th>&nbsp;<input type="checkbox" class="clsCheckRadio" name="checkall" id="checkall" tabindex="{smartyTabIndex}" onclick="selectAll(this.form);"/></th>
							<th class="clsForums{$myobj->getOrderCss('display_name')}"><a href="#" onclick="return changeOrderbyElements('selFormShowTopics','u.display_name')">{$LANG.forums_topic_created}</a></th>
							<th class="clsForums{$myobj->getOrderCss('forum_topic')}"><a href="#" onclick="return changeOrderbyElements('selFormShowTopics','forum_topic')">{$LANG.forumstopics_topic}</a></th>
							<th>{$LANG.forum_topic_info}</th>
							<th class="clsForums{$myobj->getOrderCss('topic_status')}"><a href="#" onclick="return changeOrderbyElements('selFormShowTopics','topic_status')">{$LANG.common_status}</a></th>
							<th class="clsForums{$myobj->getOrderCss('topic_status')}"><a href="#" onclick="return changeOrderbyElements('selFormShowTopics','abuse_count')">{$LANG.common_abuse_count}</a></th>
							<th>{$LANG.forumstopics_last_responsed}</th>
							<th>{$LANG.forumstopics_manage}</th>
						  </tr>
						{foreach key=sftKey item=sftValue from=$myobj->form_show_topics.showForumTopics_arr}
							<tr>
								<td class="clsAlignCenter"><input type="checkbox" class="clsCheckRadio" name="topic_ids[]" onclick="disableHeading('selFormShowTopics');" value="{$sftValue.record.topic_id}" tabindex="{smartyTabIndex}" {$sftValue.checkbox_checked}/></td>
								<td>
									{if isUserImageAllowed()}
										{*$myobj->displayForumUserSmallImage($sftValue.topicUserDetails, false)*}
									{/if}
									<p><a href="{$CFG.site.url}admin/viewMembers.php?uid={$sftValue.record.user_id}">{$sftValue.topicUserDetails_name_manual}</a></p>
								</td>
								<td><p><a href="forumsResponses.php?forum_id={$myobj->forum_details_arr.forum_id}&topic_id={$sftValue.record.topic_id}"> {$sftValue.row_forum_topic_manual}</a></p>
								<p> {$sftValue.record.date_added} </p>
								<p>
									{if $sftValue.record.rating_count and $sftValue.record.rating_total}
											{section name=pri1 loop=$sftValue.average_rating start=1 step=1}
												<img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}}/images/icon-ratehover.gif" />
											{/section}

											{section name=pri2 loop=10 start=$sftValue.average_rating step=1}
												<img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/images/icon-rate.gif" />
											{/section}
									{/if}
								</p>
								</td>
								<td>
									<p>{$LANG.forums_responses} {$sftValue.record.total_response}</p>
									<p>{$LANG.forums_views} {$sftValue.record.total_views}</p>
								</td>
								<td>{$sftValue.record.topic_status}</td>
								<td>
									<a id="selAbuseDetails{$sftValue.record.topic_id}" href="manageAbuseContent.php?forum_id={$myobj->forum_details_arr.forum_id}&amp;topic_id={$sftValue.record.topic_id}" onclick="return openAnovaAjaxWindow('selAbuseDetails{$sftValue.record.topic_id}');">{$sftValue.record.abuse_count}</a>
								</td>
								<td>
									{if isUserImageAllowed()}
										{*$myobj->displayForumUserSmallImage($sftValue.lastPostUserDetails, false)*}
									{/if}
									<p><a href="{$CFG.site.url}admin/viewMembers.php?uid={$sftValue.record.user_id}">{$sftValue.lastPostUserDetails_name_manual}</a></p>
								</td>
								<td><p><a href="forumsTopicCreate.php?forum_id={$myobj->forum_details_arr.forum_id}&topic_id={$sftValue.record.topic_id}">{$LANG.common_edit}</a></p></td>
							</tr>
					   {/foreach}
							<tr>

								<td  colspan="8" class="clsButtonAlignment {$myobj->getCSSFormFieldCellClass('action')}">
									<a href="#" id="{$myobj->form_show_topics.anchor}"></a>
									<select name="action" id="action" tabindex="{smartyTabIndex}">
										<option value="">{$LANG.common_select_action}</option>
										{$myobj->generalPopulateArray($myobj->form_show_topics.action_arr, $myobj->getFormField('action'))}
									</select>
									&nbsp;&nbsp;
									<input type="button" class="clsSubmitButton" name="action_button" id="action_button" value="{$LANG.common_submit}" onClick="getMultiCheckBoxValue('selFormShowTopics', 'checkall', '{$LANG.forums_err_tip_select_topics}');if(multiCheckValue!='')getAction()" />
								</td>
							</tr>
						</table>
					{$myobj->populateHidden($myobj->form_show_topics.hidden_arr)}
				  </form>
				{if $CFG.admin.navigation.bottom}
					{include file='pagination.tpl'}
				{/if}
			{else}
					<div id="selMsgAlert">
						<p>{$LANG.common_no_records_found}</p>
					</div>
			{/if}
		</div>
	{/if}
</div>
</div>