1   <?php
  2   ##############################################################
  3   ##In-portal                                                                                                     ##
  4   ##############################################################
  5   ##                                            In-portal                                                 ##
  6   ##                                      Intechnic Corporation                                   ##
  7   ##                         All Rights Reserved, 1998-2002                               ##
  8   ##                                                                                                                      ##      
  9   ##      No portion of this code may be copied, reproduced or    ##      
  10   ##         otherwise redistributed without proper written               ##
  11   ##        consent of Intechnic Corporation.  Violation will             ##
  12   ##         result in revocation of the license and support              ##
  13   ##       privileges along maximum prosecution allowed by law.   ##
  14   ##############################################################
  15   global $rootURL, $imagesURL, $adminURL,$admin;
  16  
  17   if(!$pathtoroot) die('error: no base path defined');
  18  
  19   //$rootURL="http://".ThisDomain().$objConfig->Get("Site_Path");
  20  
  21   $localURL=$rootURL."in-news/";
  22  
  23   //$imagesURL = $rootURL."admin/images";
  24   //admin only util
  25  
  26   $pathtolocal = $pathtoroot."in-news/";
  27  
  28   require_once ($pathtolocal."admin/include/navmenu.php");
  29  
  30  
  31   //Set Environment Variable
  32   $envar = "env=" . BuildEnv($mod_prefixes);
  33  
  34   //Display header
  35   $section = 'in-news:reviews';
  36  
  37   if( $objSession->HasCatPermission("NEWS.VIEW") )
  38   {
  39   ?>
  40   <!-- NEWS -->
  41   <div id="news_reviews" class="ini_tab" isTab="true" tabTitle="News" PrefixSpecial="rev.articles" ActionPrefix="m_review_direct_" EditURL="admin/addreview_direct">
  42  
  43   <table cellSpacing=0 cellPadding=2 width="100%" class="tabTable">
  44           <tbody>
  45           <tr>
  46                   <td align="left" width="70%">
  47              <img height=15 src="<?php echo $imagesURL; ?>/arrow.gif" width=15 align=absMiddle border=0>
  48              <b class=text><?php echo prompt_language("la_Page"); ?></b> <?php print $objArticleReviewList->GetAdminPageLinkList($_SERVER["PHP_SELF"]); ?>
  49           </td>
  50           <td align="right" width="30%">
  51                   <?php ShowSearchForm('n', $envar, 'news_reviews','_review_direct_search'); ?>
  52           </td>
  53           </tr>
  54           </tbody>
  55   </table>
  56   <br>
  57   <form name=news_reviews_form action="" method=post>
  58           <input type="hidden" name="Action">
  59           <table cellSpacing=0 cellPadding=2 width="100%" border=0>
  60                   <tbody>
  61                           <?php
  62                                   //print adListArticles($pathtolocal."admin/templates/news_element.tpl");
  63                                   print $objArticleReviewList->AdminPrintItems($pathtolocal."admin/templates/news_review_element.tpl");
  64                           ?>
  65           </tbody>
  66           </table>
  67   </form>
  68   </div>
  69   <!-- END NEWS -->
  70   <?php
  71   }
  72   ?>