| Server IP : 14.225.204.176 / Your IP : 216.73.216.6 Web Server : nginx/1.24.0 System : Linux nodejs-ybgk 6.8.0-40-generic #40-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 5 10:34:03 UTC 2024 x86_64 User : root ( 0) PHP Version : 8.1.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/html/php/wit-crm/modules/purchase/views/item_include/ |
Upload File : |
<?php if(isset($label_name)){ ?>
<label><?php echo _l($label_name); ?> </label>
<?php } ?>
<div class="form-group select-placeholder">
<select name="<?php echo html_entity_decode($select_name) ?>" class="selectpicker <?php if($ajaxItems == true){echo ' ajax-search';} ?>" data-width="100%" id="<?php echo html_entity_decode($id_name) ?>" <?php if(isset($multiple)){ ?> multiple="<?php echo html_entity_decode($multiple) ?>" <?php } ?> data-none-selected-text="<?php if(isset($data_none_selected_text)){echo _l($data_none_selected_text);} ?>" data-live-search="true" >
<option value=""></option>
<?php foreach($items as $group_id=>$_items){ ?>
<optgroup data-group-id="<?php echo $group_id; ?>" label="<?php echo $_items[0]['group_name']; ?>">
<?php foreach($_items as $item){ ?>
<?php
$selected = '';
if(isset($item_id) && $item['id'] == $item_id){
$selected = ' selected';
}
?>
<option value="<?php echo $item['id']; ?>" <?php echo html_entity_decode($selected); ?> data-subtext="<?php echo strip_tags(mb_substr($item['long_description'],0,200)).'...'; ?>">(<?php echo app_format_number($item['purchase_price']); ; ?>) <?php echo $item['description']; ?></option>
<?php } ?>
</optgroup>
<?php } ?>
</select>
</div>