<div id="selForums" class="clsForums">
	<h2 class="clsForumTitle">{$LANG.forums_title_index}</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('selFormForums');" />
						<input type="hidden" name="forum_ids" id="forum_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_search')}
			<div id="selShowSearchGroup">
			<form name="form_search" id="form_search" method="post" action="{$CFG.site.relative_url}forums.php" autocomplete="off">
				<table border="0" cellspacing="0" summary="{$LANG.forumsearch_tbl_summary}">
					<tr>
						<td class="{$myobj->getCSSFormLabelCellClass('srch_title')}"><label for="srch_title">{$LANG.forumsearch_search_title}</label></td>
						<td class="{$myobj->getCSSFormFieldCellClass('srch_title')}"><input type="text" class="clsTextBox" name="srch_title" id="srch_title" value="{$myobj->getFormField('srch_title')}" tabindex="{smartyTabIndex}"/>{$myobj->getFormFieldElementErrorTip('srch_title')}</td>
					</tr>
					<tr>
						<td class="{$myobj->getCSSFormLabelCellClass('srch_topic')}"><label for="srch_topic">{$LANG.forumsearch_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_topic_cnt')}"><label for="srch_topic_cnt">{$LANG.forumsearch_search_topics_count}</label></td>
						<td class="{$myobj->getCSSFormFieldCellClass('srch_topic_cnt')}">
							<select name="topic_condition" id="topic_condition" tabindex="{smartyTabIndex}" >
								{$myobj->generalPopulateArray($myobj->populateConditionOperators_arr, $myobj->getFormField('topic_condition'))}
							</select>

							<input type="text" class="clsTextBox clsMediumTextBox" name="srch_topic_cnt" id="srch_topic_cnt" value="{$myobj->getFormField('srch_topic_cnt')}" tabindex="{smartyTabIndex}"/>{$myobj->getFormFieldElementErrorTip('srch_topic_cnt')}
						</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.forumsearch_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 clsMediumTextBox" name="srch_response_cnt" id="srch_response_cnt" value="{$myobj->getFormField('srch_response_cnt')}" tabindex="{smartyTabIndex}"/>	{$myobj->getFormFieldElementErrorTip('srch_response_cnt')}
						</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_status')}"><label for="status_active">{$LANG.common_status}</label></td>
						<td class="{$myobj->getCSSFormFieldCellClass('srch_status')}">
							<input type="checkbox" class="clsCheckRadio" name="status_active" id="status_active" {if $myobj->getFormField('status_active')} 'CHECKED' {/if} value="Active" tabindex="{smartyTabIndex}" />
							<label for="status_active">{$LANG.common_display_active}</label>&nbsp;&nbsp;&nbsp;
							<input type="checkbox" class="clsCheckRadio" name="status_inactive" id="status_inactive" {if $myobj->getFormField('status_inactive')} 'CHECKED' {/if} value="Inactive" tabindex="{smartyTabIndex}" />
							<label for="status_inactive">{$LANG.common_display_inactive}</label>&nbsp;&nbsp;&nbsp;
						</td>
					</tr>
					<tr class="clsFormRow">
					  <td class="{$myobj->getCSSFormLabelCellClass('srch_date_added')}">
						<label for="srch_date_added">{$LANG.forumsearch_search_date}</label>{$myobj->ShowHelpTip('forum_search_date', 'srch_date_added')}
					  </td>
					  <td class="{$myobj->getCSSFormFieldCellClass('srch_date_added')}">
						<input type="text" class="clsTextBox" name="srch_date_added" id="srch_date_added" tabindex="{smartyTabIndex}" value="{$myobj->getFormField('srch_date_added')}" readonly />{$myobj->getFormFieldElementErrorTip('srch_date_added')}
						<button class="clsSubmitButton" type="reset" id="f_trigger_start_date">...</button>
						{$myobj->populateCalendar('srch_date_added', 'f_trigger_start_date', true)} </td>
					</tr>
					<tr>
					<td></td>
						<td class="{$myobj->getCSSFormFieldCellClass('forumsearch_search')}">
							<input type="submit" class="clsSubmitButton" value="{$LANG.search}" id="forumsearch_search" name="forumsearch_search" tabindex="{smartyTabIndex}"/>
							<input type="submit" class="clsSubmitButton" value="{$LANG.common_reset}" id="forums_reset" name="forums_reset" tabindex="{smartyTabIndex}"/>
						</td>
					</tr>
				</table>
				{$myobj->populateHiddenFormFields($myobj->form_search.hidden_arr)}
				</form>
			</div>
		{/if}
		{if $myobj->isShowPageBlock('form_show_forums')}
			<div id="selShowForumTitles">
				{if $myobj->isResultsFound()}
					{if $myobj->getFormField('srch') eq 'mosttopics'}
						<h2>{$LANG.forums_most_topics_index}</h2>
					{/if}
					{if $myobj->getFormField('srch') eq 'mostresponses'}
						<h2>{$LANG.forums_most_responses_index}</h2>
					{/if}
					{if $CFG.admin.navigation.top}
						{include file='pagination.tpl'}
					{/if}
					<form name="selFormForums" id="selFormForums" method="post" action="{$myobj->getCurrentUrl()}">
						<table border="1" cellspacing="0" summary="{$LANG.forums_tbl_summary}" class="clsForumTbl">
							<tr>
								<th>&nbsp;<input type="checkbox" class="clsCheckRadio" name="check_all" id="check_all" tabindex="{smartyTabIndex}" onclick="CheckAll(document.selFormForums.name, document.selFormForums.check_all.name)"/></th>
								<th  class="clsForums{$myobj->getOrderCss('forum_title')}"><a href="#" onclick="return changeOrderbyElements('selFormForums','forum_title')">{$LANG.forums_title}</a></th>
								<th>{$LANG.forum_topic_info}</th>
								<th  class="clsCenter clsForums{$myobj->getOrderCss('forum_status')}"><a href="#" onclick="return changeOrderbyElements('selFormForums','forum_status')">{$LANG.common_status}</a></th>
								<th  class="clsCenter clsForums{$myobj->getOrderCss('date_added')}"><a href="#" onclick="return changeOrderbyElements('selFormForums','date_added')">{$LANG.forums_date_created}</a></th>
								<th>{$LANG.forums_last_post}</th>
								<th>{$LANG.forums_manage}</th>
							</tr>
						{foreach key=sftKey item=sftValue from=$myobj->form_show_forums.showForumTitles_arr}
							<tr>
								<td class="clsAlignCenter"><input type="checkbox" class="clsCheckRadio" name="forum_ids[]" value="{$sftValue.record.forum_id}" onClick="disableHeading('selFormForums');" tabindex="{smartyTabIndex}" {$sftValue.checkbox_checked} /></td>
								<td class="clsForumTitleDes">
									<h3><a href="forumsTopics.php?forum_id={$sftValue.record.forum_id}">
										{$sftValue.row_forum_title_manual}
									</a></h3>
									<p>
										{$sftValue.row_forum_description_manual}
									</p>
								</td>
								<td>
									<p>{$LANG.forums_topics} {$sftValue.record.total_topics}</p>
									<p>{$LANG.forums_admin_responses} {$sftValue.record.total_response}</p>
								</td>
								<td>
									<p>{$sftValue.record.forum_status}</p>
								</td>
								<td>
									<p>{$sftValue.record.date_added}</p>
								</td><td>
									{if isUserImageAllowed()}
										{$myobj->displayForumUserSmallImage($sftValue.userDetails, false)}
									{/if}
									<p>{$sftValue.display_name_manual}</p>
								</td>
								<td>
									<p class="clsEdit">
										<a href="forumsAddTitle.php?forum_id={$sftValue.record.forum_id}">
											{$LANG.common_edit}
										</a>
									</p>
								</td>
							</tr>

						{/foreach}
						<tr>
							<td colspan="7" class="clsButtonAlignment {$myobj->getCSSFormFieldCellClass('action')}">
								<a href="#" id="{$myobj->form_show_forums.anchor}"></a>
								<select name="action" id="action" tabindex="{smartyTabIndex}">
									<option value="">{$LANG.common_select_action}</option>
									{$myobj->generalPopulateArray($myobj->form_show_forums.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('selFormForums', 'check_all', '{$LANG.forums_err_tip_select_titles}');if(multiCheckValue!='') getAction()" />
							</td>
						</tr>
						</table>
						{$myobj->populateHidden($myobj->form_show_forums.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>