|
|
@@ -1890,26 +1890,28 @@ function FORM_typespecial_USER_SELECT($field_name, $selected_value) {
|
|
|
$sql = "select *
|
|
|
from `ADMIN_USERS`
|
|
|
where `A_STATUS`='NORMAL'
|
|
|
+ and `EMPLOYEE_TYPE`!='Kandydat'
|
|
|
-- and `ADM_TECH_WORKER`!='NO'
|
|
|
-- and `ADM_COMPANY` like '".$_SESSION['ADM_COMPANY']."'
|
|
|
order by `ADM_NAME` ASC
|
|
|
";
|
|
|
$res = $db->query($sql);
|
|
|
echo'<select name="'.$field_name.'"><option value="">'." ".'</option>';
|
|
|
- while ($r = DB::fetch($res)) {
|
|
|
+ while ($r = $db->fetch($res)) {
|
|
|
echo'<option value="'.$r->ADM_ACCOUNT.'" ';
|
|
|
if ($r->ADM_ACCOUNT == $selected_value) {
|
|
|
echo'selected="selected"';
|
|
|
}
|
|
|
- echo'>'.$r->ADM_NAME.'('.$r->ADM_ACCOUNT.')</option>';
|
|
|
+ echo'>'.$r->ADM_NAME.' ('.$r->ADM_ACCOUNT.')</option>';
|
|
|
}
|
|
|
echo'</select>';
|
|
|
}
|
|
|
function USERS2_MARKETING_AKCJE_typespecial_ID_PROJECT($action, $selected_value) {
|
|
|
- $res = DB::query("select * from IN7_MK_BAZA_DYSTRYBUCJI where A_STATUS='NORMAL' or A_STATUS='OFF_SOFT' or A_STATUS='OFF_HARD' order by `ID` ");
|
|
|
+ $db = DB::getDB();
|
|
|
+ $res = $db->query("select * from IN7_MK_BAZA_DYSTRYBUCJI where A_STATUS='NORMAL' or A_STATUS='OFF_SOFT' or A_STATUS='OFF_HARD' order by `ID` ");
|
|
|
echo '<select name="ID_PROJECT">';
|
|
|
echo '<option value=""> </option>';
|
|
|
- while ($r = DB::fetch($res)) {
|
|
|
+ while ($r = $db->fetch($res)) {
|
|
|
echo "\n".'<option value="' . $r->ID . '"';
|
|
|
if ($r->ID == $selected_value) echo ' selected="selected"';
|
|
|
echo '>' . $r->ID . "=" . $r->M_DIST_DESC . "(". $r->M_DISTRIBUTOR ." ".$r->TV_NAZWA_PROGRAMU. ")".'</option>';
|