* but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 */
?>

<ul>
<?php 
$broadcasts = Broadcast::get_broadcasts($GLOBALS['user']->id);
foreach ($broadcasts as $broadcast_id) {
    $broadcast = new Broadcast($broadcast_id);
    $broadcast->format();
    ?>
    <li>
        <a href="javascript:void(0);" id="rb_append_dbroadcast_<?php 
    echo $broadcast->id;
    ?>
" onclick="handleBroadcastAction('<?php 
    echo AmpConfig::get('ajax_url') . '?page=player&action=broadcast&broadcast_id=' . $broadcast->id;
    ?>
', 'rb_append_dbroadcast_<?php 
    echo $broadcast->id;
    ?>
');">
            <?php 
    echo $broadcast->f_name;
    ?>
</th>
            <th class="cel_listeners optional"><?php 
echo Ajax::text('?page=browse&action=set_sort&browse_id=' . $browse->id . '&type=broadcast&sort=listeners', T_('Listeners'), 'broadcast_sort_listeners');
?>
</th>
            <th class="cel_action essential"><?php 
echo T_('Actions');
?>
</th>
        </tr>
    </thead>
    <tbody>
        <?php 
foreach ($object_ids as $broadcast_id) {
    $libitem = new Broadcast($broadcast_id);
    $libitem->format();
    ?>
        <tr class="<?php 
    echo UI::flip_class();
    ?>
" id="broadcast_row_<?php 
    echo $libitem->id;
    ?>
">
            <?php 
    require AmpConfig::get('prefix') . UI::find_template('show_broadcast_row.inc.php');
    ?>
        </tr>
        <?php 
}
?>