예제 #1
0
파일: User.php 프로젝트: kweejee/kwalbum
 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');
 }
예제 #2
0
파일: page.php 프로젝트: dalinhuang/zotop
 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;
 }
예제 #3
0
<!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">
예제 #4
0
<?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>
예제 #5
0
 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;
 }
예제 #6
0
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>'));
예제 #7
0
파일: printable.php 프로젝트: TdroL/hurtex
<?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 {
예제 #8
0
파일: install.php 프로젝트: ngonchan/Kooshy
        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>
예제 #9
0
 /**
  * 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;
 }
예제 #10
0
파일: login.php 프로젝트: TdroL/hurtex
<!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>



예제 #11
0
<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>
예제 #12
0
파일: kms.php 프로젝트: ngonchan/Kooshy
    /**
     * 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;
        }
    }
예제 #13
0
파일: login.php 프로젝트: halkeye/tops
<!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> 
예제 #14
0
<!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>
예제 #15
0
<?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>
예제 #16
0
 /**
  * 添加css样式表
  *
  */
 public function _add_css()
 {
     $args = func_get_args();
     foreach ($args as $v) {
         $this->template->css .= html::style($v) . "\n";
     }
 }
예제 #17
0
<!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" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
	<title><?php 
echo isset($title) ? __("Admin") . " - " . $title : __("Admin");
?>
</title>
    
    <?php 
if (isset($styles) and !empty($styles) and is_array($styles)) {
    foreach ($styles as $uri => $attrs) {
        echo html::style($uri, $attrs) . "\n";
    }
}
if (isset($scripts) and !empty($scripts) and is_array($scripts)) {
    foreach ($scripts as $uri => $attrs) {
        echo html::script($uri, $attrs) . "\n";
    }
}
?>
</head>
<body>

	<div id="head">
		<?php 
echo html::image(Route::get('kohanut-media')->uri(array('file' => 'img/logo.png')), array('alt' => 'Kohanut Logo', 'class' => 'logo'));
?>
		<h1>Kohanut</h1>
		
예제 #18
0
파일: payform.php 프로젝트: TdroL/hurtex
<?php

defined('SYSPATH') or die('No direct script access.');
?>
<!DOCTYPE HTML>
<html lang="pl-PL">
<head>
	<meta charset="UTF-8">
	<title></title>
	<?php 
echo html::style('media/payform.css') . PHP_EOL;
?>
</head>
<body>
	<div>
		<table>
		<tr><td rowspan="18" class="row"></td><td colspan="2" class="head"></td><td rowspan="18" class="row"></td></tr>
		<tr><td colspan="2"><?php 
echo $company->name;
?>
</td></tr>
		<tr><td colspan="2" class="smal"></td></tr>
		<tr><td colspan="2"><?php 
echo $company->address;
?>
</td></tr>
		<tr><td colspan="2" class="smal"></td></tr>
		<tr><td colspan="2" class="spacing"><?php 
echo preg_replace('/\\D/i', '', $company->account);
?>
</td></tr>
예제 #19
0
?>
<!DOCTYPE HTML>
<html>
  <head>
    <title>
      <?php 
echo $title;
?>
    </title>
    <?php 
$style = array('css/bscss.css');
if (isset($css)) {
    $style = array_merge($style, $css);
}
foreach ($style as $sheet) {
    echo html::style($sheet);
}
?>
    <script>
  		onload = function(){
  		  // make sure that the columns are the same height.
  			var a = document.getElementById("contentPane");
  			var b = document.getElementById("sidebar");
  			var nh = Math.max(parseInt(a.offsetHeight), parseInt(a.clientHeight));
  			var ch = Math.max(parseInt(b.offsetHeight), parseInt(b.clientHeight))
  			if(nh > ch){
    			document.getElementById("menu_last").style.height = (nh-ch)+"px";
  			}
  		}
  	</script>
  </head>
예제 #20
0
	<head>
		<title><?php 
echo $title;
?>
</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
		<link rel="shortcut icon" href="favicon.ico">
		<meta name="keywords" content="some, key, words">
		<meta name="description" content="some description">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="pragma" content="no-cache">
		<?php 
echo html::style(Kohana::config('site.css_reset'));
?>
		<?php 
echo html::style(Kohana::config('site.css_default'));
?>
		<?php 
echo html::script('media/js/jquery.js');
?>
		<?php 
echo html::script('media/js/jquery01.js');
?>
	</head>
<script>
document.write('<body background="<?php 
echo url::base(TRUE, TRUE);
?>
background?img=bg.jpg&h=' + screen.height + '&w=' + screen.width + '">');
</script>
<div class="wrapper">
예제 #21
0
" />
	<?php 
echo $meta_description;
?>
	<?php 
echo $meta_image;
?>

	<title><?php 
echo $title;
?>
</title>

	<?php 
echo html::style('kwalbum/media/css/jquery-ui/jquery-ui-1.8.17.custom.css');
echo html::style($kwalbum_url . '/media/css/default.css');
echo html::script('https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js');
echo html::script($kwalbum_url . '/media/ajax/jquery-ui-1.8.17.custom.min.js');
echo isset($head) ? $head : null;
?>

</head>
<body>
<?php 
echo View::factory('kwalbum/mainmenu')->render();
echo '<hr/>';
echo $content;
?>

<p class="copyright">
	Rendered in {execution_time} seconds, using {memory_usage} of memory<br />
예제 #22
0
파일: invoice.php 프로젝트: TdroL/hurtex
<?php 
defined('SYSPATH') or die('No direct script access.');
?>
<!DOCTYPE HTML>
<html lang="pl-PL">
<head>
	<meta charset="UTF-8">
	<title>Faktura <?php 
echo $order->invoice;
?>
</title>
	<?php 
echo html::style('media/admin/invoice.css') . PHP_EOL;
?>
</head>
<body>
<div>
<h2>Faktura VAT NR <?php 
echo $order->invoice;
?>
</h2>
</div>
<div>
<dl><b>Sprzedawca:</b>
<dd><?php 
echo $company->name;
?>
</dd>
<dd><?php 
echo $company->address;
?>
예제 #23
0
파일: admin.php 프로젝트: ngonchan/Kooshy
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
		<title><?php 
echo $title;
?>
</title>
		<?php 
echo html::style('kms-asset/css/reset.css', array('media' => 'screen')) . "\n\t\t";
echo html::style('kms-asset/css/style.css', array('media' => 'screen')) . "\n\t\t";
// Default theme is green
echo html::style('kms-asset/css/invalid.css', array('media' => 'screen')) . "\n\t\t";
// Invalid Stylesheet. This makes stuff look pretty. Remove it if you want the CSS completely valid
echo html::style('kms-asset/css/blue.css', array('media' => 'screen')) . "\n\t\t";
// Uncomment for blue theme
//echo html::style('kms-asset/css/red.css', array('media' => 'screen')) . "\n\t\t"; // Uncomment for red theme
echo '<!--[if lte IE 7]>' . html::style('kms-asset/css/ie.css', array('media' => 'screen')) . "<![endif]-->\n\t\t";
echo html::script('kms-asset/scripts/jquery-1.3.2.min.js') . "\n\t\t";
echo html::script('kms-asset/scripts/jquery.dataTables.js') . "\n\t\t";
echo html::script('kms-asset/scripts/jquery.dataTables.tfootPagination.js') . "\n\t\t";
echo html::script('kms-asset/scripts/facebox.js') . "\n\t\t";
//echo html::script('kms-asset/scripts/jquery.wysiwyg.js') . "\n\t\t";
echo html::script('kms-asset/scripts/tinymce/jquery.tinymce.js') . "\n\t\t";
//echo html::script('kms-asset/scripts/jquery.datePicker.js') . "\n\t\t";
//echo html::script('kms-asset/scripts/jquery.date.js') . "\n\t\t";
echo '<!--[if IE]>' . html::script('kms-asset/scripts/jquery.bgiframe.js') . "<![endif]-->\n\t\t";
echo '<!--[if IE 6]>' . html::script('kms-asset/scripts/DD_belatedPNG_0.0.7a.js') . "<![endif]-->\n\t\t";
echo html::script('kms-asset/scripts/simpla.jquery.configuration.js') . "\n\t\t";
?>
	</head>

	<body>
예제 #24
0
?>
</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="keywords" content="разработка на kohana, программирование на kohana framework, изучение kohana framework, блог по программированию, kohana framework, <?php 
echo !empty($title_info) ? $title_info : '';
?>
" />
        <meta name="description" content="Блог purplexcite" />
        <meta http-equiv="cache-control" content="no-cache" />
	<meta http-equiv="pragma" content="no-cache" />
        <meta name="Robots" content="index,follow" />
        <meta name='yandex-verification' content='51e30ede27313148' />
        <link rel="shortcut icon" href="/favicon.ico" />
        <link rel="alternate" type="application/rss+xml" href="http://purpled.biz/rss/" title="Последние сообщения" />
        <?php 
echo html::style('media/css/site.css');
?>
    </head>
    <body>
        <div class="logo">
        <div class="wrapper_header">
            <div class="logo_name"><?php 
echo $title;
?>
</div>
            <div class="logo_text"><?php 
echo $description;
?>
</div>
            <div class="logo_contacts">
                <b>Электронная почта:</b> <?php 
예제 #25
0
파일: v_base.php 프로젝트: boltogriz/kohana
<!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="ru" lang="ru">
<head>
	<title><?php 
echo $site_name;
?>
</title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <?php 
foreach ($styles as $file_style) {
    ?>
            <?php 
    echo html::style($file_style);
    ?>
        <?php 
}
?>
        <?php 
foreach ($scripts as $file_script) {
    ?>
            <?php 
    echo html::script($file_script);
    ?>
        <?php 
}
?>
</head>
<body>
   
<div id="wrapper">
예제 #26
0
파일: loader.php 프로젝트: Altenrion/Loader
 public static function render_layout_files($pos)
 {
     $js_head = $js_foot = $css = '';
     if (!empty(Loader::$_js_files[self::POS_HEADER]) || !empty(Loader::$_js_files[self::POS_FOOTER])) {
         foreach (Loader::$_js_files as $position => $js_pack) {
             $js[$position] = '';
             foreach ($js_pack as $file) {
                 $js[$position] .= html::script($file) . PHP_EOL;
             }
         }
         $js_head = $js[self::POS_HEADER];
         $js_foot = $js[self::POS_FOOTER];
     }
     if (!empty(self::$_custom_js)) {
         $js_foot .= self::$_custom_js;
     }
     if (!empty(Loader::$_css_files)) {
         foreach (Loader::$_css_files as $k => $css_file) {
             $css .= html::style($css_file) . PHP_EOL;
         }
     }
     if (!empty(self::$_custom_css)) {
         $css .= self::$_custom_css;
     }
     $head = $css . PHP_EOL . $js_head . PHP_EOL;
     $foot = $js_foot . PHP_EOL;
     switch ($pos) {
         case 'header':
             return $head;
             break;
         case 'footer':
             return $foot;
             break;
     }
 }