本文整理汇总了PHP中Environment::getImagesURL方法的典型用法代码示例。如果您正苦于以下问题:PHP Environment::getImagesURL方法的具体用法?PHP Environment::getImagesURL怎么用?PHP Environment::getImagesURL使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Environment
的用法示例。
在下文中一共展示了Environment::getImagesURL方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: elseif
Redirect::Page(URLBuilder::getURL(NULL, Environment::GetBaseURL() . 'wap/wap_login.php'));
} elseif (isset($enable_iphone) and $enable_iphone == TRUE) {
Redirect::Page(URLBuilder::getURL(NULL, Environment::GetBaseURL() . 'iphone/login/login.php'));
} else {
Redirect::Page(URLBuilder::getURL(NULL, Environment::GetBaseURL() . 'Login.php'));
}
//exit;
}
}
require_once Environment::getBasePath() . 'classes' . DIRECTORY_SEPARATOR . 'smarty' . DIRECTORY_SEPARATOR . 'libs' . DIRECTORY_SEPARATOR . 'Smarty.class.php';
$smarty = new Smarty();
$smarty->compile_check = TRUE;
$smarty->template_dir = Environment::getTemplateDir();
$smarty->compile_dir = Environment::getTemplateCompileDir();
$smarty->assign('css_file', 'global.css.php');
$smarty->assign('IMAGES_URL', Environment::getImagesURL());
$smarty->assign('BASE_PATH', Environment::getBasePath());
$smarty->assign('APPLICATION_NAME', APPLICATION_NAME);
$smarty->assign('APPLICATION_VERSION', APPLICATION_VERSION);
$smarty->assign('DEPLOYMENT_ON_DEMAND', DEPLOYMENT_ON_DEMAND);
if (isset($cron_out_of_date)) {
$smarty->assign('CRON_OUT_OF_DATE', $cron_out_of_date);
}
if (isset($db_time_zone_error)) {
$smarty->assign('DB_TIME_ZONE_ERROR', $db_time_zone_error);
}
if (isset($config_vars['other']['installer_enabled'])) {
$smarty->assign('INSTALLER_ENABLED', $config_vars['other']['installer_enabled']);
}
if (isset($system_settings['system_version']) and DEPLOYMENT_ON_DEMAND == FALSE and APPLICATION_VERSION != $system_settings['system_version']) {
$smarty->assign('VERSION_MISMATCH', TRUE);
示例2: function
TIMETREX.searchForm = function() {
var last_selected_tab = null;
var tabs = new Array();
tabs['default'] = [ 'basic_search', 'adv_search', 'saved_search' ];
return {
toggleTabBlockImage: function( dir ) {
if ( document.getElementById('tab_hide_img') ) {
if ( dir == 'up' ) {
document.getElementById('tab_hide_img').src = '<?php
echo Environment::getImagesURL();
?>
nav_top_sm.gif';
} else {
document.getElementById('tab_hide_img').src = '<?php
echo Environment::getImagesURL();
?>
nav_bottom_sm.gif';
}
}
},
toggleTabBlock: function( tabObjectID, contentObjectID, groupID ) {
if ( groupID == null ) {
groupID = 'default';
}
if ( last_selected_tab == null ) {
last_selected_tab = 'basic_search'
}
if ( tabObjectID == null ) {
示例3: getPreLoginData
function getPreLoginData($api = NULL)
{
global $config_vars;
return array('primary_company_id' => PRIMARY_COMPANY_ID, 'base_url' => Environment::getBaseURL(), 'api_url' => Environment::getAPIURL($api), 'api_base_url' => Environment::getAPIBaseURL($api), 'api_json_url' => Environment::getAPIURL('json'), 'images_url' => Environment::getImagesURL(), 'powered_by_logo_enabled' => $this->isPoweredByLogoEnabled(), 'product_edition' => $this->getTTProductEdition(FALSE), 'product_edition_name' => $this->getTTProductEdition(TRUE), 'deployment_on_demand' => $this->getDeploymentOnDemand(), 'web_session_expire' => (isset($config_vars['other']['web_session_expire']) and $config_vars['other']['web_session_expire'] != '') ? (bool) $config_vars['other']['web_session_expire'] : FALSE, 'analytics_enabled' => $this->isAnalyticsEnabled(), 'registration_key' => $this->getRegistrationKey(), 'http_host' => $this->getHTTPHost(), 'application_version' => $this->getApplicationVersion(), 'is_logged_in' => $this->isLoggedIn(), 'language_options' => Misc::addSortPrefix(TTi18n::getLanguageArray()), 'language' => TTi18n::getLanguageFromLocale(TTi18n::getLocaleCookie()));
}
示例4: getImagesURL
function getImagesURL()
{
return Environment::getImagesURL();
}
示例5: smarty_function_htmlReportFilter
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
function smarty_function_htmlReportFilter($params, &$smarty)
{
require_once $smarty->_get_plugin_filepath('function', 'html_options');
require_once $smarty->_get_plugin_filepath('function', 'select_size');
$filter_data = $params['filter_data'];
$label = $params['label'];
$colspan = $params['colspan'];
$date_type = $params['date_type'];
$order = $params['order'];
$display_name = TTi18n::gettext($params['display_name']);
$display_plural_name = TTi18n::gettext($params['display_plural_name']);
//Defines type of filter criteria so we can customize it more.
//Possible types: job
$type = $params['type'];
$src_select_box_size = smarty_function_select_size(array('array' => $filter_data['src_' . $label . '_options'], 'min' => 2), $smarty);
$select_box_size = smarty_function_select_size(array('array' => $filter_data['selected_' . $label . '_options'], 'min' => 2), $smarty);
if ($src_select_box_size > $select_box_size) {
$max_select_box_size = $src_select_box_size;
} else {
$max_select_box_size = $select_box_size;
}
if ($max_select_box_size <= 2) {
$max_select_box_size = 2;
}
if ($colspan == '') {
$colspan = 2;
}
$type_src_html = NULL;
$type_dst_html = NULL;
if ($type == 'job') {
$type_src_html = '<b>Code:</b> <input type="text" size="4" id="src_quick_job_id_' . $label . '" onKeyUp="TIMETREX.punch.selectJobOption( \'src_quick_job_id_' . $label . '\', \'src_filter_' . $label . '\' );">';
$type_dst_html = '<b>Code:</b> <input type="text" size="4" id="quick_job_id_' . $label . '" onKeyUp="TIMETREX.punch.selectJobOption( \'quick_job_id_' . $label . '\', \'filter_' . $label . '\' );">';
}
$order_html = NULL;
if ($order == TRUE) {
$order_html = '<br><br><a href="javascript:select_item_move_up(document.getElementById(\'filter_' . $label . '\') );"><img style="vertical-align: middle" src="' . Environment::getImagesURL() . 'nav_up.gif"></a><a href="javascript:select_item_move_down(document.getElementById(\'filter_' . $label . '\') );"><img style="vertical-align: middle" src="' . Environment::getImagesURL() . 'nav_down.gif"></a>';
}
$retval = '<tr>';
if ($date_type == TRUE) {
$colspan = 1;
if ($filter_data['date_type'] == $label . '_ids') {
$date_type_selected = 'checked';
} else {
$date_type_selected = NULL;
}
$retval .= '<td class="cellReportRadioColumn">
<input type="radio" class="checkbox" id="date_type_' . $label . '" name="filter_data[date_type]" value="' . $label . '_ids" onClick="showReportDateType();" ' . $date_type_selected . '>
</td>
';
}
$retval .= '
<td colspan="' . $colspan . '" class="cellLeftEditTableHeader" nowrap>
<b>' . $display_name . ':</b><a href="javascript:toggleReportCriteria(\'filter_' . $label . '\');"><img style="vertical-align: middle" id="filter_' . $label . '_img" src="' . Environment::getImagesURL() . 'nav_bottom_sm.gif"></a>
</td>
<td id="filter_' . $label . '_right_cell" class="cellRightEditTableHeader">
<div id="filter_' . $label . '_on" style="display:none">
<table class="editTable">
<tr class="tblHeader">
<td>
' . sprintf(TTi18n::gettext('UnSelected %1$s'), $display_plural_name) . '
</td>
<td>
<br>
</td>
<td>
' . sprintf(TTi18n::gettext('Selected %1$s'), $display_plural_name) . '
</td>
</tr>
<tr>
<td class="cellRightEditTable" width="50%" align="center">
' . $type_src_html . '
<input type="button" name="Select All" value="' . TTi18n::gettext('Select All') . '" onClick="selectAll(document.getElementById(\'src_filter_' . $label . '\'))">
<input type="button" name="Un-Select" value="' . TTi18n::gettext('Un-Select All') . '" onClick="unselectAll(document.getElementById(\'src_filter_' . $label . '\'))">
<br>
<select id="src_filter_' . $label . '" style="width:90%;margin:5px 0 5px 0;" size="' . $src_select_box_size . '" multiple>
' . smarty_function_html_options(array('options' => $filter_data['src_' . $label . '_options']), $smarty) . '
</select>
</td>
<td class="cellRightEditTable" style="vertical-align: middle;" width="1">
<a href="javascript:moveReportCriteriaItems(\'src_filter_' . $label . '\', \'filter_' . $label . '\', ' . $max_select_box_size . ', true, \'value\' );"><img style="vertical-align: middle" src="' . Environment::getImagesURL() . 'nav_last.gif"></a>
<a href="javascript:moveReportCriteriaItems(\'filter_' . $label . '\', \'src_filter_' . $label . '\', ' . $max_select_box_size . ', true, \'value\' );"><img style="vertical-align: middle" src="' . Environment::getImagesURL() . 'nav_first.gif"></a>
' . $order_html . '
</td>
<td class="cellRightEditTable" align="center">
' . $type_dst_html . '
<input type="button" name="Select All" value="' . TTi18n::gettext('Select All') . '" onClick="selectAll(document.getElementById(\'filter_' . $label . '\'))">
<input type="button" name="Un-Select" value="' . TTi18n::gettext('Un-Select All') . '" onClick="unselectAll(document.getElementById(\'filter_' . $label . '\'))">
<br>
<select name="filter_data[' . $label . '_ids][]" id="filter_' . $label . '" style="width:90%;margin:5px 0 5px 0;" size="' . $select_box_size . '" multiple>
' . smarty_function_html_options(array('options' => $filter_data['selected_' . $label . '_options'], 'selected' => $filter_data['selected_' . $label . '_options']), $smarty) . '
</select>
</td>
</tr>
</table>
</div>
//.........这里部分代码省略.........