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


PHP UI::flip_class方法代码示例

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


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

示例1: foreach

 * 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/>.
 *
 */
UI::show_box_top(T_('Shoutbox'));
?>
<div id="shoutbox">
<?php 
foreach ($shouts as $shout_id) {
    $shout = new Shoutbox($shout_id);
    $shout->format();
    ?>
<div id="shout<?php 
    echo $shout->id;
    ?>
" class="shout <?php 
    echo UI::flip_class();
    ?>
">
    <?php 
    echo $shout->get_display(true, true);
    ?>
</div>
<?php 
}
?>
</div>
<?php 
UI::show_box_bottom();
开发者ID:cheese1,项目名称:ampache,代码行数:31,代码来源:show_shoutbox.inc.php

示例2: define

}
if (isset($_SERVER['HTTP_X_FORWARDED_PORT'])) {
    $http_port = $_SERVER['HTTP_X_FORWARDED_PORT'];
} else {
    if (isset($_SERVER['SERVER_PORT'])) {
        $http_port = $_SERVER['SERVER_PORT'];
    }
}
if (!isset($http_port) || !$http_port) {
    $http_port = 80;
}
// Define that we've loaded the INIT file
define('INIT_LOADED', 1);
// Core includes we can't do with the autoloader
require_once $prefix . '/lib/preferences.php';
require_once $prefix . '/lib/debug.lib.php';
require_once $prefix . '/lib/log.lib.php';
require_once $prefix . '/lib/ui.lib.php';
require_once $prefix . '/lib/i18n.php';
require_once $prefix . '/lib/batch.lib.php';
require_once $prefix . '/lib/themes.php';
require_once $prefix . '/lib/class/localplay_controller.abstract.php';
require_once $prefix . '/lib/class/database_object.abstract.php';
require_once $prefix . '/lib/class/playlist_object.abstract.php';
require_once $prefix . '/lib/class/media.interface.php';
require_once $prefix . '/modules/horde/Browser.php';
/* Set up the flip class */
UI::flip_class(array('odd', 'even'));
// Merge GET then POST into REQUEST effectively stripping COOKIE without
// depending on a PHP setting change for the effect
$_REQUEST = array_merge($_GET, $_POST);
开发者ID:axelsimon,项目名称:ampache,代码行数:31,代码来源:init-tiny.php

示例3: T_

    <dt class="<?php 
echo $rowparity;
?>
"><?php 
echo T_('Activity');
?>
</dt>
    <dd class="<?php 
echo $rowparity;
?>
"><?php 
echo $client->f_useage;
?>
</dd>
    <?php 
$rowparity = UI::flip_class();
?>
    <dt class="<?php 
echo $rowparity;
?>
"><?php 
echo T_('Status');
?>
</dt>
    <dd class="<?php 
echo $rowparity;
?>
">
    <?php 
if ($client->is_logged_in() and $client->is_online()) {
    ?>
开发者ID:axelsimon,项目名称:ampache,代码行数:31,代码来源:show_user.inc.php

示例4: T_

</th>
            <th class="cel_filename"><?php 
echo T_('Filename');
?>
</th>
        </tr>
        <?php 
foreach ($duplicates as $item) {
    // Gather the duplicates
    $songs = Song::get_duplicate_info($item, $search_type);
    foreach ($songs as $key => $song_id) {
        $song = new Song($song_id);
        $song->format();
        $row_key = 'duplicate_' . $song_id;
        $button_flip_state_id = 'button_flip_state_' . $song_id;
        $current_class = $key == '0' ? 'row-highlight' : UI::flip_class();
        $button = $song->enabled ? 'disable' : 'enable';
        ?>
        <tr id="<?php 
        echo $row_key;
        ?>
" class="<?php 
        echo $current_class;
        ?>
">
            <td class="cel_disable" id="<?php 
        echo $button_flip_state_id;
        ?>
">
                <?php 
        echo Ajax::button('?page=song&action=flip_state&song_id=' . $song_id, $button, T_(ucfirst($button)), 'flip_state_' . $song_id);
开发者ID:cheese1,项目名称:ampache,代码行数:31,代码来源:show_duplicates.inc.php


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