HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/confeduphaar/backip-old-files/components/com_virtuemart/sublayouts/bs4-searchcustomvalues.php
<?php
// Joomla Security Check - no direct access to this file 
// Prevents File Path Exposure
defined('_JEXEC') or die('Restricted access');


// output the passed array / object content
$searchCustomValue = $viewData['searchcustomvalues'];

// var_dump($searchCustomValue);
if ($searchCustomValue->field_type == "S")
{
    ?>
    <div class="form-group m-0">
        <label for="exampleInputEmail1"><?php echo vmText::_($searchCustomValue->custom_title); ?></label>
        <?php echo JHtml::_(
            'select.genericlist', $searchCustomValue->value_options,
            'customfields[' . $searchCustomValue->virtuemart_custom_id . ']',
            'class="changeSendForm form-control"', 'virtuemart_custom_id', 'custom_title',
            $searchCustomValue->v
        ); ?>
    </div>
    <?php
} else if ($searchCustomValue->field_type == "P")
{
    $name  = 'customfields[' . $searchCustomValue->virtuemart_custom_id . ']';
    $value = vRequest::getString(
        'customfields[' . $searchCustomValue->virtuemart_custom_id . ']'
    );
    ?>

    <?php echo vmText::_($searchCustomValue->custom_title); ?>
    <input name="<?php echo $name ?>" class="inputbox vm-chzn-select"
           type="text" size="20" value="<?php echo $value ?>"/>

    <?php
}