|
@@ -914,6 +914,7 @@ class Specialstock extends Start_Controller {
|
|
$state = $this->input->post('state',true);
|
|
$state = $this->input->post('state',true);
|
|
$ktime = $this->input->post('ktime',true);
|
|
$ktime = $this->input->post('ktime',true);
|
|
$jtime = $this->input->post('jtime',true);
|
|
$jtime = $this->input->post('jtime',true);
|
|
|
|
+ $hairnumber = $this->input->post('hairnumber',true);
|
|
$ktime = strtotime($ktime);
|
|
$ktime = strtotime($ktime);
|
|
$jtime = strtotime($jtime);
|
|
$jtime = strtotime($jtime);
|
|
$where = "1=1";$gj = "";$ck = "";
|
|
$where = "1=1";$gj = "";$ck = "";
|
|
@@ -945,6 +946,17 @@ class Specialstock extends Start_Controller {
|
|
{
|
|
{
|
|
$where .= " and features like '%-$haircap-%'";
|
|
$where .= " and features like '%-$haircap-%'";
|
|
}
|
|
}
|
|
|
|
+ if (!empty($hairnumber)) {
|
|
|
|
+ $where .= " and features like '%-128-%' ";
|
|
|
|
+ if ($hairnumber < 0) {
|
|
|
|
+ $class_list = $this->typeclass->find_all('classid = 43');
|
|
|
|
+ foreach ($class_list as $v) {
|
|
|
|
+ $where .= " and features not like '%-" . $v['id'] . "-%'";
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ $where .= " and features like '%-$hairnumber-%'";
|
|
|
|
+ }
|
|
|
|
+ }
|
|
if($density)
|
|
if($density)
|
|
{
|
|
{
|
|
$where .= " and features like '%-$density-%'";
|
|
$where .= " and features like '%-$density-%'";
|