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


PHP html::style方法代码示例

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


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

示例1: action_upload

 function action_upload()
 {
     $user = $this->user;
     if (!$user->can_add) {
         $this->template->content = new View('kwalbum/invalidpermission');
         return;
     }
     $url = $this->url;
     if (!($date = $this->date)) {
         $date = '0000-00-00';
     }
     $time = '00:00';
     $content = new View('kwalbum/user/upload');
     $content->user_is_admin = $user->is_admin;
     $content->location = $this->location;
     if (isset($this->tags)) {
         $content->tags = implode(',', $this->tags);
     }
     $content->date = $date;
     $content->time = $time;
     $template = $this->template;
     $template->content = $content;
     $template->title = 'Upload';
     $template->head .= html::script($this->url . '/media/ajax/uploadify/swfobject.js') . html::style($this->url . '/media/ajax/uploadify/uploadify.css') . html::script($this->url . '/media/ajax/uploadify/jquery.uploadify.v2.1.4.min.js') . html::script($this->url . '/media/ajax/upload.js');
 }
开发者ID:kweejee,项目名称:kwalbum,代码行数:25,代码来源:User.php

示例2: header

 public static function header($header = array())
 {
     $header = self::settings($header);
     $html[] = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">';
     $html[] = '<html xmlns="http://www.w3.org/1999/xhtml">';
     $html[] = '<head>';
     $html[] = '	<title>' . $header['title'] . ' ' . zotop::config("zotop.title") . '</title>';
     $html[] = self::meta($header['meta']);
     $html[] = self::stylesheet($header['css']);
     $html[] = '	' . html::style($header['style']);
     $html[] = self::script($header['js']);
     $html[] = '</head>';
     $html[] = '<body' . html::attributes($header['body']) . '>';
     $str = implode("\n", $html);
     echo $str;
 }
开发者ID:dalinhuang,项目名称:zotop,代码行数:16,代码来源:page.php

示例3: foreach

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<?php 
foreach ($css as $style) {
    echo html::style($style);
}
?>
	<script type="text/javascript">
		path = "<?php 
echo url::base();
?>
";
	</script>
<link rel="icon" href="<?php 
echo url::base();
?>
/assets/favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="<?php 
echo url::base();
?>
/assets/favicon.ico" type="image/x-icon" />	
	<title>Modular Gaming - <?php 
echo $title;
?>
</title>
</head>
<body>

<div class="header">
开发者ID:joffuk,项目名称:modulargaming,代码行数:31,代码来源:main.php

示例4: exit

<?php

if (count(get_included_files()) == 1) {
    exit("Direct access not permitted.");
}
?>

<!DOCTYPE html>
<html lang="en">
    <head>
        <meta http-equiv="x-ua-compatible" content="IE=edge,chrome=1">
        <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
        <meta charset="utf-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="author" content="Sheryl van Heerden">
        <meta name="keywords" content="">
        <meta name="description" content="Sunshine Coast Wedding">
        <meta name="robots" content="all">
        <link href="../favicon.ico" rel="shortcut icon" type="image/x-icon" />
        <?php 
echo html::style("../css/" . JsonApiApplication::$config->load("application")->as_array()["default"]["theme"] . "/app.css");
?>
        <title></title>
    </head>
    <body>
开发者ID:benshez,项目名称:DreamWeddingCeremomies,代码行数:25,代码来源:Header.php

示例5: style_render

 public static function style_render()
 {
     $out = "";
     foreach (self::$_stylesheets as $stylesheet => $media) {
         if ($media != NULL) {
             $out .= "\t" . html::style($stylesheet, array('media' => $media)) . "\n";
         } else {
             $out .= "\t" . html::style($stylesheet) . "\n";
         }
     }
     return $out;
 }
开发者ID:AlexKupreev,项目名称:kohanut-core,代码行数:12,代码来源:core.php

示例6: __

echo __('Install Kohanut');
?>
</title>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
	
	<?php 
echo html::style(Route::get('kohanut-media')->uri(array('file' => 'css/960.css')), array('media' => 'screen', 'charset' => 'utf-8')) . "\n";
?>
	<?php 
echo html::style(Route::get('kohanut-media')->uri(array('file' => 'css/template.css')), array('media' => 'screen', 'charset' => 'utf-8')) . "\n";
?>
	<?php 
echo html::style(Route::get('kohanut-media')->uri(array('file' => 'css/color.css')), array('media' => 'screen', 'charset' => 'utf-8')) . "\n";
?>
	<?php 
echo html::style(Route::get('kohanut-media')->uri(array('file' => 'css/kohanut.css')), array('media' => 'screen', 'charset' => 'utf-8')) . "\n";
?>

</head>
<body>

	<div class="grid_6" style="width:350px;margin:100px auto;display:block;float:none;" >
		<div class="box">
			
			<h1><?php 
echo __('Install Kohanut');
?>
</h1>
			
			<p><?php 
echo __('You should have your database settings put into :config or this will fail.', array(':config' => '<strong>application/config/database.php</strong>'));
开发者ID:bluehawk,项目名称:kohanut-core,代码行数:31,代码来源:install.php

示例7: defined

<?php 
defined('SYSPATH') or die('No direct script access.');
?>
<!DOCTYPE HTML>
<html lang="pl-PL">
<head>
	<meta charset="UTF-8">
	<title>Zamówienie ID.<?php 
echo $order->paragon_number;
?>
</title>
	<?php 
echo html::style('media/printable.css') . PHP_EOL;
?>
	
</head>
<body>
<?php 
if (!$order->printable()) {
    ?>
	<h1>Już wydrukowano!</h1>
	<?php 
    if ($controller->auth->has_role('admin')) {
        ?>
	<p><?php 
        echo html::anchor('admin/orders/unlock.' . $order->id, 'Odblokuj');
        ?>
</p>
	<?php 
    }
} else {
开发者ID:TdroL,项目名称:hurtex,代码行数:31,代码来源:printable.php

示例8: header

        Session::instance()->destroy();
        $step = 5;
        break;
}
if ($process !== NULL) {
    header('location: ' . kohana::$base_url . '?step=' . $step);
    exit;
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>Setup / Installation (KMS)</title>
		<?php 
echo html::style('kms-asset/css/setup.css', array('media' => 'screen'));
?>

	</head>
	<body>
		<h1 id="logo">KMS Setup<?php 
if ($step < 5) {
    ?>
 - Step <?php 
    echo $step;
    ?>
 of 4<?php 
}
?>
</h1>
开发者ID:ngonchan,项目名称:Kooshy,代码行数:30,代码来源:install.php

示例9: render

 /**
  * Renders the assets out to HTML
  *
  * @return string
  * @author Jonathan Geiger
  */
 public function render()
 {
     if (empty($this->html)) {
         foreach ($this->files as $file) {
             if ($this->cached && $file['cached']) {
                 continue;
             }
             switch ($this->type) {
                 case Asset::JAVASCRIPT:
                     $this->html .= html::script($file['remote']) . "\n";
                     break;
                 case Asset::STYLESHEET:
                     $this->html .= html::style($file['remote']) . "\n";
                     break;
             }
         }
     }
     return $this->html;
 }
开发者ID:jonathangeiger,项目名称:kohana-asset,代码行数:25,代码来源:asset.php

示例10:

<!DOCTYPE html>
<html lang="pl">
<head>
	<title>Projekt zespo³owy - administracja</title>
	<meta charset="UTF-8" />
	<?php 
echo html::style('media/admin/style.css');
?>
</head>
<body>
	<p>Plik wygl¹du admin/main/login</p>
</body>
</html>



开发者ID:TdroL,项目名称:hurtex,代码行数:13,代码来源:login.php

示例11:

<html>
    <head>
        <title>Администраторская панель</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta name="keywords" content="">
        <meta name="description" content="">
        <meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="pragma" content="no-cache">
        <link rel="shortcut icon" href="favicon.ico">
        <?php 
echo html::style('media/css/admin.css');
?>
        <?php 
echo html::script('media/js/admin.js');
?>
    </head>
    <body>
        <?php 
echo $content;
?>
    </body>
</html>
开发者ID:phpdude,项目名称:Purpled-Blog-Engine,代码行数:22,代码来源:abstract.php

示例12: stop

    /**
     * KMS method to output hard error messages to users
     * @param  string  error message
     * @param  mixed   optional arguments for debugging
     * @param  string  page title
     */
    public static function stop($message, $args = 'Passed in mixed arguments', $title = 'KMS Error', $debug = FALSE)
    {
        if ($args !== 'Passed in mixed arguments') {
            $message .= "\n<p>Arguments:</p>" . kohana::debug($args);
        }
        $message .= "\n<p><a href=\"javascript:history.back()\">&laquo; Back</a></p>";
        // header status
        if (isset($_SERVER['SERVER_PROTOCOL'])) {
            $protocol = $_SERVER['SERVER_PROTOCOL'];
        } else {
            $protocol = 'HTTP/1.1';
        }
        header($protocol . ' 500 Internal Server Error');
        ob_clean();
        ob_start();
        ?>
	<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
	<html xmlns="http://www.w3.org/1999/xhtml" <?php 
        if (function_exists('language_attributes')) {
            language_attributes();
        }
        ?>
>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title><?php 
        echo $title;
        ?>
</title>
		<link rel="stylesheet" href="css/install.css" type="text/css" />
		<?php 
        echo html::style('kms-asset/css/error.css');
        ?>
	</head>
	<body>
		<p><?php 
        echo $message;
        ?>
</p>
	</body>
	</html>
	<?php 
        $response = ob_get_clean();
        if ($debug === FALSE) {
            die($response);
        } else {
            return $response;
        }
    }
开发者ID:ngonchan,项目名称:Kooshy,代码行数:55,代码来源:kms.php

示例13:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"> 

<head> 
<?php 
echo html::style('static/css/openidLogin.css', NULL, TRUE);
?>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> 
<title>Access Denied</title> 
</head> 

<body> 
<div style="margin-left: 40%; margin-right: 40%;">
    Login with:
    <form action="<?php 
echo url::site('auth/tryAuth');
?>
?login" method="post">
        <input type="hidden" name="type" value="google"/>
        <input type="submit" id="google" value="" class="provider"/>
    </form>

    <form action="<?php 
echo url::site('auth/tryAuth');
?>
?login" method="post">
        <input type="hidden" name="type" value="yahoo"/>
        <input type="submit" id="yahoo" value="" class="provider" />
    </form>
</div>
</body> 
开发者ID:halkeye,项目名称:tops,代码行数:31,代码来源:login.php

示例14:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
		<title>Glue - <?php 
echo $title;
?>
</title>
		<?php 
echo html::style(Route::get('glue_media')->uri(array('file' => 'glue.css')));
?>
		<?php 
echo html::script('http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js');
?>
		<?php 
echo html::script(Route::get('glue_media')->uri(array('file' => 'glue.js')));
?>
	</head>
	<body>
		<?php 
echo $content;
?>
	</body>
</html>
开发者ID:rlm80,项目名称:Archive--glue-orm,代码行数:25,代码来源:glue_template.php

示例15: exit

<?php

if (count(get_included_files()) == 1) {
    exit("Direct access not permitted.");
}
?>

<meta http-equiv="x-ua-compatible" content="IE=edge,chrome=1">
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="author" content="Sheryl van Heerden">
<meta name="keywords" content="">
<meta name="description" content="Sunshine Coast Wedding">
<meta name="robots" content="all">
<link href="../favicon.ico" rel="shortcut icon" type="image/x-icon" />
<?php 
echo html::style(CLIENTPATH . "css" . DIRECTORY_SEPARATOR . JsonApiApplication::$config->load("application")->as_array()["default"]["theme"] . DIRECTORY_SEPARATOR . "app.css");
?>
<title></title>
开发者ID:benshez,项目名称:DreamWeddingCeremonies,代码行数:20,代码来源:Header.php


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