Exemplo n.º 1
0
 function codemirror($attrs)
 {
     $url = zotop::module('codemirror', 'url');
     $options = new stdClass();
     $options->path = $url . '/codemirror/js/';
     $options->parserfile = array('parsexml.js');
     $options->stylesheet = array($url . '/codemirror/css/xmlcolors.css');
     $options->height = is_numeric($attrs['height']) ? $attrs['height'] . 'px' : $attrs['height'];
     $options->width = is_numeric($attrs['width']) ? $width . 'px' : $attrs['width'];
     $options->continuousScanning = 500;
     $options->autoMatchParens = true;
     if ($attrs['linenumbers'] !== false) {
         $options->lineNumbers = true;
         $options->textWrapping = false;
     }
     if ($attrs['tabmode'] == '') {
         $options->tabMode = 'shift';
     }
     $html = array();
     $html[] = html::script($url . '/codemirror/js/codemirror.js');
     $html[] = html::stylesheet($url . '/codemirror/css/codemirror.css');
     $html[] = '	' . field::textarea($attrs);
     $html[] = '<script type="text/javascript">';
     $html[] = '	var editor = CodeMirror.fromTextArea("' . $attrs['name'] . '", ' . json_encode($options) . ');';
     $html[] = '$(function(){';
     $html[] = '	$("form").submit(function(){';
     $html[] = '		$("textarea[name=+' . $attrs['name'] . '+]").val(editor.getCode());';
     $html[] = '	});';
     $html[] = '})';
     $html[] = '</script>';
     return implode("\n", $html);
 }
Exemplo n.º 2
0
 /**
  * Méthode : formulaire d'authentification a l'administration
  */
 public function auth()
 {
     $template = new View('template/no_html');
     $template->css = html::stylesheet('index.php/css_' . base64_encode(implode('--', array('core', 'auth'))));
     $template->contenu = new View('auth/form');
     $template->render(true);
 }
Exemplo n.º 3
0
 /**
  * Css Items
  */
 private function _header_css()
 {
     $core_css = "";
     $core_css .= html::stylesheet($this->css_url . "media/css/jquery-ui-themeroller", "", true);
     foreach (Kohana::config("settings.site_style_css") as $theme_css) {
         $core_css .= html::stylesheet($theme_css, "", true);
     }
     $core_css .= "<!--[if lte IE 7]>" . html::stylesheet($this->css_url . "media/css/iehacks", "", true) . "<![endif]-->";
     $core_css .= "<!--[if IE 7]>" . html::stylesheet($this->css_url . "media/css/ie7hacks", "", true) . "<![endif]-->";
     $core_css .= "<!--[if IE 6]>" . html::stylesheet($this->css_url . "media/css/ie6hacks", "", true) . "<![endif]-->";
     if ($this->map_enabled) {
         $core_css .= html::stylesheet($this->css_url . "media/css/openlayers", "", true);
     }
     if ($this->treeview_enabled) {
         $core_css .= html::stylesheet($this->css_url . "media/css/jquery.treeview", "", true);
     }
     if ($this->photoslider_enabled) {
         $core_css .= html::stylesheet($this->css_url . "media/css/picbox/picbox", "", true);
     }
     if ($this->videoslider_enabled) {
         $core_css .= html::stylesheet($this->css_url . "media/css/videoslider", "", true);
     }
     if ($this->colorpicker_enabled) {
         $core_css .= html::stylesheet($this->css_url . "media/css/colorpicker", "", true);
     }
     if ($this->site_style and $this->site_style != "default") {
         $core_css .= html::stylesheet($this->css_url . "themes/" . $site_style . "/style.css");
     }
     // Render CSS
     $plugin_css = plugin::render('stylesheet');
     return $core_css . $plugin_css;
 }
 static function header_top($theme)
 {
     $session = Session::instance();
     $highroller_theme = $session->get("highroller_theme", "");
     if ($highroller_theme) {
         print html::stylesheet(url::abs_file("modules/highroller/themes/{$highroller_theme}/theme.css"));
     }
 }
Exemplo n.º 5
0
    public function tri($disable = false, $pager = false, $actif = true)
    {
        $this->limit_pager = $pager;
        if (Table::$css === NULL) {
            if (is_file(DOCROOT . 'css/table.css')) {
                $this->display_glob .= html::stylesheet('css/table');
            }
            Table::$css = true;
        }
        if ($actif !== false && Table::$script === NULL) {
            if (is_file(DOCROOT . 'js/jquery.table.js')) {
                $this->display_glob .= html::script(array('js/jquery.table', 'js/jquery.tablesorter.filer'));
            }
            Table::$script = true;
        }
        if ($this->limit_pager !== false && Table::$pager === NULL) {
            if (is_file(DOCROOT . 'js/jquery.table.pager.js') && is_file(DOCROOT . 'js/jquery.latest.js')) {
                $this->display_glob .= html::script('js/jquery.table.pager');
            }
            Table::$pager = true;
        }
        if ($actif !== false) {
            $this->display_glob .= '<script language="javascript" type="text/javascript">' . "\n";
            $this->display_glob .= "\t" . '$(document).ready(function() {  $("#' . $this->id_table . '").tablesorter({';
            if ($disable && is_array($disable)) {
                $this->display_glob .= 'headers: { ' . implode(': { sorter: false  }, ', $disable) . ': { sorter: false  } } ';
            }
            if ($disable && is_array($disable) && $pager) {
                $this->display_glob .= ',';
            }
            if ($this->limit_pager) {
                $this->display_glob .= 'widthFixed: true, widgets: [\'zebra\']';
            }
            $this->display_glob .= '})';
            if ($this->limit_pager) {
                $this->display_glob .= '.tablesorterPager({container: $("#pager_' . $this->id_table . '"), size : ' . $this->limit_pager . ', positionFixed: false})';
            }
            $this->display_glob .= '.tablesorterFilter({ filterContainer: $("#search_tri"), filterClearContainer: $("#delete_tri"),
                            filterCaseSensitive: false
 })';
            $this->display_glob .= '; } );' . "\n";
            $this->display_glob .= '</script>' . "\n";
        }
        return $this;
    }
Exemplo n.º 6
0
 public function header()
 {
     $header = $this->render('header');
     if (!$header) {
         $javascript = (array) $this->js;
         $css = (array) $this->css;
         $metas = (array) $this->meta;
         $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>' . $this->title . ' ' . zotop::config("zotop.title") . '</title>';
         $html[] = '	' . html::meta('keywords', $this->keywords . ' ' . zotop::config("zotop.keywords"));
         $html[] = '	' . html::meta('description', $this->description . ' ' . zotop::config("zotop.description"));
         $html[] = '	' . html::meta('Content-Type', 'text/html;charset=utf-8');
         $html[] = '	' . html::meta('X-UA-Compatible', 'IE=EmulateIE7');
         foreach ($metas as $meta) {
             $html[] = '	' . html::meta($meta);
         }
         $html[] = '	' . html::stylesheet('$theme/css/zotop.css', array('id' => 'zotop'));
         $html[] = '	' . html::stylesheet('$theme/css/global.css', array('id' => 'global'));
         foreach ($css as $stylesheet) {
             $html[] = '	' . html::stylesheet($stylesheet);
         }
         $html[] = '	' . html::script('$common/js/jquery.js', array('id' => 'jquery'));
         $html[] = '	' . html::script('$common/js/jquery.plugins.js', array('id' => 'plugins'));
         $html[] = '	' . html::script('$common/js/zotop.js', array('id' => 'zotop'));
         $html[] = '	' . html::script('$common/js/global.js', array('id' => 'global'));
         foreach ($javascript as $js) {
             $html[] = '	' . html::script($js);
         }
         $html[] = '	' . html::link('$theme/image/favicon.ico', array('rel' => 'shortcut icon', 'type' => 'image/x-icon'));
         $html[] = '	' . html::link('$theme/image/favicon.ico', array('rel' => 'icon', 'type' => 'image/x-icon'));
         $html[] = '	' . html::link('$theme/image/favicon.ico', array('rel' => 'bookmark', 'type' => 'image/x-icon'));
         $html[] = '</head>';
         $html[] = '<body' . html::attributes($this->body) . '>';
         $html[] = '<div id="wrapper">';
         $html[] = '<div id="page">';
         $html[] = '';
         $header = implode("\n", $html);
     }
     echo $header;
 }
Exemplo n.º 7
0
 public function 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>' . $this->title . ' ' . zotop::config("zotop.title") . '</title>';
     $html[] = '	' . html::meta('keywords', $this->keywords);
     $html[] = '	' . html::meta('description', $this->description);
     $html[] = '	' . html::meta('Content-Type', 'text/html;charset=utf-8');
     $html[] = '	' . html::meta('X-UA-Compatible', 'IE=EmulateIE7');
     $html[] = '	' . html::stylesheet(ZOTOP_APP_URL_CSS . '/zotop.css', array('id' => 'zotop'));
     $html[] = '	' . html::stylesheet(ZOTOP_APP_URL_CSS . '/global.css', array('id' => 'global'));
     $html[] = '	' . html::link(ZOTOP_APP_URL_IMAGE . '/fav.ico', array('rel' => 'shortcut icon', 'type' => 'image/x-icon'));
     $html[] = '	' . html::link(ZOTOP_APP_URL_IMAGE . '/fav.ico', array('rel' => 'icon', 'type' => 'image/x-icon'));
     $html[] = '	' . html::link(ZOTOP_APP_URL_IMAGE . '/fav.ico', array('rel' => 'bookmark', 'type' => 'image/x-icon'));
     $html[] = '</head>';
     $html[] = '<body' . html::attributes($this->body) . '>';
     $str = implode("\n", $html);
     echo $str;
 }
Exemplo n.º 8
0
 public function header()
 {
     $javascript = (array) $this->js;
     $css = (array) $this->css;
     $metas = (array) $this->meta;
     $html[] = '<!DOCTYPE html>';
     $html[] = '<html>';
     $html[] = '<head>';
     $html[] = '	<title>' . $this->title . ' ' . zotop::config("zotop.title") . '</title>';
     $html[] = '	' . html::meta('keywords', $this->keywords . ' ' . zotop::config("zotop.keywords"));
     $html[] = '	' . html::meta('description', $this->description . ' ' . zotop::config("zotop.description"));
     $html[] = '	' . html::meta('Content-Type', 'text/html;charset=utf-8');
     $html[] = '	' . html::meta('X-UA-Compatible', 'IE=EmulateIE7');
     foreach ($metas as $meta) {
         $html[] = '	' . html::meta($meta);
     }
     $html[] = '	' . html::stylesheet('$theme/css/zotop.css', array('id' => 'zotop'));
     $html[] = '	' . html::stylesheet('$theme/css/global.css', array('id' => 'global'));
     foreach ($css as $stylesheet) {
         $html[] = '	' . html::stylesheet($stylesheet);
     }
     $html[] = '	' . html::script('$common/js/jquery.js', array('id' => 'jquery'));
     $html[] = '	' . html::script('$common/js/jquery.plugins.js', array('id' => 'plugins'));
     $html[] = '	' . html::script('$common/js/zotop.js', array('id' => 'zotop'));
     $html[] = '	' . html::script('$common/js/global.js', array('id' => 'global'));
     foreach ($javascript as $js) {
         $html[] = '	' . html::script($js);
     }
     $html[] = '	' . html::link('$theme/image/favicon.ico', array('rel' => 'shortcut icon', 'type' => 'image/x-icon'));
     $html[] = '	' . html::link('$theme/image/favicon.ico', array('rel' => 'icon', 'type' => 'image/x-icon'));
     $html[] = '	' . html::link('$theme/image/favicon.ico', array('rel' => 'bookmark', 'type' => 'image/x-icon'));
     $html[] = '</head>';
     $html[] = '<body' . html::attributes($this->body) . '>';
     $html[] = '<div id="wrapper">';
     $html[] = '<div id="container" class="clearfix">';
     $html[] = '';
     echo implode("\n", $html);
 }
Exemplo n.º 9
0
    public static function jlib()
    {
        if (@$_GET['AJAX_NO_LOAD'] == 'TRUE') {
            return null;
        }
        $str = null;
        $jsdir = Kohana::config('fpp_config.directory_js');
        $str .= "\n    <script type='text/javascript'>\n      baseurl= '" . url::base(FALSE) . "';\n      var BASE_OPENW = baseurl+'{$jsdir}openwysiwyg/';\n    </script>";
        $str .= html::script(array($jsdir . 'jquery-1.3.2.min.js', $jsdir . 'ui.core.js', $jsdir . 'jui/js/jquery-ui-1.7.2.custom.min.js', $jsdir . 'jquerylib.js', $jsdir . 'timepicker.js', $jsdir . 'i18n/ui.datepicker-es.js', $jsdir . 'jquery.prettyPhoto.js', $jsdir . 'ui.spinner.js', $jsdir . 'openwysiwyg/scripts/openwysiwyg.modified.js', $jsdir . 'openwysiwyg/scripts/wysiwyg-settings.js'));
        $str .= html::stylesheet(array($jsdir . 'jui/css/le-frog/jquery-ui-1.7.2.custom.css', $jsdir . 'ui.spinner.css', $jsdir . 'prettyphoto/css/prettyPhoto.css'));
        $str .= <<<EOF
<style type="text/css">
  /*demo page css*/
  body.nostyles{ font: 62.5% "Trebuchet MS", sans-serif; margin: 50px;}
  .demoHeaders { margin-top: 2em; }
  #dialog_link {padding: .4em 1em .4em 20px;text-decoration: none;position: relative;}
  #dialog_link span.ui-icon {margin: 0 5px 0 0;position: absolute;left: .2em;top: 50%;margin-top: -8px;}
  ul#icons {margin: 0; padding: 0; width:30px;}
  ul#icons li {margin: 2px; position: relative; padding: 4px 0; cursor: pointer; float: left;  list-style: none;}
  ul#icons span.ui-icon {float: left; margin: 0 4px;}
</style>
<script type='text/javascript'>
\$(document).ready(function(){
  \$('#dialog_link, ul#icons li').hover(
    function() { \$(this).addClass('ui-state-hover'); }, 
    function() { \$(this).removeClass('ui-state-hover'); }
  );
  \$("input[name\$='boleta_factura']").change(function(){
    var current = \$(this).val();
    \$(".area-boleta-factura").hide();
    \$("#area-"+current).show(800);
  });
})
</script>
EOF;
        return $str;
    }
Exemplo n.º 10
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 $title;
?>
 | Kodoc</title>
		<?php 
foreach ($styles as $style => $media) {
    echo html::stylesheet($style, $media, TRUE), "\n";
}
?>
		<?php 
foreach ($scripts as $script) {
    echo html::script($script, TRUE), "\n";
}
?>
	</head>
	<body>
		<div id="topline">
			<ul id="quicklinks">
				<li class="first"><?php 
echo html::anchor('http://kohanaframework.org', '&nbsp;');
?>
</li>
				<li class="active"><?php 
echo html::anchor('/en/userguide', 'User Guide');
?>
</li>
				<li><?php 
Exemplo n.º 11
0
 public static function renderLinks($inline = FALSE, $index = FALSE)
 {
     // build a var with the included css files
     $styles = self::$stylePaths;
     self::$stylePaths = array();
     // Get the session so we can track what assets are on the page
     $session = Session::instance();
     // If this is a full page load (ie not ajax) then there are no assest already on page
     if (!request::is_ajax()) {
         $session->delete('stylesheet.onPageAssets');
     }
     // Initialize the vars to track what has been added, and convience wrappers
     $onPageAssets = $session->get('stylesheet.onPageAssets', array());
     // loop all the css includes and determine what needs to go on this page
     // and in what order
     $styleOutputBuffer = array();
     foreach ($styles as $cond => $condblock) {
         // sort this condblock of style paths by weight
         ksort($condblock);
         $styleOutputBuffer[$cond] = array();
         foreach ($condblock as $stylePaths) {
             // make sure there are no duplicates in this array
             $stylePaths = array_unique($stylePaths);
             // make sure these css links are not already on the page
             // via ajax/parent or in another weight category (lowest weight wins)
             $stylePaths = array_diff($stylePaths, $onPageAssets);
             // add the filtered list to the array of assets to put on the page
             $styleOutputBuffer[$cond] = array_merge($styleOutputBuffer[$cond], $stylePaths);
             // keep track of what we add to the pages
             $onPageAssets = array_merge($onPageAssets, $stylePaths);
         }
     }
     // NOTICE: setting $session here causes segfault during ajax
     // made a hack to move this set outside the event .....
     Bluebox_Controller::$onPageAssets['css'] = $onPageAssets;
     //$session->set('stylesheet.onPageAssets', $onPageAssets);
     // run through everything that needs to be on the page and
     // make in conditional where apropriate then convert them into css links
     $linkList = '';
     foreach ($styleOutputBuffer as $cond => $stylePaths) {
         // if all the includes are already on page move on
         if (empty($stylePaths)) {
             continue;
         }
         // create the css links
         $links = html::stylesheet($stylePaths, 'screen', $index);
         // if these are conditional css pages then wrap the links
         // in the conditional statement
         if (array_key_exists($cond, self::$cssconditional)) {
             $links = sprintf(self::$cssconditional[$cond], "\n" . rtrim($links, "\n") . "\n");
         }
         // add these links to our string
         $linkList .= $links;
     }
     // are we displaying this inline or returning the string
     if ($inline) {
         echo $linkList;
     } else {
         return $linkList;
     }
 }
Exemplo n.º 12
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">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title><?php 
if (isset($seoTitle)) {
    echo html::specialchars($seoTitle);
}
?>
</title>
<?php 
echo html::stylesheet(array('assets/css/reset.css', 'assets/css/forms.css', 'assets/css/navigation.css', 'assets/css/layout.css', 'assets/css/typography.css', 'assets/css/design.css', 'assets/css/jquery.thickbox.css', 'assets/css/jquery.datePicker.css'), 'screen', FALSE);
echo html::script(array('assets/js/jquery-1.2.6.min.js', 'assets/js/ui.jquery.js', 'assets/js/jquery.thickbox.js', 'assets/js/jquery.cycle.js'), FALSE);
if (isset($extraHead)) {
    echo $extraHead;
}
?>

<script type="text/javascript">
$(function() {
	$('#s1').cycle('fade');	


$('#s3').cycle({ 
    fx:    'scrollRight', 
    timeout: 8000, 
    speed:   3000 ,
});

$('#s2').cycle({ 
    fx:      'custom', 
Exemplo n.º 13
0
    echo 'var impact_json = { ' . $impact_json . ' };';
    echo '</script>';
    echo html::script('media/js/raphael-ushahidi-impact', true);
}
// Load ColorPicker
if ($colorpicker_enabled) {
    echo html::stylesheet('media/css/colorpicker', '', true);
    echo html::script('media/js/colorpicker', true);
}
// Load TinyMCE
if ($editor_enabled) {
    echo html::script('media/js/tinymce/tiny_mce', true);
}
// Turn on picbox
echo html::script('media/js/picbox', true);
echo html::stylesheet('media/css/picbox/picbox');
?>
	<script type="text/javascript" charset="utf-8">
		<?php 
echo $js . "\n";
?>
		function info_search(){
			$("#info-search").submit();
		}
	</script>
</head>
<body>
	<div class="holder">
		<!-- header -->
		<div id="header">
			<!-- top-area -->
Exemplo n.º 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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title><?php 
echo Kohana::lang('ui_main.login');
?>
</title>
<?php 
echo html::stylesheet(url::file_loc('css') . 'media/css/jquery-ui-themeroller', '', TRUE);
echo html::stylesheet(url::file_loc('css') . 'media/css/login', '', TRUE);
echo html::stylesheet(url::file_loc('css') . 'media/css/openid', '', TRUE);
echo html::stylesheet(url::file_loc('css') . 'media/css/global', '', TRUE);
echo html::stylesheet(url::file_loc('css') . 'themes/peace/css/_global.css', '', TRUE);
echo html::script(url::file_loc('js') . 'media/js/jquery', TRUE);
echo html::script(url::file_loc('js') . 'media/js/openid/openid-jquery', TRUE);
echo html::script(url::file_loc('js') . 'media/js/openid/openid-jquery-en', TRUE);
echo html::script(url::file_loc('js') . 'media/js/global', TRUE);
?>
<script type="text/javascript">
	<?php 
echo $js;
?>
</script>
</head>

<body>

<?php 
echo $header_nav;
?>
Exemplo n.º 15
0
    echo '<![endif]-->';
    echo html::script('media/js/protochart/ProtoChart', true);
}
// Load Raphael
if ($raphael_enabled) {
    // The only reason we include prototype is to keep the div element naming convention consistent
    //echo html::script('media/js/protochart/prototype', true);
    echo html::script('media/js/raphael', true);
    echo '<script type="text/javascript" charset="utf-8">';
    echo 'var impact_json = { ' . $impact_json . ' };';
    echo '</script>';
    echo html::script('media/js/raphael-ushahidi-impact', true);
}
// Load ColorPicker
if ($colorpicker_enabled) {
    echo html::stylesheet('media/css/colorpicker', '', true);
    echo html::script('media/js/colorpicker', true);
}
// Load TinyMCE
if ($editor_enabled) {
    echo html::script('media/js/tinymce/tiny_mce', true);
}
?>
	<script type="text/javascript" charset="utf-8">
		<?php 
echo $js . "\n";
?>
		function info_search(){
			$("#info-search").submit();
		}
	</script>
Exemplo n.º 16
0
}
// Load TinyMCE
if ($editor_enabled) {
    echo html::script(url::file_loc('js') . 'media/js/tinymce/tiny_mce', true);
}
// Table Row Sort
if ($tablerowsort_enabled) {
    echo html::script(url::file_loc('js') . 'media/js/jquery.tablednd_0_5', true);
}
// JSON2 for IE+
if ($json2_enabled) {
    echo html::script(url::file_loc('js') . 'media/js/json2', true);
}
// Turn on picbox
echo html::script(url::file_loc('js') . 'media/js/picbox', true);
echo html::stylesheet(url::file_loc('css') . 'media/css/picbox/picbox');
// Render CSS and Javascript Files from Plugins
echo plugin::render('stylesheet');
echo plugin::render('javascript');
// Action::header_scripts_admin - Additional Inline Scripts
Event::run('ushahidi_action.header_scripts_admin');
?>
	<script type="text/javascript" charset="utf-8">
		<?php 
echo $js . "\n";
?>
		function info_search(){
			$("#info-search").submit();
		}
		function show_addedit(toggle){
			if (toggle) {
Exemplo n.º 17
0
echo $this->config->conf['refresh'];
?>
"; URL="<?php 
echo $_SERVER['REQUEST_URI'];
?>
">
<title><?php 
if (isset($this->title)) {
    echo html::specialchars($this->title);
}
?>
</title>
<?php 
echo html::stylesheet('media/css/common.css');
echo html::stylesheet('media/css/imgareaselect-default.css');
echo html::stylesheet('media/css/ui-' . $this->theme . '/jquery-ui.css');
echo html::link('media/images/favicon.ico', 'icon', 'image/ico');
echo html::script('media/js/jquery-min.js');
echo html::script('media/js/jquery.imgareaselect.min.js');
echo html::script('media/js/jquery-ui.min.js');
?>
<script type="text/javascript">
jQuery.noConflict();
jQuery(window).load(
    function() {

    jQuery('div.graph').each(function(){
	var img_width = jQuery(this).next('img').width();
	var rrd_width = parseInt(jQuery(this).css('width'));
	var left = img_width - rrd_width - <?php 
echo $this->config->conf['right_zoom_offset'];
Exemplo n.º 18
0
 public function render()
 {
     $html = '';
     foreach ($this as $field) {
         $html .= html::stylesheet($field[0], $field[1]);
     }
     return $html;
 }
Exemplo n.º 19
0
<?php

defined('SYSPATH') or die('No direct access allowed.');
?>
<!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="de" lang="de">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
	<?php 
echo html::stylesheet('themes/admin/css/login.css', 'screen');
?>
	<title>S7Ncms login</title>
	<script type="text/javascript">
        window.onload = function () {document.getElementById('username').focus();};
    </script>
</head>
<body>
<div id="login">
    <div id="logo"><?php 
echo html::image('themes/default/images/s7n_logo.png');
?>
</div>
    <div id="formular">
        <div id="message">
        <?php 
if (!empty($error)) {
    ?>
        	<?php 
    echo $error;
Exemplo n.º 20
0
<?php 
// during setup, the indicia config file does not exist
$indicia = kohana::config_load('indicia', false);
$theme = $indicia ? $indicia['theme'] : 'default';
echo html::stylesheet(array('media/css/site', 'media/css/forms', 'media/js/fancybox/jquery.fancybox.css', 'media/css/jquery.autocomplete', 'media/themes/' . $theme . '/jquery-ui.custom'), array('screen'));
?>

<!-- BEGIN: jquery/superfish init -->
<?php 
echo html::script(array('media/js/json2.js', 'media/js/jquery.js', 'media/js/jquery.url.js', 'media/js/fancybox/jquery.fancybox.pack.js', 'media/js/hasharray.js', 'media/js/superfish.js', 'media/js/jquery-ui.custom.min.js'), FALSE);
?>


<?php 
echo html::stylesheet(array('media/css/menus'), array('screen'));
?>

<script type="text/javascript">
/*<![CDATA[*/
  jQuery(document).ready(function() {
    jQuery('ul.sf-menu').superfish();
    // Implement hover over highlighting on buttons, even for AJAX loaded content by using live events
    $('.ui-state-default').live('mouseover', function() { 
      $(this).addClass('ui-state-hover'); 
    });
    $('.ui-state-default').live('mouseout', function() { 
      $(this).removeClass('ui-state-hover'); 
    });
    // Hack to get fancybox working as a jQuery live, because some of our images load from AJAX calls,
    // e.g. on the species checklist taxa tab. So we temporarily create a dummy link to our image and click it.
Exemplo n.º 21
0
        echo "LINE: " . $line . "\n";
    }
    echo "ERROR: " . $message . "\n";
    exit;
}
?>
<!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 $error;
?>
</title>
<?php 
echo html::stylesheet('media/css/error', '', true);
echo html::script('media/js/jquery', true);
echo html::script('media/js/jquery.ui.min', true);
echo html::script('media/js/bugs', true);
?>
</head>
<body>
<div id="ushahidi_login_logo"><img src="<?php 
echo url::file_loc('img');
?>
media/img/admin/logo_login.gif" /></div>
<div id="framework_error" style="width:42em;margin:20px auto;">
<h3><?php 
echo html::specialchars($error);
?>
</h3>
Exemplo n.º 22
0
 <?php 
defined('SYSPATH') or die('No direct access allowed.');
?>
 <!-- header_content -->
<?php 
echo html::script(array('js/calendar/cal'), FALSE);
echo html::stylesheet(array('js/calendar/calendar-win2k-cold-1'), FALSE);
?>
<div class="new_sub_menu">
    <div class="new_sub_menu_con">
        <div class="newgrid_tab fixfloat">
            <ul>
                <li class="on"><?php 
echo isset($id) ? "编辑" : "添加";
echo $lottconfig[$lotyid];
?>
期号</li>
            </ul>
        </div>

    </div>
</div>

<style type="text/css">
	.time_out{background:url('/../images/set.png') no-repeat;border:none;width:20px;height:20px; cursor: pointer;}
</style>
<!-- header_content(end) -->
<!--** content start**-->
<div id="content_frame">
    <div class="grid_c2">
        <div class="col_main">
Exemplo n.º 23
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" />
<title><?php 
echo $title;
?>
</title>
<?php 
echo html::stylesheet('media/css/error');
?>
</head>

<body>
<div id="error">
	<h1><?php 
echo $title;
?>
</h1>
	<?php 
echo $content;
?>
   
<!--top page link-->
<p><a href="/" class="toplink">Sinsai.infoトップページへ</a></p>  
<!--top page link-->
</div>
</body>
</html>
Exemplo n.º 24
0
 * @module     API Controller
 * @copyright  Ushahidi - http://www.ushahidi.com
 * @license    http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License (LGPL)
 */
?>
<!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>Crowdmap</title>
<?php 
echo html::stylesheet('media/css/mhi/reset', '', true);
echo "<!--[if lte IE 7]>" . html::stylesheet('media/css/mhi/reset.ie', '', true) . "\n" . "<![endif]-->";
echo html::stylesheet('http://fonts.googleapis.com/css?family=Yanone+Kaffeesatz', '', false);
echo html::link('http://fonts.googleapis.com/css?family=Yanone+Kaffeesatz', 'stylesheet', 'text/css', false);
echo html::stylesheet('media/css/mhi/base', '', true);
echo html::script(array('http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js', 'http://ajax.microsoft.com/ajax/jquery.validate/1.6/jquery.validate.min.js', 'media/js/mhi/jquery.cycle.min.js', 'media/js/mhi/initialize.js'), true);
?>

<?php 
if ($js != '') {
    ?>
<script type="text/javascript" language="javascript">
<?php 
    echo $js . "\n";
    ?>
</script>
<?php 
}
?>
Exemplo n.º 25
0
<html lang="<?php 
echo $language;
?>
">

<head>
	<meta charset="utf-8" />
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title><?php 
echo strip_tags($page_title);
echo (!empty($page_title) ? ' | ' : '') . Kohana::config('site.site_name');
?>
</title>
	<link rel="icon" type="image/png" href="/ui/favicon.png" />
	<?php 
echo html::stylesheet(array('ui/boot.css', 'ui/grid.css', 'ui/typo.css', 'ui/base.css'));
?>
	<?php 
echo less::stylesheet($skin, false, false, $skin_imports);
?>
	<!--[if IE]>
	<?php 
echo html::script('http://html5shiv.googlecode.com/svn/trunk/html5.js');
?>
	<![endif]-->
	<script src="http://www.google.com/jsapi?key=<?php 
echo Kohana::config('site.google_api_key');
?>
"></script>
	<?php 
echo html::script(array('http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js', 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js', 'js/jquery.tools.min.js'));
Exemplo n.º 26
0
<!DOCTYPE html>
<html>

<head>
<meta charset="UTF-8" />
<title>Projects Lounge</title>

<?php 
echo html::stylesheet('media/css/style.css');
echo html::stylesheet(HTMLPage::$styles);
?>

</head>

<body class="<?php 
echo HTMLPage::body_class();
?>
">
<div id="wrapper">
    <div id="header">
        <a id="branding" href="<?php 
echo url::base();
?>
" title="Projects Lounge"><img src="<?php 
echo url::site('media/images/projectslounge.png');
?>
" alt="Projects Lounge" /></a>
    
        <form id="search" action="<?php 
echo url::site('search');
?>
Exemplo n.º 27
0
 * @package	Core
 * @subpackage Views
 * @author	Indicia Team
 * @license	http://www.gnu.org/licenses/gpl.html GPL
 * @link 	http://code.google.com/p/indicia/
 */
?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>

<!-- Main template -->

<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

<?php 
echo html::stylesheet(array('media/css/site'), array('screen'));
?>
<style type="text/css">
<?php 
include Kohana::find_file('views', 'kohana_errors', FALSE, 'css');
?>
</style>

<title><?php 
echo html::specialchars($error);
?>
</title>

</head>
<body>
Exemplo n.º 28
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" />
<meta http-equiv="refresh" content="60"; URL="<?php 
echo $_SERVER['REQUEST_URI'];
?>
">
<title><?php 
echo $error;
?>
</title>
<?php 
echo html::stylesheet('media/css/common.css');
echo html::stylesheet('media/css/ui-' . Kohana::config('core.theme') . '/jquery-ui.css');
echo html::link('media/images/favicon.ico', 'icon', 'image/ico');
echo html::script('media/js/jquery-min.js');
echo html::script('media/js/jquery-ui.min.js');
?>
<style type="text/css">
<?php 
#include Kohana::find_file('views', 'kohana_errors', FALSE, 'css')
?>
</style>
</head>
<body>
<div class="pagebody">
<table class="body">
<tr valign="top"><td>
<div class="left ui-widget">
Exemplo n.º 29
0
}
// Load ProtoChart
if ($protochart_enabled) {
    echo "<script type=\"text/javascript\">jQuery.noConflict()</script>";
    echo html::script('media/js/protochart/prototype', true);
    echo '<!--[if IE]>';
    echo html::script('media/js/protochart/excanvas-compressed', true);
    echo '<![endif]-->';
    echo html::script('media/js/protochart/ProtoChart', true);
}
if ($allow_feed == 1) {
    echo "<link rel=\"alternate\" type=\"application/rss+xml\" href=\"http://" . $_SERVER['SERVER_NAME'] . "/feed/\" title=\"RSS2\" />";
}
//Custom stylesheet
echo html::stylesheet(url::base() . 'themes/' . $site_style . "/style.css");
echo html::stylesheet(url::base() . 'media/css/jquery-ui-1.7.2.custom.css');
echo html::script('media/js/jquery-1.3.2.min', true);
echo html::script('media/js/ui.core.js', true);
echo html::script('media/js/ui.slider.js', true);
?>
	
	<style type="text/css">
		#demo-frame > div.demo { padding: 10px !important; };
	</style>
	<script type="text/javascript">
$(function() {
		$("#slider-range").slider({
			range: true,
			min: 0,
			max: 100,
			<?php 
Exemplo n.º 30
0
    echo html::stylesheet('media/css/videoslider');
}
// Load ProtoChart
if ($protochart_enabled) {
    echo "<script type=\"text/javascript\">jQuery.noConflict()</script>";
    echo html::script('media/js/protochart/prototype', true);
    echo '<!--[if IE]>';
    echo html::script('media/js/protochart/excanvas-compressed', true);
    echo '<![endif]-->';
    echo html::script('media/js/protochart/ProtoChart', true);
}
if (Kohana::config('settings.allow_feed')) {
    echo "<link rel=\"alternate\" type=\"application/rss+xml\" href=\"http://" . $_SERVER['SERVER_NAME'] . "/feed/\" title=\"RSS2\" />";
}
//Custom stylesheet
echo html::stylesheet(url::site() . 'themes/' . $site_style . "/style.css");
?>

	<!--[if IE 6]>
	<script type="text/javascript" src="js/ie6pngfix.js"></script>
	<script type="text/javascript">DD_belatedPNG.fix('img, ul, ol, li, div, p, a');</script>
	<![endif]-->
	<script type="text/javascript">
		var addthis_config = {
		   ui_click: true
		}
		<?php 
echo $js . "\n";
?>
	</script>
</head>