23 lines
534 B
PHP
23 lines
534 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
require_once($_SERVER['DOCUMENT_ROOT'] . "/config.php");
|
||
|
|
|
||
|
|
$data = json_decode(file_get_contents("php://input"));
|
||
|
|
|
||
|
|
$selector = '';
|
||
|
|
if(isset($data->selector)){
|
||
|
|
$selector = $data->selector;
|
||
|
|
}
|
||
|
|
?>
|
||
|
|
<select id="<?=$selector?>" class="ms-new-client-bank-denial" multiple="">
|
||
|
|
<?php
|
||
|
|
$sql_bank = "SELECT `id`, `name` FROM `banks`";
|
||
|
|
$q_bank = mysql_query($sql_bank);
|
||
|
|
while($r_bank = mysql_fetch_assoc($q_bank)){
|
||
|
|
?>
|
||
|
|
<option value="<?=$r_bank['id']?>"><?=$r_bank['name']?></option>
|
||
|
|
<?php
|
||
|
|
}
|
||
|
|
?>
|
||
|
|
</select>
|