• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP ui_bottom函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中ui_bottom函数的典型用法代码示例。如果您正苦于以下问题:PHP ui_bottom函数的具体用法?PHP ui_bottom怎么用?PHP ui_bottom使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



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

示例1: ui_top

<?php

/* OPEN_SOURCE */
//	require('include/core/common.php');
require 'include/core/common.php';
$ui_options['title'] = 'Startsidan på Hamsterpaj - Sveriges ungdomssida!';
$ui_options['javascripts'][] = 'wordfind.js';
ui_top($ui_options);
echo '<table id="wordfind" style="width: 100%; height: 638px;">' . "\n";
for ($r = 0; $r < 10; $r++) {
    echo '<tr>' . "\n";
    for ($c = 0; $c < 10; $c++) {
        echo '<td>' . $r . $c . '</td>' . "\n";
    }
    echo '</tr>' . "\n";
}
echo '</table>' . "\n";
ui_bottom();
开发者ID:Razze,项目名称:hamsterpaj,代码行数:18,代码来源:wordfind.php


示例2: switch

            switch ($uri_parts[3]) {
                case 'album':
                    $options['members_only'] = $photoblog_user['members_only'];
                    $options['friends_only'] = $photoblog_user['friends_only'];
                    $options['action'] = 'visit';
                    $options['owner_id'] = $photoblog_user['id'];
                    photoblog_access($options);
                    require 'album.php';
                    break;
                default:
                    $options['members_only'] = $photoblog_user['members_only'];
                    $options['friends_only'] = $photoblog_user['friends_only'];
                    $options['action'] = 'visit';
                    $options['owner_id'] = $photoblog_user['id'];
                    photoblog_access($options);
                    require 'blogg.php';
                    break;
            }
            break;
    }
} catch (Exception $error) {
    $options['type'] = 'error';
    $options['title'] = 'Felmeddelande!';
    $options['message'] = $error->getMessage();
    $options['collapse_information'] = '<p>File: ' . $error->getFile() . '<br />Line: ' . $error->getLine() . '</p>';
    $out = ui_server_message($options);
}
ui_top($ui_options);
echo $out;
ui_bottom($ui_options);
开发者ID:Rojk,项目名称:hamsterpaj,代码行数:30,代码来源:index.php


示例3: schedule_admin_parse_request

function schedule_admin_parse_request($options)
{
    $options['source'] = isset($options['source']) ? $options['source'] : $_GET;
    $page = isset($options['source']['page']) && in_array($options['source']['page'], array('ajax_fetch_slot', 'ajax_save_slot', 'main')) ? $options['source']['page'] : 'main';
    $call_options['base_url'] = isset($options['base_url']) ? $options['base_url'] : '';
    $call_options['what'] = $page;
    $ui_options['javascripts'][] = 'schedule_v2_admin.js';
    $ui_options['stylesheets'][] = 'schedule_v2_admin.css';
    $ui_options['title'] = 'Schemalagt v2 på Hamsterpaj';
    $ui_options['menu_path'] = array('admin');
    switch ($page) {
        case 'ajax_fetch_slot':
            if (isset($options['source']['id']) && is_numeric($options['source']['id'])) {
                $call_options['slot_id'] = $options['source']['id'];
                echo schedule_admin_draw($call_options);
            } else {
                schedule_admin_error(array('error' => 'Felaktigt ID skickades med till ajax_fetch_slot!'));
            }
            break;
        case 'ajax_save_slot':
            if (isset($options['source']['id'], $options['source']['start'], $options['source']['end'], $options['source']['type']) && is_numeric($options['source']['id']) && is_numeric($options['source']['start']) && is_numeric($options['source']['end']) && in_array($options['source']['type'], schedule_get_slot_types())) {
                $call_options['id'] = $options['source']['id'];
                $call_options['start'] = $options['source']['start'];
                $call_options['end'] = $options['source']['end'];
                $call_options['type'] = $options['source']['type'];
                echo schedule_admin_draw($call_options);
            }
            break;
        case 'main':
            ui_top($ui_options);
            rounded_corners_top(array('color' => 'orange'));
            echo 'Note: Schemat är både fult, snett och går en timma fel.';
            rounded_corners_bottom(array('color' => 'orange'));
            if (isset($options['source']['create_slot_save']) && isset($options['source']['start_day'], $options['source']['start_hour'], $options['source']['start_minute']) && is_numeric($options['source']['start_day']) && is_numeric($options['source']['start_hour']) && is_numeric($options['source']['start_minute']) && isset($options['source']['end_day'], $options['source']['end_hour'], $options['source']['end_minute']) && is_numeric($options['source']['end_day']) && is_numeric($options['source']['end_hour']) && is_numeric($options['source']['end_minute']) && isset($options['source']['type']) && in_array($options['source']['type'], schedule_get_slot_types())) {
                $call_options['what'] = 'create_slot_save';
                $call_options['start'] = schedule_readable_to_week_minutes($options['source']['start_day'], $options['source']['start_hour'], $options['source']['start_minute']);
                $call_options['end'] = schedule_readable_to_week_minutes($options['source']['end_day'], $options['source']['end_hour'], $options['source']['end_minute']);
                $call_options['type'] = $options['source']['type'];
                if ($call_options['start'] < $call_options['end']) {
                    $call_options['what'] = 'create_slot_save';
                    echo schedule_admin_draw($call_options);
                } else {
                    jscript_alert('Fel: Du måste ange ett slut som är efter din början!');
                }
            }
            $call_options['what'] = 'main';
            echo schedule_admin_draw($call_options);
            $call_options['what'] = 'create_slot_create';
            echo schedule_admin_draw($call_options);
            ui_bottom();
            break;
    }
}
开发者ID:Razze,项目名称:hamsterpaj,代码行数:53,代码来源:schedule_v2.lib.php


示例4: str_replace

        }
        $display_ip = str_replace('%VALUE%', $ip, $assigned[$ip]);
        $out .= '<tr>' . "\n";
        $out .= '<td>' . date('Y-m-d H:i:s', $data['logon_time']) . '</td>' . "\n";
        $out .= '<td>' . $data['impressions'] . '</td>' . "\n";
        $out .= '<td><a href="?ip=' . $ip . '">' . $display_ip . '</a></td>' . "\n";
        $out .= '</tr>' . "\n";
    }
} elseif (isset($_GET['ip'])) {
    $out .= '<h1>Visar inloggningar från IP: ' . $_GET['ip'] . '</h1>' . "\n";
    $query = 'SELECT ll.*, l.username FROM login_log AS ll, login AS l ';
    $query .= 'WHERE ll.ip = "' . ip2long($_GET['ip']) . '" AND l.id = ll.user_id ';
    $query .= 'ORDER BY logon_time DESC LIMIT 500';
    $result = mysql_query($query);
    $out .= '<table style="width: 100%;">';
    while ($data = mysql_fetch_assoc($result)) {
        $out .= '<tr>' . "\n";
        $out .= '<td>' . date('Y-m-d H:i:s', $data['logon_time']) . '</td>' . "\n";
        $out .= '<td><a href="?user_id=' . $data['user_id'] . '">' . $data['username'] . '</a></td>' . "\n";
        $out .= '<td>' . $data['impressions'] . '</td>' . "\n";
        $out .= '</tr>' . "\n";
    }
    $out .= '</table>';
}
echo ui_top($ui_options);
echo $out;
echo ui_bottom();
?>


开发者ID:Rambutan,项目名称:hamsterpaj,代码行数:28,代码来源:user_logins.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP ui_init_content函数代码示例发布时间:2022-05-23
下一篇:
PHP ui_avatar函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap