本文整理汇总了PHP中vmJsApi::jDate方法的典型用法代码示例。如果您正苦于以下问题:PHP vmJsApi::jDate方法的具体用法?PHP vmJsApi::jDate怎么用?PHP vmJsApi::jDate使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类vmJsApi
的用法示例。
在下文中一共展示了vmJsApi::jDate方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
echo VmHTML::row('radio', 'COM_VIRTUEMART_COUPON_PERCENT_TOTAL', 'percent_or_total', $radioOptions, $this->coupon->percent_or_total);
?>
<?php
$listOptions = array();
$listOptions[] = JHtml::_('select.option', 'permanent', vmText::_('COM_VIRTUEMART_COUPON_TYPE_PERMANENT'));
$listOptions[] = JHtml::_('select.option', 'gift', vmText::_('COM_VIRTUEMART_COUPON_TYPE_GIFT'));
echo VmHTML::row('select', 'COM_VIRTUEMART_COUPON_TYPE', 'coupon_type', $listOptions, $this->coupon->coupon_type, '', 'value', 'text', false);
?>
<?php
echo VmHTML::row('input', 'COM_VIRTUEMART_COUPON_VALUE_VALID_AT', 'coupon_value_valid', $this->coupon->coupon_value_valid, 'class="inputbox"', '', 10, 255, ' ' . $this->vendor_currency);
?>
<?php
echo VmHTML::row('raw', 'COM_VIRTUEMART_COUPON_START', vmJsApi::jDate($this->coupon->coupon_start_date, 'coupon_start_date'));
?>
<?php
echo VmHTML::row('raw', 'COM_VIRTUEMART_COUPON_EXPIRY', vmJsApi::jDate($this->coupon->coupon_expiry_date, 'coupon_expiry_date'));
?>
</table>
</fieldset>
<input type="hidden" name="virtuemart_coupon_id" value="<?php
echo $this->coupon->virtuemart_coupon_id;
?>
" />
<?php
echo $this->addStandardHiddenToForm();
?>
</form>
<?php
示例2:
<table>
<tr>
<td align="left" width="100%">
<?php
echo vmText::_('COM_VIRTUEMART_ORDERSTATUS') . $this->lists['state_list'];
?>
<?php
echo vmText::_('COM_VIRTUEMART_REPORT_INTERVAL') . $this->lists['intervals'];
?>
<?php
echo vmText::_('COM_VIRTUEMART_REPORT_SET_PERIOD') . $this->lists['select_date'];
echo vmText::_('COM_VIRTUEMART_REPORT_FROM_PERIOD') . vmJsApi::jDate($this->from_period, 'from_period');
echo vmText::_('COM_VIRTUEMART_REPORT_UNTIL_PERIOD') . vmJsApi::jDate($this->until_period, 'until_period');
if (VmConfig::get('multix', 'none') != 'none') {
$vendorId = vRequest::getInt('virtuemart_vendor_id', 1);
echo ShopFunctions::renderVendorList($vendorId, false);
}
?>
<button class="btn btn-small" onclick="this.form.period.value='';this.form.submit();"><?php
echo vmText::_('COM_VIRTUEMART_GO');
?>
</button>
</td>
</tr>
</table>
</div>
示例3: displayProductCustomfieldFE
//.........这里部分代码省略.........
$selected = $product->allIds[$pos - 1];
//vmdebug($customfield->virtuemart_product_id.' Set selected to - 1 allIds['.($pos-1).'] = '.$selected.' and count '.$dynChilds);
//break;
} elseif (isset($product->allIds[$pos])) {
$selected = $product->allIds[$pos];
//vmdebug($customfield->virtuemart_product_id.' Set selected to allIds['.$pos.'] = '.$selected.' and count '.$dynChilds);
} else {
$selected = $customfield->virtuemart_product_id;
//vmdebug($customfield->virtuemart_product_id.' Set selected to $customfield->virtuemart_product_id ',$selected,$product->allIds);
}
}
$url = 'index.php?option=com_virtuemart&view=productdetails&virtuemart_category_id=' . $virtuemart_category_id . '&virtuemart_product_id=' . $selected;
$html .= JHtml::_('select.genericlist', $options, $fieldname, 'onchange="window.top.location.href=this.options[this.selectedIndex].value" size="1" class="vm-chzn-select no-vm-bind" data-dynamic-update="1" ', "value", "text", JRoute::_($url, false), $idTag);
vmJsApi::chosenDropDowns();
if ($customfield->parentOrderable == 0) {
if ($product->product_parent_id == 0) {
$product->orderable = FALSE;
} else {
$product->product_in_stock = $parentStock;
}
} else {
}
$dynChilds++;
$customfield->display = $html;
break;
/*Date variant*/
/*Date variant*/
case 'D':
if (empty($customfield->custom_value)) {
$customfield->custom_value = 'LC2';
}
//Customer selects date
if ($customfield->is_input) {
$customfield->display = '<span class="product_custom_date">' . vmJsApi::jDate($customfield->customfield_value, $customProductDataName) . '</span>';
//vmJsApi::jDate($field->custom_value, 'field['.$row.'][custom_value]','field_'.$row.'_customvalue').$priceInput;
} else {
$customfield->display = '<span class="product_custom_date">' . vmJsApi::date($customfield->customfield_value, $customfield->custom_value, TRUE) . '</span>';
}
break;
/* text area or editor No vmText, only displayed in BE */
/* text area or editor No vmText, only displayed in BE */
case 'X':
case 'Y':
$customfield->display = $customfield->customfield_value;
break;
/* string or integer */
/* string or integer */
case 'B':
case 'S':
case 'M':
if ($type == 'M') {
$selectType = 'select.radiolist';
$class = '';
} else {
$selectType = 'select.genericlist';
if (!empty($customfield->is_input)) {
vmJsApi::chosenDropDowns();
$class = 'class="vm-chzn-select"';
}
}
if ($customfield->is_list and $customfield->is_list != 2) {
if (!empty($customfield->is_input)) {
$options = array();
$values = explode(';', $customfield->custom_value);
foreach ($values as $key => $val) {
if ($type == 'M') {
示例4:
<?php
echo JHTML::_('select.genericlist', $this->manufacturers, 'virtuemart_manufacturer_id', 'class="inputbox" onchange="document.adminForm.submit(); return false;"', 'value', 'text', $this->model->virtuemart_manufacturer_id);
?>
<?php
echo JText::_('COM_VIRTUEMART_PRODUCT_LIST_SEARCH_BY_DATE');
?>
<input type="text" value="<?php
echo JRequest::getVar('filter_product');
?>
" name="filter_product" size="25" />
<?php
echo $this->lists['search_type'];
echo $this->lists['search_order'];
echo vmJsApi::jDate(JRequest::getVar('search_date', $nowstring), 'search_date', 'class="datepicker" size="9"');
//echo JHTML::calendar( JRequest::getVar('search_date', $nowstring), 'search_date', 'search_date', '%H.%M %d.%m.%Y', 'size="20"');
?>
<button onclick="this.form.submit();"><?php
echo JText::_('COM_VIRTUEMART_GO');
?>
</button>
<button onclick="document.adminForm.filter_product.value=''; document.adminForm.search_type.options[0].selected = true;"><?php
echo JText::_('COM_VIRTUEMART_RESET');
?>
</button>
</td>
</tr>
</table>
</div>
示例5:
echo JHtml::_('select.genericlist', $this->manufacturers, 'virtuemart_manufacturer_id', 'class="inputbox" onchange="document.adminForm.submit(); return false;"', 'value', 'text', $this->model->virtuemart_manufacturer_id);
?>
<?php
echo vmText::_('COM_VIRTUEMART_PRODUCT_LIST_SEARCH_BY_DATE');
?>
<input type="text" value="<?php
echo vRequest::getVar('filter_product');
?>
" name="filter_product" size="25" />
<?php
echo $this->lists['search_type'];
echo $this->lists['search_order'];
echo vmJsApi::jDate(vRequest::getVar('search_date', $nowstring), 'search_date');
?>
<button class="btn btn-small" onclick="this.form.submit();"><?php
echo vmText::_('COM_VIRTUEMART_GO');
?>
</button>
<button class="btn btn-small" onclick="document.adminForm.filter_product.value=''; document.adminForm.search_type.options[0].selected = true;"><?php
echo vmText::_('COM_VIRTUEMART_RESET');
?>
</button>
</td>
</tr>
</table>
</div>
示例6: getUserFieldsFilled
//.........这里部分代码省略.........
}
switch( $_fld->type ) {
case 'hidden':
$_return['fields'][$_fld->name]['formcode'] = '<input type="hidden" id="'
. $_prefix.$_fld->name . '_field" name="' . $_prefix.$_fld->name.'" size="' . $_fld->size
. '" value="' . $_return['fields'][$_fld->name]['value'] .'" '
. ($_fld->required ? ' class="required"' : '')
. ($_fld->maxlength ? ' maxlength="' . $_fld->maxlength . '"' : '')
. $readonly . ' /> ';
$_return['fields'][$_fld->name]['hidden'] = true;
break;
case 'date':
case 'age_verification':
//echo JHtml::_('behavior.calendar');
/*
* TODO We must add the joomla.javascript here that contains the calendar,
* since Joomla does not load it when there's no user logged in.
* Gotta find out why... some security issue or a bug???
* Note by Oscar
*/
// if ($_userData === null) { // Not logged in
// $_doc = JFactory::getDocument();
// $_doc->addScript( JURI::root(true).'/includes/js/joomla.javascript.js');
// }
$currentYear= date('Y');
// $calendar = vmJsApi::jDate($_return['fields'][$_fld->name]['value'], $_prefix.$_fld->name, $_prefix.$_fld->name . '_field',false,($currentYear-100).':'.$currentYear);
// $_return['fields'][$_fld->name]['formcode'] = $calendar ;
//if(empty($_return['fields'][$_fld->name]['value'])){
// $_return['fields'][$_fld->name]['value'] = "1912-01-01 00:00:00";
//} jDate($date='',$name="date",$id=null,$resetBt = true, $yearRange='') {
// Year range MUST start 100 years ago, for birthday
$_return['fields'][$_fld->name]['formcode'] = vmJsApi::jDate($_return['fields'][$_fld->name]['value'], $_prefix.$_fld->name,$_prefix.$_fld->name . '_field',false,($currentYear-100).':'.$currentYear);
break;
case 'emailaddress':
if( JFactory::getApplication()->isSite()) {
if(empty($_return['fields'][$_fld->name]['value'])) {
$_return['fields'][$_fld->name]['value'] = JFactory::getUser()->email;
}
} // vmdebug('emailaddress',$_fld);
case 'text':
case 'webaddress':
$_return['fields'][$_fld->name]['formcode'] = '<input type="text" id="'
. $_prefix.$_fld->name . '_field" name="' . $_prefix.$_fld->name.'" size="' . $_fld->size
. '" value="' . $_return['fields'][$_fld->name]['value'] .'" '
. ($_fld->required ? ' class="required"' : '')
. ($_fld->maxlength ? ' maxlength="' . $_fld->maxlength . '"' : '')
. $readonly . ' /> ';
break;
case 'textarea':
$_return['fields'][$_fld->name]['formcode'] = '<textarea id="'
. $_prefix.$_fld->name . '_field" name="' . $_prefix.$_fld->name . '" cols="' . $_fld->cols
. '" rows="'.$_fld->rows . '" class="inputbox" '
. $readonly.'>'
. $_return['fields'][$_fld->name]['value'] .'</textarea>';
break;
case 'editorta':
jimport( 'joomla.html.editor' );
$editor = JFactory::getEditor();
$_return['fields'][$_fld->name]['formcode'] = $editor->display($_prefix.$_fld->name, $_return['fields'][$_fld->name]['value'], '150', '100', $_fld->cols, $_fld->rows, array('pagebreak', 'readmore'));
break;
case 'checkbox':
$_return['fields'][$_fld->name]['formcode'] = '<input type="checkbox" name="'
. $_prefix.$_fld->name . '" id="' . $_prefix.$_fld->name . '_field" value="1" '
示例7: displayProductCustomfieldBE
/**
* Formatting admin display by roles
* input Types for product only !
* $field->is_cart_attribute if can have a price
*/
public function displayProductCustomfieldBE($field, $product_id, $row)
{
// $vendor_currency as static, because is called for same user session
static $vendor_currency = null;
$field->custom_value = empty($field->custom_value) ? $field->value : $field->custom_value;
if ($field->is_cart_attribute) {
if ($vendor_currency === null) {
JLoader::register('VmModel', JPATH_VM_ADMINISTRATOR . 'helpers/vmmodel.php');
$vendor_model = VmModel::getModel('vendor');
$vendor_model->setId(1);
// todo SUTDIO42, perhaps check the vendors ?
$vendor = $vendor_model->getVendor();
$currencyModel = VmModel::getModel('currency');
$currencyModel->setId($vendor->vendor_currency);
$vendor_currency = $currencyModel->getData();
}
$priceInput = '<div class="input-append"><input class="input-mini" type="text" size="4" style="text-align:right;" value="' . (isset($field->custom_price) ? $field->custom_price : '0') . '" name="field[' . $row . '][custom_price]" /><span class="add-on">' . $vendor_currency->currency_symbol . "</span></div>";
} else {
$priceInput = ' ';
}
if ($field->is_list) {
$options = array();
$values = explode(';', $field->value);
foreach ($values as $key => $val) {
$options[] = array('value' => $val, 'text' => $val);
}
$currentValue = $field->custom_value;
return JHTML::_('select.genericlist', $options, 'field[' . $row . '][custom_value]', null, 'value', 'text', $currentValue) . '</td><td>' . $priceInput;
} else {
switch ($field->field_type) {
case 'A':
//vmdebug('displayProductCustomfieldBE $field',$field);
if (!isset($field->withParent)) {
$field->withParent = 0;
}
if (!isset($field->parentOrderable)) {
$field->parentOrderable = 0;
}
//vmdebug('displayProductCustomfieldFE',$field);
JLoader::register('VmHTML', JPATH_VM_ADMINISTRATOR . 'helpers/html.php');
$html = JText::_('COM_VIRTUEMART_CUSTOM_WP') . VmHTML::checkbox('field[' . $row . '][withParent]', $field->withParent, 1, 0, '') . '<br />';
$html .= JText::_('COM_VIRTUEMART_CUSTOM_PO') . VmHTML::checkbox('field[' . $row . '][parentOrderable]', $field->parentOrderable, 1, 0, '');
$options = array();
// $options[] = array( 'value' => 'product_name' ,'text' =>JText::_('COM_VIRTUEMART_PRODUCT_FORM_NAME')); Is anyway displayed there
$options[] = array('value' => 'product_sku', 'text' => JText::_('COM_VIRTUEMART_PRODUCT_SKU'));
$options[] = array('value' => 'slug', 'text' => JText::_('COM_VIRTUEMART_PRODUCT_ALIAS'));
$options[] = array('value' => 'product_length', 'text' => JText::_('COM_VIRTUEMART_PRODUCT_LENGTH'));
$options[] = array('value' => 'product_width', 'text' => JText::_('COM_VIRTUEMART_PRODUCT_WIDTH'));
$options[] = array('value' => 'product_height', 'text' => JText::_('COM_VIRTUEMART_PRODUCT_HEIGHT'));
$options[] = array('value' => 'product_weight', 'text' => JText::_('COM_VIRTUEMART_PRODUCT_WEIGHT'));
$html .= JHTML::_('select.genericlist', $options, 'field[' . $row . '][custom_value]', '', 'value', 'text', $field->custom_value) . '</td><td>' . $priceInput;
return $html;
// return 'Automatic Childvariant creation (later you can choose here attributes to show, now product name) </td><td>';
break;
// variants
// variants
case 'V':
return '<input type="text" class="input-medium" value="' . $field->custom_value . '" name="field[' . $row . '][custom_value]" /></td><td>' . $priceInput;
break;
/*
* Stockable (group of) child variants
* Special type setted by the plugin
*/
/*
* Stockable (group of) child variants
* Special type setted by the plugin
*/
case 'G':
return;
break;
/*Extended by plugin*/
/*Extended by plugin*/
case 'E':
$html = '<input type="hidden" value="' . $field->value . '" name="field[' . $row . '][custom_value]" />';
JLoader::register('vmCustomPlugin', JPATH_VM_PLUGINS . '/vmcustomplugin.php');
JPluginHelper::importPlugin('vmcustom', $field->custom_element);
$dispatcher = JDispatcher::getInstance();
$retValue = '';
$dispatcher->trigger('plgVmOnProductEdit', array($field, $product_id, &$row, &$retValue));
return $html . $retValue . '</td><td>' . $priceInput;
break;
case 'D':
return vmJsApi::jDate($field->custom_value, 'field[' . $row . '][custom_value]', 'field_' . $row . '_customvalue') . '</td><td>' . $priceInput;
break;
case 'T':
//TODO Patrick
return '<input type="text" class="input-medium" value="' . $field->custom_value . '" name="field[' . $row . '][custom_value]" /></td><td>' . $priceInput;
break;
/* string or integer */
/* string or integer */
case 'S':
case 'I':
// FIX studio42 tmlspecialchars: "
return '<input type="text" class="input-medium" value="' . htmlspecialchars($field->custom_value) . '" name="field[' . $row . '][custom_value]" /></td><td>' . $priceInput;
break;
//.........这里部分代码省略.........
示例8:
id="max_space" name="max_space" class="inputbox number">
<label>Sale periol</label>
<?php
echo vmJsApi::jDate($this->departure->sale_period_open, 'sale_period_open');
?>
To
<?php
echo vmJsApi::jDate($this->departure->sale_period_close, 'sale_period_close');
?>
<label>Vaild period</label>
<?php
echo vmJsApi::jDate($this->departure->vail_period_from, 'vail_period_from');
?>
To
<?php
echo vmJsApi::jDate($this->departure->vail_period_to, 'vail_period_to');
?>
<label>Departure Note</label>
<textarea>
<?php
echo $this->departure->departure_note;
?>
</textarea>
<br/>
<a href="javascript:void(0)" class="btn btn-small btn-success pull-right calculator-price">
<span class="icon-refresh icon-white"></span>
Calculator price
</a>
</div>
</div>
示例9:
<?php
echo JHtml::_('select.genericlist', $this->manufacturers, 'virtuemart_manufacturer_id', 'class="inputbox" onchange="document.adminForm.submit(); return false;"', 'value', 'text', $this->model->virtuemart_manufacturer_id);
?>
<?php
echo vmText::_('COM_VIRTUEMART_PRODUCT_LIST_SEARCH_BY_DATE');
?>
<input type="text" value="<?php
echo $this->filter_product;
?>
" name="filter_product" size="25" />
<?php
echo $this->lists['search_type'];
echo $this->lists['search_order'];
echo vmJsApi::jDate($this->search_date, 'search_date');
echo $this->lists['vendors'];
?>
<button class="btn btn-small" onclick="this.form.submit();"><?php
echo vmText::_('COM_VIRTUEMART_GO');
?>
</button>
<button class="btn btn-small" onclick="document.adminForm.filter_product.value=''; document.adminForm.search_type.options[0].selected = true;"><?php
echo vmText::_('COM_VIRTUEMART_RESET');
?>
</button>
<?php
echo $this->pagination->getLimitBox();
?>
</span>
示例10: array
<?php
echo VmHTML::row('raw', 'com_tsmart_MANUFACTURER', $this->manufacturerList);
/* Mod. <mediaDESIGN> St.Kraft 2013-02-24 Herstellerrabatt */
?>
<?php
//echo VmHTML::row('booleanlist','com_tsmart_VISIBLE_FOR_SHOPPER','calc_shopper_published',$this->calc->calc_shopper_published);
?>
<?php
//echo VmHTML::row('booleanlist','com_tsmart_VISIBLE_FOR_VENDOR','calc_vendor_published',$this->calc->calc_vendor_published);
?>
<?php
echo VmHTML::row('raw', 'com_tsmart_START_DATE', vmJsApi::jDate($this->calc->publish_up, 'publish_up'));
?>
<?php
echo VmHTML::row('raw', 'com_tsmart_END_DATE', vmJsApi::jDate($this->calc->publish_down, 'publish_down'));
?>
</table></fieldset>
<?php
if (!class_exists('vmCalculationPlugin')) {
require VMPATH_PLUGINLIBS . DS . 'vmcalculationplugin.php';
}
JPluginHelper::importPlugin('vmcalculation');
$dispatcher = JDispatcher::getInstance();
$html = '';
$returnValues = $dispatcher->trigger('plgVmOnDisplayEdit', array(&$this->calc, &$html));
echo $html;
if ($this->showVendors()) {
echo VmHTML::row('raw', 'com_tsmart_VENDOR', $this->vendorList);
}
示例11: displayProductCustomfieldFE
//.........这里部分代码省略.........
$selected = $customfield->virtuemart_product_id;
//vmdebug($customfield->virtuemart_product_id.' Set selected to $customfield->virtuemart_product_id ',$selected,$product->allIds);
}
}
$url = 'index.php?option=com_virtuemart&view=productdetails&virtuemart_category_id='.
$virtuemart_category_id .'&virtuemart_product_id='. $selected;
$html .= JHtml::_ ('select.genericlist', $options, $fieldname, 'onchange="window.top.location.href=this.options[this.selectedIndex].value" size="1" class="vm-chzn-select" data-dynamic-update="1" ', "value", "text",
JRoute::_ ($url,false),$idTag);
vmJsApi::chosenDropDowns();
if($customfield->parentOrderable==0){
if($product->product_parent_id==0){
$product->orderable = FALSE;
} else {
$product->product_in_stock = $parentStock;
}
} else {
}
$dynChilds++;
$customfield->display = $html;
break;
/*Date variant*/
case 'D':
if(empty($customfield->custom_value)) $customfield->custom_value = 'LC2';
//Customer selects date
if($customfield->is_input){
$customfield->display = '<span class="product_custom_date">' . vmJsApi::jDate ($customfield->customfield_value,$customProductDataName) . '</span>'; //vmJsApi::jDate($field->custom_value, 'field['.$row.'][custom_value]','field_'.$row.'_customvalue').$priceInput;
}
//Customer just sees a date
else {
$customfield->display = '<span class="product_custom_date">' . vmJsApi::date ($customfield->customfield_value, $customfield->custom_value, TRUE) . '</span>';
}
break;
/* text area or editor No vmText, only displayed in BE */
case 'X':
case 'Y':
$customfield->display = $customfield->customfield_value;
break;
/* string or integer */
case 'B':
case 'S':
case 'M':
if($type== 'M'){
$selectType = 'select.radiolist';
$class = '';
} else {
$selectType = 'select.genericlist';
if(!empty($customfield->is_input)){
vmJsApi::chosenDropDowns();
$class = 'class="vm-chzn-select"';
}
}
if($customfield->is_list){
if(!empty($customfield->is_input)){
示例12:
<?php
$vendorId = JRequest::getInt('virtuemart_vendor_id', 1);
echo ShopFunctions::renderVendorList($vendorId, false);
?>
</div>
<?php
}
?>
<div class="btn-group pull-right" style="clear:right;">
<?php
echo vmJsApi::jDate($this->until_period, 'until_period', '', true, '', JText::_('COM_VIRTUEMART_REPORT_UNTIL_PERIOD'));
?>
</div>
<div class="btn-group pull-right">
<?php
echo vmJsApi::jDate($this->from_period, 'from_period', '', true, '', JText::_('COM_VIRTUEMART_REPORT_FROM_PERIOD'));
?>
</div>
<div class="btn-group pull-right">
<?php
echo $this->lists['select_date'];
?>
</div>
</div>
<div class="clearfix"> </div>
<div id="results">
<?php
// split to use ajax search
echo $this->loadTemplate('results');
示例13: displayProductCustomfieldFE
//.........这里部分代码省略.........
if (isset($product->allIds[$pos - 1])) {
$selected = $product->allIds[$pos - 1];
//vmdebug($customfield->virtuemart_product_id.' Set selected to - 1 allIds['.($pos-1).'] = '.$selected.' and count '.$dynChilds);
//break;
} elseif (isset($product->allIds[$pos])) {
$selected = $product->allIds[$pos];
//vmdebug($customfield->virtuemart_product_id.' Set selected to allIds['.$pos.'] = '.$selected.' and count '.$dynChilds);
} else {
$selected = $customfield->virtuemart_product_id;
//vmdebug($customfield->virtuemart_product_id.' Set selected to $customfield->virtuemart_product_id ',$selected,$product->allIds);
}
}
$url = 'index.php?option=com_virtuemart&view=productdetails&virtuemart_category_id=' . $virtuemart_category_id . '&virtuemart_product_id=' . $selected;
$html .= JHtml::_('select.genericlist', $options, $fieldname, 'onchange="window.top.location.href=this.options[this.selectedIndex].value" size="1" class="vm-chzn-select" data-dynamic-update="1" ', "value", "text", JRoute::_($url, false), $idTag);
if ($customfield->parentOrderable == 0) {
if ($product->product_parent_id == 0) {
$product->orderable = FALSE;
} else {
$product->product_in_stock = $parentStock;
}
} else {
}
$dynChilds++;
$customfield->display = $html;
break;
/*Date variant*/
/*Date variant*/
case 'D':
if (empty($customfield->custom_value)) {
$customfield->custom_value = 'LC2';
}
//Customer selects date
if ($customfield->is_input) {
$customfield->display = '<span class="product_custom_date">' . vmJsApi::jDate($customfield->customfield_value, $customProductDataName) . '</span>';
//vmJsApi::jDate($field->custom_value, 'field['.$row.'][custom_value]','field_'.$row.'_customvalue').$priceInput;
} else {
$customfield->display = '<span class="product_custom_date">' . vmJsApi::date($customfield->customfield_value, $customfield->custom_value, TRUE) . '</span>';
}
break;
/* text area or editor No vmText, only displayed in BE */
/* text area or editor No vmText, only displayed in BE */
case 'X':
case 'Y':
$customfield->display = $customfield->customfield_value;
break;
/* string or integer */
/* string or integer */
case 'B':
case 'S':
if ($customfield->is_list) {
/*if($type=='B'){
if ($customfield->customfield_value == 0){
$customfield->customfield_value = 'JNO';
} else {
$customfield->customfield_value = 'JYES';
}
}*/
//vmdebug('case S $customfield->is_list',$customfield->customfield_value);
if (!empty($customfield->is_input)) {
$options = array();
$values = explode(';', $customfield->custom_value);
foreach ($values as $key => $val) {
$options[] = array('value' => $val, 'text' => $val);
}
$currentValue = $customfield->customfield_value;
$customfield->display = JHtml::_('select.genericlist', $options, $customProductDataName, NULL, 'value', 'text', $currentValue, $idTag);
示例14:
</select>
</td>
</tr>
<tr>
<td>Sale periol</td>
<td>From</td>
<td nowrap>
<?php
echo vmJsApi::jDate($this->price->sale_period_from, 'sale_period_from');
?>
</td>
<td>To</td>
<td nowrap>
<?php
echo vmJsApi::jDate($this->price->sale_period_to, 'sale_period_to');
?>
</td>
</tr>
<tr>
<td colspan="2">
<button class="btn btn-small btn-success" onclick="Joomla.submitbutton('apply')">
<span class="icon-apply icon-white"></span>
add new price</button>
</td>
</tr>
</table>
</div>
示例15:
if (!empty($this->DATaxRules)) {
echo vmText::_('COM_VIRTUEMART_RULES_EFFECTING') . '<br />' . $this->DATaxRules;
}
// vmdebug('my rules',$this->DBTaxRules,$this->DATaxRules); echo vmText::_('COM_VIRTUEMART_PRODUCT_FORM_DISCOUNT_EFFECTING').$this->DBTaxRules;
?>
</span>
</td>
<td style="background: #d5d5d5;padding:0;width:1px;"></td>
<td nowrap>
<?php
echo vmJsApi::jDate($this->product->allPrices[$this->product->selectedPrice]['product_price_publish_up'], 'mprices[product_price_publish_up][]');
?>
</td>
<td nowrap>
<?php
echo vmJsApi::jDate($this->product->allPrices[$this->product->selectedPrice]['product_price_publish_down'], 'mprices[product_price_publish_down][]');
?>
</td>
</tr>
<?php
$rowColor = 1 - $rowColor;
?>
<tr class="row<?php
echo $rowColor;
?>
">
<td width="60px">
<div style="text-align: right; font-weight: bold;">
<span