當前位置: 首頁>>代碼示例>>PHP>>正文


PHP GWF_Website::addJavascriptOnload方法代碼示例

本文整理匯總了PHP中GWF_Website::addJavascriptOnload方法的典型用法代碼示例。如果您正苦於以下問題:PHP GWF_Website::addJavascriptOnload方法的具體用法?PHP GWF_Website::addJavascriptOnload怎麽用?PHP GWF_Website::addJavascriptOnload使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在GWF_Website的用法示例。


在下文中一共展示了GWF_Website::addJavascriptOnload方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: execute

 public function execute()
 {
     GWF_Website::addJavascript(GWF_WEB_ROOT . 'js/jq/thumbnails.js');
     GWF_Website::addJavascriptOnload('konzInitPresse();');
     $this->module->setNextHREF(GWF_WEB_ROOT . 'hoehrproben.html');
     return $this->templatePresse();
 }
開發者ID:sinfocol,項目名稱:gwf3,代碼行數:7,代碼來源:Presse.php

示例2: execute

 public function execute()
 {
     GWF_Website::addJavascript(GWF_WEB_ROOT . 'js/jq/color.js');
     GWF_Website::addJavascript(GWF_WEB_ROOT . 'js/jq/ghostwriter.js');
     GWF_Website::addJavascriptOnload('initGhostwriter();');
     $this->module->setNextHREF(GWF_WEB_ROOT . 'presseberichte.html');
     return $this->templateEnsemble();
 }
開發者ID:sinfocol,項目名稱:gwf3,代碼行數:8,代碼來源:Ensemble.php

示例3: execute

 public function execute()
 {
     GWF_Website::addJavascript(GWF_WEB_ROOT . 'js/jq/color.js');
     GWF_Website::addJavascript(GWF_WEB_ROOT . 'js/jq/ghostwriter.js');
     GWF_Website::addJavascriptOnload('initRepertoireSlideshow(); initGhostwriter();');
     $this->module->setNextHREF(GWF_WEB_ROOT . 'arrangements.html');
     return $this->templateRepertoire();
 }
開發者ID:sinfocol,項目名稱:gwf3,代碼行數:8,代碼來源:Repertoire.php

示例4: onStartup

 public function onStartup()
 {
     $this->onLoadLanguage();
     GWF_Website::addJavascript(GWF_WEB_ROOT . 'tpl/konz/js/konzert.js?v=5');
     GWF_Website::addJavascriptOnload('initKonzert();');
     GWF_Website::setMetaTags($this->lang('meta_tags'));
     GWF_Website::setMetaDescr($this->lang('meta_descr'));
 }
開發者ID:sinfocol,項目名稱:gwf3,代碼行數:8,代碼來源:Module_Konzert.php

示例5: execute

 public function execute()
 {
     GWF_Website::addJavascript(GWF_WEB_ROOT . 'js/jq/color.js');
     GWF_Website::addJavascript(GWF_WEB_ROOT . 'js/jq/ghostwriter.js');
     GWF_Website::addJavascriptOnload('initGhostwriter();');
     $this->module->setNextHREF(GWF_WEB_ROOT . 'kontakt.html');
     return $this->templateExklusiv();
 }
開發者ID:sinfocol,項目名稱:gwf3,代碼行數:8,代碼來源:Exklusiv.php

示例6: execute

 public function execute()
 {
     GWF_Website::addJavascript(GWF_WEB_ROOT . 'js/jq/color.js');
     GWF_Website::addJavascript(GWF_WEB_ROOT . 'js/jq/ghostwriter.js');
     GWF_Website::addJavascriptOnload('initGhostwriter(); initAboutSlideshow();');
     $this->module->setNextHREF(GWF_WEB_ROOT . 'biography.html');
     return $this->templateAbout();
 }
開發者ID:sinfocol,項目名稱:gwf3,代碼行數:8,代碼來源:AboutMelanie.php

示例7: templateReplay

 public function templateReplay(GWF_AuditLog $log)
 {
     GWF_Website::addJavascriptInline('var al_script=' . $log->getAjaxScript() . ';');
     GWF_Website::addJavascriptInline('var al_times=' . $log->getAjaxTimes() . ';');
     GWF_Website::addJavascriptOnload('alReplay();');
     $tVars = array('log' => $log);
     return $this->module->template('replay.tpl', $tVars);
 }
開發者ID:sinfocol,項目名稱:gwf3,代碼行數:8,代碼來源:Replay.php

示例8: execute

 public function execute()
 {
     GWF_Website::addJavascript(GWF_WEB_ROOT . 'js/jq/color.js');
     GWF_Website::addJavascript(GWF_WEB_ROOT . 'js/jq/ghostwriter.js');
     GWF_Website::addJavascriptOnload('initGhostwriter();');
     GWF_Website::setPageTitle($this->module->lang('page_title'));
     $this->module->setNextHREF(GWF_WEB_ROOT . 'melanie_gobbo.html');
     return $this->templateIntro();
 }
開發者ID:sinfocol,項目名稱:gwf3,代碼行數:9,代碼來源:Intro.php

示例9: templateMain

 private function templateMain()
 {
     $left = Slay_PNow::getTimeLeft();
     $now = Slay_PNow::getNowPlaying($this->module);
     // 		var_dump($left);
     GWF_Website::addJavascriptOnload("slayInitRedirect(" . max($left + 2, 5) . ");");
     $tVars = array('href_history' => $this->module->getMethodURL('History', '&page=' . Slay_PlayHistory::getNumPages()), 'history' => Slay_PlayHistory::getLastPlayed(1), 'now' => $now, 'left' => $left);
     return $this->module->template('main.tpl', $tVars);
 }
開發者ID:sinfocol,項目名稱:gwf3,代碼行數:9,代碼來源:Main.php

示例10: execute

 public function execute()
 {
     $back = '';
     GWF_Website::addJavascript(GWF_WEB_ROOT . 'js/module/Helpdesk/helpdesk.js');
     GWF_Website::addJavascriptOnload('helpdeskInit();');
     if (Common::getGetString('generate') === 'now') {
         $back .= $this->onGenerate();
     }
     return $back . $this->templateFAQ();
 }
開發者ID:sinfocol,項目名稱:gwf3,代碼行數:10,代碼來源:FAQ.php

示例11: onStartup

 public function onStartup()
 {
     $ms = (string) ((GWF_ONLINE_TIMEOUT / 2 - 1) * 1000);
     GWF_Website::addJavascript(GWF_WEB_ROOT . 'js/module/Heart/hb.js');
     GWF_Website::addJavascriptOnload(sprintf('setTimeout("gwf_heartbeat(%s);", %s);', $ms, $ms));
     $cut = time() - GWF_ONLINE_TIMEOUT;
     $spider = GWF_User::WEBSPIDER;
     $online = GDO::table('GWF_User')->selectVar('COUNT(*)', "user_lastactivity>{$cut} AND user_options&{$spider}=0");
     if ($online > $this->cfgUserrecordCount()) {
         $this->saveModuleVar('hb_userrecord', $online);
         $this->saveModuleVar('hb_recorddate', GWF_Time::getDate(14));
     }
     $pc = $this->cfgPagecount();
     $this->saveModuleVar('hb_pagecount', $pc + 1);
 }
開發者ID:sinfocol,項目名稱:gwf3,代碼行數:15,代碼來源:Module_Heart.php

示例12: onStartup

 public function onStartup()
 {
     GWF_Website::addJavascript(GWF_WEB_ROOT . 'tpl/slay/js/slay.js');
     GWF_Website::addJavascriptOnload('slayInit();');
 }
開發者ID:sinfocol,項目名稱:gwf3,代碼行數:5,代碼來源:Module_Slaytags.php

示例13: execute

 public function execute()
 {
     GWF_Website::addJavascriptOnload('konzertInitTermine();');
     $this->module->setNextHREF(GWF_WEB_ROOT . 'ensemble.html');
     return $this->templateTermine();
 }
開發者ID:sinfocol,項目名稱:gwf3,代碼行數:6,代碼來源:Termine.php

示例14: onStartup

 public function onStartup()
 {
     self::$instance = $this;
     // Register login hook
     GWF_Hook::add(GWF_HOOK::LOGIN_PRE, array(__CLASS__, 'hookLoginPre'));
     GWF_Hook::add(GWF_HOOK::LOGIN_AFTER, array(__CLASS__, 'hookLoginAfter'));
     GWF_Hook::add(GWF_HOOK::VOTED_SCORE, array(__CLASS__, 'hookVoteScore'));
     GWF_Hook::add(GWF_HOOK::ACTIVATE, array(__CLASS__, 'hookRegister'));
     GWF_Hook::add(GWF_HOOK::CHANGE_PASSWD, array(__CLASS__, 'hookChangePass'));
     GWF_Hook::add(GWF_HOOK::DELETE_USER, array(__CLASS__, 'hookDeleteUser'));
     GWF_Hook::add(GWF_HOOK::CHANGE_UNAME, array(__CLASS__, 'hookDeleteUser'));
     $this->onLoadLanguage();
     if (Common::getGet('mo') !== 'WeChall') {
         $this->onInclude();
     }
     GWF_Website::addJavascriptOnload('wcjsInit();');
     GWF_Website::setPageTitlePre('[WeChall] ');
     GWF_Website::setMetaTags(WC_HTML::lang('mt_wechall'));
     GWF_Website::setMetaDescr(WC_HTML::lang('md_wechall'));
     GWF_Website::addJavascript('/js/module/WeChall/wc.js?v=5.1');
 }
開發者ID:sinfocol,項目名稱:gwf3,代碼行數:21,代碼來源:Module_WeChall.php

示例15: templateStats

 private function templateStats()
 {
     if (false !== ($errors = $this->validate())) {
         return $errors;
     }
     $this->setPageTitles();
     GWF_Website::addJavascriptOnload('wcjsStatsJQuery();');
     GWF_Website::addJavascript(GWF_WEB_ROOT . 'js/jquery-ui-1.8.5.custom.min.js');
     GWF_Website::addCSS(GWF_WEB_ROOT . 'tpl/wc4/css/ui-lightness/jquery-ui-1.8.5.custom.css');
     if ($this->user1 === false) {
         $form_action = GWF_WEB_ROOT . 'stats';
     } else {
         $form_action = GWF_WEB_ROOT . 'stats/' . $this->user1->urlencode('user_name');
     }
     $tVars = array('user1' => $this->user1, 'user2' => $this->user2, 'form_action' => $form_action, 'sites' => $this->getSites(), 'img_src' => $this->getImgSrc(), 'img_alt' => $this->getImgTitle(), 'icons' => isset($_POST['icons']), 'values' => isset($_POST['values']), 'zoom' => isset($_POST['zoom']), 'months' => $this->months === 0 ? '' : $this->months);
     return $this->module->templatePHP('stats.php', $tVars);
 }
開發者ID:sinfocol,項目名稱:gwf3,代碼行數:17,代碼來源:Stats.php


注:本文中的GWF_Website::addJavascriptOnload方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。