本文整理汇总了PHP中popup函数的典型用法代码示例。如果您正苦于以下问题:PHP popup函数的具体用法?PHP popup怎么用?PHP popup使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了popup函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: radio_edit
function radio_edit($nod, $dr, $md, $id = '')
{
$id = $id ? $id : $_SESSION['read'];
$nd = 'radio' . $id;
if (!$nod) {
$nod = $_SESSION['qb'] . '_' . $nd;
}
$nodb = str_replace('_', '*', $nod);
if ($dr) {
$ret .= radio_build($dr, $nod);
}
$r = msql_read('radio', $nod, '');
$ret .= msqlink('radio', $_SESSION['qb'] . '_' . $nd);
if ($r[$md]) {
foreach ($r[$md] as $k => $v) {
$ky .= $md . '.' . $k . '|';
$edit .= input2('text', '"id="' . $md . '.' . $k, $v) . btn('txtsmall', $r['_menus_'][$k]) . br();
}
$edit .= ljb('popbt', 'SaveR', 'popup_radiosav_' . $nodb . '__' . $k . '\',\'' . $ky, 'save');
}
$ret .= divc('edit', $edit);
if ($r) {
foreach ($r as $k => $v) {
foreach ($v as $ka => $va) {
$datas[$k][] = $va;
}
if ($k != '_menus_' && $k != $md) {
$datas[$k][] = ljb('popbt', 'SaveJ', 'popup_radioedit___' . $nodb . '__' . $k, 'edit');
}
}
}
$ret .= make_divtable($datas);
return popup('build_playlist', $ret);
}
示例2: pictos_edit
function pictos_edit($k)
{
//echo $k;
$d = msql_read('system', 'program_pictos', $k);
$ret = btn('txtsmall', $k) . ' ' . input(1, 'edit' . $k . '" size="30', $d);
$ret .= lj('txtbox', 'ico' . $k . '_plug__x_pictos_pictos*save_' . $k . '__edit' . $k, 'save') . ' ';
$ret .= lj('txtyl', 'ico' . $k . '_plug__x_pictos_pictos*save_' . $k, 'del') . br() . br();
//$ret.=sesmk('pictos_see','edit'.$k,0);
return popup('edit_picto', $ret);
}
示例3: commentaryarchive_dohook
function commentaryarchive_dohook($hookname, $args)
{
global $session;
switch ($hookname) {
case "commentaryoptions":
if ($session['user']['donation'] >= 1000) {
$sec = $session['user']['chatloc'];
rawoutput("<a href=\"runmodule.php?module=commentaryarchive\" target='_blank' onclick=\"" . popup("runmodule.php?module=commentaryarchive") . ";return false;\">Export Commentary to HTML</a><br /><br />");
}
break;
}
return $args;
}
开发者ID:CavemanJoe,项目名称:Improbable-Island---DragonScales---DragonBones---LotGD-2.0---Season-Three,代码行数:13,代码来源:commentaryarchive.php
示例4: usersMenus
include_once 'ressources/class.templates.inc';
include_once 'ressources/class.ldap.inc';
include_once 'ressources/class.users.menus.inc';
$user = new usersMenus();
if ($user->AllowViewStatistics == false) {
$tpl = new templates();
echo "alert('" . $tpl->javascript_parse_text("{ERROR_NO_PRIVS}") . "');";
die;
exit;
}
if (isset($_GET["graph"])) {
graphs();
exit;
}
if (isset($_GET["popup"])) {
popup();
exit;
}
js();
function js()
{
$page = CurrentPageName();
$tpl = new templates();
$title = $tpl->_ENGINE_parse_body("{emails_flow}");
$html = "\n\tfunction main_mailgraph_statistics_start(){\n\t\t\tYahooWin2(790,'{$page}?popup=yes','{$title}');\n\t\t}\n\t\n\tmain_mailgraph_statistics_start();";
echo $html;
}
function popup()
{
$tpl = new templates();
$page = CurrentPageName();
示例5: vConnectDB
# 06-22-15 Loads amenities and services providded and sets the check boxes accordingly.
# 06-27-15 Loads prices, discount and available info.
# All the values are read only.
#
#
#
#######################################################
//header('Cache-Control: no cache'); // This created problem.
//session_cache_limiter('private_no_expire');
require_once '../common/dependency.php';
vConnectDB("baboom");
session_start();
//If not logged in, cannot see the detailed information.
//This forces people to register with us.
if ($_SESSION['user'] != 'member') {
popup('Please register in order to see the detail info.', MEMBER_LOGIN_PAGE);
}
$facility_number = urldecode($_GET['facility_num']);
$state = urldecode($_GET['state']);
$facility_name = urldecode($_GET['facility_name']);
$facility_address = urldecode($_GET['address']);
$city = urldecode($_GET['city']);
$zipcode = urldecode($_GET['zipcode']);
$telephone = urldecode($_GET['telephone']);
$licensee = urldecode($_GET['licensee']);
$facility_type = urldecode($_GET['facility_type']);
$facility_cap = urldecode($_GET['facility_cap']);
$license_status = urldecode($_GET['status']);
$shared_available = urldecode($_GET['shared_avail']);
$semi_private_available = urldecode($_GET['semi_private_avail']);
$private_available = urldecode($_GET['private_avail']);
示例6: ajax
if(isset($_GET["POSTFIX_MULTI_INSTANCE_JS"])){POSTFIX_MULTI_INSTANCE_JS();exit;}
if(isset($_GET["EnablePostfixMultiInstance"])){POSTFIX_MULTI_INSTANCE_SAVE();exit;}
if(isset($_GET["inet_interface_add"])){inet_interface_add();exit;}
if(isset($_GET["PostfixAddMyNetwork"])){PostfixAddMyNetwork();exit;}
if(isset($_GET["PostFixDeleteMyNetwork"])){PostFixDeleteMyNetwork();exit;}
if(isset($_GET["PostfixDeleteInterface"])){PostfixDeleteInterface();exit;}
if(isset($_GET["ignore_mx_lookup_error"])){SaveDNSSettings();exit;}
if(isset($_GET["bind9infos"])){echo bind9infos();exit;}
if(isset($_GET["script"])){switch_script();exit;}
if(isset($_GET["popup"])){switch_popup();exit;}
if(isset($_GET["PostfixEnabledInBind9"])){bind9_save_enable();exit;}
if(isset($_GET["bind9Options"])){bind9_form();exit;}
if(isset($_GET["PostfixBind9Delete"])){bind9_delete();exit;}
if(isset($_GET["PostfixBind9NameServer"])){bind9_add();exit;}
if(isset($_GET["ajax"])){ajax();exit;}
if(isset($_GET["ajax-popup"])){popup();exit;}
if(isset($_GET["smtp_bind_address6"])){ipv6_save();exit;}
page();
function ajax(){
$tpl=new templates();
$title=$tpl->_ENGINE_parse_body("{postfix_network}");
$datas=file_get_contents("js/postfix-network.js");
$page=CurrentPageName();
$prefix=str_replace(".","_",$page);
$html="
var {$prefix}Timeout=0;
$datas
".addinscripts()."
示例7: CLogin
$password = $_POST['password'];
if ($username != "" and $password != "") {
$login = new CLogin($username, $password);
if ($login->getUser()) {
if ($login->isAuthentiated()) {
$_SESSION['user'] = $login->getUser();
header('refresh:0;admin.php');
exit;
} else {
popup("Sorry", "{$username},your password is incorrect!");
}
} else {
popup('Sorry', 'Your username is incorrect!');
}
} else {
popup('Sorry', "Username or password can't be empty!", 'warning');
}
}
?>
<html>
<head>
<title>Google Students Club</title>
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
<!--CSS-->
<link href="css/bootstrap.min.css" type="text/css" rel="stylesheet"/>
<link href="css/jquery.dialog.css" type="text/css" rel="stylesheet"/>
<link href="css/login.css" type="text/css" rel="stylesheet"/>
<!--Javascript-->
示例8: tlbutton_push
function tlbutton_push($indata, $hot = false, $namespace = FALSE)
{
global $translatorbuttons;
global $translation_is_enabled, $seentlbuttons, $session;
if (!$translation_is_enabled) {
return;
}
if (!$namespace) {
$namespace = "unknown";
}
if ($session['user']['superuser'] & SU_IS_TRANSLATOR) {
if (preg_replace("/[ \t\n\r]|`./", '', $indata) > "") {
if (isset($seentlbuttons[$namespace][$indata])) {
$link = "";
} else {
$seentlbuttons[$namespace][$indata] = true;
require_once "lib/sanitize.php";
$uri = cmd_sanitize($namespace);
$uri = comscroll_sanitize($uri);
$link = "translatortool.php?u=" . rawurlencode($uri) . "&t=" . rawurlencode($indata);
$link = "<a href='{$link}' target='_blank' onClick=\"" . popup($link) . ";return false;\" class='t" . ($hot ? "hot" : "") . "'>T</a>";
}
array_push($translatorbuttons, $link);
}
return true;
} else {
//when user is not a translator, return false.
return false;
}
}
示例9: output_notl
if ($row['alive'] == true) {
$a = $alive;
} else {
if ($row['hitpoints'] > 0) {
$a = $unconscious;
} else {
$a = $dead;
}
}
//$a = translate_inline($row['alive']?"`1Yes`0":"`4No`0");
output_notl("%s", $a);
rawoutput("</td><td>");
output_notl("`^%s`0", $row['level']);
rawoutput("</td><td>");
if ($session['user']['loggedin']) {
rawoutput("<a href=\"mail.php?op=write&to=" . rawurlencode($row['login']) . "\" target=\"_blank\" onClick=\"" . popup("mail.php?op=write&to=" . rawurlencode($row['login']) . "") . ";return false;\">");
rawoutput("<img src='images/newscroll.GIF' width='16' height='16' alt='{$writemail}' border='0'></a>");
rawoutput("<a href='bio.php?char=" . $row['acctid'] . "'>");
addnav("", "bio.php?char=" . $row['acctid'] . "");
}
output_notl("`&%s`0", $row['name']);
if ($session['user']['loggedin']) {
rawoutput("</a>");
}
rawoutput("</td><td>");
$loggedin = date("U") - strtotime($row['laston']) < getsetting("LOGINTIMEOUT", 900) && $row['loggedin'];
output_notl("`&%s`0", $row['location']);
if ($loggedin) {
$online = translate_inline("`#(Online)");
output_notl("%s", $online);
}
示例10: css_fontface
//.........这里部分代码省略.........
if (!is_file('msql/server/edition_typos.php')) {
$ret .= lkc('txtyl', '?admin=fonts', 'update server_table') . br() . br();
}
//rb//rd
$ard = array('', 'fontsquirrel', 'fontspring', 'myfonts');
if ($r) {
foreach ($r as $k => $v) {
if ($v[1]) {
$rb[$v[1]] = 1;
}
if (is_numeric($v[4])) {
$rd[$v[4]] = $ard[$v[4]];
}
}
}
// else $rd[$v[4]]=$v[4];
$rb['unclassed'] = 1;
ksort($rb);
$_SESSION['fntcat'] = $rb;
//cat
if ($b && $b != 'unclassed' && $b != 'all') {
$hlp = divc('panel', helps($b, 'typos')) . br();
}
foreach ($rb as $k => $v) {
$mnu .= lj($k == $b ? $csb : $csa, $jx . $gf . '1_' . ajx($k) . '_' . $c . '_' . $o, $k) . ' ';
}
$mnu .= br();
$b = $b == 'unclassed' ? '' : $b;
$pk = substr($o, 0, 3);
$pv = substr($o, 3);
if ($pv) {
$pp[$pk] = $pv;
}
//rech
$srch .= input2('text', 'srch" size="8" id="srchfnt', $pp['rch'] ? $pp['rch'] : 'search', '');
$srch .= ' ' . lj('popbt', $jx . $gf . '1_' . $b . '_' . $c . '_' . $o . '_srchfnt', 'ok') . ' ';
$srch .= lj('popbt', $jx . $gf . '1_all', 'x');
//tri
foreach ($r as $k => $v) {
if (!$pv or ($pp['acc'] && $pp['acc'] == $v[2] or $pp['fav'] && $pp['fav'] == $v[3] or $pp['fam'] && $pp['fam'] == $v[4] or $pp['rch'] && stristr($v[0], $pp['rch']) !== false)) {
if ($v[1] == $b or $b == 'all') {
$rc[$k] = $v;
}
}
}
$n = count($rc);
//pages
$no = 20;
$np = 10;
$min = $p - $np;
$max = $p + $np;
$nb = ceil($n / $no);
$bb = ajx($b);
for ($i = 1; $i <= $nb; $i++) {
if ($i == 1 or $i == $nb or $i > $min && $i < $max) {
//$rtp.=lj(($i==$p?'active':''),$jx.$gf.$i.'_'.$bb.'_'.$c.'_'.$o,$i);
$rtp .= lj($i == $p ? 'active' : '', $jx . $gf . $i . '_' . $bb . '_' . $c . '_' . $o, $i) . ' ';
}
if ($i == 2 && $min > 2 or $i == $nb - 1 && $max < $nb - 1) {
$rtp .= '... ';
}
}
$nbp = divc('nb_pages', $rtp);
$c = is_numeric($c) ? $cb = $c : 48;
$arz = array(12, 24, 36, 48, 72);
foreach ($arz as $k => $v) {
//size
$siz .= lj($v == $c ? $csb : $csa, $jx . $gf . $p . '_' . $b . '_' . $v . '_' . $o, $v) . ' ';
}
//label
$go = $gf . $p . '_' . $bb . '__';
if ($rd) {
foreach ($rd as $k => $v) {
$prp .= lj($pp['fam'] == $k ? $csb : $csa, $jx . $go . 'fam' . ($pp['fam'] == $k ? '' : $k), $v) . ' ';
}
}
$prp .= lj($pp['acc'] ? $csb : $csa, $jx . $go . 'acc' . ($pp['acc'] ? '' : 1), 'accents') . ' ';
$prp .= lj($pp['fav'] ? $csb : $csa, $jx . $go . 'fav' . ($pp['fav'] ? '' : 1), 'favs') . ' ';
//render
$max = $p * $no;
$min = $max - $no;
if ($rc) {
foreach ($rc as $k => $v) {
$ia++;
if ($ia >= $min && $ia < $max && $v[0]) {
$rta .= '@font-face {' . css_ff($v[0]) . '}' . "\n";
$rtb .= preview_ff($k, $v, $c);
}
}
}
$ret .= css_code($rta) . $mnu . $hlp . $siz . $prp . $srch . br() . br();
$ret .= input(1, 'ffwr', $_SESSION['ffstr'] ? $_SESSION['ffstr'] : 'AaBbCcDdEe0123יא', '" size="44');
$ret .= lj('txtx', 'ffwr_sesmake_ffwr__ffstr', 'set');
$ret .= divd('scroll', divd('pop', $nbp . br() . $rtb . $nbp)) . br();
if ($u) {
return popup('create font-face', divs('width:640px;', $ret));
} else {
return css_code($rta) . $nbp . br() . $rtb . $nbp;
}
}
示例11: array
$predefinedlevel = $predefined[$javaskillbookid];
$predefinedjavascript .= "\n\t\t\t\t\t\t\tskill[{$javaskillbookid}] = {$predefined[$javaskillbookid]};";
} else {
$predefinedlevel = 0;
}
$skilllist = "\n\t\t\t\t<div class='shortinfo_" . $florensia->change() . "' style='width:350px;'>\n\t\t\t\t\t<table width='100%' style='border-collapse:0px; border-spacing:0px; padding:0px;'>\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<td style='vertical-align:top;' colspan='3'><a href='" . $florensia->outlink(array("itemdetails", $skillbook[$florensia->get_columnname("itemid", "item")], $stringtable->get_string($skillbook[$florensia->get_columnname("itemid", "item")]))) . "' target='_blank'>" . $stringtable->get_string($skillbook[$florensia->get_columnname("itemid", "item")], array('protectionlink' => 1)) . "</a></td>\n\t\t\t\t\t\t\t<td rowspan='" . bcadd(count($details), 1) . "' style='text-align:right; vertical-align:top' class='small'>{$requieredskillbooks}</td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t<tr>";
$itempicture = "<td rowspan='" . count($details) . "' style='width:32px; vertical-align:top'><a href='" . $florensia->outlink(array("itemdetails", $skillbook[$florensia->get_columnname("itemid", "item")], $stringtable->get_string($skillbook[$florensia->get_columnname("itemid", "item")]))) . "' target='_blank'>" . $florensia->pictureprotection($primaryskills['skill_picture'], $stringtable->get_string($skillbook[$florensia->get_columnname("itemid", "item")]), $dbselect) . "</a></td>";
foreach ($details as $key => $value) {
$skilllist .= "<tr>{$itempicture}<td style='width:10px;'></td><td class='small' style='vertical-align:top'>{$key} {$value}</td></tr>";
unset($itempicture);
}
$skilllist .= "\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t</table>\n\t\t\t\t</div>\n\t\t\t\t<div class='shortinfo_" . $florensia->change() . "' style='width:350px;'>{$descriptiontext}</div>\n\t\t\t\t<div class='shortinfo_" . $florensia->change() . "' style='width:350px;'>\n\t\t\t\t\t<div style='float:right; width:30px; vertical-align:middle;'>\n\t\t\t\t\t\t<table style='width:100%'>\n\t\t\t\t\t\t\t<tr><td colspan='2' style='text-align:center;'>[<span name='{$javaskillbookid}_level'>0</span>]</td></tr>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td style='margin:1px;'><img onclick='skilltree({$javaskillbookid},-1," . $primaryskills[$florensia->get_columnname("masterlevel", $dbselect)] . ")' id='{$javaskillbookid}_minus' src='{$florensia->layer_rel}/skill_minus_inactive.gif' border='0' alt='-'></td>\n\t\t\t\t\t\t\t\t<td style='margin:1px;'><img onclick='skilltree({$javaskillbookid},1," . $primaryskills[$florensia->get_columnname("masterlevel", $dbselect)] . ")' id='{$javaskillbookid}_plus' src='{$florensia->layer_rel}/skill_plus_active.gif' border='0' alt='+'></td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t</table>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div style='display:inline; margin-right:30px;' id='{$javaskillbookid}_0'><div style='min-height:55px;'><br />{$flolang->skilltree_placeholder_level_null}</div></div>";
for ($i = 1; $i <= $primaryskills[$florensia->get_columnname("masterlevel", $dbselect)]; $i++) {
if ($i < 10) {
$skilllevelpic = "0{$i}";
} else {
$skilllevelpic = $i;
}
$skilllist .= "<div style='display:none; margin-right:30px;' id='{$javaskillbookid}_{$i}'><div style='min-height:55px;'>" . $florensia->detailsprotection(substr($primaryskills[$florensia->get_columnname("skillid", $dbselect)], 0, -2) . "{$skilllevelpic}", $dbselect) . "</div></div>";
}
$skilllist .= "</div>";
$javapopups .= "<div style='position:absolute; left:" . $coords[0] . "px; top:" . $coords[1] . "px; width:32px; height:32px;' " . popup($skilllist, "STICKY, MOUSEOFF", "skilltree_rescue({$javaskillbookid}, " . $primaryskills[$florensia->get_columnname("masterlevel", $dbselect)] . ");") . " onclick='window.open(\"" . $florensia->outlink(array("itemdetails", $skillbook[$florensia->get_columnname("itemid", "item")], $stringtable->get_string($skillbook[$florensia->get_columnname("itemid", "item")]))) . "\")'>" . $florensia->pictureprotection($primaryskills['skill_picture'], $stringtable->get_string($skillbook[$florensia->get_columnname("itemid", "item")]), "{$dbselect}big") . "</div>\n\t\t\t<div class='small' style='position:absolute; left:" . bcadd($coords[0], 36) . "px; top:" . $coords[1] . "px; width:32px; height:32px;'>[<span name='{$javaskillbookid}_level'>{$predefinedlevel}</span>]</div>\n\t\t\t";
}
//}
if (!$skilllist) {
$skilllist = "<div class='warning' style='text-align:center'>{$flolang->skilltree_overview_noentry}</div>";
}
$content = "\n\t\t<div style='margin-bottom:5px;' class='subtitle'>Tools > <a href='" . $florensia->outlink(array("skilloverview")) . "'>{$flolang->skilltree_title}</a> > " . $classid[0] . "</div>\n\t\t<div style='margin-bottom:5px; text-align:center;'>" . $florensia->quick_select('skilloverviewdetails', array('class' => $_GET['class']), array(), array('namesselect' => 1)) . "</div>\n\t\t\n\t\t<div class='bordered small' style='margin-top:15px; margin-bottom:15px; text-align:center;'><input id='permlink' type='text' style='width:98%;' readonly='readonly' value='{$predefinedpermlink}'></div>\n\t\t\n\t\t<div style='width:501px; margin:auto; position:relative;'>" . $florensia->pictureprotection($skilltree['skilltree'], 'Skilltree ' . $classid[0], "skilltree") . "\n\t\t\t{$javapopups}\n\t\t\t<script type='text/javascript'>{$predefinedjavascript}</script>\n\t\t</div>";
$florensia->sitetitle($classid[0]);
$florensia->output_page($content);
}
示例12: get_turns
$temp = get_turns($row['username']);
$total_turns = intval($temp['total_turns']);
echo "<strong>Total Turns</strong>: {$total_turns} <br/>";
echo "<strong>Slaves owned</strong>";
$result2 = $db->query("SELECT * FROM slaves WHERE user = '" . $row['username'] . "'");
echo "<ul>";
if ($result2->numRows() == 0) {
echo "<li>No slaves owned.</li>";
} else {
while ($row2 = mysql_fetch_array($result2)) {
popup("<li>" . $row2['name'] . "</li>", "view_slave.php?slave= " . $row2['name']);
}
}
echo "</ul>";
$ranking = intval($total_turns * $row['gold'] / 10000);
popup("<strong>Player Ranking</strong>: ", "help.php?topic=rankings");
echo $ranking;
}
stopBox(BOX_GREEN);
if ($_SESSION['username'] != $_GET['user']) {
?>
<form action = "viewuser.php">
<input type = "hidden" name = "user" value = "<?php
echo $_GET['user'];
?>
" />
<table class = "normal">
<th>Money transfur</th>
<th>Amount</th>
<tr>
<td>Transfur some money from you account to this player.</td>
示例13: usersMenus
if($argv[1]=="--export"){
ini_set('html_errors',0);ini_set('display_errors', 1);ini_set('error_reporting', E_ALL);ini_set('error_prepend_string','');ini_set('error_append_string','');
$GLOBALS["VERBOSE"]=true;
do_export();exit;
}
$usersmenus=new usersMenus();
if(!$usersmenus->AsDansGuardianAdministrator){
$tpl=new templates();
$alert=$tpl->_ENGINE_parse_body('{ERROR_NO_PRIVS}');
echo "alert('$alert')";
die();
}
if(isset($_GET["export-rules"])){popup();exit;}
if(isset($_GET["do-export"])){do_export();exit;}
js();
function js(){
$page=CurrentPageName();
$tpl=new templates();
$ACLNAME=null;
$title_text="{export_rules}";
if(is_numeric($_GET["single-id"])){
if($_GET["single-id"]>0){
$q=new mysql_squid_builder();
$ligne=mysql_fetch_array($q->QUERY_SQL("SELECT aclname FROM webfilters_sqacls WHERE ID='{$_GET["single-id"]}'"));
$ACLNAME=" :".utf8_encode($ligne["aclname"]);
示例14: get_shortinfo
function get_shortinfo($questlist, $settings = array())
{
global $florensia, $stringtable, $classquesttext, $flolang, $floaddition;
$flolang->load("quest");
if (!is_array($questlist)) {
$questlistquery = MYSQL_QUERY("SELECT * FROM server_questlist WHERE questlistid='" . mysql_real_escape_string($questlist) . "'");
if (!($questlist = MYSQL_FETCH_ARRAY($questlistquery))) {
return FALSE;
}
}
$questlistxml = simplexml_load_string($questlist['questlistxml']);
/*
//workaround for "deleted" shellquests
if (preg_match('/^qsl[0-9]+$/', $questlistxml->Quest->SourceObject)) {
$querystorelist = MYSQL_QUERY("SELECT npcid FROM server_storelist WHERE storexml LIKE '%{$questlist['questlistid']}%'");
if (MYSQL_NUM_ROWS($querystorelist)==0) {
return FALSE;
}
}
*/
//startnpc
$querystartnpc = MYSQL_QUERY("SELECT " . $florensia->get_columnname("npcid", "npc") . " FROM server_npc WHERE " . $florensia->get_columnname("npcid", "npc") . "='" . $questlistxml->attributes()->SourceObject . "'");
if ($settings['npclink'] && MYSQL_NUM_ROWS($querystartnpc) == 1) {
$queststartnpc = "<a href='" . $florensia->outlink(array("npcdetails", $questlistxml->attributes()->SourceObject, $stringtable->get_string($questlistxml->attributes()->SourceObject))) . "'>" . $stringtable->get_string($questlistxml->attributes()->SourceObject, array('protectionsmall' => 1, 'protectionlink' => 1)) . "</a>";
} else {
$queststartnpc = $stringtable->get_string($questlistxml->attributes()->SourceObject, array('protectionsmall' => 1));
}
//see / land-quest
if ($questlist['questtype'] == "s") {
$questpicture = "<img src='{$florensia->layer_rel}/sealv.gif' height='12' alt='{$flolang->questtype_sea}' title='{$flolang->questtype_sea}'>";
} else {
$questpicture = "<img src='{$florensia->layer_rel}/land.gif' height='12' alt='{$flolang->questtype_land}' title='{$flolang->questtype_land}'>";
}
//questlevelrange
if (intval($questlistxml->OccurTerm->attributes()->LvLim)) {
$questlevelrange = $questlistxml->OccurTerm->attributes()->Lv . "-" . $questlistxml->OccurTerm->attributes()->LvLim;
if (intval($questlistxml->OccurTerm->attributes()->LvOptimaize)) {
$questlevelrange .= " (<b>" . $questlistxml->OccurTerm->attributes()->LvOptimaize . "</b>)";
}
} else {
$questlevelrange = $questlistxml->OccurTerm->attributes()->Lv . "+";
}
//next quest
if (strlen($questlist['nextquest'])) {
$questhistory[] = "{$flolang->nextquest} <a href='" . $florensia->outlink(array("questdetails", $questlist['nextquest'], $this->get_title($questlist['nextquest']))) . "'>" . $this->get_title($questlist['nextquest']) . "</a>";
}
//prev quest
if (strlen($questlist['privquest'])) {
$questhistory[] = "{$flolang->previousquest} <a href='" . $florensia->outlink(array("questdetails", $questlist['privquest'], $this->get_title($questlist['privquest']))) . "'>" . $this->get_title($questlist['privquest']) . "</a>";
}
//questclasses
$questclasses = "";
foreach (str_split($questlist['questclasses']) as $class) {
if (strtolower($class) == "p") {
continue;
}
$classname = $florensia->get_classname($class);
$questclasses .= "<img src='{$florensia->layer_rel}/icon_" . strtolower($class) . ".png' title='" . $florensia->escape($classname[0]) . "' alt='{$class}' style='height:12px; margin-right:2px; border:none;'>";
}
$addition = $floaddition->get_additionlist("quest", $questlist['questlistid']);
if ($addition['not_implemented'] or $addition['removed'] or $addition['event']) {
$stringsettings['color'] = "195,195,195";
$tablecolor = "class='inactiveentry'";
}
if (count($addition)) {
$flag = "<div class='small shortinfo_1'>" . join("<br/>", $addition) . "</div>";
$flagicon = "<img src='{$florensia->layer_rel}/flag.gif' boder='0' style='height:10px;' " . popup($flag, "") . ">";
}
return "\n\t\t\t<table style='width:100%; border-collapse:0px; border-spacing:0px; padding:0px;' {$tablecolor}>\n\t\t\t<tr>\n\t\t\t\t<td style='width:450px'>\n\t\t\t\t\t<table cellpadding='0' cellspacing='0' width='100%' style='border-collapse:0px; border-spacing:0px; padding:0px;'>\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<td><a href='" . $florensia->outlink(array("questdetails", $questlist['questlistid'], $questlist['questtitle_' . $classquesttext->language])) . "'>" . $questlist['questtitle_' . $classquesttext->language] . "</a> {$flagicon}</td>\n\t\t\t\t\t\t\t<td style='text-align:right'>{$questpicture}</td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t</table>\n\t\t\t\t</td>\n\t\t\t\t<td class='small'>\n\t\t\t\t\t<table cellpadding='0' cellspacing='0' width='100%' style='border-collapse:0px; border-spacing:0px; padding:0px;'>\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<td>{$flolang->quest_shortview_map} <a href='" . $florensia->outlink(array("mapdetails", $questlistxml->attributes()->SourceArea, $stringtable->get_string($questlistxml->attributes()->SourceArea))) . "'>" . $stringtable->get_string($questlistxml->attributes()->SourceArea, array('protectionsmall' => 1, 'protectionlink' => 1)) . "</a></td>\n\t\t\t\t\t\t\t<td style='text-align:right'>{$questclasses}</td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t</table>\n\t\t\t\t\t\n\t\t\t\t</td>\n\t\t\t\t\t\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td style='width:400px; padding-left:20px;' class='small'>{$flolang->quest_shortview_level} {$questlevelrange}<br />{$questhistory[0]}</td>\n\t\t\t\t<td class='small'>{$flolang->quest_shortview_npc} {$queststartnpc}<br />{$questhistory[1]}</td>\n\t\t\t</tr>\n\t\t\t</table>\n\t\t";
}
示例15: popup
$column_loop = 1;
$row_loop++;
} else {
$column_loop++;
}
}
echo "</table></fieldset></div>";
$quadrent = $_GET['quadrent'];
$row = $_GET['row'];
$column = $_GET['column'];
if (inAdminMode()) {
echo "<div style = 'float:top;'><fieldset>";
echo "<legend>admin mode</legend>";
popup("modify", "admin_modify_tileset.php?quadrent={$quadrent}&row={$row}&column={$column}");
echo " | ";
popup("create quadrent", "admin_create_quadrent.php");
echo "</fieldset></div>";
}
echo "<div style = 'float:top;'><fieldset>";
echo "<legend>" . $quadrent . " Quadrent </legend>";
echo "<strong>Coordinates:</strong> " . $row . "." . $column . "<br />";
$sql = "SELECT * FROM `map` WHERE `row` = '" . $row . "' AND col = '" . $column . "' AND `quadrent` = '" . $quadrent . "' LIMIT 1";
$result = $db->query($sql);
$row_result = $result->fetchRow();
if ($row_result['exit_quadrent'] != 'none') {
echo "<strong>Leads to:</strong> " . $row_result['exit_quadrent'] . " quadrent<br />";
echo "<strong>Direction: </strong>";
switch ($row_result['exit']) {
case 'left':
echo "<a href = map.php?quadrent=" . $row_result['exit_quadrent'] . "&row={$row}&column=4>left</a>";
break;