{ if $myobj->isShowPageBlock('block_sel_page_list')}
<div class="clsManagePopUpNewsSection">
	<div id="selMsgConfirm" class="selMsgConfirm" style="display:none;position:absolute;">
 			<h3 id="confirmation_msg" class="clsPopUpHeading"></h3>
    		<form name="deleteForm" id="deleteForm" method="post" action="{$myobj->getCurrentUrl(false)}">
	    	    <!-- clsFormSection - starts here -->
    			<table class="clsFormTbl">
	  				<tr class="clsFormTbl">
				  		<td>
							<input type="submit" class="clsYesButton" name="delete_add" id="delete_add" value="{$LANG.common_yes_option}" tabindex="{smartyTabIndex}" /> &nbsp;
	              			<input type="button" class="clsNoButton" name="cancel" id="cancel1" value="{$LANG.common_no_option}" tabindex="{smartyTabIndex}" onclick="return hideAllBlocks();" />
							{$myobj->populateHidden($myobj->deleteForm_hidden_arr)}
						</td>
         			</tr>
            	</table>
    		<!-- clsFormSection - ends here -->
    		</form>
	</div>
</div>
{/if}
<div id="selProductNews">
 	{include file='../general/box.tpl' opt='form_top'}
		<h2>{$LANG.productnews_news_editor}</h2>
		{include file='../general/information.tpl'}
		{ if $myobj->isShowPageBlock('block_news_editor')}
		<div id="selproductNews">
			<form name="frmproductNews" action="{$myobj->getCurrentUrl(false)}" method="post" onsubmit="return { if $CFG.feature.html_editor eq 'richtext'}getHTMLSource('rte1', 'frmproductNews', 'content');{else}true{/if}">
				{$myobj->populateHidden($myobj->frmproductNews_hidden_arr)}
				<table class="clsFormTbl">
					<tr class="clsFormRow">
						<td  class="{$myobj->getCSSFormFieldCellClass('content')}" colspan="2">
							{if $CFG.feature.html_editor eq 'textarea'}
								<textarea name="content" id="content" tabindex="{smartyTabIndex}" cols="100" rows="15">{$myobj->getFormField('content')}</textarea>
									<p>{$LANG.forum_put_the_html_code}</p>
							{else}
								{if (chkBrowser() ||  $CFG.feature.html_editor eq 'fckeditor') }
									{if $CFG.feature.html_editor eq 'fckeditor' || $CFG.feature.html_editor eq 'richtext'}
											{$myobj->populateHtmlEditor('content')}
										{else}
											<textarea name="forum_response" id="forum_response" tabindex="{smartyTabIndex}" cols="100" rows="15">{$myobj->getFormField('content')}</textarea>	
										{/if}	
								{else}
									<textarea name="content" id="content" tabindex="{smartyTabIndex}" cols="100" rows="15">{$myobj->getFormField('content')}</textarea>
									<p>{$LANG.forum_put_the_html_code}</p>
								{/if}
							{/if}{$myobj->getFormFieldElementErrorTip('content')}
						</td>
					</tr>

					<tr class="clsFormRow">
						<td class="{$myobj->getCSSFormLabelCellClass('subject')}">
							<label for="subject">{$LANG.productnews_subject}</label>{$myobj->ShowHelpTip('productnews_subject', 'subject')}
						</td>
						<td class="{$myobj->getCSSFormFieldCellClass('subject')}">
							<input type="text" class="clsTextBox" name="subject" id="subject" tabindex="{smartyTabIndex}" value="{$myobj->getFormField('subject')}" />
							{$myobj->getFormFieldElementErrorTip('subject')}
						</td>
				   	</tr>
					<tr class="clsFormRow">
						<td class="{$myobj->getCSSFormLabelCellClass('news_status')}">
							<label for="news_status">{$LANG.productnews_news_status}</label>{$myobj->ShowHelpTip('productnews_news_status', 'news_status')}
						</td>
						<td class="{$myobj->getCSSFormFieldCellClass('news_status')}">{$myobj->getFormFieldErrorTip('news_status')}
							<input type="radio" class="clsRadioButton" name="news_status" id="news_status2" tabindex="{smartyTabIndex}" value="Ok"{$myobj->isCheckedRadio('news_status', 'Ok')} /><label for="news_status2">{$LANG.productnews_label_ok}</label>&nbsp;
							<input type="radio" class="clsRadioButton" name="news_status" id="news_status3" tabindex="{smartyTabIndex}" value="Locked"{$myobj->isCheckedRadio('news_status', 'Locked')} /><label for="news_status3">{$LANG.productnews_label_locked}</label>
						</td>
				   	</tr>
					<tr class="clsFormRow">
						<td></td>
						<td class="{$myobj->getCSSFormFieldCellClass('default')}">
							{if $myobj->isShowPageBlock('block_news_editor_edit')}
								<input type="hidden" name="pid" id="pid" value="{$myobj->getFormField('pid')}" />
								<input type="submit" class="clsSubmitButton" name="news_submit" id="news_submit" tabindex="{smartyTabIndex}" value="{$LANG.productnews_news_update}" />
								<input type="submit" class="clsSubmitButton" name="cancel" id="cancel" tabindex="{smartyTabIndex}" value="{$LANG.productnews_cancel}" />
							{else}
								<input type="submit" class="clsSubmitButton" name="news_submit" id="news_submit" tabindex="{smartyTabIndex}" value="{$LANG.productnews_news_submit}" />
							{/if}
						</td>
					</tr>
				</table>
			</form>
		</div>
		{/if}
		{ if $myobj->isShowPageBlock('block_sel_page_list')}
		<form name="selListStaticForm" id="selListStaticForm" method="post" action="{$myobj->getCurrentUrl(false)}">
			{if $CFG.admin.navigation.top}
				{include file='../general/pagination.tpl'}
			{/if}
	  		<!-- clsDataDisplaySection - starts here -->
			<table class="clsFormTbl">
	  			<tr class="clsDataHeadSection">
					<th><input type="checkbox" class="clsCheckBox" name="check_all" onclick= "CheckAll(document.selListStaticForm.name, document.selListStaticForm.check_all.name)" tabindex="{smartyTabIndex}" /></th>
	  				<th class="{$myobj->getOrderCss('subject')}"><a href="#" onclick="return changeOrderbyElements('selListStaticForm','subject')">{$LANG.productnews_th_subject}</a></th>
	  				<th class="{$myobj->getOrderCss('news_status')}"><a href="#" onclick="return changeOrderbyElements('selListStaticForm','news_status')">{$LANG.productnews_th_news_status}</a></th>
	  				<th class="{$myobj->getOrderCss('date_added')}"><a href="#" onclick="return changeOrderbyElements('selListStaticForm','product_news_id')">{$LANG.productnews_th_date_added}</a></th>
	  				<th>&nbsp;</th>
	  			</tr>
				{foreach key=inc item=value from=$populateNewsList_arr}
	  	  		<tr class="clsDataRow {$myobj->getCSSRowClass()}">
					<td><input type="checkbox" class="clsCheckBox" name="product_news_id[]" value="{$populateNewsList_arr.$inc.product_news_id}"  tabindex="{smartyTabIndex}" /></td>
					<td>{$populateNewsList_arr.$inc.subject}</td>
					<td>{$populateNewsList_arr.$inc.news_status}</td>
					<td>{$populateNewsList_arr.$inc.date_added}</td>
					<td>
						<a id="{$populateNewsList_arr.$inc.product_news_id}" href="#"></a>
						<a href="{$populateNewsList_arr.$inc.edit_link}">{$LANG.productnews_edit}</a>
					</td>
				</tr>
				{/foreach}
	  			<tr class="clsDataRow clsBottomDataRow">
	  				 <td class="clsButtonAlignment" colspan="6">
	  					{$myobj->populateHidden($myobj->populateNewsList_hidden_arr)}
	  					<input type="button" class="clsCancelButton" name="delete_submit" id="delete_submit" tabindex="{smartyTabIndex}" value="{$LANG.productnews_delete}" onclick="{$delete_submit_onclick}" />
	  					<input type="button" class="clsSubmitButton" name="activate_submit" id="activate_submit" tabindex="{smartyTabIndex}" value="{$LANG.productnews_activate}" onclick="{$activate_submit_onclick}" />
	  					<input type="button" class="clsSubmitButton" name="toactivate_submit" id="toactivate_submit" tabindex="{smartyTabIndex}" value="{$LANG.productnews_toactivate}" onclick="{$inactivate_submit_onclick}" />
					</td>
	  		   	</tr>
	  		</table>
        	<!-- clsDataDisplaySection - ends here -->
			{if $CFG.admin.navigation.bottom}
				{include file='../general/pagination.tpl'}
			{/if}
		</form>
		{/if}
        {include file='../general/box.tpl' opt='form_bottom'}
</div>