This commit is contained in:
2020-02-18 05:15:06 -05:00
parent d7e31759bb
commit 6ebc6574e7
5 changed files with 100 additions and 28 deletions
+5 -3
View File
@@ -1,5 +1,7 @@
<?php
/*
* COREGRADE
*/
class Combo_model extends CI_Model {
var $optCons = '';
@@ -16,10 +18,10 @@ class Combo_model extends CI_Model {
public function getCardList(){
return 'Tokun';
}
public function getpageTemplate($option_name, $curVal) {
public function getPageTemplate($option_name, $curVal) {
$sql = "SELECT id, template_name FROM page_templates ORDER BY template_name ASC";
$q = $this->db->query($sql);
$option_value = $this->optionValueObject($q->result(), "id", "description", $curVal);
$option_value = $this->optionValueObject($q->result(), "id", "template_name", $curVal);
return $this->comboFrame($option_name, $option_value);
}