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

PHP getStyle函数代码示例

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

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



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

示例1: updateSub

function updateSub($sub)
{
    global $lastPrint;
    if ($lastPrint != "sub") {
        echo "\nUpdated {$sub}";
    } else {
        echo ", {$sub}";
    }
    $lastPrint = "sub";
    $css = getStyle($sub);
    if (!$css) {
        touch("subs/{$sub}.min.css");
        return;
    }
    file_put_contents("cachedsubs/{$sub}.css", $css);
    $cT = new cssEmoteParser();
    $cT->parseString($css, $sub, true);
    $cT->finalize();
    $d = $cT->toString();
    if (!$d && file_exists("subs/{$sub}.min.css")) {
        unlink("subs/{$sub}.min.css");
        $lastPrint = "delete";
        echo "\nDeleted {$sub} - empty!";
        return;
    }
    file_put_contents("subs/{$sub}.min.css", $d);
    file_put_contents("subs/{$sub}.count", $cT->emoteCount);
}
开发者ID:nallar,项目名称:GrEmB,代码行数:28,代码来源:cssdaemon.php


示例2: render

 public function render()
 {
     getDisplay()->setTitle(Settings::getWebsiteName() . " - " . l("Error") . " " . $this->errorCode);
     getDisplay()->setTemplateVariable("error_code", $this->errorCode);
     getStyle()->run();
     getDisplay()->add("header");
     getDisplay()->add("error");
     getDisplay()->add("footer");
     getDisplay()->render();
 }
开发者ID:JacoRuit,项目名称:orongocms,代码行数:10,代码来源:frontend_ErrorFrontend.php


示例3: render

 public function render()
 {
     getDisplay()->setTitle(Settings::getWebsiteName() . " - " . l("HOME"));
     getDisplay()->setTemplateVariable("body", $this->body);
     getDisplay()->setTemplateVariable("articles", $this->articleHTML);
     getStyle()->run();
     getDisplay()->add("header");
     getDisplay()->add("index");
     getDisplay()->add("footer");
     getDisplay()->render();
 }
开发者ID:JacoRuit,项目名称:orongocms,代码行数:11,代码来源:frontend_IndexFrontend.php


示例4: render

 public function render()
 {
     getDisplay()->setTitle(Settings::getWebsiteName() . " - " . $this->page->getTitle());
     getDisplay()->setTemplateVariable("body", $this->body);
     getDisplay()->setTemplateVariable("page", $this->page);
     getStyle()->run();
     getDisplay()->add("header");
     getDisplay()->add("page");
     getDisplay()->add("footer");
     getDisplay()->render();
 }
开发者ID:JacoRuit,项目名称:orongocms,代码行数:11,代码来源:frontend_PageFrontend.php


示例5: render

 public function render()
 {
     getDisplay()->setTitle(Settings::getWebsiteName() . " - " . $this->article->getTitle());
     getDisplay()->setTemplateVariable("body", $this->body);
     getDisplay()->addHTML('<meta name="keywords" content="' . $this->article->getTagsString() . '"/>', 'head');
     getDisplay()->setTemplateVariable("article", $this->article);
     getDisplay()->setTemplateVariable("comments", $this->commentHTML);
     getStyle()->run();
     getDisplay()->add("header");
     getDisplay()->add("article");
     getDisplay()->add("footer");
     getDisplay()->render();
 }
开发者ID:JacoRuit,项目名称:orongocms,代码行数:13,代码来源:frontend_ArticleFrontend.php


示例6: orongo_query

        exit;
    } else {
        $newLCID = $comment->getID();
    }
}
$newComments = null;
try {
    $newComments = orongo_query("action=fetch&object=comment&max=1000000&offset=" . Security::escape($_POST['offset']) . "&order=comment.id,asc&where=article.id:" . Security::escape($_POST['article']));
} catch (Exception $e) {
    die("500");
}
$newComments = array_reverse($newComments);
$html = "";
if (getStyle()->doCommentHTML()) {
    try {
        $html = getStyle()->getCommentsHTML($newComments);
    } catch (Exception $e) {
        foreach ($newComments as $comment) {
            $html .= $comment->toHTML();
        }
    }
} else {
    foreach ($newComments as $comment) {
        $html .= $comment->toHTML();
    }
}
$succesArray = array();
$succesArray["response"] = "Ok!";
$succesArray["response_code"] = OK;
$succesArray["count"] = count($newComments);
$succesArray["html"] = $html;
开发者ID:JacoRuit,项目名称:orongocms,代码行数:31,代码来源:loadComments.php


示例7: changePostfixName

        //trck_BF_Unload($this->font);
    }
    public function changePostfixName($postfixID, $newName)
    {
        if (!isset($this->systems_data[$this->system][$postfixID])) {
            //throw Exception (Not exists)
            return null;
        }
        $this->systems_data[$this->system][$postfixID]['name'] = $newName;
    }
    private function throwException($function, $code, $message)
    {
        $E = new Exception('TorrentBar exception in ' . $function . ': ' . $message, $code);
        throw $E;
    }
}
//===========================================================================
// Main body
//===========================================================================
$user_id = getParam();
$style_id = getStyle();
define('BB_ROOT', '1');
include $torrentpier_config_path;
try {
    $torrentbar = new TorrentBar($user_id);
    $template = $torrentbar->useTemplate($style_id);
    include $template;
    $torrentbar->Finalize();
} catch (Exception $E) {
    echo $E->getMessage() . " (Code:" . $E->getCode() . ")";
}
开发者ID:TracKer,项目名称:TorrentBar,代码行数:31,代码来源:torrentbar.php


示例8: setStyle

/**
 * author: coster
 * date: 5.10.05
 * setzt ein stylesheet mit dem klassennamen $classname
 * */
function setStyle($classname, $wert, $gastro_id)
{
    global $db;
    $style = getStyle($classname, $gastro_id);
    if (!empty($style)) {
        $query = "UPDATE \n\t\t\t\tBOOKLINE_CSS\n\t\t\t\tset\n\t\t\t\tWERT = '{$wert}'\n\t\t\t\tWHERE\n\t\t\t\tGASTRO_ID = '{$gastro_id}'\n\t\t\t\tand\n\t\t\t\tClassname = '{$classname}'\n\t\t\t\t";
    } else {
        $query = "insert into \n\t\t\t\tBOOKLINE_CSS\n\t\t\t\t(GASTRO_ID,CLASSNAME,WERT)\n\t\t\t\tvalues\n\t\t\t\t('{$gastro_id}','{$classname}','{$wert}')\n\t\t\t\t";
    }
    $res = $db->Execute($query);
    if (!$res) {
        return false;
    }
    return $db->Insert_ID();
}
开发者ID:utilo-web-app-development,项目名称:REZERVI,代码行数:20,代码来源:cssFunctions.inc.php


示例9: render

 public function render()
 {
     getDisplay()->setTitle(Settings::getWebsiteName() . " - " . $this->pageTitle);
     getDisplay()->setTemplateVariable("body", $this->body);
     if (count($this->msgs) > 0) {
         $msgstring = "";
         foreach ($this->msgs as $msg) {
             if (!is_array($msg)) {
                 continue;
             }
             $msgstring .= '<h4 class="alert_' . $msg['msgtype'] . '">' . $msg['msg'] . "</h4>";
         }
         getDisplay()->setTemplateVariable("msgs", $msgstring);
     }
     $objectshtml = "";
     foreach ($this->objects as $object) {
         if ($object instanceof AdminFrontendObject == false) {
             continue;
         }
         $objectshtml .= $object->toHTML();
     }
     getDisplay()->setTemplateVariable("objects", $objectshtml);
     getDisplay()->setTemplateVariable("current_page", $this->pageTitle);
     getDisplay()->setTemplateVariable("style_url", Settings::getWebsiteURL() . "orongo-admin/theme/");
     getStyle()->run();
     getDisplay()->add("header");
     getDisplay()->add($this->pageTemplate);
     getDisplay()->render();
 }
开发者ID:JacoRuit,项目名称:orongocms,代码行数:29,代码来源:frontend_AdminFrontend.php


示例10: style_function

function style_function($name)
{
    $basePath = basePath();
    $style = getStyle();
    $stylePath = $basePath . "/astyle/{$style}";
    if (file_exists($stylePath . "/include.php")) {
        include_once $stylePath . "/include.php";
        if (function_exists($style . "_" . $name)) {
            return $style . "_" . $name;
        } else {
            return FALSE;
        }
    } else {
        return FALSE;
    }
}
开发者ID:uakfdotb,项目名称:oneapp,代码行数:16,代码来源:common.php


示例11: page_render

/**
 * Render an HTML page
 */
function page_render($body, $user, $title, $h1 = null, $login = false)
{
    $h1 = $h1 ? $h1 : $title;
    if ($user) {
        $msg = sprintf(logged_in_pat, link_render($user));
        $nav = array('logout' => 'Log Out', 'sites' => 'Remembered Sites');
        $navigation = navigation_render($msg, $nav);
    } else {
        if (!$login) {
            $msg = link_render(buildURL('login'), 'Log In');
            $navigation = navigation_render($msg, array());
        } else {
            $navigation = '';
        }
    }
    $style = getStyle();
    $text = sprintf(page_template, $title, $style, $navigation, $h1, $body);
    // No special headers here
    $headers = array();
    return array($headers, $text);
}
开发者ID:honchoman,项目名称:singpolyma,代码行数:24,代码来源:render.php


示例12: header

if (getUser()->getRank() != RANK_ADMIN) {
    header("Location: " . orongoURL("orongo-admin/index.php?msg=0"));
    exit;
}
if (!isset($_POST['website_url']) || !isset($_POST['website_style']) || !isset($_POST['website_name']) || !isset($_POST['website_lang']) || !isset($_POST['show_archive'])) {
    header("Location: " . orongoURL("orongo-admin/orongo-settings.php"));
    exit;
}
if (Settings::getWebsiteURL() != $_POST['website_url'] && !empty($_POST['website_url'])) {
    Settings::setWebsiteURL($_POST['website_url']);
}
if (Settings::getWebsiteName() != $_POST['website_name'] && !empty($_POST['website_name'])) {
    Settings::setWebsiteName($_POST['website_name']);
}
if (Settings::getLanguageName() != $_POST['website_lang'] && !empty($_POST['website_lang'])) {
    Settings::setLanguageName($_POST['website_lang']);
}
if (strval(Settings::showArchive()) != $_POST['show_archive'] && !empty($_POST['show_archive'])) {
    Settings::setShowArchive($_POST['show_archive']);
}
if (getStyle()->getStyleFolder() != $_POST['website_style'] && file_exists(ROOT . "/themes/" . $_POST['website_style']) . "/info.xml") {
    try {
        Settings::setStyle($_POST['website_style']);
    } catch (Exception $e) {
        $msgbox = new MessageBox("Can't install style: " . $_POST['website_style']);
        $msgbox->bindException($e);
        die($msgbox->getImports() . $msgbox->toHTML());
    }
}
header("Location: " . orongoURL("orongo-admin/orongo-settings.php?msg=0"));
exit;
开发者ID:JacoRuit,项目名称:orongocms,代码行数:31,代码来源:action_SaveOrongoSettings.php


示例13: mysql_query

    if (isset($_REQUEST['gen'])) {
        $result = mysql_query("SELECT varname, vardesc, vartype, '' FROM {$database} WHERE {$whereString} ORDER BY orderId");
        if ($club_id != 0) {
            $whereString = "id = '" . $club_id . "'";
            $clubInfo = clubInfo($club_id);
            //array (club name, club description, open_time, close_time, num_recommendations)
            $sectionheader = "Supplement: " . $clubInfo[0];
        } else {
            $sectionheader = "General Application";
        }
        $createResult = generatePDFByResult($result, "../pdf/", $sectionheader);
        if (!$createResult[0]) {
            $error = "Error during PDF generation: " . $createResult[1];
        } else {
            $basePath = basePath();
            $style = getStyle();
            $stylePath = $basePath . "/astyle/{$style}";
            $message = "<a href=\"../pdf/" . $createResult[1] . ".pdf\"><img src=\"" . $stylePath . "/images/application_word.png\" width=\"64\"></a>";
            $success = "PDF made!";
        }
    }
    if (isset($error)) {
        get_page_advanced("gen_pdf", "admin", array('error' => $error, 'message' => $message, 'categories' => $categories));
    } else {
        if (isset($success)) {
            get_page_advanced("gen_pdf", "admin", array('success' => $success, 'message' => $message, 'categories' => $categories));
        } else {
            get_page_advanced("gen_pdf", "admin", array('message' => $message, 'categories' => $categories));
        }
    }
} else {
开发者ID:uakfdotb,项目名称:oneapp,代码行数:31,代码来源:gen_pdf.php


示例14: getUebersetzung

                                    if ($stylesheet == FREI) {
                                        $designFuer = "frei";
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
//uebersetzen:
$designFuer = getUebersetzung($designFuer);
//vorherigen style aus datenbank auslesen:
$style = getStyle($stylesheet, $vermieter_id);
?>

<p class="<?php 
echo STANDARD_SCHRIFT_BOLD;
?>
"><?php 
echo getUebersetzung("Design f�r");
?>
 "<?php 
echo $designFuer;
?>
" <?php 
echo getUebersetzung("bearbeiten");
?>
</p>
开发者ID:utilo-web-app-development,项目名称:REZERVI,代码行数:31,代码来源:styles.php


示例15: foreach

    }
}
?>
<link href="../../lib/css/page.css" type="text/css" rel="stylesheet" />
<link href="../../lib/css/personal.css" type="text/css" rel="stylesheet" />
<section class="main-wrap">
	<ul class="list login-type">
		<?php 
foreach ($login_icon['icons'] as $k => $v) {
    ?>
			<li><a class="anchor <?php 
    echo $v;
    ?>
" href="login_form.php?type=<?php 
    echo $v;
    ?>
"><img src="../../lib/images/personal/icon_<?php 
    echo $v;
    ?>
.png" />
				<span>用<?php 
    getStyle($v);
    ?>
登录</span></a></li>
		<?php 
}
?>
	</ul>
</section>
<?php 
require '../../lib/footer/footer.php';
开发者ID:h3len,项目名称:Project,代码行数:31,代码来源:logining_personal.php


示例16: startOrongo

/**
 * @author Jaco Ruit
 */
require '../startOrongo.php';
startOrongo();
setCurrentPage('admin_orongo-settings');
Security::promptAuth();
if (getUser()->getRank() != RANK_ADMIN) {
    header("Location: " . orongoURL("orongo-admin/index.php?msg=0"));
    exit;
}
if (getStyle()->isUsingPHP() == false) {
    header("Location: " . orongoURL("orongo-admin/index.php?msg=2"));
    exit;
}
$xml = @simplexml_load_file(getStyle()->getStylePath() . "info.xml");
$json = @json_encode($xml);
$info = @json_decode($json, true);
if (!is_array($info['style']['settings'])) {
    header("Location: " . orongoURL("orongo-admin/index.php?msg=2"));
    exit;
}
$styleSettings = getDatabase()->query("SELECT `setting` FROM `style_data` WHERE `style_main_class` = %s", $info['style']['main_class']);
foreach ($styleSettings as $setting) {
    if (isset($_POST[$setting['setting']])) {
        getDatabase()->update("style_data", array("setting_value" => $_POST[$setting['setting']]), "setting = %s", $setting['setting']);
    }
}
header("Location: " . orongoURL("orongo-admin/orongo-settings.php?msg=0"));
exit;
开发者ID:JacoRuit,项目名称:orongocms,代码行数:30,代码来源:action_SaveStyleSettings.php


示例17: getUebersetzung

                            }
                        }
                    }
                }
            }
        }
    }
}
if ($designFuer == "") {
    include_once $root . "/backoffice/templates/footer.inc.php";
    exit;
}
//uebersetzen:
$designFuer = getUebersetzung($designFuer);
//vorherigen style aus datenbank auslesen:
$style = getStyle($stylesheet, $gastro_id);
?>

<h2 style="margin-top:10px;"><?php 
echo getUebersetzung("Design für");
?>
 "<?php 
echo $designFuer;
?>
" <?php 
echo getUebersetzung("bearbeiten");
?>
</h2>
<form action="styleAendern.php" method="post" name="styles" target="_self" id="styles">
  <input name="stylesheet" type="hidden" value="<?php 
echo $stylesheet;
开发者ID:utilo-web-app-development,项目名称:REZERVI,代码行数:31,代码来源:styles.php


示例18: getStyle

	<head>
		<meta http-equiv="content-type" content="text/html; charset=UTF-8">
		<meta charset="utf-8">
		<title>Svada Chat Client</title>
		<meta name="generator" content="Bootply" />
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
		<link href="css/plugins/bootstrap.min.css" rel="stylesheet">
		<link href="css/plugins/jquery.mCustomScrollbar.css" rel="stylesheet">
		<link href="css/plugins/bootstrap-toggle.min.css" rel="stylesheet">
		<link href="css/plugins/font-awesome.min.css" rel="stylesheet">
		<!--[if lt IE 9]>
			<script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
		<![endif]-->
		<link href="css/styles.css" rel="stylesheet">
		<?php 
echo getStyle($user['style']);
?>
	</head>
	<body>
		<?php 
include 'pages/splashscreen.php';
?>
		<div class="container" id="chat-top"></div>
		<div id="chat-menu"></div>
		<div class="container" id="chat-bottom">
			<div class="row">
				<div class="col-sm-2" id="sidebar">
					<div id="users"></div>
				</div>
				<div class="col-sm-10" id="mainbar">
					<div id="notifications"></div>
开发者ID:perrr,项目名称:svada,代码行数:31,代码来源:chat.php


示例19: explode

$styles = explode("\n", $content);
$aendern = false;
for ($i = 0; $i < count($styles); $i++) {
    $styles_sub = explode("{", $styles[$i]);
    if ($styles[$i] == "" || $styles[$i] == null) {
        continue;
    }
    if (count($styles_sub) < 2) {
        $fehler = true;
        $nachricht = "Diese Definition \"" . $styles[$i] . "\" ist ungültig!";
        include_once "./stylesHochladen.php";
        exit;
    }
    $klassname = $styles_sub[0];
    $werts_neu = explode(";", $styles_sub[1]);
    if ($style = getStyle($klassname, $gastro_id)) {
        $werts_alt = explode(";", $style);
        for ($j = 0; $j < count($werts_alt) - 1; $j++) {
            $werts_alt[$j] = update($werts_alt[$j], $werts_neu);
        }
        setStyle($klassname, getString($werts_alt), $gastro_id);
        $aendern = true;
    }
}
if ($aendern) {
    $info = true;
    $nachricht = "Die Designs wurden erfolgreich geändert!";
    include_once "./stylesHochladen.php";
    exit;
} else {
    $fehler = true;
开发者ID:utilo-web-app-development,项目名称:REZERVI,代码行数:31,代码来源:stylesHochladenHelper.php


示例20: getStyle

    }
}
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
  <head>
     <title><?php 
echo TITLE;
?>
</title>
     <meta http-equiv="Content-type" content="text/html; charset=iso-8859-1" />
	 <meta name="viewport" content="width=device-width, maximum-scale=1">
     <?php 
echo "<link rel='stylesheet' type='text/css' href='./styles/" . getStyle($_SESSION['user']['code']['p_id'], $_SESSION['user']['code']['b_id']) . "/style.css' />";
?>
     
     <script language='javascript'>
     	function getElementByIdCompatible (the_id) {
if (typeof the_id != 'string') {
return the_id;
}

if (typeof document.getElementById != 'undefined') {
return document.getElementById(the_id);
} else if (typeof document.all != 'undefined') {
return document.all[the_id];
} else if (typeof document.layers != 'undefined') {
return document.layers[the_id];
} else {
开发者ID:emotionbanker,项目名称:-emotion-banking-,代码行数:31,代码来源:index.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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