properly call js/tbl_change.js

This commit is contained in:
Marc Delisle
2008-07-20 15:23:40 +00:00
parent e2b2ad2f1d
commit 78c609e0ec
2 changed files with 4 additions and 4 deletions

View File

@@ -12,8 +12,9 @@ require_once './libraries/common.inc.php';
require_once './libraries/header_http.inc.php'; require_once './libraries/header_http.inc.php';
$page_title = $strCalendar; $page_title = $strCalendar;
require './libraries/header_meta_style.inc.php'; require './libraries/header_meta_style.inc.php';
$GLOBALS['js_include'][] = 'tbl_change.js';
require './libraries/header_scripts.inc.php';
?> ?>
<script type="text/javascript" src="./js/tbl_change.js"></script>
<script type="text/javascript"> <script type="text/javascript">
//<![CDATA[ //<![CDATA[
var month_names = new Array("<?php echo implode('","', $month); ?>"); var month_names = new Array("<?php echo implode('","', $month); ?>");

View File

@@ -17,6 +17,7 @@ require_once './libraries/common.inc.php';
require_once './libraries/relation.lib.php'; // foreign keys require_once './libraries/relation.lib.php'; // foreign keys
require_once './libraries/mysql_charsets.lib.php'; require_once './libraries/mysql_charsets.lib.php';
$GLOBALS['js_include'][] = 'tbl_change.js';
$GLOBALS['js_include'][] = 'mootools.js'; $GLOBALS['js_include'][] = 'mootools.js';
if ($GLOBALS['cfg']['PropertiesIconic'] == true) { if ($GLOBALS['cfg']['PropertiesIconic'] == true) {
@@ -140,9 +141,7 @@ while (list($operator) = each($GLOBALS['cfg']['UnaryOperators'])) {
<tbody> <tbody>
<?php <?php
$odd_row = true; $odd_row = true;
?>
<script type="text/javascript" src="./js/tbl_change.js"></script>
<?php
for ($i = 0; $i < $fields_cnt; $i++) { for ($i = 0; $i < $fields_cnt; $i++) {
?> ?>
<tr class="<?php echo $odd_row ? 'odd' : 'even'; $odd_row = ! $odd_row; ?>"> <tr class="<?php echo $odd_row ? 'odd' : 'even'; $odd_row = ! $odd_row; ?>">