This commit is contained in:
2022-04-10 19:04:17 -04:00
parent 6596089608
commit 577995cf03
5 changed files with 54 additions and 25 deletions
+20 -7
View File
@@ -22,7 +22,7 @@ class Combo_model extends CI_Model {
}
for ($ii = 2; $ii <= 5; $ii++) {
$days_c = $ii*7;
$days_c = $ii*7;
$cmbstr .= "<option value='$days_c'>$ii Weeks</option>";
}
return $this->comboFrame($option_name, $cmbstr);
@@ -105,6 +105,19 @@ $days_c = $ii*7;
return $this->comboFrame($option_name, $option_value);
}
public function getCountryJobCombo($option_name, $curVal) {
$q = $this
->db
->where('status', 1)
->where('jobs is NOT NULL', NULL, FALSE)
->order_by('country', 'ASC')
->get('country');
$option_value = $this->optionValueObject($q->result(), "code", "country", $curVal);
return $this->comboFrame($option_name, $option_value);
}
public function getBankCombo($option_name, $curVal) {
/*
wrenchboard=> Select code,name from bank_entity_codes WHERE country ='NG' ORDER BY name ASC;
@@ -148,12 +161,12 @@ $days_c = $ii*7;
}
private function comboFrame($option_name, $option_value) {
$addReaOnly = "";
if ($this->readOnlyMode == true) {
$addReaOnly = " disabled ";
}
return $cmb = "<select data-placeholder='".$this->defaultComboMessage."' class='" . $this->currentStyle . "' name='$option_name' $addReaOnly >$option_value</select>";
$addReaOnly = "";
if ($this->readOnlyMode == true) {
$addReaOnly = " disabled ";
}
$style_line = "form-select form-select-solid form-select-lg";
return $cmb = "<select $style_line data-placeholder='".$this->defaultComboMessage."' class='" . $this->currentStyle . "' name='$option_name' $addReaOnly >$option_value</select>";
}
}