<div id="selreplyBugs">
	{include file='../general/box.tpl' opt='data_top'}
  	<h2>{$LANG.replybugs_title}</h2>
   	<div class="clsCommonInsideContent">
  		{include file='../general/information.tpl'}
  		{ if $myobj->isShowPageBlock('block_replyBugs')}
			<form name="form_replybugs_show" id="form_replybugs_show" method="post" action="{$myobj->getCurrentUrl(false)}">
			<!-- clsFormSection - starts here -->
				<table class="clsFormTbl">
				<tr class="clsFormRow">
					<td class="{$myobj->getCSSFormLabelCellClass('message')}">
						<label for="message">{$LANG.replybugs_message}{$myobj->displayCompulsoryIcon()}</label>
					</td>
					<td class="{$myobj->getCSSFormFieldCellClass('message')}">
						<textarea name="message" id="message" tabindex="{smartyTabIndex}" rows="4" cols="45">{$myobj->getFormField('message')}</textarea>
						{$myobj->getFormFieldElementErrorTip('message')}
					</td>
				</tr>
				<tr class="clsFormRow">
					<td></td>
					<td class="{$myobj->getCSSFormFieldCellClass('default')}">
						{$myobj->populateHidden($myobj->block_replyBugs.hidden_arr)}
						<input type="submit" class="clsSubmitButton" name="submit_replyBugs" id="submit_replyBugs" value="{$LANG.replybugs_submit}" tabindex="{smartyTabIndex}" />
						<input type="submit" class="clsCancelButton" name="submit_cancel" id="submit_cancel" value="{$LANG.replybugs_cancel}" tabindex="{smartyTabIndex}" />
					</td>
				</tr>
				</table>
			<!-- clsFormSection - ends here -->
			</form>
		{/if}
  		{ if $myobj->isShowPageBlock('block_bugs_list')}
			<form name="selListStaticForm" id="selListStaticForm" method="post" action="{$myobj->getCurrentUrl(false)}">
				{$myobj->populateHidden($myobj->block_sel_page_list.hidden_arr)}
				{if $CFG.admin.navigation.top}
					{include file='../general/pagination.tpl'}
				{/if}
	  			<!-- clsDataDisplaySection - starts here -->
				{foreach key=pblkey item=pblvalue from=$myobj->block_sel_page_list.populateBugsList}
					<table class="clsDataRow {$myobj->getCSSRowClass()}">
						<tr>
							<td>
								<p><span class="clsBold">{$LANG.common_date_added}</span> : {$pblvalue.record.date_added}</p>
								<p>{$pblvalue.record.bug_subject}</p>
								<p>{$pblvalue.record.bug_site}</p>
								<p>{$pblvalue.record.bug_content}</p>
								<p class="clsBugReplyLink"><a href="{$pblvalue.reply_url}">{$LANG.replybugs_reply}</a></p>
								{if $pblvalue.populateBugReplyList}
								<div>
									{foreach key=pbrlkey item=pbrlvalue from=$pblvalue.populateBugReplyList}
									<div class="clsBugReply">
										<p><span class="clsBold">{$LANG.common_date_added}</span> : {$pbrlvalue.record.date_added}</p>
										<p>{$pbrlvalue.record.bug_content}</p>
									</div>
									{/foreach}
								</div>
								{/if}
							</td>
						</tr>
					</table>
	  	  		{/foreach}
        		<!-- clsDataDisplaySection - ends here -->
				{if $CFG.admin.navigation.bottom}
					{include file='../general/pagination.tpl'}
				{/if}
			</form>
		{/if}
	</div>
  	{include file='../general/box.tpl' opt='data_bottom'}
</div>
