42         $aFolders = $this->
getConfig()->getConfigParam(
'aOrderfolder');
 
   45         if (!$sFolder && is_array($aFolders)) {
 
   46             $aNames = array_keys($aFolders);
 
   47             $sFolder = $aNames[0];
 
   50         $aSearch = array(
'oxorderarticles' => 
'ARTID', 
'oxpayments' => 
'PAYMENT');
 
   54         $this->_aViewData[
"folder"] = $sFolder ? $sFolder : -1;
 
   55         $this->_aViewData[
"addsearchfld"] = $sSearchfld ? $sSearchfld : -1;
 
   56         $this->_aViewData[
"asearch"] = $aSearch;
 
   57         $this->_aViewData[
"addsearch"] = $sSearch;
 
   58         $this->_aViewData[
"afolder"] = $aFolders;
 
   60         return "order_list.tpl";
 
   76         $aFolders = 
$myConfig->getConfigParam(
'aOrderfolder');
 
   79         if ($sFolder && $sFolder != 
'-1') {
 
   80             $sQ .= 
" and ( oxorder.oxfolder = " . $oDb->quote($sFolder) . 
" )";
 
   81         } elseif (!$sFolder && is_array($aFolders)) {
 
   82             $aFolderNames = array_keys($aFolders);
 
   83             $sQ .= 
" and ( oxorder.oxfolder = " . $oDb->quote($aFolderNames[0]) . 
" )";
 
  103         $sSearch = trim($sSearch);
 
  107             switch ($sSearchField) {
 
  108                 case 'oxorderarticles':
 
  109                     $sQ = 
"oxorder left join oxorderarticles on oxorderarticles.oxorderid=oxorder.oxid where ( oxorderarticles.oxartnum like " . $oDb->quote(
"%{$sSearch}%") . 
" or oxorderarticles.oxtitle like " . $oDb->quote(
"%{$sSearch}%") . 
" ) and ";
 
  112                     $sQ = 
"oxorder left join oxpayments on oxpayments.oxid=oxorder.oxpaymenttype where oxpayments.oxdesc like " . $oDb->quote(
"%{$sSearch}%") . 
" and ";
 
  115                     $sQ = 
"oxorder where oxorder.oxpaid like " . $oDb->quote(
"%{$sSearch}%") . 
" and ";
 
  118             $sSql = str_replace(
'oxorder where', $sQ, $sSql);
 
  129         $oOrder = 
oxNew(
"oxorder");
 
  130         if ($oOrder->load($this->getEditObjectId())) {
 
  131             $oOrder->cancelOrder();
 
  148         if (isset($aSorting[
"oxorder"][
"oxbilllname"])) {
 
  149             $this->_blDesc = 
false;