本文整理汇总了PHP中vmCommonHTML::linkTag方法的典型用法代码示例。如果您正苦于以下问题:PHP vmCommonHTML::linkTag方法的具体用法?PHP vmCommonHTML::linkTag怎么用?PHP vmCommonHTML::linkTag使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类vmCommonHTML
的用法示例。
在下文中一共展示了vmCommonHTML::linkTag方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: vmCategoryTree
}
echo vmCommonHTML::scriptTag('', 'var ctThemeXPBase = "' . $js_src . '/ThemeXP/";');
if ($jscook_type == "tree") {
if ($jscookTree_style == "ThemeXP") {
$jscook_tree = "ctThemeXP1";
}
if ($jscookTree_style == "ThemeNavy") {
$jscook_tree = "ctThemeNavy";
}
echo vmCommonHTML::scriptTag($js_src . '/JSCookTree.js');
echo vmCommonHTML::linkTag($js_src . "/{$jscookTree_style}/theme.css");
echo vmCommonHTML::scriptTag($js_src . "/{$jscookTree_style}/theme.js");
$vm_jscook = new vmCategoryTree();
} else {
echo vmCommonHTML::scriptTag($mosConfig_live_site . '/includes/js/JSCookMenu.js');
echo vmCommonHTML::linkTag($mosConfig_live_site . "/includes/js/{$jscookMenu_style}/theme.css");
echo vmCommonHTML::scriptTag($mosConfig_live_site . "/includes/js/{$jscookMenu_style}/theme.js");
$vm_jscook = new vmCategoryMenu();
}
// create a unique tree identifier, in case multiple trees are used
// (max one per module)
$varname = "JSCook_" . uniqid($jscook_type . "_");
$menu_htmlcode = "<div align=\"left\" class=\"mainlevel\" id=\"div_{$varname}\"></div>\r\n<script type=\"text/javascript\"><!--\r\nvar {$varname} = \r\n[\r\n";
$vm_jscook->traverse_tree_down($menu_htmlcode);
$menu_htmlcode .= "];\r\n";
if ($jscook_type == "tree") {
$menu_htmlcode .= "var treeindex = ctDraw ('div_{$varname}', {$varname}, {$jscook_tree}, '{$jscookTree_style}', 0, 0);";
} else {
$menu_htmlcode .= "cmDraw ('div_{$varname}', {$varname}, '{$menu_orientation}', cm{$jscookMenu_style}, '{$jscookMenu_style}');";
}
$menu_htmlcode .= "\r\n--></script>\n";
示例2: vmGet
$formObj->startForm();
$discount_id = vmGet($_REQUEST, 'discount_id', null);
$option = empty($option) ? vmGet($_REQUEST, 'option', 'com_virtuemart') : $option;
if (!empty($discount_id)) {
$q = "SELECT * FROM #__{vm}_product_discount WHERE discount_id='{$discount_id}'";
$db->query($q);
$db->next_record();
}
echo vmCommonHTML::scriptTag($mosConfig_live_site . '/includes/js/calendar/calendar.js');
if (class_exists('JConfig')) {
// in Joomla 1.5, the name of calendar lang file is changed...
echo vmCommonHTML::scriptTag($mosConfig_live_site . '/includes/js/calendar/lang/calendar-en-GB.js');
} else {
echo vmCommonHTML::scriptTag($mosConfig_live_site . '/includes/js/calendar/lang/calendar-en.js');
}
echo vmCommonHTML::linkTag($mosConfig_live_site . '/includes/js/calendar/calendar-mos.css');
?>
<table class="adminform">
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td width="24%"><div align="right"><?php
echo $VM_LANG->_('PHPSHOP_PRODUCT_DISCOUNT_AMOUNT');
?>
:</div></td>
<td width="76%">
<input type="text" class="inputbox" name="amount" value="<?php
$db->sp("amount");
示例3: listUserFields
//.........这里部分代码省略.........
$ps_html->list_user_title($db->sf('title'), "id=\"title_field\"");
break;
case 'country':
if (in_array('state', $allfields)) {
$onchange = "onchange=\"changeStateList();\"";
} else {
$onchange = "";
}
$ps_html->list_country("country", $db->sf('country'), "id=\"country_field\" {$onchange}");
break;
case 'state':
echo $ps_html->dynamic_state_lists("country", "state", $db->sf('country'), $db->sf('state'));
echo "<noscript>\n";
$ps_html->list_states("state", $db->sf('state'), "", "id=\"state_field\"");
echo "</noscript>\n";
break;
case 'agreed':
echo '<input type="checkbox" id="agreed_field" name="agreed" value="1" class="inputbox" />';
break;
case 'password':
case 'password2':
echo '<input type="password" id="' . $field->name . '_field" name="' . $field->name . '" size="30" class="inputbox" />' . "\n";
break;
default:
switch ($field->type) {
case 'date':
echo vmCommonHTML::scriptTag($mosConfig_live_site . '/includes/js/calendar/calendar.js');
if (vmIsJoomla('1.5', '>=')) {
// in Joomla 1.5, the name of calendar lang file is changed...
echo vmCommonHTML::scriptTag($mosConfig_live_site . '/includes/js/calendar/lang/calendar-en-GB.js');
} else {
echo vmCommonHTML::scriptTag($mosConfig_live_site . '/includes/js/calendar/lang/calendar-en.js');
}
echo vmCommonHTML::linkTag($mosConfig_live_site . '/includes/js/calendar/calendar-mos.css');
$maxlength = $field->maxlength ? 'maxlength="' . $field->maxlength . '"' : '';
echo '<input type="text" id="' . $field->name . '_field" name="' . $field->name . '" size="' . $field->size . '" value="' . ($db->sf($field->name) ? $db->sf($field->name) : '') . '" class="inputbox" ' . $maxlength . $readonly . ' />' . "\n";
echo '<input name="reset" type="reset" class="button" onclick="return showCalendar(\'' . $field->name . '_field\', \'y-mm-dd\');" value="..." />';
break;
case 'text':
case 'emailaddress':
case 'webaddress':
case 'euvatid':
$maxlength = $field->maxlength ? 'maxlength="' . $field->maxlength . '"' : '';
echo '<input type="text" id="' . $field->name . '_field" name="' . $field->name . '" size="' . $field->size . '" value="' . ($db->sf($field->name) ? $db->sf($field->name) : '') . '" class="inputbox" ' . $maxlength . $readonly . ' />' . "\n";
break;
case 'textarea':
echo '<textarea name="' . $field->name . '" id="' . $field->name . '_field" cols="' . $field->cols . '" rows="' . $field->rows . '" ' . $readonly . '>' . $db->sf($field->name) . '</textarea>';
break;
case 'editorta':
editorArea($field->name, $db->sf($field->name), $field->name, '300', '150', $field->cols, $field->rows);
break;
case 'checkbox':
echo '<input type="checkbox" name="' . $field->name . '" id="' . $field->name . '_field" value="1" ' . ($db->sf($field->name) ? 'checked="checked"' : '') . '/>';
break;
case 'age_verification':
$year = vmRequest::getInt('birthday_selector_year', date('Y'));
if ($db->f($field->name)) {
$birthday = $db->f($field->name);
$date_array = explode('-', $birthday);
$year = $date_array[0];
$month = $date_array[1];
$day = $date_array[2];
}
ps_html::list_days('birthday_selector_day', vmRequest::getInt('birthday_selector_day', @$day));
ps_html::list_month('birthday_selector_month', vmRequest::getInt('birthday_selector_month', @$month));
ps_html::list_year('birthday_selector_year', $year, $year - 100, $year);
示例4: vmTheme
* VirtueMart is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See /administrator/components/com_virtuemart/COPYRIGHT.php for copyright notices and details.
*
* http://virtuemart.net
*/
global $mainframe;
// include the stylesheet for this template
if (vmIsJoomla('1.0') && mosGetParam($_REQUEST, 'option') != VM_COMPONENT_NAME) {
// This can only be a call from a module or mambot
// In Joomla 1.0 it is not possible to add a JS or CSS into the HEAD from a module or content mambot,
// using addcustomheadtag, that's why we just print the tags here
echo vmCommonHTML::scriptTag(VM_THEMEURL . 'theme.js');
echo vmCommonHTML::linkTag(VM_THEMEURL . 'theme.css');
} else {
$vm_mainframe->addStyleSheet(VM_THEMEURL . 'theme.css');
$vm_mainframe->addScript(VM_THEMEURL . 'theme.js');
}
class vmTheme extends vmTemplate
{
function vmTheme()
{
parent::vmTemplate();
vmCommonHTML::loadMooTools();
}
function vmBuildFullImageLink($product)
{
global $VM_LANG;
$product_image = '';
示例5: addStyleSheet
/**
* Adds a linked stylesheet to the page
*
* @param string $url URL to the linked style sheet
* @param string $type Mime encoding type
* @param string $media Media type that this stylesheet applies to
* @access public
*/
function addStyleSheet($url, $type = 'text/css', $media = null, $attribs = array())
{
if (vmIsJoomla('1.0') && (strstr($_SERVER['SCRIPT_NAME'], 'index3.php') || strstr($_SERVER['SCRIPT_NAME'], 'index2.php')) || !vmIsJoomla() && defined('_VM_IS_BACKEND')) {
echo vmCommonHTML::linkTag($url, $type, 'stylesheet', $media);
return;
}
if (isset($this->_styleSheets[$url])) {
return;
}
$this->_styleSheets[$url]['url'] = $url;
$this->_styleSheets[$url]['mime'] = $type;
$this->_styleSheets[$url]['media'] = $media;
$this->_styleSheets[$url]['attribs'] = $attribs;
}