[Phpmyadmin-devel] cosmetic fixes for left.php

Jan Paul Schmidt jps at mail.arsnet.de
Fri Aug 31 10:54:13 CEST 2001


I inserted some nobreaks (<nobr>) to left.php, so the table names are not
broken to the next line, if they are too long. If you are interested in
this, I attached a diff to the 2.2.0-final.

By the way, the source of phpMyAdmin gets cleaner. Good work :o)

jps
-------------- next part --------------
--- left.php.orig	Fri Aug 31 10:36:37 2001
+++ left.php	Fri Aug 31 10:42:00 2001
@@ -163,8 +163,8 @@
 <body bgcolor="#D0DCE0">
     <!-- Link to the welcome page -->
     <div id="el1Parent" class="parent" style="margin-bottom: 5px">
-        <a class="item" href="main.php?lang=<?php echo $lang; ?>&server=<?php echo $server; ?>">
-            <font color="black" class="heada"><b><?php echo $strHome; ?></b></font></a>
+        <nobr><a class="item" href="main.php?lang=<?php echo $lang; ?>&server=<?php echo $server; ?>">
+            <font color="black" class="heada"><b><?php echo $strHome; ?></b></font></a></nobr>
     </div>
 
    
@@ -206,7 +206,7 @@
         if (!empty($num_tables)) {
             echo "\n";
             ?>
-        <a class="item" href="db_details.php?<?php echo $common_url_query; ?>" onclick="if (capable) {expandBase('el<?php echo $j; ?>', true); return false;}">
+        <nobr><a class="item" href="db_details.php?<?php echo $common_url_query; ?>" onclick="if (capable) {expandBase('el<?php echo $j; ?>', true); return false;}">
             <img name="imEx" id="el<?php echo $j; ?>Img" src="images/plus.gif" border="0" width="9" height="9" alt="+" /></a>
             <?php
         } else {
@@ -218,7 +218,7 @@
         echo "\n";
         ?>
         <a class="item" href="db_details.php?<?php echo $common_url_query; ?>" onclick="if (capable) {expandBase('el<?php echo $j; ?>', false)}">
-            <font color="black" class="heada"><?php echo $db; ?>  <span class="heada_cnt">(<?php echo $num_tables_disp; ?>)</span></font></a>
+            <font color="black" class="heada"><?php echo $db; ?>  <span class="heada_cnt">(<?php echo $num_tables_disp; ?>)</span></font></a></nobr>
     </div>
 
     <div id="el<?php echo $j;?>Child" class="child" style="margin-bottom: 5px">
@@ -278,8 +278,8 @@
     echo "\n";
     ?>
     <div id="el2Parent" class="parent">
-        <a class="item" href="db_details.php?<?php echo $common_url_query; ?>">
-            <font color="black" class="heada"><?php echo $db; ?>  <span class="heada_cnt">(<?php echo $num_tables_disp; ?>)</span></font></a>
+        <nobr><a class="item" href="db_details.php?<?php echo $common_url_query; ?>">
+            <font color="black" class="heada"><?php echo $db; ?>  <span class="heada_cnt">(<?php echo $num_tables_disp; ?>)</span></font></a><nobr>
     </div>
     <div id="el2Child" class="child" style="margin-bottom: 5px">
     <?php


More information about the Developers mailing list