本文整理汇总了PHP中ui_top函数的典型用法代码示例。如果您正苦于以下问题:PHP ui_top函数的具体用法?PHP ui_top怎么用?PHP ui_top使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了ui_top函数的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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();
示例2: 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;
}
}
示例3: ui_top
<?php
require '../include/core/common.php';
require PATHS_LIBRARIES . 'photos.lib.php';
require PATHS_LIBRARIES . 'comments.lib.php';
require PATHS_LIBRARIES . 'userblock.lib.php';
if (userblock_checkblock($GET['id'])) {
ui_top();
echo '<p class="error">IXΘYΣ! Du har blivit blockad, var snel hest så slipper du sånt ;)<br /><em>Visste du förresten att IXΘYΣ betyder Fisk på grekiska?</em></p>';
ui_bottom();
exit;
}
if (isset($_GET['action'])) {
switch ($_GET['action']) {
case 'get_category_photos':
$out .= '<a id="photo"></a>' . "\n";
$photos = photos_fetch(array('id' => $_GET['id']));
if (count($photos) > 0) {
$user_id = $photos[0]['user'];
$categoryphotos = photos_fetch(array('category' => $photos[0]['category']));
$out .= photos_browse($categoryphotos, true);
} else {
$out .= '<h1>Bilden du söker finns inte!</h1>' . "\n";
$out .= '<p>Den bild du försöker ladda verkar inte finnas kvar på Hamsterpaj, kanske har den blivit borttagen?</p>' . "\n";
}
$out .= '<div style="clear: both;"></div>' . "\n";
break;
case 'get_full_photo':
$out .= '<a id="photo"></a>' . "\n";
$photos = photos_fetch(array('id' => $_GET['id']));
if (count($photos) > 0) {
示例4: tests_view_user_answers
function tests_view_user_answers($options)
{
$query = 'SELECT';
$query .= '';
global $ui_options;
ui_top($ui_options);
}
示例5: ui_top
<?php
/*
TODO
add field to user's settings
*/
require '../include/core/common.php';
ui_top(array('title' => 'RSS - Hamsterpaj'));
echo '<h1>Hamsterpaj RSS</h1>' . "\n";
echo '<br />' . "\n";
echo '<h2>Gästböcker</h2>' . "\n";
echo '<p>Du kan prenumerera på RSS-flöden från gästböcker. Skriv bara in användarnamnet eller användaridet.</p>' . "\n";
echo '<form action="#" onsubmit="document.location.href = \'/rss/\'+document.getElementById(\'uid\').value;return false;">
Namn eller användarid: <input type="text" id="uid" />
<input type="submit" value="Få RSS-flöde!" />
</form>' . "\n";
echo '<img src="' . IMAGE_URL . 'rss-icon.jpg" alt="RSS-ikon" style="padding-left: 90px;" />';
ui_bottom();