Ticket #111: mythweb.recpriority.diff
File mythweb.recpriority.diff, 2.3 KB (added by , 19 years ago) |
---|
-
themes/Default/recording_schedules.php
33 33 <tr class="menu"> 34 34 <?php if ($group_field != '') echo "<td class=\"list\"> </td>\n"; ?> 35 35 <td><?php echo get_sort_link('title', t('title')) ?></td> 36 <td><?php echo get_sort_link('recpriority', t('recpriority')) ?></td> 36 37 <td><?php echo get_sort_link(prefer_channum ? 'channum' : 'callsign', t('channel')) ?></td> 37 38 <td><?php echo get_sort_link('profile', t('profile')) ?></td> 38 39 <td><?php echo get_sort_link('transcoder', t('transcoder')) ?></td> … … 108 109 echo '</a>'; 109 110 ?></td> 110 111 <td><?php 112 echo $schedule->recpriority 113 ?></td> 114 <td><?php 111 115 if (prefer_channum) { 112 116 if ($schedule->channel->channum) 113 117 echo $schedule->channel->channum.' - '; -
includes/recording_schedules.php
380 380 } 381 381 $str .= "</dd>\n"; 382 382 } 383 // Recording Priority 384 if (preg_match('/\\S/', $this->recpriority)) { 385 $str .= "\t<dt>".t('Recording Priority').":</dt>\n" 386 ."\t<dd>".htmlentities($this->recpriority, ENT_COMPAT, 'UTF-8') 387 ."</dd>\n"; 388 } 383 389 // Profile 384 390 if (preg_match('/\\S/', $this->profile)) { 385 391 $str .= "\t<dt>".t('Profile').":</dt>\n" -
includes/sorting.php
175 175 return strcasecmp($a->year, $b->year); 176 176 } 177 177 178 function by_recpriority(&$a, &$b) { 179 // reverse sort so that high priority is listed first 180 if ($a->recpriority == $b->recpriority) return 0; 181 return ($a->recpriority > $b->recpriority) ? -1 : 1; 182 } 183 178 184 function by_profile(&$a, &$b) { 179 185 if ($a->profile == $b->profile) return 0; 180 186 return ($a->profile > $b->profile) ? 1 : -1;