Ticket #8661: duplicate-missing.patch
File duplicate-missing.patch, 13.3 KB (added by , 14 years ago) |
---|
-
mythplugins/mythweb/modules/tv/tmpl/default/schedules.php
92 92 <?php 93 93 $prev_group = ''; 94 94 $cur_group = ''; 95 foreach ($the_schedules as $sched ule) {95 foreach ($the_schedules as $sched_elmt) { 96 96 // Reset the command variable to a default URL 97 $urlstr = 'recordid='.$sched ule->recordid;97 $urlstr = 'recordid='.$sched_elmt->recordid; 98 98 99 $css_class = ($sched ule->type == rectype_dontrec ? 'deactivated' : 'scheduled');99 $css_class = ($sched_elmt->type == rectype_dontrec ? 'deactivated' : 'scheduled'); 100 100 // If this is an 'always on any channel' or 'find one' recording w/o a channel, set the channel name to 'Any' 101 if ($sched ule->type == rectype_always || ($schedule->type == rectype_findone && !preg_match('/\\S/', $schedule->channel->channum)))102 $sched ule->channel->name = '[ '.t('Any').' ]';101 if ($sched_elmt->type == rectype_always || ($sched_elmt->type == rectype_findone && !preg_match('/\\S/', $sched_elmt->channel->channum))) 102 $sched_elmt->channel->name = '[ '.t('Any').' ]'; 103 103 // A program id counter for popup info 104 104 if ($_SESSION["show_popup_info"]) { 105 105 static $program_id_counter = 0; … … 108 108 109 109 // Print a dividing row if grouping changes 110 110 if ($group_field == 'type') 111 $cur_group = $sched ule->texttype;111 $cur_group = $sched_elmt->texttype; 112 112 elseif ($group_field == 'channum') 113 $cur_group = ($sched ule->channel->channum ? $schedule->channel->channum.' - ' : '').$schedule->channel->name;113 $cur_group = ($sched_elmt->channel->channum ? $sched_elmt->channel->channum.' - ' : '').$sched_elmt->channel->name; 114 114 elseif ($group_field == 'profile') 115 $cur_group = $sched ule->profile;115 $cur_group = $sched_elmt->profile; 116 116 elseif ($group_field == 'recgroup') 117 $cur_group = $sched ule->recgroup;117 $cur_group = $sched_elmt->recgroup; 118 118 elseif ($group_field == 'storagegroup') 119 $cur_group = $sched ule->storagegroup;119 $cur_group = $sched_elmt->storagegroup; 120 120 // "none"? 121 121 $cur_group or $cur_group = t('None'); 122 122 123 $style_class = $sched ule->css_class;124 if ($sched ule->type == rectype_override)123 $style_class = $sched_elmt->css_class; 124 if ($sched_elmt->type == rectype_override) 125 125 $style_class .= ' record_override_record'; 126 elseif ($sched ule->type == rectype_dontrec)126 elseif ($sched_elmt->type == rectype_dontrec) 127 127 $style_class .= ' record_override_suppress'; 128 128 129 129 if ( $cur_group != $prev_group && $group_field != '' ) { … … 136 136 <?php if ($group_field != '') echo "<td class=\"list\"> </td>\n" ?> 137 137 <td class="x-title <?php echo $style_class ?>"><?php 138 138 // Window status text, for the mouseover 139 $wstatus = "Details for $sched ule->title";139 $wstatus = "Details for $sched_elmt->title"; 140 140 // Print a link to the program detail for this schedule 141 echo '<a id="schedule-'.$sched ule->recordid.'"';141 echo '<a id="schedule-'.$sched_elmt->recordid.'"'; 142 142 if ($_SESSION["show_popup_info"]) { 143 echo ' onmouseover = "currently_hovered_id = this.id; details_delay_timer_id = setTimeout(function () {load_tool_tip(\'schedule-'.$sched ule->recordid.'\',\''.$schedule->recordid.'\');}, 250);"';143 echo ' onmouseover = "currently_hovered_id = this.id; details_delay_timer_id = setTimeout(function () {load_tool_tip(\'schedule-'.$sched_elmt->recordid.'\',\''.$sched_elmt->recordid.'\');}, 250);"'; 144 144 echo ' onmouseout = "currently_hovered_id = null; clearTimeout( details_delay_timer_id ); details_delay_timer_id = null;"'; 145 145 } 146 146 echo ' href="'.root_url.'tv/'; 147 147 // Link to different places for different kinds of schedules 148 if ($sched ule->search) {148 if ($sched_elmt->search) { 149 149 echo 'schedules/', 150 ($sched ule->search == searchtype_manual) ? 'manual'150 ($sched_elmt->search == searchtype_manual) ? 'manual' 151 151 : 'custom', 152 '/', $sched ule->recordid;152 '/', $sched_elmt->recordid; 153 153 } 154 154 else 155 echo 'detail?recordid='.$sched ule->recordid;155 echo 'detail?recordid='.$sched_elmt->recordid; 156 156 // Finish off the link 157 echo '">'.$sched ule->title;158 if (in_array($sched ule->type, array(rectype_once, rectype_override, rectype_dontrec)) && preg_match('/\\w/', $schedule->subtitle))159 echo ": $sched ule->subtitle";157 echo '">'.$sched_elmt->title; 158 if (in_array($sched_elmt->type, array(rectype_once, rectype_override, rectype_dontrec)) && preg_match('/\\w/', $sched_elmt->subtitle)) 159 echo ": $sched_elmt->subtitle"; 160 160 echo '</a>'; 161 161 ?></td> 162 162 <td class="x-priority"><?php 163 echo $sched ule->recpriority163 echo $sched_elmt->recpriority 164 164 ?></td> 165 165 <td class="x-channel"><?php 166 166 if ($_SESSION["prefer_channum"]) { 167 if ($sched ule->channel->channum)168 echo $sched ule->channel->channum.' - ';167 if ($sched_elmt->channel->channum) 168 echo $sched_elmt->channel->channum.' - '; 169 169 } 170 170 else { 171 if ($sched ule->channel->callsign)172 echo $sched ule->channel->callsign.' - ';171 if ($sched_elmt->channel->callsign) 172 echo $sched_elmt->channel->callsign.' - '; 173 173 } 174 echo $sched ule->channel->name;174 echo $sched_elmt->channel->name; 175 175 ?></td> 176 <td class="x-profile"><?php echo _or($sched ule->profile, ' ') ?></td>176 <td class="x-profile"><?php echo _or($sched_elmt->profile, ' ') ?></td> 177 177 <td class="x-transcoder"><?php 178 178 global $Transcoders; 179 echo _or($Transcoders[$sched ule->transcoder], ' ')179 echo _or($Transcoders[$sched_elmt->transcoder], ' ') 180 180 ?></td> 181 <td class="x-group"><?php echo _or($sched ule->recgroup, ' ') ?></td>182 <td class="x-type"><?php echo $sched ule->texttype ?></td>183 <td class="x-sgroup"><?php echo _or($sched ule->storagegroup, ' ') ?></td>184 <td class="x-startoffset"><?php echo _or($sched ule->startoffset, ' ') ?></td>185 <td class="x-endoffset"><?php echo _or($sched ule->endoffset, ' ') ?></td>186 <td class="x-lastrec"><?php echo _or($sched ule->last_record, ' ') ?></td>181 <td class="x-group"><?php echo _or($sched_elmt->recgroup, ' ') ?></td> 182 <td class="x-type"><?php echo $sched_elmt->texttype ?></td> 183 <td class="x-sgroup"><?php echo _or($sched_elmt->storagegroup, ' ') ?></td> 184 <td class="x-startoffset"><?php echo _or($sched_elmt->startoffset, ' ') ?></td> 185 <td class="x-endoffset"><?php echo _or($sched_elmt->endoffset, ' ') ?></td> 186 <td class="x-lastrec"><?php echo _or($sched_elmt->last_record, ' ') ?></td> 187 187 </tr><?php 188 188 $prev_group = $cur_group; 189 189 } -
mythplugins/mythweb/modules/tv/tmpl/lite/schedules.php
52 52 </tr><?php 53 53 $prev_group = ''; 54 54 $cur_group = ''; 55 foreach ($the_schedules as $sched ule) {55 foreach ($the_schedules as $sched_elmt) { 56 56 // Reset the command variable to a default URL 57 $urlstr = 'recordid='.$sched ule->recordid;57 $urlstr = 'recordid='.$sched_elmt->recordid; 58 58 59 $css_class = ($sched ule->type == rectype_dontrec ? 'deactivated' : 'scheduled');59 $css_class = ($sched_elmt->type == rectype_dontrec ? 'deactivated' : 'scheduled'); 60 60 // If this is an 'always on any channel' or 'find one' recording w/o a channel, set the channel name to 'Any' 61 if ($sched ule->type == rectype_always || ($schedule->type == rectype_findone && !preg_match('/\\S/', $schedule->channel->channum)))62 $sched ule->channel->name = '[ '.t('Any').' ]';61 if ($sched_elmt->type == rectype_always || ($sched_elmt->type == rectype_findone && !preg_match('/\\S/', $sched_elmt->channel->channum))) 62 $sched_elmt->channel->name = '[ '.t('Any').' ]'; 63 63 64 64 // Print a dividing row if grouping changes 65 65 if ($group_field == 'type') 66 $cur_group = $sched ule->texttype;66 $cur_group = $sched_elmt->texttype; 67 67 elseif ($group_field == 'channum') 68 $cur_group = ($sched ule->channel->channum ? $schedule->channel->channum.' - ' : '').$schedule->channel->name;68 $cur_group = ($sched_elmt->channel->channum ? $sched_elmt->channel->channum.' - ' : '').$sched_elmt->channel->name; 69 69 elseif ($group_field == 'profile') 70 $cur_group = $sched ule->profile;70 $cur_group = $sched_elmt->profile; 71 71 elseif ($group_field == 'recgroup') 72 $cur_group = $sched ule->recgroup;72 $cur_group = $sched_elmt->recgroup; 73 73 // "none"? 74 74 $cur_group or $cur_group = t('None'); 75 75 76 $style_class = $sched ule->css_class;77 if ($sched ule->type == rectype_override)76 $style_class = $sched_elmt->css_class; 77 if ($sched_elmt->type == rectype_override) 78 78 $style_class .= ' record_override_record'; 79 elseif ($sched ule->type == rectype_dontrec)79 elseif ($sched_elmt->type == rectype_dontrec) 80 80 $style_class .= ' record_override_suppress'; 81 81 82 82 if ( $cur_group != $prev_group && $group_field != '' ) { … … 89 89 <?php if ($group_field != '') echo "<td class=\"list\"> </td>\n" ?> 90 90 <td class="<?php echo $style_class ?>"><?php 91 91 // Window status text, for the mouseover 92 $wstatus = "Details for $sched ule->title";92 $wstatus = "Details for $sched_elmt->title"; 93 93 // Print a link to the program detail for this schedule 94 94 echo '<a href="'.root_url.'tv/'; 95 95 // Link to different places for different kinds of schedules 96 if ($sched ule->search) {96 if ($sched_elmt->search) { 97 97 echo 'schedules/', 98 ($sched ule->search == searchtype_manual) ? 'manual'98 ($sched_elmt->search == searchtype_manual) ? 'manual' 99 99 : 'custom', 100 '/', $sched ule->recordid;100 '/', $sched_elmt->recordid; 101 101 } 102 102 else 103 echo 'detail?recordid='.$sched ule->recordid;103 echo 'detail?recordid='.$sched_elmt->recordid; 104 104 // Finish off the link 105 echo '">'.$sched ule->title;106 if (in_array($sched ule->type, array(rectype_once, rectype_override, rectype_dontrec)) && preg_match('/\\w/', $schedule->subtitle))107 echo ": $sched ule->subtitle";105 echo '">'.$sched_elmt->title; 106 if (in_array($sched_elmt->type, array(rectype_once, rectype_override, rectype_dontrec)) && preg_match('/\\w/', $sched_elmt->subtitle)) 107 echo ": $sched_elmt->subtitle"; 108 108 echo '</a>'; 109 109 ?></td> 110 110 <td><?php 111 echo $sched ule->recpriority111 echo $sched_elmt->recpriority 112 112 ?></td> 113 113 <td><?php 114 114 if ($_SESSION["prefer_channum"]) { 115 if ($sched ule->channel->channum)116 echo $sched ule->channel->channum.' - ';115 if ($sched_elmt->channel->channum) 116 echo $sched_elmt->channel->channum.' - '; 117 117 } 118 118 else { 119 if ($sched ule->channel->callsign)120 echo $sched ule->channel->callsign.' - ';119 if ($sched_elmt->channel->callsign) 120 echo $sched_elmt->channel->callsign.' - '; 121 121 } 122 echo $sched ule->channel->name;122 echo $sched_elmt->channel->name; 123 123 ?></td> 124 <td nowrap><?php echo _or($sched ule->profile, ' ') ?></td>124 <td nowrap><?php echo _or($sched_elmt->profile, ' ') ?></td> 125 125 <td nowrap> 126 126 <?php 127 127 global $Transcoders; 128 echo _or($Transcoders[$sched ule->transcoder], ' ')128 echo _or($Transcoders[$sched_elmt->transcoder], ' ') 129 129 ?> 130 130 </td> 131 <td nowrap><?php echo _or($sched ule->recgroup, ' ') ?></td>132 <td nowrap><?php echo $sched ule->texttype ?></td>131 <td nowrap><?php echo _or($sched_elmt->recgroup, ' ') ?></td> 132 <td nowrap><?php echo $sched_elmt->texttype ?></td> 133 133 </tr><?php 134 134 $prev_group = $cur_group; 135 135 }