本文整理汇总了PHP中script_tag函数的典型用法代码示例。如果您正苦于以下问题:PHP script_tag函数的具体用法?PHP script_tag怎么用?PHP script_tag使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了script_tag函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: script_page
/**
* To load javascript file for page
*
**/
function script_page()
{
$path_js_script = 'public/assets/js/';
$script_files = array(array('src' => $path_js_script . 'jquery-1.11.3.js'), array('src' => $path_js_script . 'bootstrap.js'), array('src' => $path_js_script . 'menu.js'), array('src' => $path_js_script . 'jquery-ui.js'), array('src' => $path_js_script . 'jquery.mmenu.js'), array('src' => $path_js_script . 'underscore.js'), array('src' => $path_js_script . 'scriptCheckError.js'));
$xhtml = '';
foreach ($script_files as $value) {
$xhtml .= script_tag($value['src']);
}
return $xhtml;
}
示例2: head
public function head($title = '')
{
$head = "<!DOCTYPE html>\n";
$head .= "<html>\n";
$head .= "<head>\n";
$head .= "<meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n";
$head .= "<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n";
$head .= "<meta charset=\"utf-8\"/>\n";
$head .= " <!-- load library CSS -->\n";
$head .= link_tag('public/assets/css/reset.css');
$head .= link_tag('public/assets/css/bootstrap.css');
$head .= link_tag('public/assets/css/bootstrap-theme.css');
$head .= link_tag('public/assets/css/style.css');
$head .= link_tag('public/assets/css/menu.css');
$head .= link_tag('public/assets/css/modern-business.css');
$head .= link_tag('public/assets/css/jquery.loader.css');
$head .= link_tag('public/assets/css/phone.menu.css');
$head .= link_tag('public/assets/css/bootbox.css');
$head .= link_tag('public/assets/css/jquery-ui.css');
$head .= link_tag('public/assets/css/bootstrapValidator.css');
$head .= "<!-- end lib css -->\n";
if ($title) {
$head .= "<title>" . $title . "</title>";
} else {
$head .= "<title>Phòng khám đa khoa Apollo</title>";
}
$head .= "<!-- icon link -->\n";
$head .= link_tag('public/assets/images/ico/pk-logo.ico', 'shortcut icon', 'image/ico');
$head .= "<link rel='shortcut icon' href='http://phongkhamapollo.com/public/assets/images/ico/pk-logo.ico' type='image/x-icon' />";
$head .= "<!-- start lib javascript -->\n";
$head .= script_tag('public/assets/js/jquery-1.11.3.js');
$head .= script_tag('public/assets/js/jquery.loader.js');
$head .= script_tag('public/assets/js/bootstrap.js');
$head .= script_tag('public/assets/js/menu.js');
$head .= script_tag('public/assets/js/jquery-ui.js');
$head .= script_tag('public/assets/js/bootstrapValidator.js');
$head .= script_tag('public/assets/js/jquery.popupoverlay.js');
$head .= script_tag('public/assets/js/jquery.mmenu.js');
$head .= script_tag('public/assets/js/bootbox.js');
$head .= script_tag('public/assets/js/bootboxExample.js');
$head .= script_tag('public/assets/js/jquery.sticky-kit.js');
$head .= "<!-- end lib javascript -->\n";
$head .= "<!-- no robots -->\n";
$head .= "<meta name=\"robots\" content=\"noindex,nofollow\"/>\n";
$head .= "</head>\n";
return $head;
}
示例3: script_tag
</div>
<div class="page-footer">
<div class="row">
<div class="col-xs-12 col-sm-6">
<span class="txt-color-white">Hair Style Saloon © 2013-2014</span>
</div>
</div>
</div>
<?php
echo script_tag('assets/js/jquery-1.11.1.min.js');
echo script_tag('assets/js/bootstrap/bootstrap.min.js');
echo script_tag('assets/js/plugin/pace/pace.min.js');
echo script_tag('assets/js/app.config.js');
echo script_tag('assets/js/app.min.js');
echo script_tag('assets/js/bootstrap-datepicker.js');
echo script_tag('assets/js/notification/SmartNotification.min.js');
echo script_tag("assets/js/plugin/datatables/jquery.dataTables.min.js");
echo script_tag("assets/js/plugin/datatables/dataTables.colVis.min.js");
echo script_tag("assets/js/plugin/datatables/dataTables.tableTools.min.js");
echo script_tag("assets/js/plugin/datatables/dataTables.bootstrap.min.js");
echo script_tag("assets/js/plugin/datatable-responsive/datatables.responsive.min.js");
echo script_tag('assets/js/appointment/all_appointments.js');
?>
<script type="text/javascript">
$(document).ready(function(){
new HSS.Appointments();
});
</script>
</body>
</html>
示例4: array
<?php
$script_list = array('padrao' => array(RESPONSIVE_FW_JS_FILE_LOCAL, array('codigo' => '$(document).foundation();')), 'home' => array(RESPONSIVE_FW_JS_FILE_LOCAL, array('codigo' => '$(document).foundation();'), SLICK_JS_FILE_LOCAL, SLICK_INI_JS_FILE_LOCAL), 'adicionar' => array(RESPONSIVE_FW_JS_FILE_LOCAL, array('codigo' => '$(document).foundation();'), 'assets/plugin/jcrop/js/jquery.Jcrop.min.js', array('src' => 'http://malsup.github.com/jquery.form.js')), 'editar/portfolio' => array(RESPONSIVE_FW_JS_FILE_LOCAL, array('codigo' => '$(document).foundation();'), array('src' => 'http://malsup.github.com/jquery.form.js')));
$script_list_name = isset($script_list[$page]) ? $page : 'padrao';
foreach ($script_list[$script_list_name] as $key => $script_item) {
echo script_tag($script_item);
}
?>
</body>
</html>
示例5: script_tag
echo script_tag("assets/js/ie8-responsive-file-warning.js");
echo script_tag("assets/js/ie-emulation-modes-warning.js");
echo script_tag("assets/js/html5shiv.min.js");
echo script_tag("assets/js/respond.min.js");
echo script_tag("assets/js/ie10-viewport-bug-workaround.js");
echo script_tag("assets/js/jquery.easing.1.3.js");
echo script_tag("assets/js/sticky/jquery.sticky.js");
echo script_tag("assets/js/sticky/setting.js");
echo script_tag("assets/js/parallax/jquery.parallax-1.1.3.js");
echo script_tag("assets/js/parallax/setting.js");
echo script_tag("assets/js/totop/jquery.ui.totop.js");
echo script_tag("assets/js/totop/setting.js");
?>
<script type="text/javascript" src="//maps.googleapis.com/maps/api/js?sensor=false"></script>
<?php
echo script_tag("assets/js/custom.js");
echo script_tag("assets/js/jquery.validate.min.js");
echo script_tag("assets/js/contact.js");
?>
<script>
jQuery(document).ready(function() {
new GKM.Contact("<?php
echo base_url();
?>
");
});
</script>
</div>
</body>
</html>
示例6: script_tag
</div>
</div>
</div>
</article>
</div>
</section>
</div>
</div>
<div class="page-footer">
<div class="row">
<div class="col-xs-12 col-sm-6">
<span class="txt-color-white">Classic Equipments © 2013-2014</span>
</div>
</div>
</div>
<!--================================================== -->
<?php
echo script_tag('assets/js/jquery-1.11.1.min.js');
echo script_tag('assets/js/plugin/pace/pace.min.js');
echo script_tag('assets/js/app.config.js');
echo script_tag('assets/js/app.min.js');
echo script_tag('assets/js/notification/SmartNotification.min.js');
echo script_tag('assets/js/clients/add_clients.js');
?>
<script type="text/javascript">
$(document).ready(function(){
new CKE.AddClients();
});
</script>
</body>
</html>
示例7: script_tag
</li>
</ul>
</div>
<p>Sorry for the inconvenience!</p>
</div>
<![endif]-->
<!-- Javascript Libraries -->
<?php
echo script_tag('assets/js/jquery.js');
echo script_tag('assets/js/jquery.min.js');
echo script_tag('assets/js/bootstrap.min.js');
echo script_tag('assets/js/jquery.mCustomScrollbar.concat.min.js');
echo script_tag('assets/js/waves.min.js');
echo script_tag('assets/js/bootstrap-growl.min.js');
echo script_tag('assets/js/sweet-alert.min.js');
echo script_tag('assets/js/moment.min.js');
echo script_tag('assets/js/fullcalendar.min.js');
echo script_tag('assets/js/jquery.simpleWeather.min.js');
echo script_tag('assets/js/jquery.easypiechart.min.js');
echo script_tag('assets/js/autosize.min.js');
echo script_tag('assets/js/mediaelement-and-player.js');
echo script_tag('assets/js/bootstrap-datetimepicker.min.js');
echo script_tag('assets/js/jquery.placeholder.min.js');
echo script_tag('assets/js/functions.js');
echo script_tag('assets/js/demo.js');
echo script_tag('assets/js/lightGallery.min.js');
?>
</body>
</html>
示例8: link_tag
}
?>
<!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>
<title></title>
<meta http-equiv="Content-type" content="text/html; charset=UTF-8" />
<?php
$this->output->enable_profiler(true);
echo link_tag('styles/admin.css');
echo script_tag('scripts/jquery-1.2.3.pack.js');
echo script_tag('scripts/maze.js');
echo script_tag('scripts/plugins/cmxform.js');
echo script_tag('scripts/plugins/jquery.domec.js');
echo script_tag('scripts/plugins/jquery.simplemodal.js');
?>
<!-- IE 6 hacks -->
<!--[if lt IE 7]>
<?php
echo link_tag('styles/admin_ie6.css');
?>
<![endif]-->
<script>
$(document).ready(function() {
$('.adminlist tr:has(:checkbox)').each(function() {
$(this).find('td:eq(1)').click(function() {
editRow(this);
}).wrapInner('<a href="#"></a>');
示例9: script_tag
echo script_tag('assets/js/plugins/jquery.blockui.min.js');
echo script_tag('assets/js/uniform/jquery.uniform.min.js');
echo script_tag('assets/js/bootstrap-switch/bootstrap-switch.min.js');
echo script_tag('assets/js/plugins/moment.min.js');
echo script_tag('assets/js/morris/morris.min.js');
echo script_tag('assets/js/morris/raphael-min.js');
echo script_tag('assets/js/plugins/counterup/jquery.waypoints.min.js');
echo script_tag('assets/js/plugins/counterup/jquery.counterup.min.js');
echo script_tag('assets/js/fullcalendar/fullcalendar.min.js');
echo script_tag('assets/js/plugins/flot/jquery.flot.min.js');
echo script_tag('assets/js/plugins/flot/jquery.flot.resize.min.js');
echo script_tag('assets/js/plugins/flot/jquery.flot.categories.min.js');
echo script_tag('assets/js/plugins/jquery.sparkline.min.js');
echo script_tag('assets/js/scripts/app.min.js');
echo script_tag('assets/js/pages/scripts/dashboard.min.js');
echo script_tag('assets/js/layout3/layout.min.js');
echo script_tag('assets/js/layout3/demo.min.js');
echo script_tag('assets/js/bootstrap/bootstrap-growl.min.js');
echo script_tag('assets/js/bootstrap/sweet-alert.min.js');
// echo script_tag('assets/js/global/scripts/quick-sidebar.min.js');
echo script_tag('assets/js/app-js/manage/manage-sub-class/manage-sub-class-rel.js');
?>
</html>
<script type="text/javascript">
$(document).ready(function () {
new WKISCHOOL.ManageSubjectClassRelation("<?php
echo base_url();
?>
");
});
</script>
示例10: base_url
?>
">Show Case</a></li>
<li><a href="<?php
echo base_url('terms-conditions');
?>
">Terms & Conditions</a></li>
<li><a href="<?php
echo base_url('about-us');
?>
">About Us</a></li>
</ul>
</footer>
<?php
echo script_tag('assets/js/jquery.js');
echo script_tag('assets/js/bootstrap.min.js');
echo script_tag('assets/js/waves.min.js');
echo script_tag('assets/js/functions.js');
echo script_tag('assets/js/terms/terms.js');
?>
</body>
</html>
<script type="text/javascript">
$(document).ready(function () {
new MBJS.Terms("<?php
echo base_url();
?>
");
});
</script>
示例11: script_tag
<?php
echo script_tag(base_url() . 'js/select2.min.js');
?>
<!--<?php
echo script_tag(base_url() . 'js/ga.js');
?>
-->
<!--<?php
echo script_tag(base_url() . 'js/prettify/run_prettify.js');
?>
-->
<?php
echo script_tag(base_url() . 'js/select2.min.js');
?>
<?php
echo script_tag(base_url() . 'js/jquery.dataTables.min.js');
?>
<style>
#toolbar {
padding: 4px;
display: inline-block;
}
/* support: IE7 */
*+html #toolbar {
display: inline;
}
</style>
<script>
示例12: script_tag
</div>
</article>
</div>
</section>
</div>
</div>
<div class="page-footer">
<div class="row">
<div class="col-xs-12 col-sm-6">
<span class="txt-color-white">Classic Equipments © 2013-2014</span>
</div>
</div>
</div>
<!--================================================== -->
<?php
echo script_tag('assets/js/jquery-1.11.1.min.js');
echo script_tag('assets/js/plugin/pace/pace.min.js');
echo script_tag('assets/js/app.config.js');
echo script_tag('assets/js/app.min.js');
echo script_tag('assets/js/clients/edit_clients.js');
?>
<script type="text/javascript">
$(document).ready(function(){
new CKE.EditClients("<?php
echo base_url();
?>
");
});
</script>
</body>
</html>
示例13: getUserFromEmail
} else {
if ($action == "recover") {
$recoverCode = $_REQUEST["recoverCode"];
$row = getUserFromEmail($db, $email);
if (!$row || $row->recoverCode != $recoverCode) {
echo "Le lien est invalide.";
return;
}
echo "\r\n <!DOCTYPE html>\r\n <html>\r\n <head>\r\n <meta http-equiv='Content-Type' content='text/html; charset=utf-8' />";
stylesheet_tag('/bower_components/jquery-ui/themes/base/jquery-ui.min.css');
stylesheet_tag('/admin.css');
script_tag('/bower_components/jquery/jquery.min.js');
script_tag('/bower_components/jquery-ui/jquery-ui.min.js');
script_tag('/bower_components/i18next/i18next.min.js');
echo "\r\n <script type='text/javascript'>\r\n window.config = " . json_encode(['defaultLanguage' => $config->defaultLanguage, 'countryCode' => $config->teacherInterface->countryCode, 'infoEmail' => $config->email->sInfoAddress, 'forceOfficialEmailDomain' => $config->teacherInterface->forceOfficialEmailDomain, 'contestPresentationURL' => $config->contestPresentationURL, 'i18nResourcePath' => static_asset('/i18n/__lng__/__ns__.json'), 'useCustomStrings' => $config->useCustomStrings]) . ";\r\n function getRegions() { return {} };\r\n </script>";
script_tag('/admin.js');
echo "<script type=\"text/javascript\">\r\n i18n.init({\r\n lng: config.defaultLanguage,\r\n fallbackLng: [config.defaultLanguage],\r\n getAsync: true,\r\n resGetPath: config.i18nResourcePath,\r\n fallbackNS: 'translation',\r\n ns: {\r\n namespaces: config.useCustomStrings ? ['custom', 'translation', 'country' + config.countryCode] : ['translation', 'country' + config.countryCode],\r\n defaultNs: config.useCustomStrings ? 'custom' : 'translation',\r\n },\r\n useDataAttrOptions: true\r\n }, function () {\r\n \$(\"title\").i18n();\r\n \$(\"body\").i18n();\r\n });\r\n </script>\r\n </head>\r\n <body>\r\n <div id='divHeader'>\r\n <table style='width:100%'><tr>\r\n <td style='width:20%'><img src='images/castor_small.png'/></td>\r\n <td><p class='headerH1'>Castor Informatique France</p>\r\n <p class='headerH2'> Plate-forme du concours Castor - <span style='color:red;font-weight:bold'>ACCES COORDINATEUR</span></p>\r\n </td>\r\n <td></td>\r\n </tr></table>\r\n </div>\r\n <div class='dialog'>\r\n Entrez votre nouveau mot de passe : <input type='password' id='newPassword1' /><br/>\r\n Entrez de nouveau pour le confirmer : <input type='password' id='newPassword2' /><br/>\r\n <input type='button' id='buttonChangePassword' value='Valider' onclick='changePassword(\"" . $email . "\", \"" . $row->recoverCode . "\")' />\r\n </div></html>\r\n ";
} else {
if ($action === "changePassword") {
$recoverCode = $_REQUEST["recoverCode"];
$password = $_REQUEST["password"];
$row = getUserFromEmail($db, $email);
if (!$row || $row->recoverCode != $recoverCode) {
echo "Le lien est invalide.";
return;
}
$query = "UPDATE `user` SET `passwordMd5` = ? WHERE `ID` = ?";
$stmt = $db->prepare($query);
$passwordMd5 = computePasswordMD5($password, $row->salt);
$stmt->execute(array($passwordMd5, $row->ID));
echo json_encode(array("success" => true));
示例14: script_tag
<!--<iframe id="trackingFrame" src="http://eval02.france-ioi.org/castor_tracking/index.html" style="display:none"></iframe>-->
<?php
// JSON3 shim for IE6-9 compatibility.
script_tag('/bower_components/json3/lib/json3.min.js');
// jquery 1.9 is required for IE6+ compatibility.
script_tag('/bower_components/jquery/jquery.min.js');
// Ajax CORS support for IE9 and lower.
script_tag('/bower_components/jQuery-ajaxTransport-XDomainRequest/jquery.xdomainrequest.min.js');
script_tag('/bower_components/jquery-ui/jquery-ui.min.js');
script_tag('/bower_components/jquery-ui-touch-punch/jquery.ui.touch-punch.min.js');
script_tag('/bower_components/jquery-postmessage/jquery.ba-postmessage.min.js');
script_tag('/bower_components/i18next/i18next.min.js');
script_tag('/bower_components/utf8/utf8.js');
script_tag('/bower_components/base64/base64.min.js');
script_tag('/bower_components/pem-platform/task-pr.js');
script_tag('/common.js');
global $config;
?>
<script>
window.contestsRoot = <?php
echo json_encode(static_asset('/contests'));
?>
;
i18n.init(<?php
echo json_encode(['lng' => $config->defaultLanguage, 'fallbackLng' => [$config->defaultLanguage], 'getAsync' => true, 'resGetPath' => static_asset('/i18n/__lng__/__ns__.json')]);
?>
, function () {
$("title").i18n();
$("body").i18n();
});
</script>
示例15: exit
<?php
if (!defined('BASEPATH')) {
exit('No direct script access allowed');
}
/**
* @author OA Wu <comdan66@gmail.com>
* @copyright Copyright (c) 2015 OA Wu Design
*/
if ($js_list) {
foreach ($js_list as $js) {
echo script_tag($js) . (ENVIRONMENT !== 'production' ? "\n" : '');
}
}