当前位置: 首页>>代码示例>>PHP>>正文


PHP Rating::show方法代码示例

本文整理汇总了PHP中Rating::show方法的典型用法代码示例。如果您正苦于以下问题:PHP Rating::show方法的具体用法?PHP Rating::show怎么用?PHP Rating::show使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Rating的用法示例。


在下文中一共展示了Rating::show方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1:

?>
<td class="cel_tags"><?php 
echo $libitem->f_tags;
?>
</td>
<?php 
if (User::is_registered()) {
    ?>
    <?php 
    if (AmpConfig::get('ratings')) {
        ?>
    <td class="cel_rating" id="rating_<?php 
        echo $libitem->id;
        ?>
_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>
开发者ID:nioc,项目名称:ampache,代码行数:31,代码来源:show_video_row.inc.php

示例2:

<?php 
}
?>
<td class="cel_tags"><?php 
echo $libitem->f_tags;
?>
</td>
<?php 
if (User::is_registered()) {
    if (AmpConfig::get('ratings')) {
        ?>
            <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 
    }
开发者ID:cheese1,项目名称:ampache,代码行数:31,代码来源:show_artist_row.inc.php

示例3: ob_start

            ob_start();
            $userflag = new Userflag($_GET['object_id'], $_GET['userflag_type']);
            $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
开发者ID:nioc,项目名称:ampache,代码行数:31,代码来源:ajax.server.php

示例4:

</td>
<td class="cel_tags"><?php 
echo $libitem->f_tags;
?>
</td>
<?php 
if (User::is_registered()) {
    ?>
    <?php 
    if (AmpConfig::get('ratings')) {
        ?>
    <td class="cel_rating" id="rating_<?php 
        echo $libitem->id;
        ?>
_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>
开发者ID:nioc,项目名称:ampache,代码行数:31,代码来源:show_tvshow_row.inc.php

示例5:

"><?php 
echo $song->f_tags;
?>
</td>
<td class="cel_time"><?php 
echo $song->f_time;
?>
</td>
<?php 
if (AmpConfig::get('ratings')) {
    ?>
<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 
}
开发者ID:axelsimon,项目名称:ampache,代码行数:31,代码来源:show_song_row.inc.php

示例6:

    <?php 
}
?>
<td class="cel_tags"><?php 
echo $libitem->f_tags;
?>
</td>
<?php 
if (User::is_registered()) {
    if (AmpConfig::get('ratings')) {
        ?>
            <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 
    }
开发者ID:cheese1,项目名称:ampache,代码行数:31,代码来源:show_album_row.inc.php

示例7:

</td>
<td class="cel_tags" title="<?php 
echo $album->f_tags;
?>
"><?php 
echo $album->f_tags;
?>
</td>
<?php 
if (AmpConfig::get('ratings')) {
    ?>
<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 
}
开发者ID:axelsimon,项目名称:ampache,代码行数:31,代码来源:show_album_row.inc.php

示例8: scrub_out

echo $libitem->get_song_count();
?>
</td>
<td class="cel_owner"><?php 
echo scrub_out($libitem->f_user);
?>
</td>
<?php 
if (User::is_registered()) {
    if (AmpConfig::get('ratings')) {
        ?>
    <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 
    }
开发者ID:cheese1,项目名称:ampache,代码行数:31,代码来源:show_playlist_row.inc.php

示例9:

?>
</td>
<td class="cel_episodes"><?php 
echo $libitem->episodes;
?>
</td>
<?php 
if (User::is_registered()) {
    if (AmpConfig::get('ratings')) {
        ?>
    <td class="cel_rating" id="rating_<?php 
        echo $libitem->id;
        ?>
_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 
开发者ID:bl00m,项目名称:ampache,代码行数:31,代码来源:show_podcast_row.inc.php

示例10:

<td class="cel_time"><?php 
    echo $libitem->f_time;
    ?>
</td>
<?php 
    if (User::is_registered()) {
        if (AmpConfig::get('ratings')) {
            ?>
    <td class="cel_rating" id="rating_<?php 
            echo $libitem->id;
            ?>
_<?php 
            echo $object_type;
            ?>
"><?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);
            ?>
开发者ID:bl00m,项目名称:ampache,代码行数:31,代码来源:show_playlist_media_row.inc.php

示例11:

        ?>
<td class="cel_counter"><?php 
        echo $libitem->object_cnt;
        ?>
</td>
<?php 
    }
    if (User::is_registered()) {
        if (AmpConfig::get('ratings')) {
            ?>
            <td class="cel_rating" id="rating_<?php 
            echo $libitem->id;
            ?>
_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>
开发者ID:bl00m,项目名称:ampache,代码行数:31,代码来源:show_song_row.inc.php

示例12: T_

<div class="np_group" id="np_group_4">
<?php 
if (AmpConfig::get('ratings')) {
    ?>
    <div class="np_cell cel_rating">
        <label><?php 
    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');
    ?>
开发者ID:nioc,项目名称:ampache,代码行数:30,代码来源:show_now_playing_video_row.inc.php

示例13: T_

        <dt class="<?php 
        echo $rowparity;
        ?>
"><?php 
        echo T_('Rating');
        ?>
</dt>
        <dd class="<?php 
        echo $rowparity;
        ?>
">
            <div id="rating_<?php 
        echo $episode->id;
        ?>
_podcast_episode"><?php 
        Rating::show($episode->id, 'podcast_episode');
        ?>
            </div>
        </dd>
    <?php 
    }
    ?>

    <?php 
    if (AmpConfig::get('userflags')) {
        ?>
        <?php 
        $rowparity = UI::flip_class();
        ?>
        <dt class="<?php 
        echo $rowparity;
开发者ID:bl00m,项目名称:ampache,代码行数:31,代码来源:show_podcast_episode.inc.php

示例14: T_

<div class="np_group" id="np_group_4">
<?php 
if (AmpConfig::get('ratings')) {
    ?>
    <div class="np_cell cel_rating">
        <label><?php 
    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');
    ?>
开发者ID:axelsimon,项目名称:ampache,代码行数:30,代码来源:show_now_playing_row.inc.php

示例15: T_

        <dt class="<?php 
        echo $rowparity;
        ?>
"><?php 
        echo T_('Rating');
        ?>
</dt>
        <dd class="<?php 
        echo $rowparity;
        ?>
">
            <div id="rating_<?php 
        echo $video->id;
        ?>
_video"><?php 
        Rating::show($video->id, 'video');
        ?>
            </div>
        </dd>
    <?php 
    }
    ?>

    <?php 
    if (AmpConfig::get('userflags')) {
        ?>
        <?php 
        $rowparity = UI::flip_class();
        ?>
        <dt class="<?php 
        echo $rowparity;
开发者ID:bl00m,项目名称:ampache,代码行数:31,代码来源:show_video.inc.php


注:本文中的Rating::show方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。