|
@@ -595,12 +595,38 @@ class Whlabel extends Start_Controller {
|
|
|
$details = $this->input->post('details',true);
|
|
|
$state = $this->input->post('state',true);
|
|
|
$lacecolor = $this->input->post('lacecolor',true);
|
|
|
+ $hairnumber = $this->input->post('hairnumber',true);
|
|
|
$cklx = $this->input->post('cklx',true);
|
|
|
$ktime = $this->input->post('ktime',true);
|
|
|
$jtime = $this->input->post('jtime',true);
|
|
|
$ktime = strtotime($ktime);
|
|
|
$jtime = strtotime($jtime);
|
|
|
$where = "1=1";$gj = "";$ck = "";
|
|
|
+
|
|
|
+ if($usa)
|
|
|
+ {
|
|
|
+ if(!$warehouse)
|
|
|
+ {
|
|
|
+ $where .= " and (warehouse = '5' or warehouse = '8')";
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if($warehouse)
|
|
|
+ {
|
|
|
+ $where .= " and warehouse = '$warehouse'";
|
|
|
+ }
|
|
|
+ if($details)
|
|
|
+ {
|
|
|
+ $where .= " and details = '$details'";
|
|
|
+ }
|
|
|
+ if($purchase)
|
|
|
+ {
|
|
|
+ $where .= " and purchase = '$purchase'";
|
|
|
+ }
|
|
|
+ if($state)
|
|
|
+ {
|
|
|
+ $where .= " and state = '$state'";
|
|
|
+ }
|
|
|
+
|
|
|
if($lacetype)
|
|
|
{
|
|
|
$where .= " and features like '%-$lacetype-%'";
|
|
@@ -637,29 +663,19 @@ class Whlabel extends Start_Controller {
|
|
|
{
|
|
|
$where .= " and features like '%-$lacecolor-%'";
|
|
|
}
|
|
|
- if($usa)
|
|
|
- {
|
|
|
- if(!$warehouse)
|
|
|
- {
|
|
|
- $where .= " and (warehouse = '5' or warehouse = '8')";
|
|
|
+ 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($warehouse)
|
|
|
- {
|
|
|
- $where .= " and warehouse = '$warehouse'";
|
|
|
- }
|
|
|
- if($details)
|
|
|
- {
|
|
|
- $where .= " and details = '$details'";
|
|
|
- }
|
|
|
- if($purchase)
|
|
|
- {
|
|
|
- $where .= " and purchase = '$purchase'";
|
|
|
- }
|
|
|
- if($state)
|
|
|
- {
|
|
|
- $where .= " and state = '$state'";
|
|
|
- }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
$where_add = '';
|
|
|
if($cklx)
|
|
|
{
|