This commit is contained in:
2022-07-24 21:16:37 -04:00
parent 777f024021
commit c042097dd1
7 changed files with 189 additions and 36 deletions
+1 -1
View File
@@ -101,7 +101,7 @@ class Job_model extends CI_Model {
$this->tableStr = '<table class=\'table table-striped table-hover table-bordered table-condensed\' style=\'border-spacing: 1px; padding: 0px; border-collapse: separate;\' >';
$i = 0;
foreach ($query->result() as $row) {
$this->tableStr .="<tr><td style='width:10px;'><input type=\"radio\" name=\"unstyled-radio-left\" value=\"" . $row->id . "\" onchange=\"jobGroupChanged(this,'".str_replace("'","\\'",stripslashes($row->group_name))."')\"".(($sel==$row->id || ($sel<1 && $i==0))?"checked":"")."></td><td>" . $row->group_name . "</td><td><button class=\"btn btn-danger btn-sm btn-xs\" type=\"button\" onclick=\"deleteJobGroup(".$row->id.",'".str_replace("'","\\'",stripslashes($row->group_name))."')\">X</button></td></tr>";
$this->tableStr .="<tr><td style='width:10px;'><input type=\"radio\" name=\"unstyled-radio-left\" value=\"" . $row->id . "\" onchange=\"jobGroupChanged(this,'".str_replace("'","\\'",stripslashes($row->group_name))."')\"".(($sel==$row->id || ($sel<1 && $i==0))?"checked":"")."></td><td>" . $row->group_name . "</td><td><button class=\"btn btn-danger btn-sm\" type=\"button\" onclick=\"deleteJobGroup(".$row->id.",'".str_replace("'","\\'",stripslashes($row->group_name))."')\">X</button></td></tr>";
$groups[$row->id] = $row->group_name;
$i++;
}