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


PHP t3lib_extMgm::siteRelPath方法代码示例

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


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

示例1: veranstaltungBuchen

    public function veranstaltungBuchen(&$piBase, $pid, $eventId, $eventDateId)
    {
        $GLOBALS['TSFE']->additionalHeaderData['hetools'] .= '
				<link rel="stylesheet" type="text/css" href="' . t3lib_extMgm::siteRelPath('fe_management') . 'res/femanagement.css"/>
				<link rel="stylesheet" type="text/css" href="' . t3lib_extMgm::siteRelPath('he_tools') . 'res/technolino.css"/>
				';
        /** @var  $terminModel tx_femanagement_model_events */
        $terminModel = t3lib_div::makeInstance('tx_femanagement_model_events', $piBase, $pid);
        $eventData = $terminModel->getEventData($eventId);
        $out = '<h1>' . $eventData['title'] . '</h1>' . '<h2>Thema: ' . $eventData['subtitle'] . '</h2>';
        $out .= '<form class="technolino" method="POST" action="">';
        $out .= $this->getInputField('organization', 'Name Ihrer Einrichtung');
        $out .= $this->getInputField('first_name', 'Vorname');
        $out .= $this->getInputField('last_name', 'Nachname');
        $out .= $this->getInputField('street', 'Straße/Hausnummer');
        $out .= $this->getInputField('zip', 'Plz');
        $out .= $this->getInputField('city', 'Ort');
        $out .= $this->getInputField('email', 'E-Mail-Adresse');
        $out .= $this->getInputField('phone', 'Tel.');
        $out .= $this->getTextareaField('remarks', 'Bemerkungen', false);
        $out .= '<div id="buttons" class="field">
        <input type="submit" name="anmelden" value="Verbindlich anmelden" />
         </div>';
        $out .= '</form>';
        return $out;
    }
开发者ID:mmirsch,项目名称:he_tools1,代码行数:26,代码来源:class.tx_he_tools_technolino.php

示例2: loginFormHook

 /**
  * Hooks to the felogin extension to provide additional code for FE login
  *
  * @return	array	0 => onSubmit function, 1 => extra fields and required files
  */
 public function loginFormHook()
 {
     $result = array(0 => '', 1 => '');
     if ($GLOBALS['TYPO3_CONF_VARS']['FE']['loginSecurityLevel'] == 'rsa') {
         $backend = tx_rsaauth_backendfactory::getBackend();
         if ($backend) {
             $result[0] = 'tx_rsaauth_feencrypt(this);';
             $javascriptPath = t3lib_extMgm::siteRelPath('rsaauth') . 'resources/';
             $files = array('jsbn/jsbn.js', 'jsbn/prng4.js', 'jsbn/rng.js', 'jsbn/rsa.js', 'jsbn/base64.js', 'rsaauth_min.js');
             foreach ($files as $file) {
                 $result[1] .= '<script type="text/javascript" src="' . t3lib_div::getIndpEnv('TYPO3_SITE_URL') . $javascriptPath . $file . '"></script>';
             }
             // Generate a new key pair
             $keyPair = $backend->createNewKeyPair();
             // Save private key
             $storage = tx_rsaauth_storagefactory::getStorage();
             /* @var $storage tx_rsaauth_abstract_storage */
             $storage->put($keyPair->getPrivateKey());
             // Add RSA hidden fields
             $result[1] .= '<input type="hidden" id="rsa_n" name="n" value="' . htmlspecialchars($keyPair->getPublicKeyModulus()) . '" />';
             $result[1] .= '<input type="hidden" id="rsa_e" name="e" value="' . sprintf('%x', $keyPair->getExponent()) . '" />';
         }
     }
     return $result;
 }
开发者ID:zsolt-molnar,项目名称:TYPO3-4.5-trunk,代码行数:30,代码来源:class.tx_rsaauth_feloginhook.php

示例3: getEntry

 /**
  * Renders entry for one page of the current document.
  *
  * @access	protected
  *
  * @param	integer		$number: The page to render
  * @param	string		$template: Parsed template subpart
  *
  * @return	string		The rendered entry ready for output
  */
 protected function getEntry($number, $template)
 {
     // Set current page if applicable.
     if (!empty($this->piVars['page']) && $this->piVars['page'] == $number) {
         $markerArray['###STATE###'] = 'cur';
     } else {
         $markerArray['###STATE###'] = 'no';
     }
     // Set page number.
     $markerArray['###NUMBER###'] = $number;
     // Set pagination.
     $markerArray['###PAGINATION###'] = $this->doc->physicalPagesInfo[$this->doc->physicalPages[$number]]['label'];
     // Get thumbnail or placeholder.
     if (!empty($this->doc->physicalPagesInfo[$this->doc->physicalPages[$number]]['files'][$this->conf['fileGrpThumbs']])) {
         $thumbnailFile = $this->doc->getFileLocation($this->doc->physicalPagesInfo[$this->doc->physicalPages[$number]]['files'][$this->conf['fileGrpThumbs']]);
     } elseif (!empty($this->conf['placeholder'])) {
         $thumbnailFile = $GLOBALS['TSFE']->tmpl->getFileName($this->conf['placeholder']);
     } else {
         $thumbnailFile = t3lib_extMgm::siteRelPath($this->extKey) . 'plugins/pagegrid/placeholder.jpg';
     }
     $thumbnail = '<img alt="' . $markerArray['###PAGINATION###'] . '" src="' . $thumbnailFile . '" />';
     // Get new plugin variables for typolink.
     $piVars = $this->piVars;
     // Unset no longer needed plugin variables.
     // unset($piVars['pagegrid']) is for DFG Viewer compatibility!
     unset($piVars['pointer'], $piVars['DATA'], $piVars['pagegrid']);
     $piVars['page'] = $number;
     $linkConf = array('useCacheHash' => 1, 'parameter' => $this->conf['targetPid'], 'additionalParams' => t3lib_div::implodeArrayForUrl($this->prefixId, $piVars, '', TRUE, FALSE), 'title' => $markerArray['###PAGINATION###']);
     $markerArray['###THUMBNAIL###'] = $this->cObj->typoLink($thumbnail, $linkConf);
     return $this->cObj->substituteMarkerArray($template, $markerArray);
 }
开发者ID:CalanthaC,项目名称:goobi-presentation,代码行数:41,代码来源:class.tx_dlf_pagegrid.php

示例4: getMapCore

 public function getMapCore($backpath = '')
 {
     $path = ($backpath ? $backpath : $GLOBALS['TSFE']->absRefPrefix) . t3lib_extMgm::siteRelPath('ods_osm') . 'res/';
     $path = $this->config['local_js'] ? $path . 'OpenLayers3/' : 'http://ol3js.org/en/master/';
     $GLOBALS['TSFE']->getPageRenderer()->addCssFile($path . 'css/ol.css');
     $this->scripts = array($path . 'build/ol.js');
 }
开发者ID:fabianlipp,项目名称:ods_osm,代码行数:7,代码来源:class.tx_odsosm_openlayers3.php

示例5: listAction

    /**
     * action list
     *
     * @return void
     */
    public function listAction()
    {
        $formPage = $this->settings['formPage'];
        $this->response->addAdditionalHeaderData('
			<link rel="stylesheet" type="text/css" href="' . t3lib_extMgm::siteRelPath($this->request->getControllerExtensionKey()) . 'Resources/Public/Css/jhe_supportform.css"></link>
			<script src="' . t3lib_extMgm::siteRelPath($this->request->getControllerExtensionKey()) . 'Resources/Public/JavaScript/jhe_supportform.js?1468835123" type="text/javascript"></script>
		');
        $this->view->assign('formpage', $formPage);
    }
开发者ID:cyberelk,项目名称:jhe_supportform,代码行数:14,代码来源:SelectorController.php

示例6: addGlobalMarkers

 /**
  * Sets the value of captcha markers
  */
 public function addGlobalMarkers(&$markerArray, $markerObject)
 {
     $cmdKey = $markerObject->controlData->getCmdKey();
     if (t3lib_extMgm::isLoaded('captcha') && $markerObject->conf[$cmdKey . '.']['evalValues.']['captcha_response'] == 'captcha') {
         $markerArray['###CAPTCHA_IMAGE###'] = '<img src="' . t3lib_extMgm::siteRelPath('captcha') . 'captcha/captcha.php" alt="" />';
     } else {
         $markerArray['###CAPTCHA_IMAGE###'] = '';
     }
 }
开发者ID:raimundlandig,项目名称:winkel.de-DEV,代码行数:12,代码来源:class.tx_srfeuserregister_captcha.php

示例7: __construct

 /**
  * Initializes the Module
  *
  * @return	void
  */
 public function __construct()
 {
     parent::init();
     // initialize document
     $this->doc = t3lib_div::makeInstance('template');
     $this->doc->setModuleTemplate(t3lib_extMgm::extPath('reports') . 'mod/mod_template.html');
     $this->doc->backPath = $GLOBALS['BACK_PATH'];
     $this->doc->addStyleSheet('tx_reports', '../' . t3lib_extMgm::siteRelPath('reports') . 'mod/mod_styles.css');
 }
开发者ID:NaveedWebdeveloper,项目名称:Test,代码行数:14,代码来源:index.php

示例8: __construct

 /**
  * Initializes the Module
  *
  * @return	void
  */
 public function __construct()
 {
     parent::init();
     // initialize document
     $this->doc = t3lib_div::makeInstance('template');
     $this->doc->setModuleTemplate(t3lib_extMgm::extPath('taskcenter') . 'res/mod_template.html');
     $this->doc->backPath = $GLOBALS['BACK_PATH'];
     $this->doc->getPageRenderer()->loadScriptaculous('effects,dragdrop');
     $this->doc->addStyleSheet('tx_taskcenter', '../' . t3lib_extMgm::siteRelPath('taskcenter') . 'res/mod_styles.css');
 }
开发者ID:zsolt-molnar,项目名称:TYPO3-4.5-trunk,代码行数:15,代码来源:index.php

示例9: getLoginScripts

 /**
  * Provides form code for the superchallenged authentication.
  *
  * @param	array	$params	Parameters to the script
  * @param	SC_index	$pObj	Calling object
  * @return	string	The code for the login form
  */
 public function getLoginScripts(array $params, SC_index &$pObj)
 {
     $content = '';
     if ($pObj->loginSecurityLevel == 'rsa') {
         $javascriptPath = t3lib_extMgm::siteRelPath('rsaauth') . 'resources/';
         $files = array('jsbn/jsbn.js', 'jsbn/prng4.js', 'jsbn/rng.js', 'jsbn/rsa.js', 'jsbn/base64.js', 'rsaauth_min.js');
         $content = '';
         foreach ($files as $file) {
             $content .= '<script type="text/javascript" src="' . t3lib_div::getIndpEnv('TYPO3_SITE_URL') . $javascriptPath . $file . '"></script>';
         }
     }
     return $content;
 }
开发者ID:NaveedWebdeveloper,项目名称:Test,代码行数:20,代码来源:class.tx_rsaauth_loginformhook.php

示例10: addAutocompleteJS

 /**
  * Adds the JS files necessary for search suggestions
  *
  * @access	protected
  *
  * @return	void
  */
 protected function addAutocompleteJS()
 {
     // Check if there are any metadata to suggest.
     $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery('tx_dlf_metadata.*', 'tx_dlf_metadata', 'tx_dlf_metadata.autocomplete=1 AND tx_dlf_metadata.pid=' . intval($this->conf['pages']) . tx_dlf_helper::whereClause('tx_dlf_metadata'), '', '', '1');
     if ($GLOBALS['TYPO3_DB']->sql_num_rows($result)) {
         // Add javascript to page header.
         if (tx_dlf_helper::loadJQuery()) {
             $GLOBALS['TSFE']->additionalHeaderData[$this->prefixId . '_search_suggest'] = '<script type="text/javascript" src="' . t3lib_extMgm::siteRelPath($this->extKey) . 'plugins/search/tx_dlf_search_suggest.js"></script>';
         }
     } else {
         if (TYPO3_DLOG) {
             t3lib_div::devLog('[tx_dlf_search->addAutocompleteJS()] No metadata fields configured for search suggestions', $this->extKey, SYSLOG_SEVERITY_WARNING);
         }
     }
 }
开发者ID:CalanthaC,项目名称:goobi-presentation,代码行数:22,代码来源:class.tx_dlf_search.php

示例11: init

 private function init($conf)
 {
     $this->conf = $conf;
     $this->pi_setPiVarDefaults();
     $this->pi_loadLL();
     $this->pi_initPIflexForm();
     // Init FlexForm configuration for plugin
     // Get the logged in user id or return false
     $this->config['userid'] = $GLOBALS['TSFE']->loginUser ? $GLOBALS['TSFE']->fe_user->user['uid'] : false;
     // Getting the pid list via the flexform
     $pidList = $this->cObj->data['pages'];
     $this->conf['pidList'] = $pidList ? $pidList : $GLOBALS['TSFE']->id;
     // Template code
     $this->config['templateFile'] = $this->cObj->fileResource($this->pi_getFFvalue($this->cObj->data['pi_flexform'], 'templateFile', 'sDEF') ? $this->pi_getFFvalue($this->cObj->data['pi_flexform'], 'templateFile', 'sDEF') : t3lib_extMgm::siteRelPath($this->extKey) . 'res/template.html');
 }
开发者ID:sinso,项目名称:TYPO3-changepassword,代码行数:15,代码来源:class.tx_changepassword_pi1.php

示例12: renderZeitschriftenListe

    public function renderZeitschriftenListe()
    {
        $GLOBALS['TSFE']->additionalHeaderData[$this->extKey . 'he_tools_css_1'] = '<link href="' . t3lib_extMgm::siteRelPath($this->extKey) . 'res/zeitschriften.css" rel="stylesheet" type="text/css" />';
        $zeitschriftenListe = array();
        $this->gibZeitschriftenListe($zeitschriftenListe);
        $out .= '<a name="top"></name>';
        $out .= $this->renderBuchstabenLinks($zeitschriftenListe);
        $out .= '<table class="tab100 zeitschriften">
		<tbody>
		';
        foreach ($zeitschriftenListe as $buchstabe => $liste) {
            $out .= $this->renderBuchstabenBlock($buchstabe, $liste);
        }
        $out .= '</table>';
        return $out;
    }
开发者ID:mmirsch,项目名称:he_tools1,代码行数:16,代码来源:class.tx_he_tools_zeitschriftenlisten.php

示例13: render

    public function render($parent)
    {
        $GLOBALS['TSFE']->additionalHeaderData[$this->extKey . 'he_tools_css_1'] = '<link href="' . t3lib_extMgm::siteRelPath($this->extKey) . 'res/hochschule_a_z.css" rel="stylesheet" type="text/css" />';
        $zeitschriftenListe = array();
        $this->gibArtikel($zeitschriftenListe);
        $out .= '<a name="top"></name>';
        $out .= $this->renderBuchstabenLinks($zeitschriftenListe);
        $out = '';
        $username = $GLOBALS['TSFE']->fe_user->user['username'];
        $gadgetId = tx_he_portal_lib_gadgets::gibGadgetId($GLOBALS['TSFE']->id);
        if (tx_he_portal_lib_gadgets::gadgetHilfeTextAnzeigen($gadgetId, $username)) {
            $hilfeId = tx_he_portal_lib_gadgets::gibGadgetHilfeUid($gadgetId);
            $config = array('tables' => 'tt_content', 'source' => $hilfeId);
            $out .= $parent->cObj->RECORDS($config);
        }
        $out .= '
	<div class="a_bis_z_suche">
		<div style="margin: 10px 0;">
		Bitte geben Sie einen Suchbegriff ein.</div>
	<form action="" method="POST">
		<input class="such_box" type="text" id="eingabe" name="eingabe" size="40" />
		<input id="absenden" type="submit" value="Absenden" />
	</form>
	<div id="namenListe" style="margin-top:2em; font-family:Arial">
	</div>
	
	</div>
		
		<script>
		$("#absenden").css({"display": "none"});
		$("#eingabe").keyup(function(event) {
			var eingabe = encodeURI($("#eingabe").val());
			if (eingabe.length>0) {
				$("#ergebnisliste").detach();
				$("<div id=\\"ergebnisliste\\"></div>").appendTo($("#namenListe"));
//				$("#ergebnisliste").load("index.php?id=94212&mode=AZ&eingabe=" + eingabe);
				$("#ergebnisliste").load("index.php?eID=he_tools&action=a_bis_z_suche&val=" + eingabe);
			} else {
				$("#ergebnisliste").detach();
			}
			
		});
		</script>
		';
        return $out;
    }
开发者ID:mmirsch,项目名称:he_tools1,代码行数:46,代码来源:class.tx_he_tools_a_bis_z.php

示例14: formularAnzeigen

 public function formularAnzeigen()
 {
     $GLOBALS['TSFE']->additionalHeaderData['he_tools_css_1'] = '<link href="' . t3lib_extMgm::siteRelPath('he_tools') . 'res/css/kms_form.css" rel="stylesheet" type="text/css" />';
     $username = $GLOBALS['TSFE']->fe_user->user['username'];
     $top = '';
     $middle = '';
     $bottom = '';
     $slqQuery = 'SELECT * FROM kms WHERE login="' . $username . '"';
     $abfragePages = $this->sqlQuery($slqQuery);
     $data = $this->sqlFetchAssoc($abfragePages);
     $post = t3lib_div::_POST();
     $zustimmung = $post['zustimmung'];
     $anmelden = $post['anmelden'];
     $abbrechen = $post['abbrechen'];
     if (!empty($anmelden)) {
         if (empty($zustimmung)) {
             $error = '<h3 class="error">Sie müssen den Nutzungsrechten zustimmen!</h3>';
             $bottom = $this->gibAntragsFormular($error);
         } else {
             if (empty($data)) {
                 /* Neuer Antrag: E-Mail-Versand */
                 $top = $this->kmsEintragSpeichern($username);
             } else {
                 /* Vorhandener Antrag: kein E-Mail-Versand */
                 $top = 'Ihr KMS-Antrag wurde soeben gespeichert';
             }
             $bottom = $this->gibAnleitung();
         }
     } else {
         if (!empty($abbrechen)) {
             $bottom = $this->gubAbbrechenText();
         } else {
             if (!empty($data)) {
                 $top = $this->kmsEintragVorhanden($data['idate']);
                 $bottom = $this->gibAnleitung();
                 // Zum Testen
                 //$bottom = $this->gibAntragsFormular();
             } else {
                 $bottom = $this->gibAntragsFormular();
             }
         }
     }
     $out = '<div class="kms_form">' . $top . $bottom . '</div>';
     $this->disconnectDb();
     return $out;
 }
开发者ID:mmirsch,项目名称:he_tools1,代码行数:46,代码来源:class.tx_he_tools_kms_formular.php

示例15: listAction

    /**
     * action list
     *
     * @return void
     */
    public function listAction()
    {
        $this->response->addAdditionalHeaderData('
			<link rel="stylesheet" type="text/css" href="' . t3lib_extMgm::siteRelPath($this->request->getControllerExtensionKey()) . 'Resources/Public/Css/jhe_supportform.css?1468915302"></link>
			<script src="' . t3lib_extMgm::siteRelPath($this->request->getControllerExtensionKey()) . 'Resources/Public/JavaScript/jhe_supportform.js?1468915302" type="text/javascript"></script>
		');
        if ($this->request->getArguments() && array_key_exists('supportFormTopic', $this->request->getArguments())) {
            $supportFormTopic = $this->request->getArgument('supportFormTopic');
        } else {
            if ($_GET['form'] != '') {
                $supportFormTopic = $_GET['form'];
            } else {
                $supportFormTopic = 'error';
            }
        }
        switch ($supportFormTopic) {
            case 'sapSupportAnfrage':
            case 'sapNeuesStartkennwort':
            case 'sapBenutzerentsperren':
            case 'sapBenutzerAnlegen':
            case 'sapBenutzerloeschen':
            case 'itSupportAnfrage':
            case 'itVpnZugang':
            case 'isisSupportAnfrage':
            case 'isisStartkennwort':
            case 'preysSupportAnfrage':
            case 'presysDebitorAktivieren':
            case 'presysPasswort':
            case 'presysTestzugang':
            case 'teampointSupportAnfrage':
                $supportFormTopicPassedToView = $supportFormTopic;
                $errorMessage = '';
                break;
            case 'error':
            default:
                $supportFormTopicPassedToView = 'error';
                $errorMessage = 'Ihrer Anfrage konnte kein Formular zugeordnet werden. Bitte gehen Sie zurück zur letzten TeamPoint-Seite und versuchen Sie es nochmals.<br />Sollte des Problem immer noch bestehen, wenden Sie sich bitte an <a href="mailto:technik@teampoint.info">technik@teampoint.info</a>.';
                break;
        }
        $this->view->assign('topic', $supportFormTopicPassedToView);
        if ($errorMessage) {
            $this->view->assign('error', $errorMessage);
        }
        $this->view->assign('fe_user', $GLOBALS['TSFE']->fe_user->user);
    }
开发者ID:cyberelk,项目名称:jhe_supportform,代码行数:50,代码来源:FormController.php


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