patch #947190 (Redesign)
@@ -5,6 +5,12 @@ phpMyAdmin - Changelog
|
|||||||
$Id$
|
$Id$
|
||||||
$Source$
|
$Source$
|
||||||
|
|
||||||
|
2004-05-08 Alexander M. Turek <me@derrabus.de>
|
||||||
|
* config.inc.php, db_details_structure.php, Documentation.html,
|
||||||
|
header.inc.php, left.php, main.php, images/*, libraries/common.lib.php,
|
||||||
|
libraries/config_import.lib.php:
|
||||||
|
Patch #947190 (Redesign) - Part 1, thanks to Michael Keck (mkkeck).
|
||||||
|
|
||||||
2004-05-07 Alexander M. Turek <me@derrabus.de>
|
2004-05-07 Alexander M. Turek <me@derrabus.de>
|
||||||
* calendar.php: Added missing CVS-ID-Tag.
|
* calendar.php: Added missing CVS-ID-Tag.
|
||||||
|
|
||||||
|
@@ -3904,6 +3904,9 @@ CREDITS, in chronological order
|
|||||||
* mysqli support
|
* mysqli support
|
||||||
* many bugfixes and improvements
|
* many bugfixes and improvements
|
||||||
|
|
||||||
|
- Michael Keck <mkkeck_at_users.sourceforge.net>
|
||||||
|
* redesign for 2.6.0
|
||||||
|
|
||||||
And also to the following people who have contributed minor changes,
|
And also to the following people who have contributed minor changes,
|
||||||
enhancements, bugfixes or support for a new language since version 2.1.0:
|
enhancements, bugfixes or support for a new language since version 2.1.0:
|
||||||
|
|
||||||
|
@@ -452,7 +452,7 @@ $cfg['AvailableCharsets'] = array(
|
|||||||
/**
|
/**
|
||||||
* Customization & design
|
* Customization & design
|
||||||
*/
|
*/
|
||||||
$cfg['LeftWidth'] = 150; // left frame width
|
$cfg['LeftWidth'] = 200; // left frame width
|
||||||
$cfg['LeftBgColor'] = '#D0DCE0'; // background color for the left frame
|
$cfg['LeftBgColor'] = '#D0DCE0'; // background color for the left frame
|
||||||
$cfg['RightBgColor'] = '#F5F5F5'; // background color for the right frame
|
$cfg['RightBgColor'] = '#F5F5F5'; // background color for the right frame
|
||||||
$cfg['RightBgImage'] = ''; // path to a background image for the right frame
|
$cfg['RightBgImage'] = ''; // path to a background image for the right frame
|
||||||
@@ -460,9 +460,9 @@ $cfg['RightBgImage'] = ''; // path to a background image for th
|
|||||||
$cfg['LeftPointerColor'] = '#CCFFCC'; // color of the pointer in left frame
|
$cfg['LeftPointerColor'] = '#CCFFCC'; // color of the pointer in left frame
|
||||||
// (blank for no pointer)
|
// (blank for no pointer)
|
||||||
$cfg['Border'] = 0; // border width on tables
|
$cfg['Border'] = 0; // border width on tables
|
||||||
$cfg['ThBgcolor'] = '#D3DCE3'; // table header row colour
|
$cfg['ThBgcolor'] = '#CCCCFF'; // table header row colour
|
||||||
$cfg['BgcolorOne'] = '#CCCCCC'; // table data row colour
|
$cfg['BgcolorOne'] = '#E5E5E5'; // table data row colour
|
||||||
$cfg['BgcolorTwo'] = '#DDDDDD'; // table data row colour, alternate
|
$cfg['BgcolorTwo'] = '#D5D5D5'; // table data row colour, alternate
|
||||||
$cfg['BrowsePointerColor'] = '#CCFFCC'; // color of the pointer in browse mode
|
$cfg['BrowsePointerColor'] = '#CCFFCC'; // color of the pointer in browse mode
|
||||||
// (blank for no pointer)
|
// (blank for no pointer)
|
||||||
$cfg['BrowseMarkerColor'] = '#FFCC99'; // color of the marker (visually marks row
|
$cfg['BrowseMarkerColor'] = '#FFCC99'; // color of the marker (visually marks row
|
||||||
@@ -514,6 +514,23 @@ $cfg['WYSIWYG-PDF'] = TRUE; // Utilize DHTML/JS capabilities to
|
|||||||
|
|
||||||
$cfg['NaturalOrder'] = TRUE; // Sort table and database in natural order
|
$cfg['NaturalOrder'] = TRUE; // Sort table and database in natural order
|
||||||
|
|
||||||
|
|
||||||
|
//-----------------------------------------------------------------------------
|
||||||
|
// custom-setup by mkkeck: 2004-05-04
|
||||||
|
// some specials for new icons and scrollings
|
||||||
|
// 2004-05-08 rabus: We need to rearrange these variables.
|
||||||
|
|
||||||
|
$cfg['ShowHttpHostTitle'] = FALSE; // show HTTP host in browsers window title (true|false)?
|
||||||
|
$cfg['SetHttpHostTitle'] = ''; // if ShowHttpHostTitle=true, please set your host (server)
|
||||||
|
// or an other string, wich should be shown in browsers window title.
|
||||||
|
// If not set (or empty), the PMA will get your real host address.
|
||||||
|
|
||||||
|
$cfg['ErrorIconic'] = TRUE; // show some icons for warnings, errors and informations? (true|false)?
|
||||||
|
$cfg['ReplaceHelpImg'] = TRUE; // show help button instead of strDocumentation (true|false)?
|
||||||
|
|
||||||
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Default queries.
|
* Default queries.
|
||||||
* %d will be replaced by database name
|
* %d will be replaced by database name
|
||||||
|
@@ -98,6 +98,7 @@ div {font-family: <?php echo $left_font_family; ?>; font-size: <?php echo $font_
|
|||||||
body {font-family: <?php echo $left_font_family; ?>; font-size: <?php echo $font_size; ?>}
|
body {font-family: <?php echo $left_font_family; ?>; font-size: <?php echo $font_size; ?>}
|
||||||
input {font-family: <?php echo $left_font_family; ?>; font-size: <?php echo $font_size; ?>}
|
input {font-family: <?php echo $left_font_family; ?>; font-size: <?php echo $font_size; ?>}
|
||||||
select {font-family: <?php echo $left_font_family; ?>; font-size: <?php echo $font_size; ?>; background-color: #ffffff; color: #000000}
|
select {font-family: <?php echo $left_font_family; ?>; font-size: <?php echo $font_size; ?>; background-color: #ffffff; color: #000000}
|
||||||
|
hr{ color: #ffffff; background-color: #ffffff; border: 0; height: 1px; }
|
||||||
<?php
|
<?php
|
||||||
} elseif ($js_frame == 'print') {
|
} elseif ($js_frame == 'print') {
|
||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
@@ -219,6 +220,122 @@ button.mult_submit {
|
|||||||
border: 1px dashed #000000;
|
border: 1px dashed #000000;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* some new styles added 20047-05-05 by Michael Keck (mkkeck) */
|
||||||
|
|
||||||
|
/* tables */
|
||||||
|
.tblWarning {
|
||||||
|
border: 1px solid #cc0000;
|
||||||
|
background-color: #ffffff;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
.tblError {
|
||||||
|
border: 1px solid #cc0000;
|
||||||
|
background-color: #ffffcc;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
.tblHeaders {
|
||||||
|
background-color: #9999CC;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #000000;
|
||||||
|
}
|
||||||
|
.tblFooters {
|
||||||
|
background-color: #9999CC;
|
||||||
|
font-weight: normal;
|
||||||
|
color: #000000;
|
||||||
|
}
|
||||||
|
.tblHeadError {
|
||||||
|
background-color: #cc0000;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #ffffff;
|
||||||
|
}
|
||||||
|
.tblHeadWarn {
|
||||||
|
background-color: #ffcc00;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #000000;
|
||||||
|
}
|
||||||
|
/* forbidden, no privilegs */
|
||||||
|
.noPrivileges{
|
||||||
|
color: #cc0000;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* list elements */
|
||||||
|
ul.mainRight {
|
||||||
|
margin: 0px;
|
||||||
|
padding-left:2em;
|
||||||
|
padding-right:2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul.mainRight li {
|
||||||
|
white-space: nowrap;
|
||||||
|
padding-left: 0.5em;
|
||||||
|
padding-top: 0.1em;
|
||||||
|
padding-bottom: 0.1em;
|
||||||
|
}
|
||||||
|
ul.mainLeft {
|
||||||
|
margin: 0px;
|
||||||
|
padding-left:2em;
|
||||||
|
padding-right:2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul.mainLeft li {
|
||||||
|
white-space: nowrap;
|
||||||
|
padding-left: 0.5em;
|
||||||
|
padding-top: 0.1em;
|
||||||
|
padding-bottom: 0.1em;
|
||||||
|
}
|
||||||
|
.lstPhpInfo {
|
||||||
|
list-style: url(../images/php_sym.png);
|
||||||
|
}
|
||||||
|
.lstPmaDocs {
|
||||||
|
list-style: url(../images/b_docs.png);
|
||||||
|
}
|
||||||
|
.lstPmaPage {
|
||||||
|
list-style: url(../images/b_home.png);
|
||||||
|
}
|
||||||
|
.lstPmaLang {
|
||||||
|
list-style: url(../images/s_lang.png);
|
||||||
|
}
|
||||||
|
.lstPmaChar {
|
||||||
|
list-style: url(../images/s_rights.png);
|
||||||
|
}
|
||||||
|
.lstNewdb {
|
||||||
|
list-style: url(../images/b_newdb.png);
|
||||||
|
}
|
||||||
|
.lstStatus {
|
||||||
|
list-style: url(../images/s_status.png);
|
||||||
|
}
|
||||||
|
.lstVars {
|
||||||
|
list-style: url(../images/s_vars.png);
|
||||||
|
}
|
||||||
|
.lstProcess {
|
||||||
|
list-style: url(../images/s_process.png);
|
||||||
|
}
|
||||||
|
.lstPrivileges {
|
||||||
|
list-style: url(../images/s_rights.png);
|
||||||
|
}
|
||||||
|
.lstCollations {
|
||||||
|
list-style: url(../images/s_asci.png);
|
||||||
|
}.lstReload {
|
||||||
|
list-style: url(../images/s_reload.png);
|
||||||
|
}
|
||||||
|
.lstDatabases {
|
||||||
|
list-style: url(../images/s_db.png);
|
||||||
|
}
|
||||||
|
.lstExport {
|
||||||
|
list-style: url(../images/b_export.png);
|
||||||
|
}
|
||||||
|
.lstLogoff {
|
||||||
|
list-style: url(../images/s_loggoff.png);
|
||||||
|
}
|
||||||
|
.lstPasswd {
|
||||||
|
list-style: url(../images/s_passwd.png);
|
||||||
|
}
|
||||||
|
|
||||||
|
hr{ color: #666699; background-color: #6666cc; border: 0; height: 1px; }
|
||||||
|
|
||||||
|
/* end of some new styles added 20047-05-05 by Michael Keck (mkkeck) */
|
||||||
|
|
||||||
.print{font-family:arial;font-size:8pt;}
|
.print{font-family:arial;font-size:8pt;}
|
||||||
|
|
||||||
/* MySQL Parser */
|
/* MySQL Parser */
|
||||||
@@ -302,7 +419,7 @@ ul.main {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ul.main li {
|
ul.main li {
|
||||||
list-style-image: url(../images/item_<?php echo $text_dir; ?>.png);
|
list-style-image: url(../images/dot_violet.png);
|
||||||
padding-bottom: 0.1em;
|
padding-bottom: 0.1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -112,7 +112,7 @@ if (PMA_MYSQL_INT_VERSION >= 40101) {
|
|||||||
|
|
||||||
// Display function
|
// Display function
|
||||||
function pma_TableHeader($alternate = FALSE) {
|
function pma_TableHeader($alternate = FALSE) {
|
||||||
echo ' <table border="' . $GLOBALS['cfg']['Border'] . '">' . "\n"
|
echo ' <table border="' . $GLOBALS['cfg']['Border'] . '" cellpadding="2" cellspacing="1">' . "\n"
|
||||||
. ' <tr>' . "\n"
|
. ' <tr>' . "\n"
|
||||||
. ' <td></td>' . "\n"
|
. ' <td></td>' . "\n"
|
||||||
. ' <th>' . "\n"
|
. ' <th>' . "\n"
|
||||||
@@ -181,15 +181,15 @@ if ($cfg['PropertiesIconic'] == true) {
|
|||||||
$iconic_spacer = '';
|
$iconic_spacer = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
$titles['Browse'] = $iconic_spacer . '<img hspace="7" width="12" height="13" src="images/button_browse.png" alt="' . $strBrowse . '" title="' . $strBrowse . '" border="0" />';
|
$titles['Browse'] = $iconic_spacer . '<img hspace="2" width="16" height="16" src="images/b_browse.png" alt="' . $strBrowse . '" title="' . $strBrowse . '" border="0" />';
|
||||||
$titles['Search'] = $iconic_spacer . '<img hspace="7" width="14" height="13" src="images/button_select.png" alt="' . $strSearch . '" title="' . $strSearch . '" border="0" />';
|
$titles['Search'] = $iconic_spacer . '<img hspace="2" width="16" height="16" src="images/b_select.png" alt="' . $strSearch . '" title="' . $strSearch . '" border="0" />';
|
||||||
$titles['NoBrowse'] = $iconic_spacer . '<img hspace="7" width="12" height="13" src="images/button_nobrowse.png" alt="' . $strBrowse . '" title="' . $strBrowse . '" border="0" />';
|
$titles['NoBrowse'] = $iconic_spacer . '<img hspace="2" width="16" height="16" src="images/bd_browse.png" alt="' . $strBrowse . '" title="' . $strBrowse . '" border="0" />';
|
||||||
$titles['NoSearch'] = $iconic_spacer . '<img hspace="7" width="14" height="13" src="images/button_noselect.png" alt="' . $strSearch . '" title="' . $strSearch . '" border="0" />';
|
$titles['NoSearch'] = $iconic_spacer . '<img hspace="2" width="16" height="16" src="images/bd_select.png" alt="' . $strSearch . '" title="' . $strSearch . '" border="0" />';
|
||||||
$titles['Insert'] = $iconic_spacer . '<img hspace="7" width="13" height="13" src="images/button_insert.png" alt="' . $strInsert . '" title="' . $strInsert . '" border="0" />';
|
$titles['Insert'] = $iconic_spacer . '<img hspace="2" width="16" height="16" src="images/b_insrow.png" alt="' . $strInsert . '" title="' . $strInsert . '" border="0" />';
|
||||||
$titles['Properties'] = $iconic_spacer . '<img hspace="7" width="18" height="13" src="images/button_properties.png" alt="' . $strProperties . '" title="' . $strProperties . '" border="0" />';
|
$titles['Properties'] = $iconic_spacer . '<img hspace="2" width="16" height="16" src="images/b_props.png" alt="' . $strProperties . '" title="' . $strProperties . '" border="0" />';
|
||||||
$titles['Drop'] = $iconic_spacer . '<img hspace="7" width="11" height="13" src="images/button_drop.png" alt="' . $strDrop . '" title="' . $strDrop . '" border="0" />';
|
$titles['Drop'] = $iconic_spacer . '<img hspace="2" width="16" height="16" src="images/b_drop.png" alt="' . $strDrop . '" title="' . $strDrop . '" border="0" />';
|
||||||
$titles['Empty'] = $iconic_spacer . '<img hspace="7" width="11" height="13" src="images/button_empty.png" alt="' . $strEmpty . '" title="' . $strEmpty . '" border="0" />';
|
$titles['Empty'] = $iconic_spacer . '<img hspace="2" width="16" height="16" src="images/b_empty.png" alt="' . $strEmpty . '" title="' . $strEmpty . '" border="0" />';
|
||||||
$titles['NoEmpty'] = $iconic_spacer . '<img hspace="7" width="11" height="13" src="images/button_noempty.png" alt="' . $strEmpty . '" title="' . $strEmpty . '" border="0" />';
|
$titles['NoEmpty'] = $iconic_spacer . '<img hspace="2" width="16" height="16" src="images/bd_empty.png" alt="' . $strEmpty . '" title="' . $strEmpty . '" border="0" />';
|
||||||
|
|
||||||
if ($propicon == 'both') {
|
if ($propicon == 'both') {
|
||||||
$titles['Browse'] .= ' ' . $strBrowse . '</div>';
|
$titles['Browse'] .= ' ' . $strBrowse . '</div>';
|
||||||
@@ -308,7 +308,7 @@ else {
|
|||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</td>
|
</td>
|
||||||
<td><img src="./images/spacer.gif" border="0" width="10" height="1" alt="" /></td>
|
<td><img src="./images/spacer.png" border="0" width="10" height="1" alt="" /></td>
|
||||||
<td valign="top">
|
<td valign="top">
|
||||||
<?php
|
<?php
|
||||||
pma_TableHeader();
|
pma_TableHeader();
|
||||||
@@ -318,7 +318,7 @@ else {
|
|||||||
<td align="center" bgcolor="<?php echo $bgcolor; ?>">
|
<td align="center" bgcolor="<?php echo $bgcolor; ?>">
|
||||||
<input type="checkbox" name="selected_tbl[]" value="<?php echo $table_encoded; ?>" id="checkbox_tbl_<?php echo $i; ?>"<?php echo $checked; ?> />
|
<input type="checkbox" name="selected_tbl[]" value="<?php echo $table_encoded; ?>" id="checkbox_tbl_<?php echo $i; ?>"<?php echo $checked; ?> />
|
||||||
</td>
|
</td>
|
||||||
<td bgcolor="<?php echo $bgcolor; ?>" nowrap="nowrap" <?php echo $click_mouse; ?>>
|
<td bgcolor="<?php echo $bgcolor; ?>" nowrap="nowrap" <?php //echo $click_mouse; ?>>
|
||||||
<b><label onclick="(document.getElementById('checkbox_tbl_<?php echo $i; ?>') ? return false : return true)" for="checkbox_tbl_<?php echo $i; ?>" title="<?php echo $alias; ?>"><?php echo $truename; ?></label> </b>
|
<b><label onclick="(document.getElementById('checkbox_tbl_<?php echo $i; ?>') ? return false : return true)" for="checkbox_tbl_<?php echo $i; ?>" title="<?php echo $alias; ?>"><?php echo $truename; ?></label> </b>
|
||||||
</td>
|
</td>
|
||||||
<td align="center" bgcolor="<?php echo $bgcolor; ?>">
|
<td align="center" bgcolor="<?php echo $bgcolor; ?>">
|
||||||
@@ -564,7 +564,7 @@ else {
|
|||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="<?php echo $basecolspan; ?>" valign="bottom">
|
<td colspan="<?php echo $basecolspan; ?>" valign="bottom">
|
||||||
<img src="./images/arrow_<?php echo $text_dir; ?>.gif" border="0" width="38" height="22" alt="<?php echo $strWithChecked; ?>" />
|
<img src="./images/arrow_<?php echo $text_dir; ?>.png" border="0" width="38" height="22" alt="<?php echo $strWithChecked; ?>" />
|
||||||
<a href="<?php echo $checkall_url; ?>&checkall=1" onclick="setCheckboxes('tablesForm', true); return false;">
|
<a href="<?php echo $checkall_url; ?>&checkall=1" onclick="setCheckboxes('tablesForm', true); return false;">
|
||||||
<?php echo $strCheckAll; ?></a>
|
<?php echo $strCheckAll; ?></a>
|
||||||
/
|
/
|
||||||
@@ -576,7 +576,7 @@ else {
|
|||||||
<?php echo $strCheckOverhead; ?></a>
|
<?php echo $strCheckOverhead; ?></a>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
<img src="./images/spacer.gif" border="0" width="38" height="1" alt="" />
|
<img src="./images/spacer.png" border="0" width="38" height="1" alt="" />
|
||||||
<select name="submit_mult" dir="ltr" onchange="this.form.submit();">
|
<select name="submit_mult" dir="ltr" onchange="this.form.submit();">
|
||||||
<?php
|
<?php
|
||||||
echo "\n";
|
echo "\n";
|
||||||
@@ -629,106 +629,178 @@ echo "\n";
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Work on the database
|
* Work on the database
|
||||||
|
* redesigned 2004-05-08 by mkkeck
|
||||||
*/
|
*/
|
||||||
?>
|
?>
|
||||||
<!-- DATABASE WORK -->
|
<!-- DATABASE WORK -->
|
||||||
<ul>
|
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
if ($num_tables > 0) {
|
if ($num_tables > 0) {
|
||||||
?>
|
?>
|
||||||
<!-- Printable view of a table -->
|
<!-- Printable view of a table -->
|
||||||
<li>
|
<table border="0" cellpadding="2" cellspacing="0">
|
||||||
<a href="db_printview.php?<?php echo $url_query; ?>"><?php echo $strPrintView; ?></a>
|
<tr><td nowrap="nowrap" colspan="3"><?php
|
||||||
</li>
|
echo '<a href="db_printview.php?' . $url_query . '">';
|
||||||
<li>
|
if($cfg['PropertiesIconic']){
|
||||||
<a href="./db_datadict.php?<?php echo $url_query; ?>"><?php echo $strDataDict; ?></a>
|
echo '<img src="./images/b_print.png" border="0" width="16" height="16" hspace="2" align="absmiddle" />';
|
||||||
</li>
|
}
|
||||||
|
echo $strPrintView . '</a>';
|
||||||
|
?>
|
||||||
|
<?php
|
||||||
|
echo '<a href="./db_datadict.php?' . $url_query . '">';
|
||||||
|
if($cfg['PropertiesIconic']){
|
||||||
|
echo '<img src="./images/b_tblanalyse.png" border="0" width="16" height="16" hspace="2" align="absmiddle" />';
|
||||||
|
}
|
||||||
|
echo $strDataDict . '</a>';
|
||||||
|
?></td></tr>
|
||||||
|
<tr><td colspan="3"><img src="images/spacer.png" width="1" height="1" border="0" alt="" /></td></tr></table>
|
||||||
<?php
|
<?php
|
||||||
} // end if
|
} // end if
|
||||||
?>
|
?>
|
||||||
|
<table border="0" cellpadding="2" cellspacing="0">
|
||||||
|
<!-- Create a new table -->
|
||||||
|
<form method="post" action="tbl_create.php" onsubmit="return (emptyFormElements(this, 'table') && checkFormElementInRange(this, 'num_fields', 1))">
|
||||||
|
<tr>
|
||||||
|
<td class="tblHeaders" colspan="3" nowrap="nowrap"><?php
|
||||||
|
echo PMA_generate_common_hidden_inputs($db);
|
||||||
|
if($cfg['PropertiesIconic']){ echo '<img src="images/b_newtbl.png" border="0" width="16" height="16" hspace="2" align="absmiddle" />'; }
|
||||||
|
// if you want navigation:
|
||||||
|
$strDBLink = '<a href="' . $GLOBALS['cfg']['DefaultTabDatabase'] . $header_url_qry . '&db=' . urlencode($GLOBALS['db']) . '">'
|
||||||
|
. htmlspecialchars($GLOBALS['db']) . '</a>';
|
||||||
|
// else use
|
||||||
|
// $strDBLink = htmlspecialchars($db);
|
||||||
|
echo ' ' . sprintf($strCreateNewTable, $strDBLink) . ': ' . "\n";
|
||||||
|
echo ' </td></tr>';
|
||||||
|
echo ' <tr bgcolor="'.$cfg['BgcolorOne'].'"><td nowrap="nowrap">';
|
||||||
|
echo ' ' . $strName . ': ' . "\n";
|
||||||
|
echo ' </td>';
|
||||||
|
echo ' <td nowrap="nowrap">';
|
||||||
|
echo ' ' . '<input type="text" name="table" maxlength="64" size="30" class="textfield" />';
|
||||||
|
echo ' </td><td> </td></tr>';
|
||||||
|
echo ' <tr bgcolor="'.$cfg['BgcolorOne'].'"><td nowrap="nowrap">';
|
||||||
|
echo ' ' . $strFields . ': ' . "\n";
|
||||||
|
echo ' </td>';
|
||||||
|
echo ' <td nowrap="nowrap">';
|
||||||
|
echo ' ' . '<input type="text" name="num_fields" size="2" class="textfield" />' . "\n";
|
||||||
|
echo ' </td>';
|
||||||
|
echo ' <td align="right">';
|
||||||
|
echo ' ' . ' <input type="submit" value="' . $strGo . '" />' . "\n";
|
||||||
|
?>
|
||||||
|
</td> </tr>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
if ($cfgRelation['commwork']) {
|
if ($cfgRelation['commwork']) {
|
||||||
?>
|
?>
|
||||||
<!-- Alter/Enter db-comment -->
|
<!-- Alter/Enter db-comment -->
|
||||||
<li>
|
<tr><td colspan="3"><img src="images/spacer.png" width="1" height="1" border="0" alt="" /></td></tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td colspan="3" class="tblHeaders"><?php
|
||||||
|
if($cfg['PropertiesIconic']){
|
||||||
|
echo '<img src="images/b_comment.png" border="0" width="16" height="16" hspace="2" align="absmiddle" />';
|
||||||
|
}
|
||||||
|
echo $strDBComment;
|
||||||
|
?></td></tr>
|
||||||
<form method="post" action="db_details_structure.php">
|
<form method="post" action="db_details_structure.php">
|
||||||
<?php echo $strDBComment; ?>
|
<tr bgcolor="<?php echo $cfg['BgcolorOne']; ?>">
|
||||||
|
<td colspan="2" nowrap="nowrap">
|
||||||
<input type="hidden" name="db_comment" value="true" />
|
<input type="hidden" name="db_comment" value="true" />
|
||||||
<?php echo PMA_generate_common_hidden_inputs($db); ?>
|
<?php echo PMA_generate_common_hidden_inputs($db); ?>
|
||||||
<input type="text" name="comment" class="textfield" value="<?php echo (isset($comment) && is_array($comment) ? htmlspecialchars(implode(' ', $comment)) : ''); ?>" />
|
<input type="text" name="comment" class="textfield" size="30" value="<?php echo (isset($comment) && is_array($comment) ? htmlspecialchars(implode(' ', $comment)) : ''); ?>" /></td><td align="right">
|
||||||
<input type="submit" value="<?php echo $strGo; ?>" />
|
<input type="submit" value="<?php echo $strGo; ?>" />
|
||||||
|
</td></tr>
|
||||||
</form>
|
</form>
|
||||||
</li>
|
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<!-- Create a new table -->
|
|
||||||
<li>
|
|
||||||
<form method="post" action="tbl_create.php"
|
|
||||||
onsubmit="return (emptyFormElements(this, 'table') && checkFormElementInRange(this, 'num_fields', 1))">
|
|
||||||
<?php echo PMA_generate_common_hidden_inputs($db); ?>
|
|
||||||
<?php
|
|
||||||
echo ' ' . sprintf($strCreateNewTable, htmlspecialchars($db)) . ' :<br />' . "\n";
|
|
||||||
echo ' ' . $strName . ' : ' . "\n";
|
|
||||||
echo ' ' . '<input type="text" name="table" maxlength="64" class="textfield" />' . "\n";
|
|
||||||
echo ' ' . '<br />' . "\n";
|
|
||||||
echo ' ' . $strFields . ' : ' . "\n";
|
|
||||||
echo ' ' . '<input type="text" name="num_fields" size="2" class="textfield" />' . "\n";
|
|
||||||
echo ' ' . ' <input type="submit" value="' . $strGo . '" />' . "\n";
|
|
||||||
?>
|
|
||||||
</form>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<!-- Rename database -->
|
<!-- Rename database -->
|
||||||
<li>
|
<tr><td colspan="3"><img src="images/spacer.png" width="1" height="1" border="0" alt="" /></td></tr>
|
||||||
|
<tr><td colspan="3" class="tblHeaders"><?php
|
||||||
|
if($cfg['PropertiesIconic']){
|
||||||
|
echo '<img src="images/b_edit.png" border="0" width="16" height="16" hspace="2" align="absmiddle" />';
|
||||||
|
}
|
||||||
|
echo $strDBRename.': ';
|
||||||
|
?></td></tr>
|
||||||
<form method="post" action="db_details_structure.php"
|
<form method="post" action="db_details_structure.php"
|
||||||
onsubmit="return emptyFormElements(this, 'newname')">
|
onsubmit="return emptyFormElements(this, 'newname')">
|
||||||
<?php echo $strDBRename; ?>:
|
<tr bgcolor="<?php echo $cfg['BgcolorOne']; ?>"><td colspan="2"><?php
|
||||||
<input type="hidden" name="db_rename" value="true" />
|
echo '<input type="hidden" name="db_rename" value="true" />'
|
||||||
<?php echo PMA_generate_common_hidden_inputs($db); ?>
|
. PMA_generate_common_hidden_inputs($db);
|
||||||
<input type="text" name="newname" class="textfield" value="" />
|
?><input type="text" name="newname" size="30" class="textfield" value="" /></td>
|
||||||
<input type="submit" value="<?php echo $strGo; ?>" />
|
<td align="right"><input type="submit" value="<?php echo $strGo; ?>" /></td>
|
||||||
</form>
|
</form></tr>
|
||||||
</li>
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
if (PMA_MYSQL_INT_VERSION >= 40101) {
|
if (PMA_MYSQL_INT_VERSION >= 40101) {
|
||||||
// MySQL supports setting default charsets / collations for databases since
|
// MySQL supports setting default charsets / collations for databases since
|
||||||
// version 4.1.1.
|
// version 4.1.1.
|
||||||
echo ' <!-- Change database charset -->' . "\n"
|
echo ' <!-- Change database charset -->' . "\n"
|
||||||
. ' <li>' . "\n"
|
. ' <tr><td colspan="3"><img src="images/spacer.png" width="1" height="1" border="0" alt="" /></td></tr>' . "\n"
|
||||||
|
. ' <tr><td colspan="3" class="tblHeaders">';
|
||||||
|
if($cfg['PropertiesIconic']){
|
||||||
|
echo '<img src="./images/s_asci.png" border="0" width="16" height="16" hspace="2" align="absmiddle" />';
|
||||||
|
}
|
||||||
|
echo ' <label for="select_db_collation">' . $strCollation . '</label>: ' . "\n"
|
||||||
|
. ' </td></tr>' . "\n"
|
||||||
. ' <form method="post" action="./db_details_structure.php">' . "\n"
|
. ' <form method="post" action="./db_details_structure.php">' . "\n"
|
||||||
|
. ' <tr bgcolor="' . $cfg['BgcolorOne'] . '"><td colspan="2" nowrap="nowrap">'
|
||||||
. PMA_generate_common_hidden_inputs($db, $table, 3)
|
. PMA_generate_common_hidden_inputs($db, $table, 3)
|
||||||
. ' <label for="select_db_collation">' . $strCollation . '</label> : ' . "\n"
|
|
||||||
. PMA_generateCharsetDropdownBox(PMA_CSDROPDOWN_COLLATION, 'db_collation', 'select_db_collation', $db_collation, FALSE, 3)
|
. PMA_generateCharsetDropdownBox(PMA_CSDROPDOWN_COLLATION, 'db_collation', 'select_db_collation', $db_collation, FALSE, 3)
|
||||||
|
. ' </td><td align="right">'
|
||||||
. ' <input type="submit" name="submitcollation" value="' . $strGo . '" style="vertical-align: middle" /> ' . "\n"
|
. ' <input type="submit" name="submitcollation" value="' . $strGo . '" style="vertical-align: middle" /> ' . "\n"
|
||||||
|
. ' </td></tr>' . "\n"
|
||||||
. ' </form>' . "\n"
|
. ' </form>' . "\n"
|
||||||
. ' </li>' . "\n\n";
|
. ' ' . "\n\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($num_tables > 0
|
if ($num_tables > 0
|
||||||
&& !$cfgRelation['allworks'] && $cfg['PmaNoRelation_DisableWarning'] == FALSE) {
|
&& !$cfgRelation['allworks'] && $cfg['PmaNoRelation_DisableWarning'] == FALSE) {
|
||||||
echo ' <li>' . "\n";
|
echo ' <tr><td colspan="3"><img src="images/spacer.png" width="1" height="1" border="0" alt="" /></td></tr>' . "\n"
|
||||||
echo ' <font color="red">' . $strError . '</font><br />' . "\n";
|
. ' <tr><td colspan="3" class="tblHeadError">';
|
||||||
|
if($cfg['PropertiesIconic']){
|
||||||
|
echo '<img src="./images/s_error.png" border="0" width="16" height="16" hspace="2" align="absmiddle" />';
|
||||||
|
}
|
||||||
|
echo ' ' . $strError . '' . "\n";
|
||||||
|
echo '</td><tr>';
|
||||||
|
echo '<td colspan="3" class="tblError">';
|
||||||
$url_to_goto = '<a href="' . $cfg['PmaAbsoluteUri'] . 'chk_rel.php?' . $url_query . '">';
|
$url_to_goto = '<a href="' . $cfg['PmaAbsoluteUri'] . 'chk_rel.php?' . $url_query . '">';
|
||||||
echo ' ' . sprintf($strRelationNotWorking, $url_to_goto, '</a>') . "\n";
|
echo ' ' . sprintf(wordwrap($strRelationNotWorking,60,'<br />'), $url_to_goto, '</a>') . "\n";
|
||||||
echo ' </li>' . "\n";
|
echo ' </td></tr>' . "\n";
|
||||||
} // end if
|
} // end if
|
||||||
|
?>
|
||||||
|
</table>
|
||||||
|
<?php
|
||||||
// is this OK to check for 'class' support?
|
// is this OK to check for 'class' support?
|
||||||
if ($num_tables > 0) {
|
if ($num_tables > 0) {
|
||||||
$takeaway = $url_query . '&table=' . urlencode($table);
|
$takeaway = $url_query . '&table=' . urlencode($table);
|
||||||
}
|
}
|
||||||
|
if (($cfgRelation['pdfwork'] && $num_tables > 0) ||
|
||||||
|
($num_tables > 0
|
||||||
|
&& $cfgRelation['relwork'] && $cfgRelation['commwork']
|
||||||
|
&& isset($cfg['docSQLDir']) && !empty($cfg['docSQLDir'])
|
||||||
|
)
|
||||||
|
) { ?><hr /><table border="0" cellpadding="2" cellspacing="0"><?php }
|
||||||
|
|
||||||
if ($cfgRelation['pdfwork'] && $num_tables > 0) {
|
if ($cfgRelation['pdfwork'] && $num_tables > 0) {
|
||||||
?>
|
?>
|
||||||
<!-- Work on PDF Pages -->
|
<!-- Work on PDF Pages -->
|
||||||
<li>
|
<tr><td colspan="3" class="tblHeaders">
|
||||||
<a href="pdf_pages.php?<?php echo $takeaway; ?>"><?php echo $strEditPDFPages; ?></a>
|
<?php
|
||||||
</li>
|
if($cfg['PropertiesIconic']){
|
||||||
|
echo '<img src="./images/b_pdfdoc.png" border="0" width="16" height="16" hspace="2" align="absmiddle" />';
|
||||||
|
}
|
||||||
|
?>PDF</td></tr><tr bgcolor="<?php echo $cfg['BgcolorOne']; ?>">
|
||||||
|
<td colspan="3"><?php
|
||||||
|
echo '<a href="pdf_pages.php?' . $takeaway . '">';
|
||||||
|
if($cfg['PropertiesIconic']){
|
||||||
|
echo '<img src="./images/b_edit.png" border="0" width="16" height="16" hspace="2" align="absmiddle" />';
|
||||||
|
}
|
||||||
|
echo ''. $strEditPDFPages . '</a>';
|
||||||
|
?></td></tr>
|
||||||
|
|
||||||
<!-- PDF schema -->
|
<!-- PDF schema -->
|
||||||
<?php
|
<?php
|
||||||
@@ -740,10 +812,16 @@ if ($cfgRelation['pdfwork'] && $num_tables > 0) {
|
|||||||
if ($test_rs && PMA_DBI_num_rows($test_rs) > 0) {
|
if ($test_rs && PMA_DBI_num_rows($test_rs) > 0) {
|
||||||
echo "\n";
|
echo "\n";
|
||||||
?>
|
?>
|
||||||
<li>
|
|
||||||
<form method="post" action="pdf_schema.php">
|
<form method="post" action="pdf_schema.php">
|
||||||
<?php echo PMA_generate_common_hidden_inputs($db); ?>
|
<tr bgcolor="<?php echo $cfg['BgcolorTwo']; ?>"><td colspan="3">
|
||||||
<?php echo $strDisplayPDF; ?> :<br />
|
<?php
|
||||||
|
echo PMA_generate_common_hidden_inputs($db);
|
||||||
|
if($cfg['PropertiesIconic']){
|
||||||
|
echo '<img src="./images/b_view.png" border="0" width="16" height="16" hspace="2" align="absmiddle" />';
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<?php echo $strDisplayPDF; ?>: </td></tr>
|
||||||
|
<tr bgcolor="<?php echo $cfg['BgcolorTwo']; ?>"><td width="20"> </td><td colspan="2">
|
||||||
<?php echo $strPageNumber; ?>
|
<?php echo $strPageNumber; ?>
|
||||||
<select name="pdf_page_number">
|
<select name="pdf_page_number">
|
||||||
<?php
|
<?php
|
||||||
@@ -755,22 +833,36 @@ if ($cfgRelation['pdfwork'] && $num_tables > 0) {
|
|||||||
unset($test_rs);
|
unset($test_rs);
|
||||||
echo "\n";
|
echo "\n";
|
||||||
?>
|
?>
|
||||||
</select><br />
|
</select></td></tr>
|
||||||
<input type="checkbox" name="show_grid" id="show_grid_opt" />
|
<tr bgcolor="<?php echo $cfg['BgcolorTwo']; ?>">
|
||||||
<label for="show_grid_opt"><?php echo $strShowGrid; ?></label><br />
|
<td width="20"> </td><td width="20" valign="top">
|
||||||
<input type="checkbox" name="show_color" id="show_color_opt" checked="checked" />
|
<input type="checkbox" name="show_grid" id="show_grid_opt" /></td><td>
|
||||||
<label for="show_color_opt"><?php echo $strShowColor; ?></label><br />
|
<label for="show_grid_opt"><?php echo $strShowGrid; ?></label></td></tr>
|
||||||
<input type="checkbox" name="show_table_dimension" id="show_table_dim_opt" />
|
<tr bgcolor="<?php echo $cfg['BgcolorTwo']; ?>">
|
||||||
<label for="show_table_dim_opt"><?php echo $strShowTableDimension; ?></label><br />
|
<td width="20"> </td><td width="20" valign="top">
|
||||||
<input type="checkbox" name="all_tab_same_wide" id="all_tab_same_wide" />
|
<input type="checkbox" name="show_color" id="show_color_opt" checked="checked" /></td><td>
|
||||||
<label for="all_tab_same_wide"><?php echo $strAllTableSameWidth; ?></label> <br />
|
<label for="show_color_opt"><?php echo $strShowColor; ?></label></td></tr>
|
||||||
<input type="checkbox" name="with_doc" id="with_doc" checked="checked" />
|
<tr bgcolor="<?php echo $cfg['BgcolorTwo']; ?>">
|
||||||
<label for="with_doc"><?php echo $strDataDict; ?></label> <br />
|
<td width="20"> </td><td width="20" valign="top">
|
||||||
|
<input type="checkbox" name="show_table_dimension" id="show_table_dim_opt" /></td><td>
|
||||||
|
<label for="show_table_dim_opt"><?php echo $strShowTableDimension; ?></label></td></tr>
|
||||||
|
<tr bgcolor="<?php echo $cfg['BgcolorTwo']; ?>">
|
||||||
|
<td width="20"> </td><td width="20" valign="top">
|
||||||
|
<input type="checkbox" name="all_tab_same_wide" id="all_tab_same_wide" /></td><td>
|
||||||
|
<label for="all_tab_same_wide"><?php echo wordwrap($strAllTableSameWidth,55,'<br />'); ?></label></td></tr>
|
||||||
|
<tr bgcolor="<?php echo $cfg['BgcolorTwo']; ?>">
|
||||||
|
<td width="20"> </td><td width="20" valign="top">
|
||||||
|
<input type="checkbox" name="with_doc" id="with_doc" checked="checked" /></td><td>
|
||||||
|
<label for="with_doc"><?php echo $strDataDict; ?></label></td></tr>
|
||||||
|
<tr bgcolor="<?php echo $cfg['BgcolorTwo']; ?>">
|
||||||
|
<td width="20"> </td><td colspan="2">
|
||||||
<?php echo $strShowDatadictAs; ?>
|
<?php echo $strShowDatadictAs; ?>
|
||||||
<select name="orientation">
|
<select name="orientation">
|
||||||
<option value="L"><?php echo $strLandscape;?></option>
|
<option value="L"><?php echo $strLandscape;?></option>
|
||||||
<option value="P"><?php echo $strPortrait;?></option>
|
<option value="P"><?php echo $strPortrait;?></option>
|
||||||
</select><br />
|
</select></td></tr>
|
||||||
|
<tr bgcolor="<?php echo $cfg['BgcolorTwo']; ?>">
|
||||||
|
<td width="20"> </td><td colspan="2">
|
||||||
<?php echo $strPaperSize; ?>
|
<?php echo $strPaperSize; ?>
|
||||||
<select name="paper">
|
<select name="paper">
|
||||||
<?php
|
<?php
|
||||||
@@ -782,12 +874,17 @@ if ($cfgRelation['pdfwork'] && $num_tables > 0) {
|
|||||||
echo ' >' . $val . '</option>' . "\n";
|
echo ' >' . $val . '</option>' . "\n";
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</select><br />
|
</select></td></tr>
|
||||||
<input type="submit" value="<?php echo $strGo; ?>" />
|
<tr bgcolor="<?php echo $cfg['BgcolorTwo']; ?>">
|
||||||
</form>
|
<td width="20"> </td><td colspan="3" align="right">
|
||||||
</li>
|
<input type="submit" value="<?php echo $strGo; ?>" /></td>
|
||||||
|
</form></tr>
|
||||||
|
<tr><td colspan="3"><img src="images/spacer.png" width="1" height="1" border="0" alt="" /></td></tr>
|
||||||
<?php
|
<?php
|
||||||
} // end if
|
} // end if
|
||||||
|
?>
|
||||||
|
|
||||||
|
<?php
|
||||||
} // end if
|
} // end if
|
||||||
|
|
||||||
if ($num_tables > 0
|
if ($num_tables > 0
|
||||||
@@ -796,13 +893,23 @@ if ($num_tables > 0
|
|||||||
) {
|
) {
|
||||||
?>
|
?>
|
||||||
<!-- import docSQL files -->
|
<!-- import docSQL files -->
|
||||||
<li>
|
<tr bgcolor="<?php echo $cfg['BgcolorOne']; ?>"><td colspan="3"><?php
|
||||||
<a href="db_details_importdocsql.php?<?php echo $takeaway . '">' . $strImportDocSQL; ?></a>
|
echo '<a href="db_details_importdocsql.php?' . $takeaway . '">';
|
||||||
</li>
|
if($cfg['PropertiesIconic']){
|
||||||
|
echo '<img src="./images/b_docsql.png" border="0" width="16" height="16" hspace="2" align="absmiddle" />';
|
||||||
|
}
|
||||||
|
echo $strImportDocSQL . '</a>';
|
||||||
|
?>
|
||||||
|
</td></tr>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
echo "\n" . '</ul>';
|
echo "\n";
|
||||||
|
if (($cfgRelation['pdfwork'] && $num_tables > 0) ||
|
||||||
|
($num_tables > 0
|
||||||
|
&& $cfgRelation['relwork'] && $cfgRelation['commwork']
|
||||||
|
&& isset($cfg['docSQLDir']) && !empty($cfg['docSQLDir'])
|
||||||
|
)
|
||||||
|
) { ?></table><?php }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Displays the footer
|
* Displays the footer
|
||||||
|
@@ -22,7 +22,7 @@ if (empty($GLOBALS['is_header_sent'])) {
|
|||||||
|
|
||||||
require_once('./libraries/header_http.inc.php');
|
require_once('./libraries/header_http.inc.php');
|
||||||
require_once('./libraries/header_meta_style.inc.php');
|
require_once('./libraries/header_meta_style.inc.php');
|
||||||
|
/* replaced 2004-05-05 by Michael Keck (mkkeck)
|
||||||
$title = '';
|
$title = '';
|
||||||
if (isset($GLOBALS['db'])) {
|
if (isset($GLOBALS['db'])) {
|
||||||
$title .= str_replace('\'', '\\\'', $GLOBALS['db']);
|
$title .= str_replace('\'', '\\\'', $GLOBALS['db']);
|
||||||
@@ -35,6 +35,29 @@ if (empty($GLOBALS['is_header_sent'])) {
|
|||||||
. sprintf($GLOBALS['strRunning'], (empty($GLOBALS['cfg']['Server']['verbose']) ? str_replace('\'', '\\\'', $GLOBALS['cfg']['Server']['host']) : str_replace('\'', '\\\'', $GLOBALS['cfg']['Server']['verbose'])));
|
. sprintf($GLOBALS['strRunning'], (empty($GLOBALS['cfg']['Server']['verbose']) ? str_replace('\'', '\\\'', $GLOBALS['cfg']['Server']['host']) : str_replace('\'', '\\\'', $GLOBALS['cfg']['Server']['verbose'])));
|
||||||
}
|
}
|
||||||
$title .= (empty($title) ? '' : ' - ') . 'phpMyAdmin ' . PMA_VERSION;
|
$title .= (empty($title) ? '' : ' - ') . 'phpMyAdmin ' . PMA_VERSION;
|
||||||
|
*/
|
||||||
|
/* the new one
|
||||||
|
* 2004-05-05: replaced by Michael Keck (mkkeck)
|
||||||
|
*/
|
||||||
|
$title = 'PMA | ';
|
||||||
|
if (!isset($cfg['SetHttpHostTitle']) || empty($cfg['SetHttpHostTitle'])){
|
||||||
|
if (isset($HTTP_HOST)){
|
||||||
|
$cfg['SetHttpHostTitle'] = $HTTP_HOST;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if ($cfg['ShowHttpHostTitle']) {
|
||||||
|
$title .= (empty($cfg['SetHttpHostTitle']) ? $HTTP_HOST : $cfg['SetHttpHostTitle']) . ' >> ';
|
||||||
|
}
|
||||||
|
if (!empty($GLOBALS['cfg']['Server']) && isset($GLOBALS['cfg']['Server']['host'])) {
|
||||||
|
$title.=str_replace('\'', '\\\'', $GLOBALS['cfg']['Server']['host']);
|
||||||
|
}
|
||||||
|
if (isset($GLOBALS['db'])) {
|
||||||
|
$title .= ' >> ' . str_replace('\'', '\\\'', $GLOBALS['db']);
|
||||||
|
}
|
||||||
|
if (isset($GLOBALS['table'])) {
|
||||||
|
$title .= (empty($title) ? '' : ' ') . ' >> ' . str_replace('\'', '\\\'', $GLOBALS['table']);
|
||||||
|
}
|
||||||
|
$title .= ' | phpMyAdmin ' . PMA_VERSION;
|
||||||
?>
|
?>
|
||||||
<script type="text/javascript" language="javascript">
|
<script type="text/javascript" language="javascript">
|
||||||
<!--
|
<!--
|
||||||
@@ -129,6 +152,7 @@ if (empty($GLOBALS['is_header_sent'])) {
|
|||||||
if (!defined('PMA_DISPLAY_HEADING')) {
|
if (!defined('PMA_DISPLAY_HEADING')) {
|
||||||
define('PMA_DISPLAY_HEADING', 1);
|
define('PMA_DISPLAY_HEADING', 1);
|
||||||
}
|
}
|
||||||
|
/* replaced 2004-05-05 by mkkeck
|
||||||
if (PMA_DISPLAY_HEADING) {
|
if (PMA_DISPLAY_HEADING) {
|
||||||
$header_url_qry = '?' . PMA_generate_common_url();
|
$header_url_qry = '?' . PMA_generate_common_url();
|
||||||
echo '<h1>' . "\n";
|
echo '<h1>' . "\n";
|
||||||
@@ -150,6 +174,66 @@ if (empty($GLOBALS['is_header_sent'])) {
|
|||||||
}
|
}
|
||||||
echo "\n" . '</h1>' . "\n";
|
echo "\n" . '</h1>' . "\n";
|
||||||
}
|
}
|
||||||
|
/**/
|
||||||
|
/* the new one with Icons
|
||||||
|
* 2004-05-05 by Michael Keck (mkkeck)
|
||||||
|
*/
|
||||||
|
if (PMA_DISPLAY_HEADING) {
|
||||||
|
$header_url_qry = '?' . PMA_generate_common_url();
|
||||||
|
echo '<table border="0" cellpadding="0" cellspacing="0"><tr>';
|
||||||
|
$server_info = (!empty($cfg['Server']['verbose'])
|
||||||
|
? $cfg['Server']['verbose']
|
||||||
|
: $server_info = $cfg['Server']['host'] . (empty($cfg['Server']['port'])
|
||||||
|
? ''
|
||||||
|
: ':' . $cfg['Server']['port']
|
||||||
|
)
|
||||||
|
);
|
||||||
|
if (isset($GLOBALS['db'])) {
|
||||||
|
if($cfg['PropertiesIconic']){
|
||||||
|
$host_icon_img='<img src="./images/s_host.png" width="16" height="16" border="0" hspace="2" align="absmiddle" />';
|
||||||
|
}
|
||||||
|
echo '<td nowrap="nowrap">Server: </td>'
|
||||||
|
. '<td nowrap="nowrap"><b>'
|
||||||
|
. '<a href="' . $GLOBALS['cfg']['DefaultTabServer'] . $header_url_qry . '">' . $host_icon_img . htmlspecialchars($server_info) . '</a>'
|
||||||
|
. '</b></td>';
|
||||||
|
if($cfg['PropertiesIconic']){
|
||||||
|
$db_icon_img='<img src="./images/s_db.png" width="16" height="16" border="0" hspace="2" align="absmiddle" />';
|
||||||
|
}
|
||||||
|
echo '<td nowrap="nowrap"> > </td>';
|
||||||
|
echo '<td nowrap="nowrap">' . $GLOBALS['strDatabase'] . ': </td>'
|
||||||
|
. '<td nowrap="nowrap"><b>'
|
||||||
|
. '<a href="' . $GLOBALS['cfg']['DefaultTabDatabase'] . $header_url_qry . '&db=' . urlencode($GLOBALS['db']) . '">'
|
||||||
|
. $db_icon_img . htmlspecialchars($GLOBALS['db']) . '</a>'
|
||||||
|
. '</b></td>';
|
||||||
|
if (!empty($GLOBALS['table'])) {
|
||||||
|
if($cfg['PropertiesIconic']){
|
||||||
|
$tbl_icon_img='<img src="./images/s_tbl.png" width="16" height="16" border="0" hspace="2" align="absmiddle" />';
|
||||||
|
}
|
||||||
|
echo '<td nowrap="nowrap"> > </td>';
|
||||||
|
echo '<td nowrap="nowrap">' . $GLOBALS['strTable'] . ': </td>'
|
||||||
|
. '<td nowrap="nowrap"><b><a href="'
|
||||||
|
. $GLOBALS['cfg']['DefaultTabTable'] . $header_url_qry . '&db=' . urlencode($GLOBALS['db']) . '&table=' . urlencode($GLOBALS['table']) . '">'
|
||||||
|
. $tbl_icon_img . htmlspecialchars($GLOBALS['table'])
|
||||||
|
. '</a></b></td>';
|
||||||
|
}
|
||||||
|
|
||||||
|
} else {
|
||||||
|
if($cfg['PropertiesIconic']){
|
||||||
|
$host_icon_img='<img src="./images/s_host.png" width="16" height="16" border="0" hspace="2" align="absmiddle" />';
|
||||||
|
}
|
||||||
|
echo '<tr><td nowrap="nowrap">Server: </td>'
|
||||||
|
. '<td nowrap="nowrap"><b><a href="' . $GLOBALS['cfg']['DefaultTabServer'] . $header_url_qry . '">'
|
||||||
|
. $host_icon_img
|
||||||
|
. htmlspecialchars($server_info)
|
||||||
|
. '</a></b> </td>';
|
||||||
|
}
|
||||||
|
echo '</tr></table><br />';
|
||||||
|
}
|
||||||
|
/* end of replacement
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
echo "\n";
|
echo "\n";
|
||||||
|
|
||||||
|
|
||||||
|
BIN
images/_b_docs.png
Normal file
After Width: | Height: | Size: 279 B |
BIN
images/arrow_ltr.png
Normal file
After Width: | Height: | Size: 277 B |
BIN
images/arrow_rtl.png
Normal file
After Width: | Height: | Size: 278 B |
BIN
images/b_bookmark.png
Normal file
After Width: | Height: | Size: 372 B |
BIN
images/b_browse.png
Normal file
After Width: | Height: | Size: 265 B |
BIN
images/b_calendar.png
Normal file
After Width: | Height: | Size: 308 B |
BIN
images/b_comment.png
Normal file
After Width: | Height: | Size: 552 B |
BIN
images/b_deltbl.png
Normal file
After Width: | Height: | Size: 364 B |
BIN
images/b_docs.png
Normal file
After Width: | Height: | Size: 294 B |
BIN
images/b_docsql.png
Normal file
After Width: | Height: | Size: 283 B |
BIN
images/b_drop.png
Normal file
After Width: | Height: | Size: 311 B |
BIN
images/b_edit.png
Normal file
After Width: | Height: | Size: 451 B |
BIN
images/b_empty.png
Normal file
After Width: | Height: | Size: 298 B |
BIN
images/b_export.png
Normal file
After Width: | Height: | Size: 313 B |
BIN
images/b_firstpage.png
Normal file
After Width: | Height: | Size: 238 B |
BIN
images/b_ftext.png
Normal file
After Width: | Height: | Size: 277 B |
BIN
images/b_help.png
Normal file
After Width: | Height: | Size: 229 B |
BIN
images/b_home.png
Normal file
After Width: | Height: | Size: 370 B |
BIN
images/b_import.png
Normal file
After Width: | Height: | Size: 310 B |
BIN
images/b_index.png
Normal file
After Width: | Height: | Size: 315 B |
BIN
images/b_info.png
Normal file
After Width: | Height: | Size: 234 B |
BIN
images/b_insrow.png
Normal file
After Width: | Height: | Size: 283 B |
BIN
images/b_lastpage.png
Normal file
After Width: | Height: | Size: 236 B |
BIN
images/b_minus.png
Normal file
After Width: | Height: | Size: 183 B |
BIN
images/b_newdb.png
Normal file
After Width: | Height: | Size: 408 B |
BIN
images/b_newtbl.png
Normal file
After Width: | Height: | Size: 409 B |
BIN
images/b_nextpage.png
Normal file
After Width: | Height: | Size: 221 B |
BIN
images/b_pdfdoc.png
Normal file
After Width: | Height: | Size: 298 B |
BIN
images/b_plus.png
Normal file
After Width: | Height: | Size: 185 B |
BIN
images/b_prevpage.png
Normal file
After Width: | Height: | Size: 225 B |
BIN
images/b_primary.png
Normal file
After Width: | Height: | Size: 416 B |
BIN
images/b_print.png
Normal file
After Width: | Height: | Size: 574 B |
BIN
images/b_props.png
Normal file
After Width: | Height: | Size: 294 B |
BIN
images/b_relations.png
Normal file
After Width: | Height: | Size: 280 B |
BIN
images/b_save.png
Normal file
After Width: | Height: | Size: 385 B |
BIN
images/b_sbrowse.png
Normal file
After Width: | Height: | Size: 197 B |
BIN
images/b_sdb.png
Normal file
After Width: | Height: | Size: 232 B |
BIN
images/b_search.png
Normal file
After Width: | Height: | Size: 605 B |
BIN
images/b_selboard.png
Normal file
After Width: | Height: | Size: 551 B |
BIN
images/b_select.png
Normal file
After Width: | Height: | Size: 540 B |
BIN
images/b_sql.png
Normal file
After Width: | Height: | Size: 322 B |
BIN
images/b_sqldoc.png
Normal file
After Width: | Height: | Size: 290 B |
BIN
images/b_tblanalyse.png
Normal file
After Width: | Height: | Size: 296 B |
BIN
images/b_tblexport.png
Normal file
After Width: | Height: | Size: 283 B |
BIN
images/b_tblimport.png
Normal file
After Width: | Height: | Size: 280 B |
BIN
images/b_tipp.png
Normal file
After Width: | Height: | Size: 308 B |
BIN
images/b_unique.png
Normal file
After Width: | Height: | Size: 281 B |
BIN
images/b_view.png
Normal file
After Width: | Height: | Size: 885 B |
BIN
images/bd_browse.png
Normal file
After Width: | Height: | Size: 265 B |
BIN
images/bd_empty.png
Normal file
After Width: | Height: | Size: 298 B |
BIN
images/bd_firstpage.png
Normal file
After Width: | Height: | Size: 238 B |
BIN
images/bd_ftext.png
Normal file
After Width: | Height: | Size: 277 B |
BIN
images/bd_index.png
Normal file
After Width: | Height: | Size: 315 B |
BIN
images/bd_lastpage.png
Normal file
After Width: | Height: | Size: 236 B |
BIN
images/bd_nextpage.png
Normal file
After Width: | Height: | Size: 221 B |
BIN
images/bd_prevpage.png
Normal file
After Width: | Height: | Size: 225 B |
BIN
images/bd_primary.png
Normal file
After Width: | Height: | Size: 389 B |
BIN
images/bd_sbrowse.png
Normal file
After Width: | Height: | Size: 197 B |
BIN
images/bd_select.png
Normal file
After Width: | Height: | Size: 524 B |
BIN
images/bd_unique.png
Normal file
After Width: | Height: | Size: 287 B |
BIN
images/dot_black.png
Normal file
After Width: | Height: | Size: 158 B |
BIN
images/dot_blue.png
Normal file
After Width: | Height: | Size: 158 B |
BIN
images/dot_green.png
Normal file
After Width: | Height: | Size: 158 B |
BIN
images/dot_red.png
Normal file
After Width: | Height: | Size: 158 B |
BIN
images/dot_violet.png
Normal file
After Width: | Height: | Size: 158 B |
BIN
images/dot_yellow.png
Normal file
After Width: | Height: | Size: 158 B |
BIN
images/frm_linevrlt.png
Normal file
After Width: | Height: | Size: 156 B |
BIN
images/php_sym.png
Normal file
After Width: | Height: | Size: 249 B |
BIN
images/pma_logo2.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
images/s_asc.png
Normal file
After Width: | Height: | Size: 213 B |
BIN
images/s_asci.png
Normal file
After Width: | Height: | Size: 254 B |
BIN
images/s_attention.png
Normal file
After Width: | Height: | Size: 247 B |
BIN
images/s_cancel.png
Normal file
After Width: | Height: | Size: 449 B |
BIN
images/s_cancel2.png
Normal file
After Width: | Height: | Size: 234 B |
BIN
images/s_db.png
Normal file
After Width: | Height: | Size: 285 B |
BIN
images/s_desc.png
Normal file
After Width: | Height: | Size: 221 B |
BIN
images/s_error.png
Normal file
After Width: | Height: | Size: 272 B |
BIN
images/s_error2.png
Normal file
After Width: | Height: | Size: 237 B |
BIN
images/s_fulltext.png
Normal file
After Width: | Height: | Size: 308 B |
BIN
images/s_host.png
Normal file
After Width: | Height: | Size: 316 B |
BIN
images/s_info.png
Normal file
After Width: | Height: | Size: 247 B |
BIN
images/s_lang.png
Normal file
After Width: | Height: | Size: 422 B |
BIN
images/s_loggoff.png
Normal file
After Width: | Height: | Size: 262 B |
BIN
images/s_notice.png
Normal file
After Width: | Height: | Size: 247 B |
BIN
images/s_okay.png
Normal file
After Width: | Height: | Size: 542 B |
BIN
images/s_partialtext.png
Normal file
After Width: | Height: | Size: 318 B |
BIN
images/s_passwd.png
Normal file
After Width: | Height: | Size: 505 B |
BIN
images/s_process.png
Normal file
After Width: | Height: | Size: 362 B |
BIN
images/s_reload.png
Normal file
After Width: | Height: | Size: 245 B |
BIN
images/s_rights.png
Normal file
After Width: | Height: | Size: 405 B |
BIN
images/s_status.png
Normal file
After Width: | Height: | Size: 313 B |
BIN
images/s_tbl.png
Normal file
After Width: | Height: | Size: 252 B |
BIN
images/s_vars.png
Normal file
After Width: | Height: | Size: 306 B |
BIN
images/s_warn.png
Normal file
After Width: | Height: | Size: 261 B |