|
|
@@ -3749,14 +3749,27 @@ class Whlabel extends Start_Controller
|
|
|
$color = $this->input->get('color', true);
|
|
|
$lowe = $this->input->get('lowe', true);
|
|
|
$sku = $this->input->get('sku', true);
|
|
|
+ $title = $this->input->get('title', true);
|
|
|
$warehouse = $this->input->get('warehouse', true);
|
|
|
+ $purchase = $this->input->get('purchase', true);
|
|
|
$lacetype = $this->input->get('lacetype', true);
|
|
|
+ $haircap = $this->input->get('haircap', true);
|
|
|
$lacecolor = $this->input->get('lacecolor', true);
|
|
|
$density = $this->input->get('density', true);
|
|
|
- $haircap = $this->input->get('haircap', true);
|
|
|
- $purchase = $this->input->get('purchase', true);
|
|
|
- $title = $this->input->get('title', true);
|
|
|
+
|
|
|
+ $details = $this->input->get('details', true);
|
|
|
+
|
|
|
$state = $this->input->get('state', true);
|
|
|
+
|
|
|
+ $shop = $this->input->get('shop', true);
|
|
|
+
|
|
|
+ $hairnumber = $this->input->get('hairnumber', true);
|
|
|
+
|
|
|
+ $type_leixi = $this->input->get('type', true);
|
|
|
+
|
|
|
+ $cpbz = $this->input->get('cpbz', true);
|
|
|
+ $sm = $this->input->get('sm', true);
|
|
|
+
|
|
|
$sid = $this->input->get('sid', true);
|
|
|
$ktime = $this->input->get('ktime', true);
|
|
|
$jtime = $this->input->get('jtime', true);
|
|
|
@@ -3803,11 +3816,38 @@ class Whlabel extends Start_Controller
|
|
|
if ($haircap) {
|
|
|
$where .= " and features like '%-$haircap-%'";
|
|
|
}
|
|
|
+ if ($details) {
|
|
|
+ $where .= " and details = '$details'";
|
|
|
+ }
|
|
|
+ if ($shop) {
|
|
|
+ $where .= " and shop like '%$shop%'";
|
|
|
+ }
|
|
|
if ($title) {
|
|
|
$title = trim($title, ' ');
|
|
|
$title = trim($title, ' ');
|
|
|
$where .= " and title like '%$title%'";
|
|
|
}
|
|
|
+ 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 ($type_leixi) {
|
|
|
+ $where .= " and type = '$type_leixi'";
|
|
|
+ }
|
|
|
+ if ($cpbz) {
|
|
|
+ $where .= " and cpbz like '%$cpbz%' ";
|
|
|
+ }
|
|
|
+ if ($sm) {
|
|
|
+ $where .= " and sm like '%$sm%' ";
|
|
|
+ }
|
|
|
if ($sku) {
|
|
|
$sku = trim($sku, ' ');
|
|
|
$sku = trim($sku, ' ');
|