This simple patch adds a class to the fields in the popup. I like being able to change the color of their text because I think it offers greater contrast. The recent change in mythweb makes it necessary to update this file now instead of just updating the theme. After the patch is applied you can add something like the following to the css:

td.field {
    vertical-align: top;
    text-align: right;
    color: #CCCCCC;
}

Again, just a minor visual fix.
Index: programs.php
===================================================================
RCS file: /var/lib/mythcvs/mythweb/includes/programs.php,v
retrieving revision 1.61
diff -u -r1.61 programs.php
--- programs.php        22 Jan 2005 08:17:02 -0000      1.61
+++ programs.php        1 Feb 2005 23:12:40 -0000
@@ -466,13 +466,13 @@
 
     function details_table() {
     // Start the table, and print the show airtime and title
-        $str = "<table border=\"0\" cellpadding=\"2\" 
cellspacing=\"0\">\n<tr>\n\t<td align=\"right\">"
+        $str = "<table border=\"0\" cellpadding=\"2\" 
cellspacing=\"0\">\n<tr>\n\t<td class=\"field\">"
             // Airtime
               .t('Airtime')
               .":</td>\n\t<td>"
               .strftime($_SESSION['time_format'], $this->starttime)
               .' to '.strftime($_SESSION['time_format'], $this->endtime)
-              ."</td>\n</tr><tr>\n\t<td align=\"right\">"
+              ."</td>\n</tr><tr>\n\t<td class=\"field\">"
             // Title
               .t('Title')
               .":</td>\n\t<td>"
@@ -480,7 +480,7 @@
               ."</td>\n</tr>";
     // Subtitle
         if (preg_match('/\\S/', $this->subtitle)) {
-            $str .= "<tr>\n\t<td align=\"right\">"
+            $str .= "<tr>\n\t<td class=\"field\">"
                    .t('Subtitle')
                    .":</td>\n\t<td>"
                    .$this->subtitle
@@ -488,7 +488,7 @@
         }
     // Description
         if (preg_match('/\\S/', $this->description)) {
-            $str .= "<tr>\n\t<td align=\"right\">"
+            $str .= "<tr>\n\t<td class=\"field\">"
                    .t('Description')
                    .":</td>\n\t<td>"
                    .nl2br(wordwrap($this->description, 70))
@@ -496,7 +496,7 @@
         }
     // Rating
         if (preg_match('/\\S/', $this->rating)) {
-            $str .= "<tr>\n\t<td align=\"right\">"
+            $str .= "<tr>\n\t<td class=\"field\">"
                    .t('Rating')
                    .":</td>\n\t<td>"
                    .$this->rating
@@ -504,7 +504,7 @@
         }
     // Original Airdate
         if (!empty($this->airdate)) {
-            $str .= "<tr>\n\t<td align=\"right\">"
+            $str .= "<tr>\n\t<td class=\"field\">"
                    .t('Original Airdate')
                    .":</td>\n\t<td>"
                    .$this->airdate
@@ -512,7 +512,7 @@
         }
     // Category
         if (preg_match('/\\S/', $this->category)) {
-            $str .= "<tr>\n\t<td align=\"right\">"
+            $str .= "<tr>\n\t<td class=\"field\">"
                    .t('Category')
                    .":</td>\n\t<td>"
                    .$this->category
@@ -520,7 +520,7 @@
         }
     // Rerun?
         if (!empty($this->previouslyshown)) {
-            $str .= "<tr>\n\t<td align=\"right\">"
+            $str .= "<tr>\n\t<td class=\"field\">"
                    .t('Rerun')
                    .":</td>\n\t<td>"
                    .t('Yes')
@@ -528,7 +528,7 @@
         }
     // Will be recorded at some point in the future?
         if (!empty($this->will_record)) {
-            $str .= "<tr>\n\t<td align=\"right\">"
+            $str .= "<tr>\n\t<td class=\"field\">"
                    .t('Schedule')
                    .":</td>\n\t<td>";
             if ($this->record_daily)       { $str .= t('rectype-long: daily'); 
  }
@@ -541,7 +541,7 @@
         }
     // Recording status
         if (!empty($this->recstatus)) {
-            $str .= "<tr>\n\t<td align=\"right\">"
+            $str .= "<tr>\n\t<td class=\"field\">"
                    .t('Notes')
                    .":</td>\n\t<td>"
                    .$GLOBALS['RecStatus_Reasons'][$this->recstatus]
Index: recordings.php
===================================================================
RCS file: /var/lib/mythcvs/mythweb/includes/recordings.php,v
retrieving revision 1.18
diff -u -r1.18 recordings.php
--- recordings.php      22 Jan 2005 08:17:02 -0000      1.18
+++ recordings.php      1 Feb 2005 23:12:48 -0000
@@ -183,13 +183,13 @@
 */
     function details_table() {
     // Start the table, and print the show title
-        $str = "<table border=\"0\" cellpadding=\"2\" 
cellspacing=\"0\">\n<tr>\n\t<td align=\"right\">"
+        $str = "<table border=\"0\" cellpadding=\"2\" 
cellspacing=\"0\">\n<tr>\n\t<td class=\"field\">"
               .t('Title')
               .":</td>\n\t<td>"
               .$this->title
               ."</td>\n</tr>";
     // Type
-        $str .= "<tr>\n\t<td align=\"right\">"
+        $str .= "<tr>\n\t<td class=\"field\">"
                .t('Type')
                .":</td>\n\t<td>"
                .$this->texttype
@@ -197,7 +197,7 @@
     // Only show these fields for recording types where they're relevant 
(1:once, 2:daily, 5:weekly, 7:override, 8:dontrec)
         if (($this->type == 1) || ($this->type == 2) || ($this->type == 5) || 
($this->type == 7) || ($this->type == 8)) {
         // Airtime
-            $str .= "<tr>\n\t<td align=\"right\">"
+            $str .= "<tr>\n\t<td class=\"field\">"
                    .t('Airtime')
                    .":</td>\n\t<td>"
                    .strftime($_SESSION['date_scheduled_popup'].', 
'.$_SESSION['time_format'], $this->starttime)
@@ -205,7 +205,7 @@
                    ."</td>\n</tr>";
         // Subtitle
             if (preg_match('/\\S/', $this->subtitle)) {
-                $str .= "<tr>\n\t<td align=\"right\">"
+                $str .= "<tr>\n\t<td class=\"field\">"
                        .t('Subtitle')
                        .":</td>\n\t<td>"
                        .$this->subtitle
@@ -213,7 +213,7 @@
             }
         // Description
             if (preg_match('/\\S/', $this->description)) {
-                $str .= "<tr>\n\t<td align=\"right\" valign=\"top\">"
+                $str .= "<tr>\n\t<td class=\"field\">"
                        .t('Description')
                        .":</td>\n\t<td>"
                        .nl2br(wordwrap($this->description, 70))
@@ -221,7 +221,7 @@
             }
         // Rating
             if (preg_match('/\\S/', $this->rating)) {
-                $str .= "<tr>\n\t<td align=\"right\">"
+                $str .= "<tr>\n\t<td class=\"field\">"
                        .t('Rating')
                        .":</td>\n\t<td>"
                        .$this->rating
@@ -230,7 +230,7 @@
         }
     // Category
         if (preg_match('/\\S/', $this->category)) {
-            $str .= "<tr>\n\t<td align=\"right\">"
+            $str .= "<tr>\n\t<td class=\"field\">"
                    .t('Category')
                    .":</td>\n\t<td>"
                    .$this->category
@@ -238,7 +238,7 @@
         }
     // Rerun?
         if (!empty($this->previouslyshown)) {
-            $str .= "<tr>\n\t<td align=\"right\">"
+            $str .= "<tr>\n\t<td class=\"field\">"
                    .t('Rerun')
                    .":</td>\n\t<td>"
                    .t('Yes')
@@ -246,7 +246,7 @@
         }
     // Will be recorded at some point in the future?
         if (!empty($this->will_record)) {
-            $str .= "<tr>\n\t<td align=\"right\">"
+            $str .= "<tr>\n\t<td class=\"field\">"
                    .t('Schedule')
                    .":</td>\n\t<td>";
             if ($this->record_daily)       { $str .= t('rectype-long: daily'); 
  }
@@ -259,7 +259,7 @@
         }
     // Which duplicate-checking method will be used
         if ($this->dupmethod > 0) {
-            $str .= "<tr>\n\t<td align=\"right\">"
+            $str .= "<tr>\n\t<td class=\"field\">"
                    .t('Dup Method')
                    .":</td>\n\t<td>";
             switch ($this->dupmethod) {
@@ -273,7 +273,7 @@
         }
     // Profile
         if (preg_match('/\\S/', $this->profile)) {
-            $str .= "<tr>\n\t<td align=\"right\">"
+            $str .= "<tr>\n\t<td class=\"field\">"
                    .t('Profile')
                    .":</td>\n\t<td>"
                    .$this->profile
@@ -281,7 +281,7 @@
         }
     // Recording Group
         if (!empty($this->recgroup)) {
-            $str .="<tr>\n\t<td align=\"right\">"
+            $str .="<tr>\n\t<td class=\"field\">"
                    .t('Recording Group')
                    .":</td>\n\t<td>"
                    .$this->recgroup
@@ -289,7 +289,7 @@
         }
     // Recording status
         if (!empty($this->recstatus)) {
-            $str .= "<tr>\n\t<td align=\"right\">"
+            $str .= "<tr>\n\t<td class=\"field\">"
                    .t('Notes')
                    .":</td>\n\t<td>"
                    .$GLOBALS['RecStatus_Reasons'][$this->recstatus]
_______________________________________________
mythtv-dev mailing list
[email protected]
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev

Reply via email to