28
28
29
29
// Print the page contents
30
30
$ group_field = $ _GET ['sortby ' ];
31
- if ($ group_field == 'title ' || !in_array ($ group_field , array ('title ' , 'channum ' , 'type ' , 'profile ' , 'recgroup ' )))
31
+ if ($ group_field == 'title ' || !in_array ($ group_field , array ('title ' , 'callsign ' , ' channum ' , 'type ' , 'profile ' , 'recgroup ' )))
32
32
$ group_field = '' ;
33
33
?>
34
34
@@ -71,17 +71,17 @@ function attempt_to_show_tip(element) {
71
71
<thead>
72
72
<tr class="menu">
73
73
<?php if ($ group_field != '' ) echo "<th class= \"list \"> </th> \n" ; ?>
74
- <th class="x-title"><?php echo t ('Title ' ); ?> </th>
75
- <th class="x-priority"><?php echo t ('Recording Priority ' ); ?> </th>
76
- <th class="x-channel" sort_hint="sortMythwebChannel"><?php echo t ('Channel ' ); ?> </th>
77
- <th class="x-profile"><?php echo t ('Profile ' ); ?> </th>
78
- <th class="x-transcoder"><?php echo t ('Transcoder ' ); ?> </th>
79
- <th class="x-group"><?php echo t ('Recording Group ' ); ?> </th>
80
- <th class="x-type"><?php echo t ('Type ' ); ?> </th>
81
- <th class="x-sgroup"><?php echo t ('Storage Group ' ); ?> </th>
82
- <th class="x-startoffset"><?php echo t ('Start Early ' ); ?> </th>
83
- <th class="x-endoffset"><?php echo t ('End Late ' ); ?> </th>
84
- <th class="x-lastrec"><?php echo t ('Last Recorded ' ); ?> </th>
74
+ <th class="x-title" sort_hint="sortMythwebTitle" ><?php echo get_sort_link ( ' title ' , t ('Title ' ) ); ?> </th>
75
+ <th class="x-priority"><?php echo get_sort_link ( ' recpriority ' , t ('Recording Priority ' ) ); ?> </th>
76
+ <th class="x-channel" sort_hint="sortMythwebChannel"><?php echo get_sort_link ( $ _SESSION [ " prefer_channum " ] ? ' channum_with_type ' : ' callsign_with_type ' , t ('Channel ' ) ); ?> </th>
77
+ <th class="x-profile"><?php echo get_sort_link ( ' profile ' , t ('Profile ' ) ); ?> </th>
78
+ <th class="x-transcoder"><?php echo get_sort_link ( ' transcoder ' , t ('Transcoder ' ) ); ?> </th>
79
+ <th class="x-group"><?php echo get_sort_link ( ' recgroup ' , t ('Recording Group ' ) ); ?> </th>
80
+ <th class="x-type"><?php echo get_sort_link ( ' type ' , t ('Type ' ) ); ?> </th>
81
+ <th class="x-sgroup"><?php echo get_sort_link ( ' storagegroup ' , t ('Storage Group ' ) ); ?> </th>
82
+ <th class="x-startoffset"><?php echo get_sort_link ( ' startoffset ' , t ('Start Early ' ) ); ?> </th>
83
+ <th class="x-endoffset"><?php echo get_sort_link ( ' endoffset ' , t ('End Late ' ) ); ?> </th>
84
+ <th class="x-lastrec"><?php echo get_sort_link ( ' last_record ' , t ('Last Recorded ' ) ); ?> </th>
85
85
</tr>
86
86
</thead>
87
87
<?php
@@ -98,6 +98,7 @@ function attempt_to_show_tip(element) {
98
98
// If this is an 'always on any channel' or 'find one' recording without the 'This Channel' filter, set the channel name to 'Any'
99
99
if (($ schedule ->type == rectype_always || $ schedule ->type == rectype_findone) && !($ schedule ->filter & (1 << 10 ))) {
100
100
$ schedule ->channel ->name = '[ ' .t ('Any ' ).' ] ' ;
101
+ $ schedule ->channel ->callsign = null ;
101
102
$ schedule ->channel ->channum = 0 ;
102
103
}
103
104
// A program id counter for popup info
@@ -109,6 +110,8 @@ function attempt_to_show_tip(element) {
109
110
// Print a dividing row if grouping changes
110
111
if ($ group_field == 'type ' )
111
112
$ cur_group = $ schedule ->texttype ;
113
+ elseif ($ group_field == 'callsign ' )
114
+ $ cur_group = ($ schedule ->channel ->callsign ? $ schedule ->channel ->callsign .' - ' : '' ).$ schedule ->channel ->name ;
112
115
elseif ($ group_field == 'channum ' )
113
116
$ cur_group = ($ schedule ->channel ->channum ? $ schedule ->channel ->channum .' - ' : '' ).$ schedule ->channel ->name ;
114
117
elseif ($ group_field == 'profile ' )
0 commit comments