mb_internal_encoding('SJIS');
require_once('functions2.php3');
require_once('header.inc');
require_once('translationFunction.inc');
require_once('newNavMenu.inc');
$_name = '';
$q0 = "SELECT departmentid, name, style_option,parentdeptid,language,archive_yn,archive_year,link_url,html_editor_yn FROM newsite_public_category WHERE departmentid = '$category_id'";
$r0 = mysql_query($q0, $conn);
while(list($departmentid, $name, $style_option, $parentdeptid,$language,$archive_yn,$archive_year, $link_url,$html_editor_yn) = mysql_fetch_array($r0))
{
$navArray = newNavStruct($_SESSION['sessLang'], $_REQUEST['navRow'], $parentID = findTopCategory($bottomNav, $_REQUEST['category_id']));
$cellHeight = count($navArray, COUNT_RECURSIVE)/4;
$menuJScript = '['.substr(convertToJScript($navArray), 0, -1).']';
?>
 |
 |
 |
if($archive_yn == 'y' || $style_option == 3)
{
if($style_option == 3)
{
$qArchive = "SELECT p.archive_yn FROM public_documents_publication p,public_documents d WHERE d.category_id='$category_id' and p.document_id=d.id and p.archive_yn='y'";
$rArchive = mysql_query($qArchive);
if(mysql_num_rows($rArchive) > 0)
{
?>
echo $name ?> echo $_mlDisplayText['Archive']; ?>: ( echo $_mlDisplayText['Distribution Ended']; ?>) |
}
}
else
{
$currDate = getdate();
$currYear = $currDate['year'];
$yrsArr = array();
for($i = 1; $i <= 10; $i++)
{
$yrsArr[] = $currYear - $i;
}
?>
echo $name ?> echo $_mlDisplayText['Archive']; ?>: |
for($i = 0; $i < $archive_year; $i++)
{
?>
■ |
echo $yrsArr[$i]; ?>
|
}
}
}
?>
|
|
 |
if($style_option !=0)
{
switch($style_option)
{
case 1:
$_name = 'news';
require_once('news.php3');
break;
case 2:
$_name = 'list';
require_once('list.php3');
break;
case 3:
$_name = 'publication';
require_once('publication.php3');
break;
case 4:
$_name = 'event';
require_once('event.php3');
break;
case 5:
$_name = 'memberlist';
require_once('memberlist.php3');
break;
case 6:
$_name = 'link';
require_once('link.php3');
break;
}
}
elseif($style_option == 0 && $html_editor_yn == 'y')
require_once('html_display.php3');
elseif($link_url)
echo "";
}
?>
|
if($_SESSION['isAdmin'] && (($_name && $_name != 'memberlist') || !$style_option))
{
?>
 |
 |
 |
if(in_array($_REQUEST['category_id'], array(183,206)))
{
?>
[ echo $_mlDisplayText['Message Center']; ?> ]
}
if($_name && $_name != 'memberlist' && $_name != 'event')
{
?>
[ echo $_mlDisplayText['Add New Document']; ?> ]
}
?>
|
}
?>
 |
 |
 |
 |
 |
 |
require_once('include/footer.inc');