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


PHP Html::script方法代码示例

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


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

示例1: header_html

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>";
}
开发者ID:pvasener,项目名称:glpi,代码行数:28,代码来源:install.php

示例2: __construct

 public function __construct(array $files)
 {
     parent::__construct([]);
     foreach ($files as $i => $file) {
         $this->content(\Html::script($file . '.js'));
     }
 }
开发者ID:comptech-soft,项目名称:html,代码行数:7,代码来源:Scripts.php

示例3: RheinaufExhibitionAdmin

 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}' ");
 }
开发者ID:BackupTheBerlios,项目名称:rheinaufcms-svn,代码行数:28,代码来源:RheinaufExhibitionAdmin.php

示例4: editor

 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']);
 }
开发者ID:BackupTheBerlios,项目名称:rheinaufcms-svn,代码行数:9,代码来源:SnippetEditor.php

示例5: action_index

 /**
  * @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());
 }
开发者ID:rukku,项目名称:SwiftRiver,代码行数:12,代码来源:collaborators.php

示例6: js

 /**
  * 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;
 }
开发者ID:SerdarSanri,项目名称:arx-core,代码行数:21,代码来源:Load.php

示例7: RDirList

    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);
        }
    }
开发者ID:BackupTheBerlios,项目名称:rheinaufcms-svn,代码行数:50,代码来源:RDirList.php

示例8: createJsValidade

 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}});");
 }
开发者ID:FabiolaBraga,项目名称:kandaframework,代码行数:15,代码来源:Validate.php

示例9: action_index

 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';
 }
开发者ID:rukku,项目名称:SwiftRiver,代码行数:48,代码来源:bucket.php

示例10: show

    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;
    }
开发者ID:BackupTheBerlios,项目名称:rheinaufcms-svn,代码行数:24,代码来源:MiniGal.php

示例11: edit_loc

 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);
 }
开发者ID:BackupTheBerlios,项目名称:rheinaufcms-svn,代码行数:23,代码来源:LocationsBackend.php

示例12: includeHeader

 /**
  * 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");
//.........这里部分代码省略.........
开发者ID:glpi-project,项目名称:glpi,代码行数:101,代码来源:html.class.php

示例13: e

            <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>
开发者ID:jamalapriadi,项目名称:uas-smagawi,代码行数:31,代码来源:b13ef1861b7a568a60ec947d5d914ffa2134080a.php

示例14:

        <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>
开发者ID:GazzD,项目名称:asoyaracuy,代码行数:31,代码来源:0a16d2dc3e1c1c55c838f920693d2a1d591c9d90.php

示例15: form_scripts

 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}");
 }
开发者ID:BackupTheBerlios,项目名称:rheinaufcms-svn,代码行数:4,代码来源:BuddyListe.php


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