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


PHP getWebPath函数代码示例

本文整理汇总了PHP中getWebPath函数的典型用法代码示例。如果您正苦于以下问题:PHP getWebPath函数的具体用法?PHP getWebPath怎么用?PHP getWebPath使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: smarty_function_sugar_getwebpath

/**
 * Smarty {sugar_include} function plugin
 *
 * Type:     function<br>
 * Name:     sugar_include<br>
 * Purpose:  Handles rendering the global file includes from the metadata files defined
 *           in templateMeta=>includes.
 * 
 * @author Collin Lee {clee@sugarcrm.com}
 * @param array
 * @param Smarty
 */
function smarty_function_sugar_getwebpath($params, &$smarty)
{
    if (!isset($params['file'])) {
        $smarty->trigger_error($GLOBALS['app_strings']['ERR_MISSING_REQUIRED_FIELDS'] . 'file');
    }
    return getWebPath($params['file']);
}
开发者ID:MexinaD,项目名称:SuiteCRM,代码行数:19,代码来源:function.sugar_getwebpath.php

示例2: handler_init

 /**
  * Initialize the skin.
  * 
  * @param ETController $sender The page controller.
  * @return void
  */
 public function handler_init($sender)
 {
     $sender->addCSSFile((C("esoTalk.https") ? "https" : "http") . "://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700");
     $sender->addCSSFile("core/skin/base.css", true);
     $sender->addCSSFile($this->getResource("styles.css"), true);
     // If we're viewing from a mobile browser, add the mobile CSS and change the master view.
     if ($isMobile = isMobileBrowser()) {
         $sender->addCSSFile($this->getResource("mobile.css"), true);
         $sender->masterView = "mobile.master";
         $sender->addToHead("<meta name='viewport' content='width=device-width; initial-scale=1.0; maximum-scale=1.0;'>");
     }
     // If custom colors have been set in this skin's settings, add some CSS to the page.
     $styles = array();
     // If a custom header color has been set...
     if ($c = C("skin.Default.headerColor")) {
         $styles[] = "#hdr {background-color:{$c}}";
         // If the header color is in the top half of the lightness spectrum, add the "lightHdr" class to the body.
         $rgb = colorUnpack($c, true);
         $hsl = rgb2hsl($rgb);
         if ($hsl[2] >= 0.5) {
             $sender->bodyClass .= " lightHdr";
         }
     }
     // If a custom body color has been set...
     if ($c = C("skin.Default.bodyColor")) {
         $styles[] = "body, .scrubberMore {background-color:{$c} !important}";
         // If the body color is in the bottom half of the lightness spectrum, add the "darkBody" class to the body.
         $rgb = colorUnpack($c, true);
         $hsl = rgb2hsl($rgb);
         if ($hsl[2] < 0.5) {
             $sender->bodyClass .= " darkBody";
         }
         // Slightly darken the body color and set it as the border color for the body content area.
         $hsl[2] = max(0, $hsl[2] - 0.1);
         $hsl[1] = min($hsl[1], 0.5);
         $b = colorPack(hsl2rgb($hsl), true);
         $styles[] = "#body-content {border-color:{$b}}";
     }
     // If a custom body background image has been set...
     if ($img = C("skin.Default.bodyImage") and !$isMobile) {
         $styles[] = "body {background-image:url(" . getWebPath($img) . "); background-position:top center; background-attachment:fixed}";
     }
     // Do we want this background image to not repeat?
     if ($img and C("skin.Default.noRepeat")) {
         $styles[] = "body {background-repeat:no-repeat}";
     }
     // If we have any custom styles at all, add them to the page head.
     if (count($styles)) {
         $sender->addToHead("<style type='text/css'>\n" . implode("\n", $styles) . "\n</style>");
     }
 }
开发者ID:AlexandrST,项目名称:esoTalk,代码行数:57,代码来源:skin.php

示例3: handler_init

 /**
  * Initialize the skin.
  * 
  * @param ETController $sender The page controller.
  * @return void
  */
 public function handler_init($sender)
 {
     $sender->addToHead("<link rel='shortcut icon' href='" . getWebPath($this->resource("favicon.ico")) . "'>");
     $sender->addCSSFile((C("esoTalk.https") ? "https" : "http") . "://fonts.googleapis.com/css?family=Open+Sans:400,600|Roboto|TitilliumWeb");
     $sender->addCSSFile("core/skin/base.css", true);
     $sender->addCSSFile("core/skin/font-awesome.css", true);
     $sender->addCSSFile($this->resource("styles.css"), true);
     // If we're viewing from a mobile browser, add the mobile CSS and change the master view.
     if ($isMobile = isMobileBrowser()) {
         $sender->addCSSFile($this->resource("mobile.css"), true);
         $sender->masterView = "mobile.master";
         $sender->addToHead("<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0'>");
     }
     $sender->addCSSFile("config/colors.css", true);
     if (!C("skin.Doragon.primaryColor")) {
         $this->writeColors("#364159");
     }
 }
开发者ID:ZerGabriel,项目名称:Doragon-Skin,代码行数:24,代码来源:skin.php

示例4: smarty_function_logikscripts

/**
 * Smarty plugin
 *
 * @package    Smarty
 * @subpackage PluginsFunction
 * @author		Bismay Kumar Mohaptra
 */
function smarty_function_logikscripts($params)
{
    include_once ROOT . API_FOLDER . "scripts.php";
    $s = "";
    $bg = getConfig("PAGE_BACKGROUND");
    if (strlen($bg) > 0) {
        if (substr($bg, 0, 7) == "http://" || substr($bg, 0, 8) == "https://") {
            $s = "background: url({$bg}) repeat;";
            $s = "body { {$s} }";
        } elseif (file_exists($bg)) {
            $bg = getWebPath($bg);
            $s = "background: url({$bg}) repeat;";
            $s = "body { {$s} }";
        } else {
            $s = "background: url(" . loadMedia($bg) . ") repeat;";
            $s = "body { {$s} }";
        }
    }
    if (strlen($s) > 0) {
        $s = "<style>{$s}</style>";
    }
    echo $s;
}
开发者ID:kshyana,项目名称:Logiks-Core,代码行数:30,代码来源:function.logikscripts.php

示例5: URL

</span></li>
<li class='sep'></li>
<li><a href='<?php 
        echo URL("admin/languages/uninstall/{$k}?token=" . ET::$session->token);
        ?>
'><?php 
        echo T("Uninstall");
        ?>
</a></li>
</ul>

<?php 
        if (file_exists(PATH_LANGUAGES . "/{$k}/icon.png")) {
            ?>
<img src='<?php 
            echo getWebPath(PATH_LANGUAGES . "/{$k}/icon.png");
            ?>
' alt=''/><?php 
        }
        ?>
<strong><?php 
        echo $language["name"];
        ?>
</strong>
<small class='version'><?php 
        echo $language["version"];
        ?>
</small>
<small class='description'><?php 
        echo $language["description"];
        ?>
开发者ID:19eighties,项目名称:esoTalk,代码行数:31,代码来源:languages.php

示例6: URL

/**
 * Construct a URL, given a request path.
 *
 * Constructs a relative or absolute URL which can be used to link
 * to a page in esoTalk, according to the format specified by C("esoTalk.urls").
 *
 * @param string $url The request path (eg. conversations/all). May include a query string/hash.
 * @param bool $absolute Whether or not to return an absolute URL.
 * @return string
 *
 * @package esoTalk
 */
function URL($url = "", $absolute = false)
{
    if (preg_match('/^(https?\\:)?\\/\\//', $url)) {
        return $url;
    }
    // Strip off the hash.
    $hash = strstr($url, "#");
    if ($hash) {
        $url = substr($url, 0, -strlen($hash));
    }
    // Strip off the query string.
    $query = strstr($url, "?");
    if ($query) {
        $url = substr($url, 0, -strlen($query));
    }
    // If we don't have nice urls, use ?p=controller/method/argument instead.
    if (!C("esoTalk.urls.friendly") and $url) {
        $link = "?p=" . $url;
        if ($query) {
            $query[0] = "&";
        }
    } else {
        $link = $url;
    }
    // Re-add the query string and has to the URL.
    $link .= $query . $hash;
    // If we're not using mod_rewrite, we need to prepend "index.php/" to the link.
    if (C("esoTalk.urls.friendly") and !C("esoTalk.urls.rewrite")) {
        $link = "index.php/{$link}";
    }
    return $absolute ? rtrim(C("esoTalk.baseURL"), "/") . "/" . $link : getWebPath($link);
}
开发者ID:xiaolvmu,项目名称:Techllage,代码行数:44,代码来源:functions.general.php

示例7: avatar

 /**
  * Return a HTML element to display a member's avatar.
  *
  * @param array $member An array of the member's details. (memberId and avatarFormat are required in this implementation.)
  * @param string $className CSS class names to apply to the avatar.
  *
  * @package esoTalk
  */
 function avatar($member = array(), $className = "")
 {
     // Construct the avatar path from the provided information.
     if (!empty($member["memberId"]) and !empty($member["avatarFormat"])) {
         $file = "uploads/avatars/{$member["memberId"]}.{$member["avatarFormat"]}";
         $url = getWebPath($file);
         return "<img src='{$url}' alt='' class='avatar {$className}'/>";
     }
     // Default to an avatar with the first letter of the member's name.
     return "<span class='avatar {$className}'>" . (!empty($member["username"]) ? strtoupper($member["username"][0]) : "&nbsp;") . "</span>";
 }
开发者ID:19eighties,项目名称:esoTalk,代码行数:19,代码来源:functions.render.php

示例8: die

 * 
 * This program is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Affero General Public License version 3 as published by the
 * Free Software Foundation with the addition of the following permission added
 * to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
 * IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
 * OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
 * 
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE.  See the GNU Affero General Public License for more
 * details.
 * 
 * You should have received a copy of the GNU Affero General Public License along with
 * this program; if not, see http://www.gnu.org/licenses or write to the Free
 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 * 02110-1301 USA.
 * 
 * The interactive user interfaces in modified source and object code versions
 * of this program must display Appropriate Legal Notices, as required under
 * Section 5 of the GNU Affero General Public License version 3.
 * 
 * Contributor(s): www.synolia.com - sugar@synolia.com
 * You can contact SYNOLIA at 51 avenue Jean Jaures 69007 - LYON FRANCE
 * or at email address contact@synolia.com.
 ********************************************************************************/
if (!defined('sugarEntry') || !sugarEntry) {
    die('Not A Valid Entry Point');
}
$connector_strings = array('LBL_LICENSING_INFO' => '<table border="0" cellspacing="1"><tr><td valign="top" width="35%" class="dataLabel"><image src="' . getWebPath('modules/Connectors/connectors/sources/ext/soap/hoovers/images/hooversLogo.gif') . '" border="0"></td><td width="65%" valign="top" class="dataLabel">' . 'Hoovers&#169; fournit des données à jour gratuitement sur les sociétés pour les utilisateurs des produits SugarCRM. Pour avoir plus d\'information et de rapports sur les sociétés, et autres établissements aller sur <a href="http://www.hoovers.com" target="_blank">http://www.hoovers.com</a>.</td></tr></table>', 'LBL_SEARCH_FIELDS_INFO' => 'Les champs supportés par l&#39;API Hoovers sont : Nom de la société, Ville, Etat, Pays et Code postal.', 'LBL_ID' => 'ID', 'LBL_NAME' => 'Nom de la société', 'LBL_DUNS' => 'DUNS', 'LBL_PARENT_DUNS' => 'DUNS Parent', 'LBL_STREET' => 'Adresse', 'LBL_ADDRESS_STREET1' => 'Adresse Rue 1', 'LBL_ADDRESS_STREET2' => 'Adresse Rue 2', 'LBL_CITY' => 'Ville', 'LBL_STATE' => 'Etat', 'LBL_COUNTRY' => 'Pays', 'LBL_ZIP' => 'Code Postal', 'LBL_FINSALES' => 'CA Annuel', 'LBL_SALES' => 'CA Annuel', 'LBL_HQPHONE' => 'Téléphone', 'LBL_TOTAL_EMPLOYEES' => 'Nombre Employés', 'LBL_PRIMARY_URL' => 'Site Web', 'LBL_DESCRIPTION' => 'Description', 'LBL_SYNOPSIS' => 'Synopsis', 'LBL_LOCATION_TYPE' => 'Type de localisation', 'LBL_COMPANY_TYPE' => 'Type de société', 'ERROR_NULL_CLIENT' => 'Impossible de créer le client SOAP pour se connecter à Hoovers. Le service doit être indisponible ou votre licence à expiré ou bien vous avez atteint la limite du nombre de requête par jour autorisée.', 'ERROR_MISSING_SOAP_LIBRARIES' => 'Erreur : Impossible de charger la librairie SOAP (SoapClient, SoapHeader).', 'hoovers_endpoint' => 'URL du Web Service', 'hoovers_wsdl' => 'URL de la WSDL', 'hoovers_api_key' => 'Clé API');
开发者ID:sha2ers,项目名称:sugarcrm-example,代码行数:30,代码来源:fr_FR.lang.php

示例9: array

 * http://www.sugarcrm.com/crm/products/sugar-enterprise-eula.html
 * By installing or using this file, You have unconditionally agreed to the
 * terms and conditions of the License, and You may not use this file except in
 * compliance with the License.  Under the terms of the license, You shall not,
 * among other things: 1) sublicense, resell, rent, lease, redistribute, assign
 * or otherwise transfer Your rights to the Software, and 2) use the Software
 * for timesharing or service bureau purposes such as hosting the Software for
 * commercial gain and/or for the benefit of a third party.  Use of the Software
 * may be subject to applicable fees and any use of the Software without first
 * paying applicable fees is strictly prohibited.  You do not have the right to
 * remove SugarCRM copyrights from the source code or user interface.
 *
 * All copies of the Covered Code must include on each user interface screen:
 *  (i) the "Powered by SugarCRM" logo and
 *  (ii) the SugarCRM copyright notice
 * in the same form as they appear in the distribution.  See full license for
 * requirements.
 *
 * Your Warranty, Limitations of liability and Indemnity are expressly stated
 * in the License.  Please refer to the License for the specific language
 * governing these rights and limitations under the License.  Portions created
 * by SugarCRM are Copyright (C) 2004-2011 SugarCRM, Inc.; All Rights Reserved.
 ********************************************************************************/
/*********************************************************************************
 * Description:  Defines the Spanish language pack for the base application.
 * $Id: es_es.lang.php,v 1.6 2011/02/08 20:36:21 aserrano Exp $
 * Source: SugarCRM 6.1.1
 * Contributor(s): Alberto Serrano (alb.serrano@gmail.com).
 ********************************************************************************/
$connector_strings = array('LBL_LICENSING_INFO' => '<table border="0" cellspacing="1"><tr><td valign="top" width="35%" class="dataLabel"><image src="' . getWebPath('modules/Connectors/connectors/sources/ext/soap/hoovers/images/hooversLogo.gif') . '" border="0"></td><td width="65%" valign="top" class="dataLabel">' . 'Hoovers&#169; provee información gratuita y actualizada sobre compañías a usuarios de productos SugarCRM.  Para obtener una información más completa así como informes sobre compañías, industrias, y ejecutivos vaya a <a href="http://www.hoovers.com" target="_blank">http://www.hoovers.com</a>.</td></tr></table>', 'LBL_ID' => 'ID', 'LBL_NAME' => 'Nombre de Empresa', 'LBL_DUNS' => 'DUNS', 'LBL_PARENT_DUNS' => 'DUNS Padre', 'LBL_STREET' => 'Calle', 'LBL_ADDRESS_STREET1' => 'Calle de Dirección1', 'LBL_ADDRESS_STREET2' => 'Calle de Dirección2', 'LBL_CITY' => 'Ciudad', 'LBL_STATE' => 'Estado/Provincia', 'LBL_COUNTRY' => 'País', 'LBL_ZIP' => 'Código Postal', 'LBL_FINSALES' => 'Volumen de Negocio Anual', 'LBL_HQPHONE' => 'Teléfono de Oficina', 'LBL_TOTAL_EMPLOYEES' => 'Nº de Empleados', 'LBL_PRIMARY_URL' => 'URL Principal', 'LBL_DESCRIPTION' => 'Descripción', 'LBL_SYNOPSIS' => 'Sinopsis', 'LBL_LOCATION_TYPE' => 'Tipo de Ubicación', 'LBL_COMPANY_TYPE' => 'Tipo de Empresa', 'ERROR_NULL_CLIENT' => 'No ha sido posible crear un SoapClient para conectarse a Hoovers.  Es posible que el servicio no esté disponible o que su clave de licencia haya caducado o haya alcanzado el límite de uso diario.', 'ERROR_MISSING_SOAP_LIBRARIES' => 'Error: No ha sido posible cargar las bibliotecas de SOAP (SoapClient, SoapHeader).', 'hoovers_endpoint' => 'URL del punto final', 'hoovers_wsdl' => 'URL WSDL', 'hoovers_api_key' => 'Clave API');
开发者ID:Studionline,项目名称:sugarcrm-spanish-language-pack,代码行数:30,代码来源:es_es.lang.php

示例10: array

 * http://www.sugarcrm.com/crm/products/sugar-enterprise-eula.html
 * By installing or using this file, You have unconditionally agreed to the
 * terms and conditions of the License, and You may not use this file except in
 * compliance with the License.  Under the terms of the license, You shall not,
 * among other things: 1) sublicense, resell, rent, lease, redistribute, assign
 * or otherwise transfer Your rights to the Software, and 2) use the Software
 * for timesharing or service bureau purposes such as hosting the Software for
 * commercial gain and/or for the benefit of a third party.  Use of the Software
 * may be subject to applicable fees and any use of the Software without first
 * paying applicable fees is strictly prohibited.  You do not have the right to
 * remove SugarCRM copyrights from the source code or user interface.
 *
 * All copies of the Covered Code must include on each user interface screen:
 *  (i) the "Powered by SugarCRM" logo and
 *  (ii) the SugarCRM copyright notice
 * in the same form as they appear in the distribution.  See full license for
 * requirements.
 *
 * Your Warranty, Limitations of liability and Indemnity are expressly stated
 * in the License.  Please refer to the License for the specific language
 * governing these rights and limitations under the License.  Portions created
 * by SugarCRM are Copyright (C) 2004-2010 SugarCRM, Inc.; All Rights Reserved.
********************************************************************************/
/*********************************************************************************
 * Description:  Defines the Spanish language pack for the base application.
 * $Id: es_es.lang.php,v 1.3 2010/08/03 11:29:12 aserrano Exp $
 * Source: SugarCRM 6.0.0
 * Contributor(s): Alberto Serrano (alb.serrano@gmail.com).
 ********************************************************************************/
$connector_strings = array('LBL_LICENSING_INFO' => '<table border="0" cellspacing="1"><tr><td valign="top" width="35%" class="dataLabel"><image src="' . getWebPath('modules/Connectors/connectors/sources/ext/rest/zoominfocompany/images/zoominfo.gif') . '" border="0"></td><td width="65%" valign="top" class="dataLabel">' . 'ZoomInfo&#169; provee extensa información sobre 45 millones de gente de negocio en unas 5 millones de compañías.  Sepa más.  <a target="_blank" href="http://www.zoominfo.com/about">http://www.zoominfo.com/about</a></td></tr></table>', 'LBL_SEARCH_FIELDS_INFO' => 'Los siguientes campos están soportados por el API de Zoominfo&#169; para Compañías: Nombre de Compañía, Ciudad, Estado/Provincia y País.', 'LBL_COMPANY_ID' => 'ID', 'LBL_COMPANY_NAME' => 'Nombre de Compañía', 'LBL_STREET' => 'Calle', 'LBL_CITY' => 'Ciudad', 'LBL_ZIP' => 'Código Postal', 'LBL_STATE' => 'Estado/Provincia', 'LBL_COUNTRY' => 'País', 'LBL_INDUSTRY' => 'Industria', 'LBL_WEBSITE' => 'Sitio Web', 'LBL_DESCRIPTION' => 'Descripción', 'LBL_PHONE' => 'Teléfono', 'LBL_COMPANY_TICKER' => 'Ticker de la Compañía', 'LBL_ZOOMINFO_COMPANY_URL' => 'URL con el Perfil de la Compañía', 'LBL_REVENUE' => 'Volumen de Negocio Anual', 'LBL_EMPLOYEES' => 'Empleados', 'company_search_url' => 'URL de Búsqueda de Compañía', 'company_detail_url' => 'URL de Detalle de Compañía', 'partner_code' => 'Código del API del Partner', 'api_key' => 'CLAVE API', 'ERROR_LBL_CONNECTION_PROBLEM' => 'Error: No ha sido posible realizar la conexión al servidor de Zoominfo - Conector para compañías.');
开发者ID:osvaldoc,项目名称:sugarcrm-spanish-language-pack-CO,代码行数:30,代码来源:es_es.lang.php

示例11: array

 * http://www.sugarcrm.com/crm/products/sugar-enterprise-eula.html
 * By installing or using this file, You have unconditionally agreed to the
 * terms and conditions of the License, and You may not use this file except in
 * compliance with the License.  Under the terms of the license, You shall not,
 * among other things: 1) sublicense, resell, rent, lease, redistribute, assign
 * or otherwise transfer Your rights to the Software, and 2) use the Software
 * for timesharing or service bureau purposes such as hosting the Software for
 * commercial gain and/or for the benefit of a third party.  Use of the Software
 * may be subject to applicable fees and any use of the Software without first
 * paying applicable fees is strictly prohibited.  You do not have the right to
 * remove SugarCRM copyrights from the source code or user interface.
 *
 * All copies of the Covered Code must include on each user interface screen:
 *  (i) the "Powered by SugarCRM" logo and
 *  (ii) the SugarCRM copyright notice
 * in the same form as they appear in the distribution.  See full license for
 * requirements.
 *
 * Your Warranty, Limitations of liability and Indemnity are expressly stated
 * in the License.  Please refer to the License for the specific language
 * governing these rights and limitations under the License.  Portions created
 * by SugarCRM are Copyright (C) 2004-2010 SugarCRM, Inc.; All Rights Reserved.
********************************************************************************/
/*********************************************************************************
 * Description:  Defines the Spanish language pack for the base application.
 * $Id: es_es.lang.php,v 1.3 2010/08/03 11:30:18 aserrano Exp $
 * Source: SugarCRM 6.0.0
 * Contributor(s): Alberto Serrano (alb.serrano@gmail.com).
 ********************************************************************************/
$connector_strings = array('LBL_LICENSING_INFO' => '<table border="0" cellspacing="1"><tr><td valign="top" width="35%" class="dataLabel"><image src="' . getWebPath('modules/Connectors/connectors/sources/ext/rest/zoominfoperson/images/zoominfo.gif') . '" border="0"></td><td width="65%" valign="top" class="dataLabel">' . 'ZoomInfo&#169; provee extensa información sobre 45 millones de gente de negocio en unas 5 millones de compañías.  Sepa más.  <a target="_blank" href="http://www.zoominfo.com/about">http://www.zoominfo.com/about</a></td></tr></table>', 'LBL_SEARCH_FIELDS_INFO' => 'Los siguientes campos están soportados por el API de Zoominfo&#169; para Personas: Nombre, Apellido y Dirección de Email.', 'LBL_ID' => 'ID', 'LBL_EMAIL' => 'Dirección de Email', 'LBL_FIRST_NAME' => 'Nombre', 'LBL_LAST_NAME' => 'Apellido', 'LBL_JOB_TITLE' => 'Puesto Laboral', 'LBL_IMAGE_URL' => 'URL de Imagen', 'LBL_SUMMARY_URL' => 'URL de Resumen', 'LBL_COMPANY_NAME' => 'Nombre de Compañía', 'LBL_ZOOMPERSON_URL' => 'URL de Persona Zoominfo', 'LBL_DIRECT_PHONE' => 'Teléfono Directo', 'LBL_COMPANY_PHONE' => 'Teléfono de Compañía', 'LBL_FAX' => 'Fax', 'LBL_CURRENT_JOB_TITLE' => 'Cargo en Trabajo Actual', 'LBL_CURRENT_JOB_START_DATE' => 'Fecha de Inicio del Trabajo Actual', 'LBL_CURRENT_JOB_COMPANY_NAME' => 'Nombre de Compañía del Trabajo Actual', 'LBL_CURRENT_JOB_COMPANY_STREET' => 'Calle de Dirección del Trabajo Actual', 'LBL_CURRENT_JOB_COMPANY_CITY' => 'Ciudad de Dirección del Trabajo Actual', 'LBL_CURRENT_JOB_COMPANY_STATE' => 'Estado/Provincia del Trabajo Actual', 'LBL_CURRENT_JOB_COMPANY_ZIP' => 'CP del Trabajo Actual', 'LBL_CURRENT_JOB_COMPANY_COUNTRY_CODE' => 'Código de País del Trabajo Actual', 'LBL_CURRENT_INDUSTRY' => 'Industria del Trabajo Actual', 'LBL_BIOGRAPHY' => 'Biografía', 'LBL_EDUCATION_SCHOOL' => 'Escuela/Universidad', 'LBL_AFFILIATION_TITLE' => 'Cargo de Trabajo de Afilicación', 'LBL_AFFILIATION_COMPANY_PHONE' => 'Teléfono de Compañía de Afiliación', 'LBL_AFFILIATION_COMPANY_NAME' => 'Nombre de Compañía de Afiliación', 'LBL_AFFILIATION_COMPANY_WEBSITE' => 'Sitio web de Compañía de Afiliación', 'person_search_url' => 'URL de Consulta de Búsqueda de Persona', 'person_detail_url' => 'URL de Consulta de Detalle de Persona', 'partner_code' => 'Código del API del Partner', 'api_key' => 'Clave API', 'ERROR_LBL_CONNECTION_PROBLEM' => 'Error: No ha sido posible realizar la conexión al servidor de Zoominfo - Conector para Personas.');
开发者ID:osvaldoc,项目名称:sugarcrm-spanish-language-pack-CO,代码行数:30,代码来源:es_es.lang.php

示例12: array

 * may be subject to applicable fees and any use of the Software without first
 * paying applicable fees is strictly prohibited.  You do not have the right to
 * remove SugarCRM copyrights from the source code or user interface.
 *
 * All copies of the Covered Code must include on each user interface screen:
 *  (i) the "Powered by SugarCRM" logo and
 *  (ii) the SugarCRM copyright notice
 * in the same form as they appear in the distribution.  See full license for
 * requirements.
 *
 * Your Warranty, Limitations of liability and Indemnity are expressly stated
 * in the License.  Please refer to the License for the specific language
 * governing these rights and limitations under the License.  Portions created
 * by SugarCRM are Copyright (C) 2004-2009 SugarCRM, Inc.; All Rights Reserved.
********************************************************************************/
/*********************************************************************************

* Description:  Defines the English language pack for the base application.
* Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.
* All Rights Reserved.
* Contributor(s): ______________________________________..
********************************************************************************/
/*********************************************************************************
 * pl_pl.lang.ext.php,v for SugarCRM 4.5.1 -->>
 * Translator: Krzysztof Morawski
 * All Rights Reserved.
 * Any bugs report welcome: krzysiek<at>kmmgroup<dot>pl
 * Contributor(s): ______________________________________..
 ********************************************************************************/
$connector_strings = array('LBL_LICENSING_INFO' => '<table border="0" cellspacing="1"><tr><td valign="top" width="35%" class="dataLabel"><image src="' . getWebPath('modules/Connectors/connectors/sources/ext/rest/zoominfoperson/images/zoominfo.gif') . '" border="0"></td><td width="65%" valign="top" class="dataLabel">' . 'ZoomInfo&#169; dostarcza sporo informacji o ponad 45 milionach zatrudnionych w ponad 5 milionach przedsiębiorstw. Zobacz więcej na  <a target="_blank" href="http://www.zoominfo.com/about">http://www.zoominfo.com/about</a></td></tr></table>', 'LBL_SEARCH_FIELDS_INFO' => 'Następujące pola są wspierane przez  Zoominfo&#169 Osoba; API: Imię, Nazwisko i adres email.', 'LBL_ID' => 'ID', 'LBL_EMAIL' => 'Adres email', 'LBL_FIRST_NAME' => 'Imię', 'LBL_LAST_NAME' => 'Nazwisko', 'LBL_JOB_TITLE' => 'Stanowisko', 'LBL_IMAGE_URL' => 'Adres URL zdjęcia', 'LBL_SUMMARY_URL' => 'Adres URL podsumowania', 'LBL_COMPANY_NAME' => 'Nazwa firmy', 'url' => 'Adres URL', 'api_key' => 'Klucz API', 'ERROR_LBL_CONNECTION_PROBLEM' => 'Błąd: Nie można połączyć się z serwerem Zoominfo - Company connector.');
开发者ID:rumpelnicki,项目名称:SugarCRM-polish-translation,代码行数:30,代码来源:pl_pl.lang.php

示例13: getJSPath

$captcha_privatekey = "";
$captcha_publickey = "";
$captcha_js = "";
$Captcha = "";
if (isset($admin->settings['captcha_on']) && $admin->settings['captcha_on'] == '1' && !empty($admin->settings['captcha_private_key']) && !empty($admin->settings['captcha_public_key'])) {
    $add_captcha = 1;
    $captcha_privatekey = $admin->settings['captcha_private_key'];
    $captcha_publickey = $admin->settings['captcha_public_key'];
    $captcha_js .= "<script type='text/javascript' src='" . getJSPath('include/javascript/sugar_grp1_yui.js') . "'></script><script type='text/javascript' src='" . getJSPath('include/javascript/sugar_grp_yui2.js') . "'></script>\n\t\t<script type='text/javascript' src='http://api.recaptcha.net/js/recaptcha_ajax.js'></script>\n\t\t<script> //var oldFormAction = document.getElementById('form').action; //save old action\n\t\tfunction initCaptcha(){\n\t\t\t\tRecaptcha.create('{$captcha_publickey}' ,'captchaImage',{theme:'custom',callback:Recaptcha.focus_response_field});\n\t\t\t\t}\n\n\t\twindow.onload=initCaptcha;\n\n\t\tvar handleFailure=handleSuccess;\n\t\tvar handleSuccess = function(o){\n\t\t\tif(o.responseText!==undefined && o.responseText =='Success'){\n\t\t\t\t\n\t\t\t\tdocument.getElementById('user_password').value=document.getElementById('new_password').value;\n\t\t\t\tdocument.getElementById('ChangePasswordForm').submit();\n\t\t\t}\n\t\t\telse{\n\t\t\t\talert(o.responseText);\n\t\t\t\tRecaptcha.reload();\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tvar callback2 =\n\t\t{\n\t\t  success:handleSuccess,\n\t\t  failure: handleFailure\n\t\t};\n\t\tfunction validateCaptchaAndSubmit(){\n\t\t\t\tvar form = document.getElementById('form');\n\t\t\t\tvar url = '&to_pdf=1&module=Home&action=index&entryPoint=Changenewpassword&recaptcha_challenge_field='+Recaptcha.get_challenge()+'&recaptcha_response_field='+ Recaptcha.get_response();\n\t\t\t\tYAHOO.util.Connect.asyncRequest('POST','index.php',callback2,url);\n\t\t\t\t\n\t\t}\n\t\t\n\t</script>";
    $Captcha .= $captcha_js;
    $Captcha .= "<tr>\n\t\t\t\t\t<td scope='row' width='20%'>" . $mod_strings['LBL_RECAPTCHA_INSTRUCTION_OPPOSITE'] . ":</td>\n\t\t            <td width='70%'><input type='text' size='26' id='recaptcha_response_field' value=''></td>\n\t\t        \t<th rowsapn='2' class='x-sqs-list' ><div  id='recaptcha_image'></div></th>\n\t\t\t    </tr>\n\t\t\t    \n\t\t\t    <tr>\n\t\t         \t<td colspan='2'>\n\t\t         \t\t<a href='javascript:Recaptcha.reload()'> " . $mod_strings['LBL_RECAPTCHA_NEW_CAPTCHA'] . "</a>&nbsp;&nbsp;\n\t\t         \t\t<a class='recaptcha_only_if_image' href='javascript:Recaptcha.switch_type('audio')'>" . $mod_strings['LBL_RECAPTCHA_SOUND'] . "</a>\n\t\t         \t\t<a class='recaptcha_only_if_audio' href='javascript:Recaptcha.switch_type('image')'>" . $mod_strings['LBL_RECAPTCHA_IMAGE'] . "</a>\n\t\t         \t</td>\n\t\t        </tr>";
} else {
    echo "<script>function validateCaptchaAndSubmit(){document.getElementById('user_password').value=document.getElementById('new_password').value;document.getElementById('ChangePasswordForm').submit();}</script>";
}
$pwd_settings = $GLOBALS['sugar_config']['passwordsetting'];
$sugar_smarty->assign('sugar_md', getWebPath('include/images/sugar_md_open.png'));
$sugar_smarty->assign("MOD", $mod_strings);
$sugar_smarty->assign("CAPTCHA", $Captcha);
$sugar_smarty->assign("IS_ADMIN", '1');
$sugar_smarty->assign("ENTRY_POINT", 'Changenewpassword');
$sugar_smarty->assign('return_action', 'login');
$sugar_smarty->assign("APP", $app_strings);
$sugar_smarty->assign("INSTRUCTION", $app_strings['NTC_LOGIN_MESSAGE']);
$sugar_smarty->assign("USERNAME_FIELD", '<td scope="row" width="30%">' . $mod_strings['LBL_USER_NAME'] . ':</td><td width="70%"><input type="text" size="20" tabindex="1" id="user_name" name="user_name"  value=""</td>');
$sugar_smarty->assign('PWDSETTINGS', $GLOBALS['sugar_config']['passwordsetting']);
$rules = "'','',''";
$sugar_smarty->assign('SUBMIT_BUTTON', '<input title="' . $mod_strings['LBL_LOGIN_BUTTON_TITLE'] . '" accessKey="' . $mod_strings['LBL_LOGIN_BUTTON_TITLE'] . '" class="button" ' . 'onclick="if(!set_password(form,newrules(' . $rules . '))) return false; validateCaptchaAndSubmit();" ' . 'type="button" tabindex="3" id="login_button" name="Login" value="' . $mod_strings['LBL_LOGIN_BUTTON_LABEL'] . '" /><br>&nbsp');
if (!empty($_REQUEST['guid'])) {
    $sugar_smarty->assign("GUID", $_REQUEST['guid']);
}
$sugar_smarty->display('modules/Users/Changenewpassword.tpl');
开发者ID:aldridged,项目名称:gtg-sugar,代码行数:31,代码来源:Changenewpassword.php

示例14: avatar

 /**
  * Return an image tag containing a member's avatar.
  *
  * @param int $memberId The member's ID.
  * @param string $avatarFormat The format of the member's avatar (as stored in the database - jpg|gif|png.)
  * @param string $className CSS class names to apply to the avatar.
  */
 function avatar($memberId = 0, $avatarFormat = "", $className = "")
 {
     // Otherwise, construct the avatar path from the provided information.
     if ($memberId and $avatarFormat) {
         $file = "uploads/avatars/{$memberId}.{$avatarFormat}";
         $url = getWebPath($file);
     }
     // If the user doesn't have an avatar, return the skin's default one.
     if (!$avatarFormat) {
         $url = getResource("skins/base/avatar.png");
     }
     return "<img src='{$url}' alt='' class='avatar {$className}'/>";
 }
开发者ID:revskill,项目名称:esoTalk,代码行数:20,代码来源:functions.render.php

示例15: test_getWebPath

 public function test_getWebPath()
 {
     $result = getWebPath(__FILE__);
     $expected = SiteLocation . str_replace(ROOT, "", dirname(__FILE__) . "/" . basename(__FILE__));
     $this->assertEquals($expected, $result);
 }
开发者ID:logiks,项目名称:logiks-core,代码行数:6,代码来源:test_helpers_pathfuncs.php


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