fix
This commit is contained in:
@@ -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++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user