script() 정적인 공개 메소드

Returns one or many script tags depending on the number of scripts given.
static public script ( $url ) : String
$url String of javascript file to include
리턴 String of script tags
예제 #1
1
파일: install.php 프로젝트: pvasener/glpi
function header_html($etape)
{
    // Send UTF8 Headers
    header("Content-Type: text/html; charset=UTF-8");
    echo "<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'\n          'http://www.w3.org/TR/html4/loose.dtd'>";
    echo "<html>";
    echo "<head>";
    echo "<meta http-equiv='Content-Type' content='text/html; charset=utf-8'>";
    echo "<meta http-equiv='Content-Script-Type' content='text/javascript'> ";
    echo "<meta http-equiv='Content-Style-Type' content='text/css'> ";
    echo "<meta http-equiv='Content-Language' content='fr'> ";
    echo "<meta name='generator' content=''>";
    echo "<meta name='DC.Language' content='fr' scheme='RFC1766'>";
    echo "<title>Setup GLPI</title>";
    // LIBS
    echo Html::script("../lib/jquery/js/jquery-1.10.2.min.js");
    echo Html::script("../lib/jqueryplugins/select2/select2.min.js");
    echo Html::css("../lib/jqueryplugins/select2/select2.css");
    // CSS
    echo "<link rel='stylesheet' href='../css/style_install.css' type='text/css' media='screen'>";
    echo "</head>";
    echo "<body>";
    echo "<div id='principal'>";
    echo "<div id='bloc'>";
    echo "<div id='logo_bloc'></div>";
    echo "<h2>GLPI SETUP</h2>";
    echo "<br><h3>" . $etape . "</h3>";
}
예제 #2
0
 public function __construct(array $files)
 {
     parent::__construct([]);
     foreach ($files as $i => $file) {
         $this->content(\Html::script($file . '.js'));
     }
 }
 function RheinaufExhibitionAdmin(&$system)
 {
     $this->system =& $system;
     $this->connection = $system->connection;
     if (!$this->check_right('ExhibitionAdmin')) {
         return;
     }
     $this->return = '';
     if (!class_exists('FormScaffold')) {
         include_once 'FormScaffold.php';
     }
     $this->scaff = new FormScaffold($this->db_table, $this->connection);
     $this->scaff->cols_array['Dateiname']['type'] = 'upload';
     //$this->scaff->cols_array['Beschreibung']['html'] = true;
     //$this->scaff->cols_array['Dateiname']['type'] = 'text';
     $this->scaff->cols_array['Name']['type'] = 'textarea';
     $this->scaff->cols_array['Name']['attributes'] = array('rows' => 1);
     $this->scaff->cols_array['BildDesMonats']['type'] = 'hidden';
     include 'RheinaufExhibition/config.php';
     $this->scaff->template_vars['filepath'] = $this->filepath;
     $this->scaff->template_vars['portrait_thumb_dir'] = $this->portrait_thumb_dir;
     $this->scaff->template_vars['landscape_thumb_dir'] = $this->landscape_thumb_dir;
     if (!class_exists('Bilder')) {
         include_once 'Bilder.php';
     }
     $this->event_listen();
     $GLOBALS['scripts'] .= Html::script("var RheinaufExhibitionImagesDir = '/{$this->filepath}'; var RheinaufExhibitionThumbsDir = '{$this->portrait_thumb_dir}' ");
 }
 function editor()
 {
     $this->scaff->cols_array['Name']['required'] = true;
     $GLOBALS['scripts'] .= Html::script(' _editor_url  = "/' . INSTALL_PATH . '/Libraries/Xinha/";_editor_lang = "de";_editor_skin="silva";_document_root = "' . DOCUMENT_ROOT . '"');
     $GLOBALS['scripts'] .= Html::script("var project_name = '" . addslashes(PROJECT_NAME) . "';");
     $GLOBALS['scripts'] .= Html::script('', array('src' => '/Libraries/Xinha/XinhaLoader.js'));
     $GLOBALS['scripts'] .= Html::script('', array('src' => '/Module/SnippetEditor/XinhaConfig.php'));
     return $this->scaff->make_form($_GET['edit']);
 }
예제 #5
0
 /**
  * @return	void
  */
 public function action_index()
 {
     $this->template->header->title = $this->bucket->bucket_name . ' ~ ' . __('Collaborator Settings');
     $this->template->header->js .= Html::script("themes/default/media/js/collaborators.js");
     $this->active = 'collaborators';
     $this->settings_content = View::factory('template/collaborators');
     $this->settings_content->fetch_url = $this->bucket_base_url . '/collaborators';
     $this->settings_content->collaborator_list = json_encode($this->bucket->get_collaborators());
 }
예제 #6
0
 /**
  * Load and output a js script tag from array
  *
  * @param array $array
  * @param array $params
  * @return string
  * @throws \Exception
  */
 public static function js(array $array, $params = array('attributes' => array(), 'secure' => null))
 {
     Arr::mergeWithDefaultParams($params);
     $out = "\n";
     foreach ($array as $key => $item) {
         if (is_array($item)) {
             $out .= Html::script($item[0], $item[1], $item[2]) . "\n";
         } else {
             $out .= Html::script($item, @$params['attributes'] ?: [], @$params['secure']) . "\n";
         }
     }
     return $out;
 }
예제 #7
0
    function RDirList($start_folder = '', $dirlistDirActionJs = '', $dirlistFileActionJs = '', $show_only_folders = false, $hilited_file = null)
    {
        $this->list_id = $start_folder;
        $this->dirlistDirActionJs = $dirlistDirActionJs;
        $this->dirlistFileActionJs = $dirlistFileActionJs;
        $this->show_only_folders = $show_only_folders;
        $this->hilited_file = $hilited_file;
        $this->start_folder = $start_folder != '' ? INSTALL_PATH . '/Download/' . $start_folder : INSTALL_PATH . '/Download';
        $this->icons = array();
        $this->icons['folder'] = Html::img('/' . INSTALL_PATH . '/Module/DirList/Icons/folder.png');
        $this->icons['file'] = Html::img('/' . INSTALL_PATH . '/Module/DirList/Icons/file.png');
        $this->icons['pdf'] = Html::img('/' . INSTALL_PATH . '/Module/DirList/Icons/pdf.png');
        $this->icons['excel'] = Html::img('/' . INSTALL_PATH . '/Module/DirList/Icons/excel.png');
        $this->icons['word'] = Html::img('/' . INSTALL_PATH . '/Module/DirList/Icons/word.png');
        $this->icons['jpg'] = Html::img('/' . INSTALL_PATH . '/Module/DirList/Icons/jpg.png');
        $this->icons['gif'] = Html::img('/' . INSTALL_PATH . '/Module/DirList/Icons/png.png');
        $this->icons['png'] = Html::img('/' . INSTALL_PATH . '/Module/DirList/Icons/png.png');
        $this->icons['sound'] = Html::img('/' . INSTALL_PATH . '/Module/DirList/Icons/sound.png');
        $this->icons['zip'] = Html::img('/' . INSTALL_PATH . '/Module/DirList/Icons/zip.png');
        $this->icons['download'] = Html::img('/' . INSTALL_PATH . '/Module/DirList/Icons/download.png');
        $GLOBALS['other_css'] .= Html::style('
		.filelist ul{
			list-style-type:none;
			list-style-position:inside;
			margin-left:16px;
			padding:0;
		}
		.filelist ul ul {
			padding-left:8px;
			margin-left:8px;
			border-left:1px black dotted;
		} 
		.filelist a{
			text-decoration:none;
			white-space:nowrap;
		} 
		
		');
        /*$GLOBALS['scripts'] .= Html::script('
        		function dirlistDirAction(el)
        		{
        			var url = el.getAttribute("href",2);
        
        			return false;
        		}
        		');*/
        if ($dirlistDirActionJs || $dirlistFileActionJs) {
            $GLOBALS['scripts'] .= Html::script($dirlistDirActionJs . "\n" . $dirlistFileActionJs);
        }
    }
예제 #8
0
 private static function createJsValidade($rules, $messages, $id)
 {
     $jquery = Kanda_CORE . '/assets/js/jquery-v1.11.js';
     $jquery_validade = Kanda_CORE . '/assets/js/jquery.validate.min.js';
     $additional_methods = Kanda_CORE . '/assets/js/additional-methods.min.js';
     $ajax = '';
     if (!empty(self::$ajax)) {
         $succes = self::$ajax['success'];
         $ajax = "submitHandler: function( form ){ var dados = \$( form ).serialize(); \$.ajax({type: '" . self::$ajax['type'] . "',dataType:'" . self::$ajax['dataType'] . "',url: '" . self::$ajax['url'] . "',data: dados,success: function( data ){" . $succes('data') . "}})  }";
     }
     echo Html::script(file_get_contents($jquery));
     echo Html::script(file_get_contents($jquery_validade));
     echo Html::script(file_get_contents($additional_methods));
     echo Html::script("\$('#{$id}').validate({rules:{ {$rules}},messages:{{$messages}},{$ajax}});");
 }
예제 #9
0
파일: bucket.php 프로젝트: rukku/SwiftRiver
 public function action_index()
 {
     // Cookies to help determine the search options to display
     Cookie::set(Swiftriver::COOKIE_SEARCH_SCOPE, 'bucket');
     Cookie::set(Swiftriver::COOKIE_SEARCH_ITEM_ID, $this->bucket->id);
     $this->template->header->title = $this->page_title;
     $this->template->content = View::factory('pages/bucket/main')->bind('droplets_view', $droplets_view)->bind('settings_url', $settings_url)->bind('discussion_url', $discussion_url)->bind('owner', $this->owner);
     $this->template->content->collaborators = $this->bucket->get_collaborators(TRUE);
     $this->template->content->is_collaborator = $this->collaborator;
     $this->template->content->anonymous = $this->anonymous;
     $this->template->content->bucket = $this->bucket;
     $this->template->content->user = $this->user;
     // The maximum droplet id for pagination and polling
     $max_droplet_id = Model_Bucket::get_max_droplet_id($this->bucket->id);
     //Get Droplets
     $droplets_array = Model_Bucket::get_droplets($this->user->id, $this->bucket->id, 0, 1, $max_droplet_id, $this->photos);
     // Bootstrap the droplet list
     $this->template->header->js .= Html::script("themes/default/media/js/drops.js");
     $droplet_js = View::factory('pages/drop/js/drops');
     $droplet_js->fetch_base_url = $this->bucket_base_url;
     $droplet_js->default_view = $this->bucket->default_layout;
     $droplet_js->photos = $this->photos ? 1 : 0;
     $droplet_js->filters = NULL;
     $droplet_js->droplet_list = json_encode($droplets_array['droplets']);
     $droplet_js->max_droplet_id = $max_droplet_id;
     $droplet_js->channels = json_encode(array());
     // Generate the List HTML
     $droplets_view = View::factory('pages/drop/drops')->bind('droplet_js', $droplet_js)->bind('user', $this->user)->bind('owner', $this->owner)->bind('anonymous', $this->anonymous);
     // Suppress expiry notices
     $droplets_view->expiry_notice = "";
     if (!$this->owner) {
         $bucket_item = json_encode(array('id' => $this->bucket->id, 'type' => 'river', 'subscribed' => $this->bucket->is_subscriber($this->user->id)));
         // Action URL - To handle the follow/unfollow actions on the river
         $action_url = URL::site() . $this->visited_account->account_path . '/user/bucket/manage';
         $this->template->content->bucket_name = $this->page_title;
         $this->template->content->bucket_item = $bucket_item;
         $this->template->content->action_url = $action_url;
     }
     // Nothing to display message
     $droplets_view->nothing_to_display = View::factory('pages/bucket/nothing_to_display')->bind('message', $nothing_to_display_message);
     $nothing_to_display_message = __('There are no drops in this bucket yet.');
     if ($this->owner) {
         $nothing_to_display_message .= __(' Add some from your :rivers', array(':rivers' => HTML::anchor($this->dashboard_url . '/rivers', __('rivers'))));
     }
     // Links to bucket menu items
     $settings_url = $this->bucket_base_url . '/settings';
     $discussion_url = $this->bucket_base_url . '/discussion';
 }
예제 #10
0
    function show()
    {
        $return_string = '';
        if (count($files = $this->get_names()) > 0) {
            $return_string = Html::script("var minigal_pix = new Array('" . implode("','", $files) . "');\nvar galpath = '" . $this->gal_path . "'");
            $return_string .= Html::img('', PROJECT_NAME . ' MiniGal', array('id' => 'MiniGal'));
            $return_string .= Html::div('<input class="slider-input" id="slider-input-1" name="slider-input-1"/>', array('class' => "slider", 'id' => "slider-1"));
            $return_string .= Html::div(Html::span('&nbsp;', array('id' => 'nummer')) . '/' . count($files), array('class' => 'klein'));
            $return_string .= Html::script('
var s = new Slider(document.getElementById("slider-1"), document.getElementById("slider-input-1"));
var rand = Math.ceil(Math.random() * minigal_pix.length);
document.getElementById("MiniGal").src = galpath + minigal_pix[rand-1];
document.getElementById("nummer").firstChild.nodeValue = rand.toString();
s.setMinimum(1);
s.setMaximum(minigal_pix.length);
s.setValue(rand);
s.onchange = function () {
document.getElementById("nummer").firstChild.nodeValue = s.getValue().toString();
document.getElementById("MiniGal").src = galpath + minigal_pix[s.getValue()-1];

}');
        }
        return $return_string;
    }
 function edit_loc()
 {
     $loc_id = $_GET['editloc'];
     $js = $this->get_lat_long_js();
     $this->scaff->cols_array['js']['type'] = 'custom';
     $this->scaff->cols_array['js']['custom_input'] = Html::script($js);
     $this->scaff->cols_array['Location_id']['type'] = 'hidden';
     $this->scaff->cols_array['Location_name']['name'] = 'Name';
     $this->scaff->cols_array['Jahr']['type'] = 'ignore';
     $this->scaff->cols_array['Werk']['type'] = 'ignore';
     $this->scaff->cols_array['Beschreibung']['type'] = 'ignore';
     $this->scaff->cols_array['Technik']['type'] = 'ignore';
     $this->scaff->cols_array['Mitarbeit']['type'] = 'ignore';
     $this->scaff->cols_array['Ausführung']['type'] = 'ignore';
     $this->scaff->cols_array['Architekten']['type'] = 'ignore';
     $this->scaff->cols_array['Literatur']['type'] = 'ignore';
     $this->scaff->cols_array['Bilder']['type'] = 'ignore';
     $this->scaff->cols_array['getcoords']['type'] = 'custom';
     $this->scaff->cols_array['getcoords']['custom_input'] = Html::a("javascript:getLatLong();", 'Koordinaten abfragen');
     $this->scaff->cols_array['Location_edit']['type'] = 'hidden';
     $this->scaff->cols_array['Location_edit']['value'] = 'edit';
     return Html::h(2, 'Ort bearbeiten') . $this->scaff->make_form($loc_id);
 }
예제 #12
0
 /**
  * Include common HTML headers
  *
  * @param $title title used for the page (default '')
  *
  * @return nothing
  **/
 static function includeHeader($title = '')
 {
     global $CFG_GLPI, $PLUGIN_HOOKS;
     // complete title with id if exist
     if (isset($_GET['id']) && $_GET['id']) {
         $title = sprintf(__('%1$s - %2$s'), $title, $_GET['id']);
     }
     // Send UTF8 Headers
     header("Content-Type: text/html; charset=UTF-8");
     // Allow only frame from same server to prevent click-jacking
     header('x-frame-options:SAMEORIGIN');
     // Send extra expires header
     self::header_nocache();
     // Start the page
     echo "<!DOCTYPE html>\n";
     echo "<html lang=\"{$CFG_GLPI["languages"][$_SESSION['glpilanguage']][3]}\">";
     echo "<head><title>GLPI - " . $title . "</title>";
     echo "<meta charset=\"utf-8\">";
     //prevent IE to turn into compatible mode...
     echo "<meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n";
     // auto desktop / mobile viewport
     echo "<meta name='viewport' content='width=device-width, initial-scale=1'>";
     echo Html::css($CFG_GLPI["root_doc"] . "/lib/jquery/css/smoothness/jquery-ui-1.10.4.custom.min.css");
     echo Html::css($CFG_GLPI["root_doc"] . "/css/jstree/style.css");
     echo Html::css($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/rateit/rateit.min.css");
     echo Html::css($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/select2/select2.min.css");
     echo Html::css($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/qtip2/jquery.qtip.min.css");
     echo Html::css($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/jcrop/jquery.Jcrop.min.css");
     echo Html::css($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/spectrum-colorpicker/spectrum.min.css");
     echo Html::css($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/jquery-gantt/css/style.css");
     echo Html::css($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/fullcalendar/fullcalendar.min.css", array('media' => ''));
     echo Html::css($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/fullcalendar/fullcalendar.print.min.css", array('media' => 'print'));
     echo Html::css($CFG_GLPI["root_doc"] . "/css/jquery-glpi.css");
     if (CommonGLPI::isLayoutWithMain() && !CommonGLPI::isLayoutExcludedPage()) {
         echo Html::css($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/jquery-ui-scrollable-tabs/css/jquery.scrollabletab.min.css");
     }
     //  CSS link
     echo Html::css($CFG_GLPI["root_doc"] . "/css/styles.css");
     // High constrast CSS link
     if (isset($_SESSION['glpihighcontrast_css']) && $_SESSION['glpihighcontrast_css']) {
         echo Html::css($CFG_GLPI["root_doc"] . "/css/highcontrast.css");
     }
     // CSS theme link
     if (isset($_SESSION["glpipalette"])) {
         echo Html::css($CFG_GLPI["root_doc"] . "/css/palettes/" . $_SESSION["glpipalette"] . ".css");
     }
     // surcharge CSS hack for IE
     echo "<!--[if lte IE 6]>";
     echo Html::css($CFG_GLPI["root_doc"] . "/css/styles_ie.css");
     echo "<![endif]-->";
     echo Html::css($CFG_GLPI["root_doc"] . "/css/print.css", array('media' => 'print'));
     echo "<link rel='shortcut icon' type='images/x-icon' href='" . $CFG_GLPI["root_doc"] . "/pics/favicon.ico' >\n";
     // Add specific css for plugins
     if (isset($PLUGIN_HOOKS['add_css']) && count($PLUGIN_HOOKS['add_css'])) {
         foreach ($PLUGIN_HOOKS["add_css"] as $plugin => $files) {
             if (is_array($files)) {
                 foreach ($files as $file) {
                     if (file_exists(GLPI_ROOT . "/plugins/{$plugin}/{$file}")) {
                         echo Html::css($CFG_GLPI["root_doc"] . "/plugins/{$plugin}/{$file}");
                     }
                 }
             } else {
                 if (file_exists(GLPI_ROOT . "/plugins/{$plugin}/{$files}")) {
                     echo Html::css($CFG_GLPI["root_doc"] . "/plugins/{$plugin}/{$files}");
                 }
             }
         }
     }
     // AJAX library
     if (isset($_SESSION['glpi_use_mode']) && $_SESSION['glpi_use_mode'] == Session::DEBUG_MODE) {
         echo Html::script($CFG_GLPI["root_doc"] . "/lib/jquery/js/jquery-1.10.2.js");
         echo Html::script($CFG_GLPI["root_doc"] . "/lib/jquery/js/jquery-ui-1.10.4.custom.js");
     } else {
         echo Html::script($CFG_GLPI["root_doc"] . "/lib/jquery/js/jquery-1.10.2.min.js");
         echo Html::script($CFG_GLPI["root_doc"] . "/lib/jquery/js/jquery-ui-1.10.4.custom.min.js");
     }
     echo Html::script($CFG_GLPI["root_doc"] . "/lib/tiny_mce/tinymce.min.js");
     // PLugins jquery
     echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/backtotop/BackToTop.min.jquery.js");
     echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/select2/select2.min.js");
     echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/qtip2/jquery.qtip.min.js");
     echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/jstree/jquery.jstree.min.js");
     echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/rateit/jquery.rateit.min.js");
     echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/jquery-ui-timepicker-addon/jquery-ui-timepicker-addon.min.js");
     echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/jquery-file-upload/js/jquery.iframe-transport.min.js");
     echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/jquery-file-upload/js/jquery.fileupload.min.js");
     echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/jcrop/jquery.Jcrop.min.js");
     echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/imagepaste/jquery.image_paste.min.js");
     echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/spectrum-colorpicker/spectrum-min.js");
     echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/jquery-gantt/js/jquery.fn.gantt.min.js");
     echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/autogrow/jquery.autogrow-textarea.min.js");
     echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/fullcalendar/lib/moment.min.js");
     echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/fullcalendar/fullcalendar.min.js");
     // layout
     if (CommonGLPI::isLayoutWithMain() && !CommonGLPI::isLayoutExcludedPage()) {
         echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/jquery-ui-scrollable-tabs/js/jquery.mousewheel.min.js");
         echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/jquery-ui-scrollable-tabs/js/jquery.scrollabletab.min.js");
     }
     //locales for js library
     if (isset($_SESSION['glpilanguage'])) {
         // jquery ui
         echo Html::script($CFG_GLPI["root_doc"] . "/lib/jquery/i18n/jquery.ui.datepicker-" . $CFG_GLPI["languages"][$_SESSION['glpilanguage']][2] . ".js");
         $filename = "/lib/jqueryplugins/jquery-ui-timepicker-addon/i18n/jquery-ui-timepicker-" . $CFG_GLPI["languages"][$_SESSION['glpilanguage']][2] . ".js";
         if (file_exists(GLPI_ROOT . $filename)) {
             echo Html::script($CFG_GLPI["root_doc"] . $filename);
         }
         // select2
         $filename = "/lib/jqueryplugins/select2/select2_locale_" . $CFG_GLPI["languages"][$_SESSION['glpilanguage']][2] . ".js";
         if (file_exists(GLPI_ROOT . $filename)) {
             echo Html::script($CFG_GLPI["root_doc"] . $filename);
         }
         //fullcalendar
         $filename = "/lib/jqueryplugins/fullcalendar/locale/" . strtolower($CFG_GLPI["languages"][$_SESSION['glpilanguage']][2]) . ".js";
         if (file_exists(GLPI_ROOT . $filename)) {
             echo Html::script($CFG_GLPI["root_doc"] . $filename);
         }
     }
     // Some Javascript-Functions which we may need later
     echo Html::script($CFG_GLPI["root_doc"] . '/script.js');
     self::redefineAlert();
     self::redefineConfirm();
     // add Ajax display message after redirect
     Html::displayAjaxMessageAfterRedirect();
     // Add specific javascript for plugins
     if (isset($PLUGIN_HOOKS['add_javascript']) && count($PLUGIN_HOOKS['add_javascript'])) {
         foreach ($PLUGIN_HOOKS["add_javascript"] as $plugin => $files) {
             if (is_array($files)) {
                 foreach ($files as $file) {
                     if (file_exists(GLPI_ROOT . "/plugins/{$plugin}/{$file}")) {
                         echo Html::script($CFG_GLPI["root_doc"] . "/plugins/{$plugin}/{$file}");
                     }
                 }
             } else {
                 if (file_exists(GLPI_ROOT . "/plugins/{$plugin}/{$files}")) {
                     echo Html::script($CFG_GLPI["root_doc"] . "/plugins/{$plugin}/{$files}");
                 }
             }
         }
     }
     // End of Head
     echo "</head>\n";
 }
            <div class="row">
            	<div class="col-lg-6">
            		<h3 class="footer">Unggul, Jaya, Maju Terus</h3>
            	</div>

            	<div class="col-lg-6">
            		<p class="footer">
            			Jln. Prof. Moh. Yamin Slawi - Kab. Tegal <br>
            			Email : sman3slawi.yahoo.co.id <br>
            			Website : sman3slawi.sch.id <br>
            			Telp : ( 0283 ) 491152
            		</p>
            	</div>
            </div>
        </div>
    </footer>

	<?php 
echo e(Html::script('assets/js/jquery-1.11.3.min.js'));
?>

	<?php 
echo e(Html::script('assets/js/bootstrap.min.js'));
?>


	<?php 
echo $__env->yieldContent('footer');
?>
</body>
</html>
        <title>Asoyaracuy</title>
        <?php 
echo Html::style('frontend/css/bootstrap.min.css');
?>

        <?php 
echo Html::style('frontend/css/style.css');
?>

        
        
		<?php 
echo Html::script('frontend/js/script.js');
?>

		<?php 
echo Html::script('frontend/js/jquery.min.js');
?>

		<?php 
echo Html::script('frontend/js/bootstrap.min.js');
?>

    </head>

    <body>
        <?php 
echo $__env->yieldContent('content');
?>
    </body>
</html>
 function form_scripts()
 {
     $this->scripts .= Html::script("function checkform()\r\n{\r\n\tvar i,e,bgcolor,check = true;\r\n\tfor (i=0;i<required.length;i++)\r\n\t{\r\n\t\te = document.getElementById(required[i]);\r\n\r\n\t\tif (e.value == '' || e.value.indexOf('--') != -1)\r\n\t\t{\r\n\t\t\tcheck = false;\r\n\t\t\te.style.backgroundColor = 'red';\r\n\t\t}\r\n\t\telse e.style.backgroundColor = 'white';\r\n\t}\r\n\treturn check;\r\n}\r\n\r\nfunction sonstig_input(object,inputname) {\r\n\tvar input = document.createElement('input');\r\n\tinput.name = inputname;\r\n\tobject.parentNode.parentNode.appendChild(input);\r\n}\r\nfunction debug(object)\r\n{\r\n\tfor (var i in object) {\r\n\talert (i +'=>' + object[i]);\r\n\t}\r\n}\r\nvar uploads = 1;\r\n\r\nfunction add_file_upload()\r\n{\r\n\r\n\tvar tbody = document.getElementById('form_tbody');\r\n\r\n\tvar tbody_lastchild = tbody.lastChild;\r\n\r\n\tif (tbody_lastchild.nodeType != 1) tbody_lastchild = tbody.lastChild.previousSibling; //Mozilla nimmt zwischen jedem tr einen Text-Knoten an\r\n\r\n\tvar input = document.createElement('input');\r\n\tvar type = document.createAttribute('type');\r\n\ttype.value= 'file';\r\n\tinput.setAttributeNode(type);\r\n\r\n\tvar name = document.createAttribute('name');\r\n\tname.value= 'bild['+uploads+']';\r\n\tinput.setAttributeNode(name);\r\n\r\n\tvar tr = document.createElement('tr');\r\n\tvar td1= document.createElement('td');\r\n\tvar td2= document.createElement('td');\r\n\tvar nr = uploads+1;\r\n\tvar bild_i = document.createTextNode('Bild '+ nr);\r\n\r\n\ttd1.appendChild(bild_i);\r\n\ttd2.appendChild(input);\r\n\ttr.appendChild(td1);\r\n\ttr.appendChild(td2);\r\n\r\n\ttbody.insertBefore(tr,tbody_lastchild);\r\n\tuploads++;\r\n}\r\nfunction textarea_grow (id)\r\n{\r\n\tvar textarea = document.getElementById(id);\r\n\ttextarea.rows = 20;\r\n}\r\nfunction textarea_shrink (id)\r\n{\r\n\tvar textarea = document.getElementById(id);\r\n\t//var text = textarea.value.length;\r\n\t//var rows = text / textarea.cols;\r\n\t//textarea.rows = rows;\r\n\ttextarea.rows = 2;\r\n}");
 }
	          <a href="#" id="konfirmasi" class="btn btn-primary">
	          	Hapus
	          </a>
	        </div>
	      </div><!-- /.modal-content -->
	    </div><!-- /.modal-dialog -->
	</div><!-- /.modal -->
<?php 
$__env->stopSection();
?>

<?php 
$__env->startSection('footer');
?>
	<?php 
echo e(Html::script('assets/fancybox/jquery.fancybox.js'));
?>


	<script>
		$(function(){
			$("a.single_image").fancybox();
			$("#datatabel").dataTable();

			$("#konfirmasi").click(function(){

				var kode=$("#idhapus").val();

				$.ajax({
					url:"<?php 
echo e(URL::to('admin/hapus-soal'));
예제 #17
0
 /**
  * Display the API Documentation in Html (parsed from markdown)
  *
  * @param $file      string    relative path of documentation file
  **/
 public function inlineDocumentation($file)
 {
     global $CFG_GLPI;
     self::header(true, __("API Documentation"));
     echo Html::css($CFG_GLPI['root_doc'] . "/lib/prism/prism.css");
     echo Html::script($CFG_GLPI['root_doc'] . "/lib/prism/prism.js");
     echo "<div class='documentation'>";
     $documentation = file_get_contents(GLPI_ROOT . '/' . $file);
     $md = new Michelf\MarkdownExtra();
     $md->code_class_prefix = "language-";
     $md->header_id_func = function ($headerName) {
         $headerName = str_replace(array('(', ')'), '', $headerName);
         return rawurlencode(strtolower(strtr($headerName, [' ' => '-'])));
     };
     echo $md->transform($documentation);
     echo "</div>";
     Html::nullFooter();
 }
예제 #18
0
 function memo_input()
 {
     $mail = preg_match('/^[0-9a-z.+-]{2,}\\@[0-9a-z.-]{2,}\\.[a-z]{2,6}$/i', $_POST['memo_email']) ? $_POST['memo_email'] : '';
     if (!$mail) {
         $GLOBALS['scripts'] .= Html::script("alert('Bitte geben Sie eine gültige E-Mail-Adresse ein.')");
     }
     foreach ($_POST['memo'] as $memo) {
         $result = $this->connection->db_single_row("SELECT * FROM `{$this->db_table}` WHERE `id` = '{$memo}'");
         $date = $result['DTSTART'];
         $insert_sql = "INSERT INTO `RheinaufCMS>Kalender>MemoMail` ( `id` , `KalenderID` , `E-Mail` , `Datum` )\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tVALUES ( '', '{$memo}', '{$mail}', '{$date}')";
         $this->connection->db_query($insert_sql);
     }
 }
예제 #19
0
 function admin_module_reorder()
 {
     $array_to_reorder = $this->connection->db_assoc("SELECT `id`,`sysID`,`Name` FROM `RheinaufCMS>Module` WHERE `Backend` != '' ORDER BY `id` ASC");
     $array_name_to_reorder = 'admin_module';
     $form_tag = Form::form_tag(SELF, 'post', 'application/x-www-form-urlencoded', array('name' => 'draglist_form'));
     $draglist_scripts = Html::script('', array('src' => '/' . INSTALL_PATH . '/Libraries/Draglist/assets/dom-drag.js'));
     $draglist_scripts .= Html::script('', array('src' => '/' . INSTALL_PATH . '/Libraries/Draglist/assets/draglist.js'));
     $dragable_divs = '';
     for ($i = 0; $i < count($array_to_reorder); $i++) {
         $draglist_item = Form::add_input('hidden', "draglist_items[{$i}]", $i);
         $name = $array_to_reorder[$i]['Name'];
         $dragable_divs .= Html::div($name . $draglist_item, array('style' => 'margin-left:150px;padding:0 5px;position: relative; left: 0px; top: 0px;cursor:move;border:thin solid white;background:#eeeeee;width:200px;height:20px;'));
     }
     $draglist_container = Html::div($dragable_divs, array('id' => 'draglist_container'));
     $draglist_cmd = Form::add_input('hidden', 'reorder', '');
     $draglist_apply = Form::add_input('button', 'reorder', 'Speichern', array('title' => 'Speichern', 'onclick' => "draglist_manager.do_submit('draglist_form','draglist_container')"));
     $form_close = Form::close_form();
     $draglist_call = "var dragListIndex = new Array();\r\n\t\t\t\t\t\t\tdraglist_manager = new fv_dragList( 'draglist_container' );\r\n\t\t\t\t\t\t\tdraglist_manager.setup();\r\n\t\t\t\t\t\t\taddDragList( draglist_manager );";
     $draglist_call = Html::script($draglist_call);
     $this->return = '<p>Ordnen Sie die Einträge neu an, indem Sie sie mit der Maus ziehen.</p>' . $draglist_scripts . $form_tag . $draglist_container . $draglist_cmd . $draglist_apply . $form_close . $draglist_call;
 }
예제 #20
0
    function show()
    {
        if (!Login::check_login($this->system)) {
            $page = new Seite($this->system, $this->login_tpl);
            $login = new Login($this->system);
            return $page->header() . $login->show() . $page->footer();
        }
        preg_match("/Admin\\/([^\\/|?|#]*)/", $_SERVER['REQUEST_URI'], $m);
        $this->modul = $m[1];
        $installed_modules = $this->connection->db_assoc("SELECT * FROM `RheinaufCMS>Module` WHERE `Backend` != '' ORDER BY `id` ASC");
        for ($i = 0; $i < count($installed_modules); $i++) {
            $this->installed_modules[$installed_modules[$i]['sysID']] = $installed_modules[$i];
        }
        if (!$_SESSION['RheinaufCMS_User']['allowed_actions']) {
            unset($_SESSION['RheinaufCMS_User']);
            $page = new Seite($this->system, $this->login_tpl);
            $login = new Login($this->system);
            return $page->header() . $login->show('Entschuldigung, Sie haben nicht die Erforderlichen Rechte.') . $page->footer();
        }
        if ($_SESSION['RheinaufCMS_User']['Group'] == 'dev') {
            for ($i = 0; $i < count($installed_modules); $i++) {
                $allowed_modules[] = $installed_modules[$i]['sysID'];
            }
            $_SESSION['RheinaufCMS_User']['allowed_modules'] = $this->allowed_modules = $allowed_modules;
        } else {
            $allowed_modules_sql = "SELECT  * FROM `RheinaufCMS>Rechte` WHERE `id` = '" . implode("' OR `id` ='", $_SESSION['RheinaufCMS_User']['allowed_actions']) . "' ";
            $allowed_modules = $this->connection->db_assoc($allowed_modules_sql);
            $this->allowed_modules = array();
            for ($i = 0; $i < count($allowed_modules); $i++) {
                $this->allowed_modules[] = $allowed_modules[$i]['ModulName'];
            }
            $this->allowed_modules = array_unique($this->allowed_modules);
            if (count($this->allowed_modules) == 0) {
                $this->login('', $this->login_tpl);
            }
            $_SESSION['RheinaufCMS_User']['allowed_modules'] = $this->allowed_modules;
        }
        if ($this->modul != '') {
            $return = '';
            //print_r($this->installed_modules);
            $class = $this->modul;
            include INSTALL_PATH . '/' . $this->installed_modules[$class]['Backend'];
            if (!class_exists($class)) {
                $return = 'Modul nicht installiert';
            } else {
                $instance = new $class($this->system);
                $return .= $instance->show();
            }
            $this->scripts = isset($instance->scripts) ? $instance->scripts : '';
        }
        if ($this->system->backend->tabs) {
            $return = Html::div(Html::span($this->system->backend->tabs), array('id' => 'admin_tabs')) . $return;
        }
        if ($this->system->noframe || isset($_GET['noframe'])) {
            return $return;
        }
        $this->system->noframe = true;
        $page = new Html(PROJECT_NAME . ' - Verwaltungsbereich');
        $page->stylesheet('/CSS/Admin.css');
        $page->custom('
		<!-- compliance patch for microsoft browsers -->
<!--[if lt IE 7]>
<script src="/Libraries/IE7/ie7-standard-p.js" type="text/javascript">
</script>
<![endif]-->
		');
        if ($GLOBALS['other_css']) {
            $page->header_string .= $GLOBALS['other_css'];
        }
        if ($GLOBALS['scripts']) {
            $page->header_string .= $GLOBALS['scripts'];
        }
        if (!$GLOBALS['http_request_scripts']) {
            $page->header_string .= Html::script('', array('src' => '/Scripts/XMLHttpRequest.js'));
            $GLOBALS['http_request_scripts'] = true;
        }
        $page->header_string .= Html::script('     	function pinghome ()
	     	{
	     		var url = location.protocol + "/"+"/"+ location.host +"/Admin?ping";
	     		httpRequestGET (url,function(){
	     		setTimeout(pinghome,120000);
	     		}, false)
	     	}
	     	setTimeout(pinghome,120000);');
        if (isset($_GET['nomenu'])) {
            $page->div($return, array('id' => 'content'));
            return $page->flush_page();
        } else {
            $user = $this->system->user['Name'];
            $logout = Html::span("Guten Tag, " . $user . ' ' . Html::a('?logout=' . rawurlencode($user), ' logout'), array('id' => 'logout'));
            $page->div(Html::span($this->system->backend->top) . $logout, array('id' => 'admin_top'));
            $page->div('', array('id' => 'lo_logo'));
            $page->div('', array('id' => 'menu_appendix'));
            $page->custom($this->admin_menu());
            $page->div(Html::div($this->installed_modules[$class]['Name'], array('id' => 'module_name')) . $return . '<br style="clear:both />', array('id' => 'content', 'class' => 'admin content'));
            return $page->flush_page();
        }
    }
예제 #21
0
<html>
  <head>
    <title>Oakland Crimespotting</title>
    <?php 
echo Html::script("media/js/protovis/protovis-r3.2.js");
?>
    <script src="http://maps.google.com/maps?file=api&amp;v=2&amp;sensor=false&amp;key=ABQIAAAAYZ9eMYFYusxZt-1RKXLI7RQGpXqX26B62_lhdlIUxPTUm0CSORRw1BkwdprB1xQ3Xa8KfbgKAacxlw" type="text/javascript"></script>
    <style type="text/css">
        body {
          margin: 0;
        }

        #map {
          height: 100%;
        }

        #map .canvas {
          position: absolute;
        }
    </style>
    <script type="text/javascript+protovis">

    var crimes = [
      { id: "09-900792", code: "Th", date: "2009-03-20T00:00:00-07:00", lat: 37.845066, lon: -122.259251 },
      { id: "09-020138", code: "SA", date: "2009-03-20T00:00:00-07:00", lat: 37.801396, lon: -122.279043 },
      { id: "09-900795", code: "Th", date: "2009-03-20T00:00:00-07:00", lat: 37.776394, lon: -122.160752 },
      { id: "09-020618", code: "Bu", date: "2009-03-20T00:00:00-07:00", lat: 37.739572, lon: -122.153254 },
      { id: "09-020141", code: "Va", date: "2009-03-19T23:30:00-07:00", lat: 37.810612, lon: -122.283648 },
      { id: "09-020124", code: "SA", date: "2009-03-19T23:09:00-07:00", lat: 37.804087, lon: -122.271248 },
      { id: "09-020170", code: "Ro", date: "2009-03-19T23:00:00-07:00", lat: 37.771985, lon: -122.148367 },
      { id: "09-020118", code: "SA", date: "2009-03-19T22:30:00-07:00", lat: 37.82387, lon: -122.257414 },
        <title>Asoyaracuy | Admin</title>
        <meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<title>AdminLTE 2 | Log in</title>
		<!-- Tell the browser to be responsive to screen width -->
		<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
		<?php 
echo Html::style('css/bootstrap.min.css');
?>

		<?php 
echo Html::script('js/jquery.min.js');
?>

		<?php 
echo Html::script('js/bootstrap.min.js');
?>

		<!-- Font Awesome -->
		<link rel="stylesheet"
			href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
		<!-- Ionicons -->
		<link rel="stylesheet"
			href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">
		<!-- Theme style -->
		<link rel="stylesheet" href="backend/dist/css/AdminLTE.min.css">
		<!-- iCheck -->
		<link rel="stylesheet" href="backend/plugins/iCheck/square/blue.css">
		
		<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
		<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
예제 #23
0
    /**
     * Include common HTML headers
     *
     * @param $title title used for the page (default '')
     *
     * @return nothing
     **/
    static function includeHeader($title = '')
    {
        global $CFG_GLPI, $PLUGIN_HOOKS;
        // Send UTF8 Headers
        header("Content-Type: text/html; charset=UTF-8");
        // Allow only frame from same server to prevent click-jacking
        header('x-frame-options:SAMEORIGIN');
        // Send extra expires header
        self::header_nocache();
        // Start the page
        //echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"\"http://www.w3.org/TR/html4/loose.dtd\">";
        echo "<!DOCTYPE HTML>";
        echo "\n<html><head><title>GLPI - " . $title . "</title>";
        echo "<meta http-equiv='Content-Type' content='text/html; charset=utf-8'>";
        // Send extra expires header
        echo "<meta http-equiv='Expires' content='Fri, Jun 12 1981 08:20:00 GMT'>\n";
        echo "<meta http-equiv='Pragma' content='no-cache'>\n";
        echo "<meta http-equiv='Cache-Control' content='no-cache'>\n";
        echo "<meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n";
        echo "<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n";
        //  CSS link
        echo Html::css($CFG_GLPI["root_doc"] . "/" . GLPI_THEME_PATH . "css/bootstrap.css");
        echo Html::css($CFG_GLPI["root_doc"] . "/" . GLPI_THEME_PATH . "css/font-awesome.css");
        // surcharge CSS hack for IE
        echo "<!--[if lte IE 6]>";
        echo Html::css($CFG_GLPI["root_doc"] . "/" . GLPI_THEME_PATH . GLPI_THEME_NAME . "/css/styles_ie.css");
        echo "<![endif]-->";
        echo Html::css($CFG_GLPI["root_doc"] . "/" . GLPI_THEME_PATH . "css/print.css", array('media' => 'print'));
        echo "<link rel='shortcut icon' type='images/x-icon' href='" . $CFG_GLPI["root_doc"] . "/pics/favicon.ico' >\n";
        echo Html::css($CFG_GLPI["root_doc"] . "/lib/jquery/css/smoothness/jquery-ui-1.10.4.custom.min.css");
        echo Html::css($CFG_GLPI["root_doc"] . "/" . GLPI_THEME_PATH . "css/jstree/style.css");
        echo Html::css($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/rateit/rateit.css");
        echo Html::css($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/select2/select2.css");
        echo Html::css($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/qtip2/jquery.qtip.min.css");
        echo Html::css($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/jcrop/jquery.Jcrop.min.css");
        echo Html::css($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/spectrum-colorpicker/spectrum.css");
        echo Html::css($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/jquery-gantt/css/style.css");
        echo Html::css($CFG_GLPI["root_doc"] . "/css/jquery-glpi.css");
        echo Html::css($CFG_GLPI["root_doc"] . "/css/inputs.css");
        echo Html::css($CFG_GLPI["root_doc"] . "/" . GLPI_THEME_PATH . GLPI_THEME_NAME . "/css/styles.css");
        // Add specific css for plugins
        if (isset($PLUGIN_HOOKS['add_css']) && count($PLUGIN_HOOKS['add_css'])) {
            foreach ($PLUGIN_HOOKS["add_css"] as $plugin => $files) {
                if (is_array($files)) {
                    foreach ($files as $file) {
                        if (file_exists(GLPI_ROOT . "/plugins/{$plugin}/{$file}")) {
                            echo Html::css($CFG_GLPI["root_doc"] . "/plugins/{$plugin}/{$file}");
                        }
                    }
                } else {
                    if (file_exists(GLPI_ROOT . "/plugins/{$plugin}/{$files}")) {
                        echo Html::css($CFG_GLPI["root_doc"] . "/plugins/{$plugin}/{$files}");
                    }
                }
            }
        }
        // AJAX library
        if ($_SESSION['glpi_use_mode'] == Session::DEBUG_MODE) {
            echo Html::script($CFG_GLPI["root_doc"] . "/lib/jquery/js/jquery-1.10.2.js");
            echo Html::script($CFG_GLPI["root_doc"] . "/lib/jquery/js/jquery-ui-1.10.4.custom.js");
        } else {
            echo Html::script($CFG_GLPI["root_doc"] . "/lib/jquery/js/jquery-1.10.2.min.js");
            echo Html::script($CFG_GLPI["root_doc"] . "/lib/jquery/js/jquery-ui-1.10.4.custom.min.js");
        }
        echo Html::script($CFG_GLPI["root_doc"] . "/lib/tiny_mce/tiny_mce.js");
        // PLugins jquery
        echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/backtotop/BackToTop.min.jquery.js");
        echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/select2/select2.min.js");
        echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/qtip2/jquery.qtip.min.js");
        echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/jstree/jquery.jstree.js");
        echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/rateit/jquery.rateit.min.js");
        echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/jquery-ui-timepicker-addon/jquery-ui-timepicker-addon.js");
        echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/jquery-file-upload/js/jquery.iframe-transport.js");
        echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/jquery-file-upload/js/jquery.fileupload.js");
        echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/jcrop/jquery.Jcrop.js");
        echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/imagepaste/jquery.image_paste.js");
        echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/spectrum-colorpicker/spectrum.js");
        echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/jquery-gantt/js/jquery.fn.gantt.min.js");
        // Stevenes Donato
        echo Html::script($CFG_GLPI["root_doc"] . "/css/js/bootstrap.js");
        echo Html::script($CFG_GLPI["root_doc"] . "/css/js/custom.js");
        if (isset($_SESSION['glpilanguage'])) {
            echo Html::script($CFG_GLPI["root_doc"] . "/lib/jquery/i18n/jquery.ui.datepicker-" . $CFG_GLPI["languages"][$_SESSION['glpilanguage']][2] . ".js");
            $filename = "/lib/jqueryplugins/jquery-ui-timepicker-addon/i18n/jquery-ui-timepicker-" . $CFG_GLPI["languages"][$_SESSION['glpilanguage']][2] . ".js";
            if (file_exists(GLPI_ROOT . $filename)) {
                echo Html::script($CFG_GLPI["root_doc"] . $filename);
            }
            $filename = "/lib/jqueryplugins/select2/select2_locale_" . $CFG_GLPI["languages"][$_SESSION['glpilanguage']][2] . ".js";
            if (file_exists(GLPI_ROOT . $filename)) {
                echo Html::script($CFG_GLPI["root_doc"] . $filename);
            }
        }
        // Some Javascript-Functions which we may need later
        echo Html::script($CFG_GLPI["root_doc"] . '/script.js');
        // Add specific javascript for plugins
        if (isset($PLUGIN_HOOKS['add_javascript']) && count($PLUGIN_HOOKS['add_javascript'])) {
            foreach ($PLUGIN_HOOKS["add_javascript"] as $plugin => $files) {
                if (is_array($files)) {
                    foreach ($files as $file) {
                        if (file_exists(GLPI_ROOT . "/plugins/{$plugin}/{$file}")) {
                            echo Html::script($CFG_GLPI["root_doc"] . "/plugins/{$plugin}/{$file}");
                        }
                    }
                } else {
                    if (file_exists(GLPI_ROOT . "/plugins/{$plugin}/{$files}")) {
                        echo Html::script($CFG_GLPI["root_doc"] . "/plugins/{$plugin}/{$files}");
                    }
                }
            }
        }
        // End of Head
        // Stevenes Donato - fixed top menu
        echo "\n<script>\n\t\$(function(){\n\t\tvar nav = \$('#menuHeader');\n\t\t\$(window).scroll(function () {\n\t\t\tif (\$(this).scrollTop() > 50) {\n\t\t\t\tnav.addClass('menu-fixo');\n\t\t\t} else {\n\t\t\t\tnav.removeClass('menu-fixo');\n\t\t\t}\n\t\t});\n\t});\n\t</script>\n";
        echo '
	<style>
		.qtip-content .qtip .qtip-bootstrap  {
			color: #555 !important;
		}
	</style>
';
        echo "</head>\n";
    }
    function scripts()
    {
        if ($GLOBALS['scaff_edit_scripts_loaded']) {
            return;
        }
        $GLOBALS['scaff_edit_scripts_loaded'] = true;
        $GLOBALS['scripts'] .= Html::script('
			function delete_confirm() {
			return confirm("Diesen Eintrag löschen?");
			}

			function checkform() {
				var i,e,bgcolor,check = true;
				var bg_color_cache;
				for (i=0;i<required_fields.length;i++)
				{
					e = document.getElementById(required_fields[i]);
					var to_color =  e.parentNode.parentNode;
					bg_color_cache = to_color.style.backgroundColor;
					if (e.value == "" || e.value.indexOf("--") != -1)
					{
						check = false;
						to_color.style.backgroundColor = "red";
					}
					else to_color.style.backgroundColor = bg_color_cache;
				}
				return check;
			}
			var required_fields = [];
			');
    }
            			Website : sman3slawi.sch.id <br>
            			Telp : ( 0283 ) 491152
            		</p>
            	</div>
            </div>
        </div>
    </footer>

	<?php 
echo e(Html::script('assets/js/jquery-1.11.3.min.js'));
?>

	<?php 
echo e(Html::script('assets/js/bootstrap.min.js'));
?>

	<?php 
echo e(Html::script('assets/js/jquery.dataTables.min.js'));
?>

	<?php 
echo e(HTML::script('assets/datetimepicker/build/jquery.datetimepicker.full.js'));
?>

    

	<?php 
echo $__env->yieldContent('footer');
?>
</body>
</html>
					<div id="loading" style="display:none;">Loading. . .</div>

					<div id="tampil"></div>
				</div>
			</div>
		</div>
	</div>
<?php 
$__env->stopSection();
?>

<?php 
$__env->startSection('footer');
?>
	<?php 
echo e(Html::script('assets/js/jquery.form.min.js'));
?>

	<script>
		$(function(){
			var bar = $('.bar');
			var percent = $('.percent');
			var status = $('#status');

			var options={
				beforeSend:function(){
					status.empty();
			        var percentVal = '0%';
			        bar.width(percentVal)
			        percent.html(percentVal);
			        $("#pesan").html('');
예제 #27
0
 /**
  * Include common HTML headers
  *
  * @param $title title used for the page (default '')
  *
  * @return nothing
  **/
 static function includeHeader($title = '')
 {
     global $CFG_GLPI, $PLUGIN_HOOKS;
     // Send UTF8 Headers
     header("Content-Type: text/html; charset=UTF-8");
     // Allow only frame from same server to prevent click-jacking
     header('x-frame-options:SAMEORIGIN');
     // Send extra expires header
     self::header_nocache();
     // Start the page
     echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"\n             \"http://www.w3.org/TR/html4/loose.dtd\">";
     echo "\n<html><head><title>GLPI - " . $title . "</title>";
     echo "<meta http-equiv='Content-Type' content='text/html; charset=utf-8'>";
     // Send extra expires header
     echo "<meta http-equiv='Expires' content='Fri, Jun 12 1981 08:20:00 GMT'>\n";
     echo "<meta http-equiv='Pragma' content='no-cache'>\n";
     echo "<meta http-equiv='Cache-Control' content='no-cache'>\n";
     echo "<meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n";
     // auto desktop / mobile viewport
     echo "<meta name='viewport' content='width=device-width, initial-scale=1'>";
     echo Html::css($CFG_GLPI["root_doc"] . "/lib/jquery/css/smoothness/jquery-ui-1.10.4.custom.min.css");
     echo Html::css($CFG_GLPI["root_doc"] . "/css/jstree/style.css");
     echo Html::css($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/rateit/rateit.css");
     echo Html::css($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/select2/select2.css");
     echo Html::css($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/qtip2/jquery.qtip.min.css");
     echo Html::css($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/jcrop/jquery.Jcrop.min.css");
     echo Html::css($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/spectrum-colorpicker/spectrum.css");
     echo Html::css($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/jquery-gantt/css/style.css");
     echo Html::css($CFG_GLPI["root_doc"] . "/css/jquery-glpi.css");
     //  CSS link
     echo Html::css($CFG_GLPI["root_doc"] . "/css/styles.css");
     // CSS theme link
     if (isset($_SESSION["glpipalette"])) {
         echo Html::css($CFG_GLPI["root_doc"] . "/css/palettes/" . $_SESSION["glpipalette"] . ".css");
     }
     // surcharge CSS hack for IE
     echo "<!--[if lte IE 6]>";
     echo Html::css($CFG_GLPI["root_doc"] . "/css/styles_ie.css");
     echo "<![endif]-->";
     echo Html::css($CFG_GLPI["root_doc"] . "/css/print.css", array('media' => 'print'));
     echo "<link rel='shortcut icon' type='images/x-icon' href='" . $CFG_GLPI["root_doc"] . "/pics/favicon.ico' >\n";
     // Add specific css for plugins
     if (isset($PLUGIN_HOOKS['add_css']) && count($PLUGIN_HOOKS['add_css'])) {
         foreach ($PLUGIN_HOOKS["add_css"] as $plugin => $files) {
             if (is_array($files)) {
                 foreach ($files as $file) {
                     if (file_exists(GLPI_ROOT . "/plugins/{$plugin}/{$file}")) {
                         echo Html::css($CFG_GLPI["root_doc"] . "/plugins/{$plugin}/{$file}");
                     }
                 }
             } else {
                 if (file_exists(GLPI_ROOT . "/plugins/{$plugin}/{$files}")) {
                     echo Html::css($CFG_GLPI["root_doc"] . "/plugins/{$plugin}/{$files}");
                 }
             }
         }
     }
     // AJAX library
     if ($_SESSION['glpi_use_mode'] == Session::DEBUG_MODE) {
         echo Html::script($CFG_GLPI["root_doc"] . "/lib/jquery/js/jquery-1.10.2.js");
         echo Html::script($CFG_GLPI["root_doc"] . "/lib/jquery/js/jquery-ui-1.10.4.custom.js");
     } else {
         echo Html::script($CFG_GLPI["root_doc"] . "/lib/jquery/js/jquery-1.10.2.min.js");
         echo Html::script($CFG_GLPI["root_doc"] . "/lib/jquery/js/jquery-ui-1.10.4.custom.min.js");
     }
     echo Html::script($CFG_GLPI["root_doc"] . "/lib/tiny_mce/tiny_mce.js");
     // PLugins jquery
     echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/backtotop/BackToTop.min.jquery.js");
     echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/select2/select2.min.js");
     echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/qtip2/jquery.qtip.min.js");
     echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/jstree/jquery.jstree.js");
     echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/rateit/jquery.rateit.min.js");
     echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/jquery-ui-timepicker-addon/jquery-ui-timepicker-addon.js");
     echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/jquery-file-upload/js/jquery.iframe-transport.js");
     echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/jquery-file-upload/js/jquery.fileupload.js");
     echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/jcrop/jquery.Jcrop.js");
     echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/imagepaste/jquery.image_paste.js");
     echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/spectrum-colorpicker/spectrum-min.js");
     echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/jquery-gantt/js/jquery.fn.gantt.min.js");
     echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/autogrow/jquery.autogrow-textarea.js");
     // layout
     if (CommonGLPI::isLayoutWithMain() && !CommonGLPI::isLayoutExcludedPage()) {
         echo Html::css($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/jquery-ui-scrollable-tabs/css/jquery.scrollabletab.css");
         echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/jquery-ui-scrollable-tabs/js/jquery.mousewheel.js");
         echo Html::script($CFG_GLPI["root_doc"] . "/lib/jqueryplugins/jquery-ui-scrollable-tabs/js/jquery.scrollabletab.js");
     }
     if (isset($_SESSION['glpilanguage'])) {
         echo Html::script($CFG_GLPI["root_doc"] . "/lib/jquery/i18n/jquery.ui.datepicker-" . $CFG_GLPI["languages"][$_SESSION['glpilanguage']][2] . ".js");
         $filename = "/lib/jqueryplugins/jquery-ui-timepicker-addon/i18n/jquery-ui-timepicker-" . $CFG_GLPI["languages"][$_SESSION['glpilanguage']][2] . ".js";
         if (file_exists(GLPI_ROOT . $filename)) {
             echo Html::script($CFG_GLPI["root_doc"] . $filename);
         }
         $filename = "/lib/jqueryplugins/select2/select2_locale_" . $CFG_GLPI["languages"][$_SESSION['glpilanguage']][2] . ".js";
         if (file_exists(GLPI_ROOT . $filename)) {
             echo Html::script($CFG_GLPI["root_doc"] . $filename);
         }
     }
     // Some Javascript-Functions which we may need later
     echo Html::script($CFG_GLPI["root_doc"] . '/script.js');
     // Add specific javascript for plugins
     if (isset($PLUGIN_HOOKS['add_javascript']) && count($PLUGIN_HOOKS['add_javascript'])) {
         foreach ($PLUGIN_HOOKS["add_javascript"] as $plugin => $files) {
             if (is_array($files)) {
                 foreach ($files as $file) {
                     if (file_exists(GLPI_ROOT . "/plugins/{$plugin}/{$file}")) {
                         echo Html::script($CFG_GLPI["root_doc"] . "/plugins/{$plugin}/{$file}");
                     }
                 }
             } else {
                 if (file_exists(GLPI_ROOT . "/plugins/{$plugin}/{$files}")) {
                     echo Html::script($CFG_GLPI["root_doc"] . "/plugins/{$plugin}/{$files}");
                 }
             }
         }
     }
     // End of Head
     echo "</head>\n";
 }
예제 #28
0
파일: base.php 프로젝트: ChrisCov/HUKD
<!DOCTYPE HTML>
<html lang="pl">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title><?php 
if (isset($title)) {
    echo $title;
}
?>
</title>
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
        <meta name="description" content="Demo app" />

        <?php 
foreach ($script as $key => $value) {
    echo Html::script($value);
    echo "\r\n";
}
foreach ($style as $key => $value) {
    echo Html::style($value);
    echo "\r\n";
}
?>

        <!--[if lt IE 9]>
        <script src="/assets/js/html5.js"></script>
        <script src="/assets/js/respond.min.js"></script>
        <![endif]-->

        <script type="text/javascript">
예제 #29
0
<link href="<?php 
echo $site;
?>
/css/jscrollpane.css" rel="stylesheet" type="text/css" />

<script src="<?php 
echo $site;
?>
/js/jquery.jscrollpane.min.js"></script>
<script src="<?php 
echo $site;
?>
/js/jquery.mousewheel.js"></script>
<?php 
echo Html::style("css/font-awesome.css");
echo Html::script("{$site}/media/js/tim/tiny_mce.js");
?>
<script>
$(document).ready(function(){
	$("#loading").ajaxStart(function(){
	 $(this).show();
   });
   
   $("#loading").ajaxStop(function(){
      	$(this).hide();
      });
   $('.header_top').ajaxError(function(event,xhr,setting) {
	   if(xhr.responseText=="kolewole")
	   		alert("Logged out");
	   else alert('error processing....'+xhr.responseText );
	});
예제 #30
0
            <div id="sidebar">
                <div id="email-signup">
                    <h3>Get notified when we release a new shirt design:</h3>
                    <form action="#" method="post">
                        <div>
                            <input type="text" name="email" id="email" value="enter your email" />
                            <input type="submit" class="submit" value="submit" />
                        </div>
                    </form>
                </div>
            </div>
        </div>
        <div id="footer">
            <span id="copyright">&copy; 2010 Hacker Tees</span>
            
            <a href="http://abinoda.com" title="Abi Noda">Abi Noda</a>
            <span class="pipe">|</span>
            <a href="http://corylevy.com" title="Cory Levy">Cory Levy</a>
        </div>
    </div>  
    <?php 
echo Html::script('public/js/jquery-1.3.2.min.js');
?>
    <?php 
echo Html::script('public/js/hackertees.js');
?>
    <?php 
echo IN_PRODUCTION ? View::factory('layouts/_google_analytics') : NULL;
?>
</body>
</html>