HEX
Server: Apache
System: Linux p3plzcpnl506847.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: slfopp7cb1df (5698090)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //proc/self/root/proc/self/cwd/pm/plugins/Purchase/Views/item_include/item_select.php
<?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="select2 <?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 } ?> placeholder="<?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 html_entity_decode($group_id); ?>" label="<?php echo html_entity_decode($_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 html_entity_decode($item['id']); ?>" <?php echo html_entity_decode($selected); ?> data-subtext="<?php echo strip_tags(mb_substr($item['description'],0,200)).'...'; ?>">(<?php echo to_decimal_format($item['purchase_price']); ; ?>) <?php echo html_entity_decode($item['title']); ?></option>
				<?php } ?>
			</optgroup>
		<?php } ?>
	</select>
</div>