Beispiel #1
0
 public function act_index($parameterArr, $searchKeywordsType = '', $searchKeywords = '', $limit = '', $ostatus = '')
 {
     $where = '';
     $table = '';
     if ($searchKeywordsType != '') {
         switch ($searchKeywordsType) {
             case 1:
                 $where = ' AND username="******"';
                 $table = 'om_unshipped_order_userInfo';
                 break;
             case 2:
                 $where = ' AND email="' . $searchKeywords . '"';
                 $table = 'om_unshipped_order_userInfo';
                 break;
             case 3:
                 $where = ' AND da.recordNumber="' . $searchKeywords . '"';
                 $table = '';
                 break;
             case 4:
                 $where = ' AND PayPalPaymentId="' . $searchKeywords . '"';
                 $table = 'om_unshipped_order_extension_ebay';
                 break;
             case 5:
                 $where = ' AND tracknumber="' . $searchKeywords . '"';
                 $table = 'om_order_tracknumber';
                 break;
             case 6:
                 $where = ' AND da.id="' . $searchKeywords . '"';
                 $table = '';
                 break;
         }
     }
     $data = OrderindexModel::index($parameterArr, $where, $table, $limit, $ostatus);
     return $data;
 }