Изменить

manaz
На сайте с 13.12.2013
Offline
61
481

Помогите видо изменить php код в joomla 2.5

Суть в том чтоб сменить <input type="radio" сделать списком

но не знаю как его прописать в php

Вот как вообще нужен чтоб был выпадающий список

и вот сам кусок кода php но не знаю куда нужно прописать теги <option>

protected function getPluginHtml ($plugin, $selectedPlugin, $pluginSalesPrice) {


$pluginmethod_id = $this->_idName;
$pluginName = $this->_psType . '_name';
if ($selectedPlugin == $plugin->$pluginmethod_id) {
$checked = 'checked="checked"';
} else {
$checked = '';
}

if (!class_exists ('CurrencyDisplay')) {
require(JPATH_VM_ADMINISTRATOR . DS . 'helpers' . DS . 'currencydisplay.php');
}
$currency = CurrencyDisplay::getInstance ();
$costDisplay = "";
if ($pluginSalesPrice) {
$costDisplay = $currency->priceDisplay ($pluginSalesPrice);
$costDisplay = '<span class="' . $this->_type . '_cost"> (' . JText::_ ('COM_VIRTUEMART_PLUGIN_COST_DISPLAY') . $costDisplay . ")</span>";
}

$html = '<input type="radio" name="' . $pluginmethod_id . '" id="' . $this->_psType . '_id_' . $plugin->$pluginmethod_id . '" value="' . $plugin->$pluginmethod_id . '" ' . $checked . ">\n"
. '<label for="' . $this->_psType . '_id_' . $plugin->$pluginmethod_id . '">' . '<span class="' . $this->_type . '"' . $plugin->$pluginName . $costDisplay . "</span></label>\n";

return $html;
}

/**
*
*/

protected function getHtmlHeaderBE () {

$class = "class='key'";
$html = ' <thead>' . "\n"
. ' <tr>' . "\n"
. ' <th ' . $class . ' style="text-align: center;" colspan="2">' . JText::_ ('COM_VIRTUEMART_ORDER_PRINT_' . $this->_psType . '_LBL') . '</th>' . "\n"
. ' </tr>' . "\n"
. ' </thead>' . "\n";

return $html;
jpg shipping_select.jpg
Bitman
На сайте с 05.07.2009
Offline
112
#1

Это называется

<select name="formselect1" >

<option value="1">first</option>

<option value="2">second</option>

</select>

Северный лес (https://euro-vagonka.by) DREW (https://drew.by) AvtoDrive (https://avtodrive.by)

Авторизуйтесь или зарегистрируйтесь, чтобы оставить комментарий