<?php
##############################################################
##In-portal													##
##############################################################
##					      In-portal							##
##					Intechnic Corporation					##
##			   All Rights Reserved, 1998-2002				##
##															##	
##	No portion of this code may be copied, reproduced or	##	
##	   otherwise redistributed without proper written		##
##	  consent of Intechnic Corporation.  Violation will		##
##	   result in revocation of the license and support		##
##	 privileges along maximum prosecution allowed by law.	##
##############################################################
global $rootURL, $imagesURL, $adminURL,$admin;

if(!$pathtoroot) die('error: no base path defined');

//$rootURL="http://".ThisDomain().$objConfig->Get("Site_Path");

$localURL=$rootURL."in-news/";

//$imagesURL = $rootURL."admin/images";
//admin only util

$pathtolocal = $pathtoroot."in-news/";

require_once ($pathtolocal."admin/include/navmenu.php");

$section = 'in-news:browse';

//$list = $objSession->GetVariable("SearchWord");
//$mysearch = (strlen($list)>0 && $SearchType =="News" || $SearchType=="all") || (strlen($list)==0);
	if($NewsSearch)
	{
?>
<!-- NEWS -->
<div id="news" class="ini_tab" isTab="true" tabTitle="News" PrefixSpecial="n" ActionPrefix="n_article_" EditURL="in-news/admin/addarticle">
<form name="news_form" id="news_form" action="" method=post>
	<input type="hidden" name="Action">
	<input type="hidden" name="return_script" value="<?php echo basename($_SERVER['PHP_SELF']); ?>">

<table cellSpacing=0 cellPadding=2 width="100%" class="tabTable">
	<tbody>
	<tr>
		<td>
           <img height=15 src="<?php echo $imagesURL; ?>/arrow.gif" width=15 align=absMiddle border=0>
           <b class=text><?php echo prompt_language("la_Page"); ?></b> <?php print $objArticleList->GetAdminPageLinkList($_SERVER["PHP_SELF"]); ?>
        </td>
	</tr>
	</tbody>
</table>
<br>

<table cellSpacing=0 cellPadding=2 width="100%" border=0>
	<tbody>
<?php
  //print adListArticles($pathtolocal."admin/templates/news_element.tpl");
  print $objArticleList->AdminPrintItems($pathtolocal."admin/templates/news_tab_element.tpl");
?>
    </tbody>
</table>
</form>
</div>
<SCRIPT LANGUAGE="JavaScript">
        AddButtonAction('new_news',"get_to_server('<?php echo $rootURL;?>in-news/admin/addarticle.php','<?php echo $envar; ?>&new=1');"); //new link
        registerTab('news');
</SCRIPT> 
<!-- END NEWS -->
<?php
}
?>