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


PHP Userflag::show方法代码示例

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


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

示例1: show_rating

        <?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')) {
    ?>
开发者ID:nioc,项目名称:ampache,代码行数:31,代码来源:show_tvshow_season.inc.php

示例2: ob_get_contents

            $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);
开发者ID:nioc,项目名称:ampache,代码行数:31,代码来源:ajax.server.php

示例3:

        ?>
_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;
开发者ID:nioc,项目名称:ampache,代码行数:31,代码来源:show_tvshow_row.inc.php

示例4: show_rating

        <?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')) {
    ?>
开发者ID:bl00m,项目名称:ampache,代码行数:31,代码来源:show_podcast.inc.php

示例5: show_rating

        <?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')) {
    ?>
开发者ID:nioc,项目名称:ampache,代码行数:31,代码来源:show_tvshow.inc.php

示例6: T_

    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>
开发者ID:axelsimon,项目名称:ampache,代码行数:30,代码来源:show_now_playing_row.inc.php

示例7:

    <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;
开发者ID:cheese1,项目名称:ampache,代码行数:31,代码来源:show_playlist_row.inc.php

示例8:

"><?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;
开发者ID:bl00m,项目名称:ampache,代码行数:31,代码来源:show_playlist_media_row.inc.php

示例9:

<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;
    ?>
开发者ID:axelsimon,项目名称:ampache,代码行数:31,代码来源:show_album_row.inc.php

示例10:

_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 
开发者ID:bl00m,项目名称:ampache,代码行数:31,代码来源:show_song_row.inc.php

示例11:

        ?>
_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;
开发者ID:bl00m,项目名称:ampache,代码行数:31,代码来源:show_podcast_row.inc.php

示例12: T_

    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>
开发者ID:nioc,项目名称:ampache,代码行数:30,代码来源:show_now_playing_video_row.inc.php

示例13: T_

        <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>
开发者ID:bl00m,项目名称:ampache,代码行数:31,代码来源:show_podcast_episode.inc.php

示例14:

<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')) {
开发者ID:axelsimon,项目名称:ampache,代码行数:31,代码来源:show_song_row.inc.php

示例15:

        ?>
_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 
开发者ID:nioc,项目名称:ampache,代码行数:31,代码来源:show_video_row.inc.php


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