Ejemplo n.º 1
0
        <?php 
        show_rating($season->id, 'tvshow_season');
        ?>
    </div>
    <?php 
    }
    ?>
    <?php 
    if (AmpConfig::get('userflags')) {
        ?>
    <div style="display:table-cell;" id="userflag_<?php 
        echo $season->id;
        ?>
_tvshow_season">
            <?php 
        Userflag::show($season->id, 'tvshow_season');
        ?>
    </div>
    <?php 
    }
}
?>
<div id="information_actions">
    <h3><?php 
echo T_('Actions');
?>
:</h3>
    <ul>
        <?php 
if (AmpConfig::get('directplay')) {
    ?>
Ejemplo n.º 2
0
            $userflag->set_flag($_GET['userflag']);
            Userflag::show($_GET['object_id'], $_GET['userflag_type']);
            $key = "userflag_" . $_GET['object_id'] . "_" . $_GET['userflag_type'];
            $results[$key] = ob_get_contents();
            ob_end_clean();
        } else {
            $results['rfc3514'] = '0x1';
        }
        break;
    case 'action_buttons':
        ob_start();
        if (AmpConfig::get('ratings')) {
            echo " <div id='rating_" . $_GET['object_id'] . "_" . $_GET['object_type'] . "'>";
            Rating::show($_GET['object_id'], $_GET['object_type']);
            echo "</div> |";
        }
        if (AmpConfig::get('userflags')) {
            echo " <div id='userflag_" . $_GET['object_id'] . "_" . $_GET['object_type'] . "'>";
            Userflag::show($_GET['object_id'], $_GET['object_type']);
            echo "</div>";
        }
        $results['action_buttons'] = ob_get_contents();
        ob_end_clean();
        break;
    default:
        $results['rfc3514'] = '0x1';
        break;
}
// end switch action
// Go ahead and do the echo
echo xoutput_from_array($results);
Ejemplo n.º 3
0
        ?>
_tvshow"><?php 
        Rating::show($libitem->id, 'tvshow');
        ?>
</td>
    <?php 
    }
    ?>
    <?php 
    if (AmpConfig::get('userflags')) {
        ?>
    <td class="cel_userflag" id="userflag_<?php 
        echo $libitem->id;
        ?>
_tvshow"><?php 
        Userflag::show($libitem->id, 'tvshow');
        ?>
</td>
    <?php 
    }
}
?>
<td class="cel_action">
<?php 
if (Access::check('interface', '50')) {
    ?>
    <a id="<?php 
    echo 'edit_tvshow_' . $libitem->id;
    ?>
" onclick="showEditDialog('tvshow_row', '<?php 
    echo $libitem->id;
Ejemplo n.º 4
0
        <?php 
        show_rating($podcast->id, 'podcast');
        ?>
    </div>
    <?php 
    }
    ?>
    <?php 
    if (AmpConfig::get('userflags')) {
        ?>
    <div style="display:table-cell;" id="userflag_<?php 
        echo $podcast->id;
        ?>
_podcast">
            <?php 
        Userflag::show($podcast->id, 'podcast');
        ?>
    </div>
    <?php 
    }
}
?>
<div id="information_actions">
    <h3><?php 
echo T_('Actions');
?>
:</h3>
    <ul>
        <?php 
if (AmpConfig::get('directplay')) {
    ?>
Ejemplo n.º 5
0
        <?php 
        show_rating($tvshow->id, 'tvshow');
        ?>
    </div>
    <?php 
    }
    ?>
    <?php 
    if (AmpConfig::get('userflags')) {
        ?>
    <div style="display:table-cell;" id="userflag_<?php 
        echo $tvshow->id;
        ?>
_tvshow">
            <?php 
        Userflag::show($tvshow->id, 'tvshow');
        ?>
    </div>
    <?php 
    }
}
?>
<div id="information_actions">
    <h3><?php 
echo T_('Actions');
?>
:</h3>
    <ul>
        <?php 
if (AmpConfig::get('directplay')) {
    ?>
Ejemplo n.º 6
0
    echo T_('Rating');
    ?>
</label>
        <div id="rating_<?php 
    echo $media->id;
    ?>
_song">
            <?php 
    Rating::show($media->id, 'song');
    ?>
        </div>
    </div>
    <div class="np_cell cel_userflag">
        <label><?php 
    echo T_('Fav.');
    ?>
</label>
        <div id="userflag_<?php 
    echo $media->id;
    ?>
_song">
            <?php 
    Userflag::show($media->id, 'song');
    ?>
        </div>
    </div>
<?php 
}
?>
</div>
Ejemplo n.º 7
0
    <td class="cel_rating" id="rating_<?php 
        echo $libitem->id;
        ?>
_playlist"><?php 
        Rating::show($libitem->id, 'playlist');
        ?>
</td>
    <?php 
    }
    if (AmpConfig::get('userflags')) {
        ?>
    <td class="cel_userflag" id="userflag_<?php 
        echo $libitem->id;
        ?>
_playlist"><?php 
        Userflag::show($libitem->id, 'playlist');
        ?>
</td>
    <?php 
    }
}
?>
<td class="cel_action">
<?php 
if (Access::check_function('batch_download') && check_can_zip('playlist')) {
    ?>
        <a rel="nohtml" href="<?php 
    echo AmpConfig::get('web_path');
    ?>
/batch.php?action=playlist&amp;id=<?php 
    echo $libitem->id;
Ejemplo n.º 8
0
"><?php 
            Rating::show($libitem->id, $object_type);
            ?>
</td>
    <?php 
        }
        if (AmpConfig::get('userflags')) {
            ?>
    <td class="cel_userflag" id="userflag_<?php 
            echo $libitem->id;
            ?>
_<?php 
            echo $object_type;
            ?>
"><?php 
            Userflag::show($libitem->id, $object_type);
            ?>
</td>
    <?php 
        }
    }
    ?>
<td class="cel_action">
    <?php 
    if (AmpConfig::get('download')) {
        ?>
    <a rel="nohtml" href="<?php 
        echo AmpConfig::get('web_path');
        ?>
/stream.php?action=download&amp;<?php 
        echo $object_type;
Ejemplo n.º 9
0
<td class="cel_rating" id="rating_<?php 
    echo $album->id;
    ?>
_album"><?php 
    Rating::show($album->id, 'album');
    ?>
</td>
<?php 
}
if (AmpConfig::get('userflags')) {
    ?>
<td class="cel_userflag" id="userflag_<?php 
    echo $album->id;
    ?>
_album"><?php 
    Userflag::show($album->id, 'album');
    ?>
</td>
<?php 
}
?>
<td class="cel_action">
    <?php 
if (AmpConfig::get('sociable') && (!$album->allow_group_disks || $album->allow_group_disks && !count($album->album_suite))) {
    ?>
    <a href="<?php 
    echo AmpConfig::get('web_path');
    ?>
/shout.php?action=show_add_shout&type=album&amp;id=<?php 
    echo $album->id;
    ?>
Ejemplo n.º 10
0
_song">
                <?php 
            Rating::show($libitem->id, 'song');
            ?>
  
            </td>
    <?php 
        }
        if (AmpConfig::get('userflags')) {
            ?>
            <td class="cel_userflag" id="userflag_<?php 
            echo $libitem->id;
            ?>
_song">
                <?php 
            Userflag::show($libitem->id, 'song');
            ?>
            </td>
    <?php 
        }
    }
    ?>
<td class="cel_action">
    <a href="<?php 
    echo $libitem->link;
    ?>
"><?php 
    echo UI::get_icon('preferences', T_('Song Information'));
    ?>
</a>
    <?php 
Ejemplo n.º 11
0
        ?>
_podcast">
        <?php 
        Rating::show($libitem->id, 'podcast');
        ?>
    </td>
    <?php 
    }
    if (AmpConfig::get('userflags')) {
        ?>
    <td class="cel_userflag" id="userflag_<?php 
        echo $libitem->id;
        ?>
_podcast">
        <?php 
        Userflag::show($libitem->id, 'podcast');
        ?>
    </td>
    <?php 
    }
}
?>
<td class="cel_action">
<?php 
if (Access::check('interface', '50')) {
    ?>
    <a id="<?php 
    echo 'edit_podcast_' . $libitem->id;
    ?>
" onclick="showEditDialog('podcast_row', '<?php 
    echo $libitem->id;
Ejemplo n.º 12
0
    echo T_('Rating');
    ?>
</label>
        <div id="rating_<?php 
    echo $media->id;
    ?>
_video">
            <?php 
    Rating::show($media->id, 'video');
    ?>
        </div>
    </div>
    <div class="np_cell cel_userflag">
        <label><?php 
    echo T_('Fav.');
    ?>
</label>
        <div id="userflag_<?php 
    echo $media->id;
    ?>
_video">
            <?php 
    Userflag::show($media->id, 'video');
    ?>
        </div>
    </div>
<?php 
}
?>
</div>
Ejemplo n.º 13
0
        <dt class="<?php 
        echo $rowparity;
        ?>
"><?php 
        echo T_('Fav.');
        ?>
</dt>
        <dd class="<?php 
        echo $rowparity;
        ?>
">
            <div id="userflag_<?php 
        echo $episode->id;
        ?>
_podcast_episode"><?php 
        Userflag::show($episode->id, 'podcast_episode');
        ?>
            </div>
        </dd>
    <?php 
    }
}
$rowparity = UI::flip_class();
?>
<dt class="<?php 
echo $rowparity;
?>
"><?php 
echo T_('Action');
?>
</dt>
Ejemplo n.º 14
0
<td class="cel_rating" id="rating_<?php 
    echo $song->id;
    ?>
_song"><?php 
    Rating::show($song->id, 'song');
    ?>
</td>
<?php 
}
if (AmpConfig::get('userflags')) {
    ?>
<td class="cel_userflag" id="userflag_<?php 
    echo $song->id;
    ?>
_song"><?php 
    Userflag::show($song->id, 'song');
    ?>
</td>
<?php 
}
?>
<td class="cel_action">
    <a href="<?php 
echo $song->link;
?>
"><?php 
echo UI::get_icon('preferences', T_('Song Information'));
?>
</a>
    <?php 
if (AmpConfig::get('sociable')) {
Ejemplo n.º 15
0
        ?>
_video"><?php 
        Rating::show($libitem->id, 'video');
        ?>
</td>
    <?php 
    }
    ?>
    <?php 
    if (AmpConfig::get('userflags')) {
        ?>
    <td class="cel_userflag" id="userflag_<?php 
        echo $libitem->id;
        ?>
_video"><?php 
        Userflag::show($libitem->id, 'video');
        ?>
</td>
    <?php 
    }
}
?>
<td class="cel_action">
<a href="<?php 
echo $libitem->link;
?>
"><?php 
echo UI::get_icon('preferences', T_('Video Information'));
?>
</a>
<?php 
Ejemplo n.º 16
0
        <dt class="<?php 
        echo $rowparity;
        ?>
"><?php 
        echo T_('Fav.');
        ?>
</dt>
        <dd class="<?php 
        echo $rowparity;
        ?>
">
            <div id="userflag_<?php 
        echo $video->id;
        ?>
_video"><?php 
        Userflag::show($video->id, 'video');
        ?>
            </div>
        </dd>
    <?php 
    }
}
$rowparity = UI::flip_class();
?>
<dt class="<?php 
echo $rowparity;
?>
"><?php 
echo T_('Action');
?>
</dt>
Ejemplo n.º 17
0
            <td class="cel_rating" id="rating_<?php 
        echo $libitem->id;
        ?>
_artist"><?php 
        Rating::show($libitem->id, 'artist');
        ?>
</td>
        <?php 
    }
    if (AmpConfig::get('userflags')) {
        ?>
            <td class="cel_userflag" id="userflag_<?php 
        echo $libitem->id;
        ?>
_artist"><?php 
        Userflag::show($libitem->id, 'artist');
        ?>
</td>
        <?php 
    }
}
?>
<td class="cel_action">
<?php 
if (!AmpConfig::get('use_auth') || Access::check('interface', '25')) {
    if (AmpConfig::get('sociable') && (!$libitem->allow_group_disks || $libitem->allow_group_disks && !count($libitem->album_suite))) {
        ?>
    <a href="<?php 
        echo AmpConfig::get('web_path');
        ?>
/shout.php?action=show_add_shout&type=artist&amp;id=<?php 
Ejemplo n.º 18
0
            <?php 
        Rating::show($playlist->id, 'playlist');
        ?>
    </div>
    <?php 
    }
    ?>
    <?php 
    if (AmpConfig::get('userflags')) {
        ?>
    <div style="display:table-cell;" id="userflag_<?php 
        echo $playlist->id;
        ?>
_playlist">
            <?php 
        Userflag::show($playlist->id, 'playlist');
        ?>
    </div>
    <?php 
    }
}
?>
<div id="information_actions">
    <ul>
    <?php 
if ($GLOBALS['user']->has_access('50')) {
    ?>
        <li>
            <a onclick="submitNewItemsOrder('<?php 
    echo $playlist->id;
    ?>
Ejemplo n.º 19
0
        ?>
_tvshow_season">
        <?php 
        Rating::show($libitem->id, 'tvshow_season');
        ?>
    </td>
    <?php 
    }
    if (AmpConfig::get('userflags')) {
        ?>
    <td class="cel_userflag" id="userflag_<?php 
        echo $libitem->id;
        ?>
_tvshow_season">
        <?php 
        Userflag::show($libitem->id, 'tvshow_season');
        ?>
    </td>
    <?php 
    }
}
?>
<td class="cel_action">
<?php 
if (Access::check('interface', '50')) {
    ?>
    <a id="<?php 
    echo 'edit_tvshow_season_' . $libitem->id;
    ?>
" onclick="showEditDialog('tvshow_season_row', '<?php 
    echo $libitem->id;
Ejemplo n.º 20
0
            <td class="cel_rating" id="rating_<?php 
        echo $libitem->id;
        ?>
_album"><?php 
        Rating::show($libitem->id, 'album');
        ?>
</td>
    <?php 
    }
    if (AmpConfig::get('userflags')) {
        ?>
            <td class="cel_userflag" id="userflag_<?php 
        echo $libitem->id;
        ?>
_album"><?php 
        Userflag::show($libitem->id, 'album');
        ?>
</td>
    <?php 
    }
}
?>
<td class="cel_action">
    <?php 
if (!AmpConfig::get('use_auth') || Access::check('interface', '25')) {
    if (AmpConfig::get('sociable') && (!$libitem->allow_group_disks || $libitem->allow_group_disks && !count($libitem->album_suite))) {
        ?>
        <a href="<?php 
        echo AmpConfig::get('web_path');
        ?>
/shout.php?action=show_add_shout&type=album&amp;id=<?php 
Ejemplo n.º 21
0
<td class="cel_rating" id="rating_<?php 
    echo $artist->id;
    ?>
_artist"><?php 
    Rating::show($artist->id, 'artist');
    ?>
</td>
<?php 
}
if (AmpConfig::get('userflags')) {
    ?>
<td class="cel_userflag" id="userflag_<?php 
    echo $artist->id;
    ?>
_artist"><?php 
    Userflag::show($artist->id, 'artist');
    ?>
</td>
<?php 
}
?>
<td class="cel_action">
<?php 
if (Access::check_function('batch_download')) {
    ?>
    <a href="<?php 
    echo AmpConfig::get('web_path');
    ?>
/batch.php?action=artist&amp;id=<?php 
    echo $artist->id;
    ?>
Ejemplo n.º 22
0
        ?>
_podcast_episode">
        <?php 
        Rating::show($libitem->id, 'podcast_episode');
        ?>
    </td>
    <?php 
    }
    if (AmpConfig::get('userflags')) {
        ?>
    <td class="cel_userflag" id="userflag_<?php 
        echo $libitem->id;
        ?>
_podcast_episode">
        <?php 
        Userflag::show($libitem->id, 'podcast_episode');
        ?>
    </td>
    <?php 
    }
}
?>
<td class="cel_action">
    <?php 
if (Access::check_function('download') && !empty($libitem->file)) {
    ?>
            <a rel="nohtml" href="<?php 
    echo AmpConfig::get('web_path');
    ?>
/stream.php?action=download&amp;podcast_episode_id=<?php 
    echo $libitem->id;