<?php require_once('../Connections/BE2.php'); ?>
<?php
//http://www.incenseworld.com.tw/admin/main.php?act=contact
$colname_Rtm = "welcome"; //"welcome";
if (isset($_GET['act'])) {
  $colname_Rtm = (get_magic_quotes_gpc()) ? $_GET['act'] : addslashes($_GET['act']);
}
mysql_select_db($database_BE2, $BE2);
$query_Rtm = sprintf("SELECT * FROM ad_menu WHERE act = '%s'", $colname_Rtm);
$Rtm = mysql_query($query_Rtm, $BE2) or die(mysql_error());
$row_Rtm = mysql_fetch_assoc($Rtm);
$totalRows_Rtm = mysql_num_rows($Rtm);
  $act=isset($_GET['act'])?$_GET['act']:"welcome"; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>無標題文件</title>
<link href="style.css" rel="stylesheet" type="text/css" />
<link href="/css/jquery-ui.css" rel="stylesheet">
 
<script type="text/javascript" src="/js/jquery-1.11.1.min.js"></script>
  
  <script type="text/javascript" src="/js/jquery-ui.min.js"></script> 
<?php $fckwrite=false;
 if( $fckwrite ){ ?>
<script type="text/javascript" src="Fckeditor/fckeditor.js"></script>
<? }?>
 
<script type="text/javascript" charset="utf-8">
 <? if($act=="ad_browseadd" || $act=="ad_browseedit" ){?>
			
	$(document).ready(function(){ 
      $.datepicker.regional['zh-TW']={
        dayNames:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],
        dayNamesMin:["日","一","二","三","四","五","六"],
        monthNames:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],
        monthNamesShort:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],
        prevText:"<",
        nextText:">",
        weekHeader:"週"
        };
      $.datepicker.setDefaults($.datepicker.regional["zh-TW"]);
      $("#sdate").datepicker({dateFormat:"yy-mm-dd",showMonthAfterYear:true});
      $("#edate").datepicker({dateFormat:"yy-mm-dd",showMonthAfterYear:true});
      });	
			
 <? }?>

 function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
</script>	

<script language="JavaScript" src="images/jscookmenu.js" type="text/javascript"></script>
<link rel="stylesheet" href="images/theme.css" type="text/css" />
<script language="JavaScript" src="images/theme.js" type="text/javascript"></script>
<style type="text/css">
.ti2 {
	font-size: 18px;
	font-weight: bold;
	color: #06F;
}
</style>

	 

</head>
<body>
<div id="header" class="container">
  <div id="logo">
    <h1><?php echo $row_Rtm['act_title']; ?></h1>
    <p>Admin system interface-Ver2.0 2012/04</p>
  </div>
  <div id="menu">
    <ul>
      <li class="current_page_item"><a href="main.php?act=<?php echo $row_Rtm['link']; ?>"><?php echo $row_Rtm['link_title']; ?></a></li>
    </ul>
  </div>
</div>
<div id="page" class="container">
  <div id="content">
  <?php 
  include $row_Rtm['act'].".php" ;?>

<div id="back"><a href="javascript:history.back();"><img src="images/back.gif" alt="回上一頁" title="回上一頁" width="115" height="32" border="0" /></a></div>
 </div>
</div>

</body>
</html>
<?php
mysql_free_result($Rtm);
?>
