Ejemplo n.º 1
0
			$display_block_biller .= <<<EOD
			<option $selected value="$biller[id]">$escaped</option>
EOD;
		}
		$display_block_biller .= "</select>";
	}

	$description = "{$LANG['biller_name']}";
	$value = $display_block_biller;
}


else if ($_GET["submit"] == "customer") {

	$default = "customer";
	$customers = $SI_CUSTOMERS->fetchAllActive();

	if ($customers == null) {
		//no records
		$display_block_customer = "<p><em>{$LANG['no_customers']}</em></p>";

	} else {
		//has records, so display them
		$display_block_customer = '<select name="value">
                <option value="0"> </option>';


		foreach($customers as $customer) {

			$selected = $customer['id'] == $defaults['customer']?"selected style='font-weight: bold'":"";