XHTML standard: no language attribute in <script>

This commit is contained in:
Sebastian Mendel
2007-04-01 11:13:46 +00:00
parent cfeb306526
commit d0ac1f2bbb
21 changed files with 56 additions and 57 deletions

View File

@@ -91,8 +91,8 @@ if (isset($disp_row) && is_array($disp_row)) {
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $charset; ?>" /> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $charset; ?>" />
<link rel="stylesheet" type="text/css" <link rel="stylesheet" type="text/css"
href="phpmyadmin.css.php?<?php echo PMA_generate_common_url('', ''); ?>&amp;js_frame=right&amp;nocache=<?php echo $_SESSION['PMA_Config']->getMtime(); ?>" /> href="phpmyadmin.css.php?<?php echo PMA_generate_common_url('', ''); ?>&amp;js_frame=right&amp;nocache=<?php echo $_SESSION['PMA_Config']->getMtime(); ?>" />
<script src="./js/functions.js" type="text/javascript" language="javascript"></script> <script src="./js/functions.js" type="text/javascript"></script>
<script type="text/javascript" language="javascript"> <script type="text/javascript">
//<![CDATA[ //<![CDATA[
self.focus(); self.focus();
function formupdate(field, key) { function formupdate(field, key) {

View File

@@ -13,8 +13,8 @@ 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';
?> ?>
<script type="text/javascript" language="javascript" src="./js/tbl_change.js"></script> <script type="text/javascript" src="./js/tbl_change.js"></script>
<script type="text/javascript" language="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); ?>");
var day_names = new Array("<?php echo implode('","', $day_of_week); ?>"); var day_names = new Array("<?php echo implode('","', $day_of_week); ?>");

View File

@@ -306,7 +306,7 @@ while ($row = PMA_DBI_fetch_assoc($rowset)) {
* Displays the footer * Displays the footer
*/ */
?> ?>
<script type="text/javascript" language="javascript"> <script type="text/javascript">
//<![CDATA[ //<![CDATA[
function printPage() function printPage()
{ {

View File

@@ -248,7 +248,7 @@ else {
*/ */
?> ?>
<script type="text/javascript" language="javascript"> <script type="text/javascript">
//<![CDATA[ //<![CDATA[
function printPage() function printPage()
{ {

View File

@@ -488,7 +488,7 @@ echo ' <option value="' . $strAnalyzeTable . '" >'
. $strAnalyzeTable . '</option>' . "\n"; . $strAnalyzeTable . '</option>' . "\n";
?> ?>
</select> </select>
<script type="text/javascript" language="javascript"> <script type="text/javascript">
<!-- <!--
// Fake js to allow the use of the <noscript> tag // Fake js to allow the use of the <noscript> tag
//--> //-->

View File

@@ -645,7 +645,7 @@ else {
echo '</div>' . "\n"; echo '</div>' . "\n";
echo "\n"; echo "\n";
?> ?>
<script type="text/javascript" language="javascript"> <script type="text/javascript">
//<![CDATA[ //<![CDATA[
var bodyWidth=null; var bodyHeight=null; var bodyWidth=null; var bodyHeight=null;
if (document.getElementById('textSQLDUMP')) { if (document.getElementById('textSQLDUMP')) {

View File

@@ -111,7 +111,7 @@ header('Content-Type: text/html; charset=' . $GLOBALS['charset']);
<?php echo htmlspecialchars($HTTP_HOST); ?></title> <?php echo htmlspecialchars($HTTP_HOST); ?></title>
<meta http-equiv="Content-Type" <meta http-equiv="Content-Type"
content="text/html; charset=<?php echo $GLOBALS['charset']; ?>" /> content="text/html; charset=<?php echo $GLOBALS['charset']; ?>" />
<script type="text/javascript" language="javascript"> <script type="text/javascript"">
// <![CDATA[ // <![CDATA[
// definitions used in querywindow.js // definitions used in querywindow.js
var common_query = '<?php echo PMA_escapeJsString(PMA_generate_common_url('', '', '&'));?>'; var common_query = '<?php echo PMA_escapeJsString(PMA_generate_common_url('', '', '&'));?>';
@@ -128,8 +128,7 @@ header('Content-Type: text/html; charset=' . $GLOBALS['charset']);
var pma_absolute_uri = '<?php echo PMA_escapeJsString($GLOBALS['cfg']['PmaAbsoluteUri']); ?>'; var pma_absolute_uri = '<?php echo PMA_escapeJsString($GLOBALS['cfg']['PmaAbsoluteUri']); ?>';
// ]]> // ]]>
</script> </script>
<script src="./js/querywindow.js" type="text/javascript" language="javascript"> <script src="./js/querywindow.js" type="text/javascript"></script>
</script>
</head> </head>
<frameset cols="<?php <frameset cols="<?php
if ($GLOBALS['text_dir'] === 'rtl') { if ($GLOBALS['text_dir'] === 'rtl') {
@@ -159,7 +158,7 @@ if ($GLOBALS['text_dir'] === 'ltr') {
</body> </body>
</noframes> </noframes>
</frameset> </frameset>
<script type="text/javascript" language="javascript"> <script type="text/javascript">
// <![CDATA[ // <![CDATA[
<?php if ($GLOBALS['text_dir'] === 'ltr') { ?> <?php if ($GLOBALS['text_dir'] === 'ltr') { ?>
var frame_content = window.frames[1]; var frame_content = window.frames[1];

View File

@@ -670,13 +670,13 @@ function PMA_sendHeaderLocation($uri)
echo '<meta http-equiv="Pragma" content="no-cache">' . "\n"; echo '<meta http-equiv="Pragma" content="no-cache">' . "\n";
echo '<meta http-equiv="Cache-Control" content="no-cache">' . "\n"; echo '<meta http-equiv="Cache-Control" content="no-cache">' . "\n";
echo '<meta http-equiv="Refresh" content="0;url=' .$uri . '">' . "\n"; echo '<meta http-equiv="Refresh" content="0;url=' .$uri . '">' . "\n";
echo '<script type="text/javascript" language="javascript">' . "\n"; echo '<script type="text/javascript">' . "\n";
echo '//<![CDATA[' . "\n"; echo '//<![CDATA[' . "\n";
echo 'setTimeout ("window.location = unescape(\'"' . $uri . '"\')",2000); </script>' . "\n"; echo 'setTimeout ("window.location = unescape(\'"' . $uri . '"\')",2000); </script>' . "\n";
echo '//]]>' . "\n"; echo '//]]>' . "\n";
echo '</head>' . "\n"; echo '</head>' . "\n";
echo '<body>' . "\n"; echo '<body>' . "\n";
echo '<script type="text/javascript" language="javascript">' . "\n"; echo '<script type="text/javascript">' . "\n";
echo '//<![CDATA[' . "\n"; echo '//<![CDATA[' . "\n";
echo 'document.write (\'<p><a href="' . $uri . '">' . $GLOBALS['strGo'] . '</a></p>\');' . "\n"; echo 'document.write (\'<p><a href="' . $uri . '">' . $GLOBALS['strGo'] . '</a></p>\');' . "\n";
echo '//]]>' . "\n"; echo '//]]>' . "\n";
@@ -922,7 +922,7 @@ function PMA_reloadNavigation()
echo "\n"; echo "\n";
$reload_url = './navigation.php?' . PMA_generate_common_url($GLOBALS['db'], '', '&'); $reload_url = './navigation.php?' . PMA_generate_common_url($GLOBALS['db'], '', '&');
?> ?>
<script type="text/javascript" language="javascript"> <script type="text/javascript">
//<![CDATA[ //<![CDATA[
if (typeof(window.parent) != 'undefined' if (typeof(window.parent) != 'undefined'
&& typeof(window.parent.frame_navigation) != 'undefined') { && typeof(window.parent.frame_navigation) != 'undefined') {
@@ -974,7 +974,7 @@ function PMA_showMessage($message, $sql_query = null)
PMA_DBI_free_result($result); PMA_DBI_free_result($result);
$uni_tbl = PMA_jsFormat($GLOBALS['db'] . '.' . $GLOBALS['table'], false); $uni_tbl = PMA_jsFormat($GLOBALS['db'] . '.' . $GLOBALS['table'], false);
echo "\n"; echo "\n";
echo '<script type="text/javascript" language="javascript">' . "\n"; echo '<script type="text/javascript">' . "\n";
echo '//<![CDATA[' . "\n"; echo '//<![CDATA[' . "\n";
echo "window.parent.updateTableTitle('" . $uni_tbl . "', '" . PMA_jsFormat($tooltip, false) . "');" . "\n"; echo "window.parent.updateTableTitle('" . $uni_tbl . "', '" . PMA_jsFormat($tooltip, false) . "');" . "\n";
echo '//]]>' . "\n"; echo '//]]>' . "\n";

View File

@@ -96,7 +96,7 @@ echo PMA_pluginGetJavascript($export_list);
</div> </div>
</td></tr></table> </td></tr></table>
<script type="text/javascript" language="javascript"> <script type="text/javascript">
//<![CDATA[ //<![CDATA[
init_options(); init_options();
//]]> //]]>

View File

@@ -182,7 +182,7 @@ echo "\n";
<input type="submit" value="<?php echo $strGo; ?>" id="buttonGo" /> <input type="submit" value="<?php echo $strGo; ?>" id="buttonGo" />
</fieldset> </fieldset>
</form> </form>
<script type="text/javascript" language="javascript"> <script type="text/javascript">
//<![CDATA[ //<![CDATA[
init_options(); init_options();
//]]> //]]>

View File

@@ -54,7 +54,7 @@ if (empty($GLOBALS['is_header_sent'])) {
// here, the function does not exist with this configuration: $cfg['ServerDefault'] = 0; // here, the function does not exist with this configuration: $cfg['ServerDefault'] = 0;
$is_superuser = function_exists('PMA_isSuperuser') && PMA_isSuperuser(); $is_superuser = function_exists('PMA_isSuperuser') && PMA_isSuperuser();
?> ?>
<script type="text/javascript" language="javascript"> <script type="text/javascript">
// <![CDATA[ // <![CDATA[
// Updates the title of the frameset if possible (ns4 does not allow this) // Updates the title of the frameset if possible (ns4 does not allow this)
if (typeof(parent.document) != 'undefined' && typeof(parent.document) != 'unknown' if (typeof(parent.document) != 'undefined' && typeof(parent.document) != 'unknown'
@@ -75,7 +75,7 @@ if (empty($GLOBALS['is_header_sent'])) {
var confirmMsgDropDB = '<?php echo(($GLOBALS['cfg']['Confirm']) ? str_replace('\'', '\\\'', $GLOBALS['strDropDatabaseStrongWarning']) : ''); ?>'; var confirmMsgDropDB = '<?php echo(($GLOBALS['cfg']['Confirm']) ? str_replace('\'', '\\\'', $GLOBALS['strDropDatabaseStrongWarning']) : ''); ?>';
// ]]> // ]]>
</script> </script>
<script src="./js/functions.js" type="text/javascript" language="javascript"></script> <script src="./js/functions.js" type="text/javascript"></script>
<?php <?php
} elseif (isset($js_to_run) && $js_to_run == 'user_password.js') { } elseif (isset($js_to_run) && $js_to_run == 'user_password.js') {
echo "\n"; echo "\n";
@@ -87,7 +87,7 @@ if (empty($GLOBALS['is_header_sent'])) {
var jsPasswordNotSame = '<?php echo str_replace('\'', '\\\'', $GLOBALS['strPasswordNotSame']); ?>'; var jsPasswordNotSame = '<?php echo str_replace('\'', '\\\'', $GLOBALS['strPasswordNotSame']); ?>';
// ]]> // ]]>
</script> </script>
<script src="./js/user_password.js" type="text/javascript" language="javascript"></script> <script src="./js/user_password.js" type="text/javascript"></script>
<?php <?php
} elseif (isset($js_to_run) && $js_to_run == 'server_privileges.js') { } elseif (isset($js_to_run) && $js_to_run == 'server_privileges.js') {
echo "\n"; echo "\n";
@@ -99,8 +99,8 @@ if (empty($GLOBALS['is_header_sent'])) {
var jsPasswordNotSame = '<?php echo str_replace('\'', '\\\'', $GLOBALS['strPasswordNotSame']); ?>'; var jsPasswordNotSame = '<?php echo str_replace('\'', '\\\'', $GLOBALS['strPasswordNotSame']); ?>';
// ]]> // ]]>
</script> </script>
<script src="./js/server_privileges.js" type="text/javascript" language="javascript"></script> <script src="./js/server_privileges.js" type="text/javascript"></script>
<script src="./js/functions.js" type="text/javascript" language="javascript"></script> <script src="./js/functions.js" type="text/javascript"></script>
<?php <?php
} elseif (isset($js_to_run) && $js_to_run == 'indexes.js') { } elseif (isset($js_to_run) && $js_to_run == 'indexes.js') {
echo "\n"; echo "\n";
@@ -110,14 +110,14 @@ if (empty($GLOBALS['is_header_sent'])) {
var errorMsg1 = '<?php echo str_replace('\'', '\\\'', $GLOBALS['strNotNumber']); ?>'; var errorMsg1 = '<?php echo str_replace('\'', '\\\'', $GLOBALS['strNotNumber']); ?>';
// ]]> // ]]>
</script> </script>
<script src="./js/indexes.js" type="text/javascript" language="javascript"></script> <script src="./js/indexes.js" type="text/javascript"></script>
<?php <?php
} elseif (isset($js_to_run) && $js_to_run == 'tbl_change.js') { } elseif (isset($js_to_run) && $js_to_run == 'tbl_change.js') {
echo "\n"; echo "\n";
?> ?>
// ]]> // ]]>
</script> </script>
<script src="./js/tbl_change.js" type="text/javascript" language="javascript"></script> <script src="./js/tbl_change.js" type="text/javascript"></script>
<?php <?php
} else { } else {
echo "\n"; echo "\n";
@@ -131,8 +131,7 @@ if (empty($GLOBALS['is_header_sent'])) {
// Reloads the navigation frame via JavaScript if required // Reloads the navigation frame via JavaScript if required
PMA_reloadNavigation(); PMA_reloadNavigation();
?> ?>
<script src="./js/tooltip.js" type="text/javascript" <script src="./js/tooltip.js" type="text/javascript"></script>
language="javascript"></script>
<meta name="OBGZip" content="<?php echo ($cfg['OBGzip'] ? 'true' : 'false'); ?>" /> <meta name="OBGZip" content="<?php echo ($cfg['OBGzip'] ? 'true' : 'false'); ?>" />
<?php /* remove vertical scroll bar bug in ie */ ?> <?php /* remove vertical scroll bar bug in ie */ ?>
<!--[if IE 6]> <!--[if IE 6]>

View File

@@ -318,7 +318,7 @@ function PMA_pluginGetOptions($section, &$list)
*/ */
function PMA_pluginGetJavascript(&$list) { function PMA_pluginGetJavascript(&$list) {
$ret = ' $ret = '
<script type="text/javascript" language="javascript"> <script type="text/javascript">
//<![CDATA[ //<![CDATA[
function hide_them_all() { function hide_them_all() {
'; ';

View File

@@ -166,7 +166,7 @@ function PMA_sqlQueryForm($query = true, $display_tab = false, $delimiter = ';')
echo '</form>' . "\n"; echo '</form>' . "\n";
if ($is_querywindow) { if ($is_querywindow) {
?> ?>
<script type="text/javascript" language="javascript"> <script type="text/javascript">
//<![CDATA[ //<![CDATA[
if (window.opener) { if (window.opener) {
window.opener.parent.insertQuery(); window.opener.parent.insertQuery();
@@ -364,7 +364,7 @@ function PMA_sqlQueryFormInsert($query = '', $is_querywindow = false, $delimiter
echo '<div class="formelement">' . "\n"; echo '<div class="formelement">' . "\n";
if ($is_querywindow) { if ($is_querywindow) {
?> ?>
<script type="text/javascript" language="javascript"> <script type="text/javascript">
//<![CDATA[ //<![CDATA[
document.writeln(' <input type="checkbox" name="LockFromUpdate" value="1" id="checkbox_lock" /> <label for="checkbox_lock"><?php echo $GLOBALS['strQueryWindowLock']; ?></label> '); document.writeln(' <input type="checkbox" name="LockFromUpdate" value="1" id="checkbox_lock" /> <label for="checkbox_lock"><?php echo $GLOBALS['strQueryWindowLock']; ?></label> ');
//]]> //]]>

View File

@@ -28,12 +28,12 @@ if (is_int($cfg['DefaultPropDisplay'])) {
if ($cfg['CtrlArrowsMoving']) { if ($cfg['CtrlArrowsMoving']) {
?> ?>
<script src="./js/keyhandler.js" type="text/javascript" language="javascript"></script> <script src="./js/keyhandler.js" type="text/javascript"></script>
<script type="text/javascript" language="javascript"> <script type="text/javascript">
<!-- // <![CDATA[
var switch_movement = <?php echo $display_type == 'horizontal' ? '0' : '1'; ?>; var switch_movement = <?php echo $display_type == 'horizontal' ? '0' : '1'; ?>;
document.onkeydown = onKeyDownArrowsHandler; document.onkeydown = onKeyDownArrowsHandler;
// --> // ]]>
</script> </script>
<?php <?php
} }
@@ -43,8 +43,8 @@ document.onkeydown = onKeyDownArrowsHandler;
if (PMA_MYSQL_INT_VERSION >= 40102) { if (PMA_MYSQL_INT_VERSION >= 40102) {
?> ?>
<script type="text/javascript" language="javascript"> <script type="text/javascript">
<!-- // <![CDATA[
function display_field_options(field_type, i) { function display_field_options(field_type, i) {
if (field_type == 'TIMESTAMP') { if (field_type == 'TIMESTAMP') {
getElement('div_' + i + '_7').style.display = 'block'; getElement('div_' + i + '_7').style.display = 'block';
@@ -54,7 +54,7 @@ function display_field_options(field_type, i) {
} }
return true; return true;
} }
// --> // ]]>
</script> </script>
<?php } ?> <?php } ?>
@@ -623,8 +623,8 @@ if ($display_type == 'horizontal') {
$new_field .= '<td align="center">' . $content_row_val . '</td>'; $new_field .= '<td align="center">' . $content_row_val . '</td>';
} }
?> ?>
<script type="text/javascript" language="javascript"> <script type="text/javascript">
<!-- // <![CDATA[
var odd_row = <?php echo $odd_row; ?>; var odd_row = <?php echo $odd_row; ?>;
function addField() { function addField() {
@@ -643,7 +643,7 @@ function addField() {
return true; return true;
} }
// --> // ]]>
</script> </script>
<?php <?php
} }

View File

@@ -335,7 +335,7 @@ if ($cfg['WYSIWYG-PDF']) {
$with_field_names = TRUE; $with_field_names = TRUE;
} }
?> ?>
<script type="text/javascript" language="javascript" src="./js/dom-drag.js"></script> <script type="text/javascript" src="./js/dom-drag.js"></script>
<form method="post" action="pdf_pages.php" name="dragdrop"> <form method="post" action="pdf_pages.php" name="dragdrop">
<input type="button" name="dragdrop" value="<?php echo $strToggleScratchboard; ?>" onclick="ToggleDragDrop('pdflayout');" /> <input type="button" name="dragdrop" value="<?php echo $strToggleScratchboard; ?>" onclick="ToggleDragDrop('pdflayout');" />
<input type="button" name="dragdropreset" value="<?php echo $strReset; ?>" onclick="resetDrag();" /> <input type="button" name="dragdropreset" value="<?php echo $strReset; ?>" onclick="resetDrag();" />
@@ -376,7 +376,7 @@ foreach ($array_sh_page AS $key => $temp_sh_page) {
} }
?> ?>
</div> </div>
<script type="text/javascript" language="javascript"> <script type="text/javascript">
//<![CDATA[ //<![CDATA[
function init() { function init() {
refreshLayout(); refreshLayout();
@@ -552,7 +552,7 @@ function resetDrag() {
<?php <?php
if ((isset($showwysiwyg) && $showwysiwyg == '1')) { if ((isset($showwysiwyg) && $showwysiwyg == '1')) {
?> ?>
<script type="text/javascript" language="javascript"> <script type="text/javascript">
//<![CDATA[ //<![CDATA[
ToggleDragDrop('pdflayout'); ToggleDragDrop('pdflayout');
//]]> //]]>

View File

@@ -94,7 +94,7 @@ echo '<?xml version="1.0" encoding="utf-8"?>' . "\n";
<title>phpMyAdmin <?php echo $PMA_Config_Setup->get('PMA_VERSION'); ?> setup</title> <title>phpMyAdmin <?php echo $PMA_Config_Setup->get('PMA_VERSION'); ?> setup</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" language="javascript"> <script type="text/javascript">
//<![CDATA[ //<![CDATA[
// show this window in top frame // show this window in top frame
if (top != self) { if (top != self) {
@@ -1289,7 +1289,7 @@ switch ($action) {
echo htmlspecialchars(get_cfg_string($configuration)); echo htmlspecialchars(get_cfg_string($configuration));
echo '</textarea></form>' . "\n"; echo '</textarea></form>' . "\n";
?> ?>
<script type="text/javascript" language="javascript"> <script type="text/javascript">
//<![CDATA[ //<![CDATA[
var bodyWidth=null; var bodyHeight=null; var bodyWidth=null; var bodyHeight=null;
if (document.getElementById('textconfig')) { if (document.getElementById('textconfig')) {

View File

@@ -779,7 +779,7 @@ else {
// Do print the page if required // Do print the page if required
if (isset($printview) && $printview == '1') { if (isset($printview) && $printview == '1') {
?> ?>
<script type="text/javascript" language="javascript"> <script type="text/javascript">
//<![CDATA[ //<![CDATA[
// Do print the page // Do print the page
window.onload = function() window.onload = function()

View File

@@ -190,8 +190,8 @@ $chg_evt_handler = (PMA_USR_BROWSER_AGENT == 'IE' && PMA_USR_BROWSER_VER >= 5)
<?php if ($cfg['CtrlArrowsMoving']) { ?> <?php if ($cfg['CtrlArrowsMoving']) { ?>
<!-- Set on key handler for moving using by Ctrl+arrows --> <!-- Set on key handler for moving using by Ctrl+arrows -->
<script src="./js/keyhandler.js" type="text/javascript" language="javascript"></script> <script src="./js/keyhandler.js" type="text/javascript"></script>
<script type="text/javascript" language="javascript"> <script type="text/javascript">
//<![CDATA[ //<![CDATA[
var switch_movement = 0; var switch_movement = 0;
document.onkeydown = onKeyDownArrowsHandler; document.onkeydown = onKeyDownArrowsHandler;
@@ -648,7 +648,7 @@ foreach ($loop_array as $vrowcount => $vrow) {
tabindex="<?php echo ($tabindex + $tabindex_for_value); ?>" tabindex="<?php echo ($tabindex + $tabindex_for_value); ?>"
id="field_<?php echo ($idindex); ?>_3" id="field_<?php echo ($idindex); ?>_3"
value="<?php echo htmlspecialchars($data); ?>" /> value="<?php echo htmlspecialchars($data); ?>" />
<script type="text/javascript" language="javascript"> <script type="text/javascript">
//<![CDATA[ //<![CDATA[
document.writeln('<a target="_blank" onclick="window.open(this.href, \'foreigners\', \'width=640,height=240,scrollbars=yes,resizable=yes\'); return false"'); document.writeln('<a target="_blank" onclick="window.open(this.href, \'foreigners\', \'width=640,height=240,scrollbars=yes,resizable=yes\'); return false"');
document.writeln(' href="browse_foreigners.php?'); document.writeln(' href="browse_foreigners.php?');
@@ -955,7 +955,7 @@ foreach ($loop_array as $vrowcount => $vrow) {
} }
if ($type == 'date' || $type == 'datetime' || substr($type, 0, 9) == 'timestamp') { if ($type == 'date' || $type == 'datetime' || substr($type, 0, 9) == 'timestamp') {
?> ?>
<script type="text/javascript" language="javascript"> <script type="text/javascript">
//<![CDATA[ //<![CDATA[
document.write('<a title="<?php echo $strCalendar;?>"'); document.write('<a title="<?php echo $strCalendar;?>"');
document.write(' href="javascript:openCalendar(\'<?php echo PMA_generate_common_url();?>\', \'insertForm\', \'field_<?php echo ($idindex); ?>_3\', \'<?php echo (PMA_MYSQL_INT_VERSION >= 40100 && substr($type, 0, 9) == 'timestamp') ? 'datetime' : substr($type, 0, 9); ?>\')">'); document.write(' href="javascript:openCalendar(\'<?php echo PMA_generate_common_url();?>\', \'insertForm\', \'field_<?php echo ($idindex); ?>_3\', \'<?php echo (PMA_MYSQL_INT_VERSION >= 40100 && substr($type, 0, 9) == 'timestamp') ? 'datetime' : substr($type, 0, 9); ?>\')">');

View File

@@ -539,7 +539,7 @@ foreach ($the_tables as $key => $table) {
*/ */
?> ?>
<script type="text/javascript" language="javascript"> <script type="text/javascript">
//<![CDATA[ //<![CDATA[
function printPage() function printPage()
{ {

View File

@@ -94,7 +94,7 @@ if (!isset($param) || $param[0] == '') {
//$foreigners = ($cfgRelation['relwork'] ? PMA_getForeigners($db, $table) : FALSE); //$foreigners = ($cfgRelation['relwork'] ? PMA_getForeigners($db, $table) : FALSE);
$foreigners = PMA_getForeigners($db, $table); $foreigners = PMA_getForeigners($db, $table);
?> ?>
<script type="text/javascript" language="javascript"> <script type="text/javascript">
// <![CDATA[ // <![CDATA[
function PMA_tbl_select_operator(f, index, multiple) { function PMA_tbl_select_operator(f, index, multiple) {
switch (f.elements["func[" + index + "]"].options[f.elements["func[" + index + "]"].selectedIndex].value) { switch (f.elements["func[" + index + "]"].options[f.elements["func[" + index + "]"].selectedIndex].value) {
@@ -195,7 +195,7 @@ while (list($operator) = each($GLOBALS['cfg']['UnaryOperators'])) {
<?php <?php
$odd_row = true; $odd_row = true;
?> ?>
<script type="text/javascript" language="javascript" src="./js/tbl_change.js"></script> <script type="text/javascript" src="./js/tbl_change.js"></script>
<?php <?php
for ($i = 0; $i < $fields_cnt; $i++) { for ($i = 0; $i < $fields_cnt; $i++) {
?> ?>
@@ -263,8 +263,10 @@ while (list($operator) = each($GLOBALS['cfg']['UnaryOperators'])) {
<input type="text" name="fields[<?php echo $i; ?>]" <input type="text" name="fields[<?php echo $i; ?>]"
id="field_<?php echo md5($field); ?>[<?php echo $i; ?>]" id="field_<?php echo md5($field); ?>[<?php echo $i; ?>]"
class="textfield" /> class="textfield" />
<script type="text/javascript" language="javascript"> <script type="text/javascript">
// <![CDATA[
document.writeln('<a target="_blank" onclick="window.open(this.href, \'foreigners\', \'width=640,height=240,scrollbars=yes\'); return false" href="browse_foreigners.php?<?php echo PMA_generate_common_url($db, $table); ?>&amp;field=<?php echo urlencode($field); ?>&amp;fieldkey=<?php echo $i; ?>"><?php echo str_replace("'", "\'", $titles['Browse']); ?></a>'); document.writeln('<a target="_blank" onclick="window.open(this.href, \'foreigners\', \'width=640,height=240,scrollbars=yes\'); return false" href="browse_foreigners.php?<?php echo PMA_generate_common_url($db, $table); ?>&amp;field=<?php echo urlencode($field); ?>&amp;fieldkey=<?php echo $i; ?>"><?php echo str_replace("'", "\'", $titles['Browse']); ?></a>');
// ]]>
</script> </script>
<?php <?php
} elseif (strncasecmp($fields_type[$i], 'enum', 4) == 0) { } elseif (strncasecmp($fields_type[$i], 'enum', 4) == 0) {
@@ -286,7 +288,7 @@ while (list($operator) = each($GLOBALS['cfg']['UnaryOperators'])) {
$type = $fields_type[$i]; $type = $fields_type[$i];
if ($type == 'date' || $type == 'datetime' || substr($type, 0, 9) == 'timestamp') { if ($type == 'date' || $type == 'datetime' || substr($type, 0, 9) == 'timestamp') {
?> ?>
<script type="text/javascript" language="javascript"> <script type="text/javascript">
//<![CDATA[ //<![CDATA[
document.write('<a title="<?php echo $strCalendar;?>" href="javascript:openCalendar(\'<?php echo PMA_generate_common_url();?>\', \'insertForm\', \'field_<?php echo ($i); ?>\', \'<?php echo (PMA_MYSQL_INT_VERSION >= 40100 && substr($type, 0, 9) == 'timestamp') ? 'datetime' : substr($type, 0, 9); ?>\')"><img class="calendar" src="<?php echo $pmaThemeImage; ?>b_calendar.png" alt="<?php echo $strCalendar; ?>"/></a>'); document.write('<a title="<?php echo $strCalendar;?>" href="javascript:openCalendar(\'<?php echo PMA_generate_common_url();?>\', \'insertForm\', \'field_<?php echo ($i); ?>\', \'<?php echo (PMA_MYSQL_INT_VERSION >= 40100 && substr($type, 0, 9) == 'timestamp') ? 'datetime' : substr($type, 0, 9); ?>\')"><img class="calendar" src="<?php echo $pmaThemeImage; ?>b_calendar.png" alt="<?php echo $strCalendar; ?>"/></a>');
//]]> //]]>

View File

@@ -35,8 +35,7 @@ header('Content-Type: text/html; charset=' . $GLOBALS['charset']);
href="../phpmyadmin.css.php?<?php echo PMA_generate_common_url(); ?>&amp;js_frame=right&amp;nocache=<?php echo $_SESSION['PMA_Config']->getMtime(); ?>" /> href="../phpmyadmin.css.php?<?php echo PMA_generate_common_url(); ?>&amp;js_frame=right&amp;nocache=<?php echo $_SESSION['PMA_Config']->getMtime(); ?>" />
<link rel="stylesheet" type="text/css" media="print" <link rel="stylesheet" type="text/css" media="print"
href="../print.css" /> href="../print.css" />
<script src="../js/functions.js" type="text/javascript" <script src="../js/functions.js" type="text/javascript"></script>
language="javascript"></script>
</head> </head>
<body> <body>
<?php <?php