41 $aFolders = $this->
getConfig()->getConfigParam(
'aOrderfolder' );
44 if ( !$sFolder && is_array( $aFolders )) {
45 $aNames = array_keys( $aFolders );
46 $sFolder = $aNames[0];
49 $aSearch = array(
'oxorderarticles' =>
'ARTID',
'oxpayments' =>
'PAYMENT');
53 $this->_aViewData[
"folder"] = $sFolder ? $sFolder : -1;
54 $this->_aViewData[
"addsearchfld"] = $sSearchfld ? $sSearchfld : -1;
55 $this->_aViewData[
"asearch"] = $aSearch;
56 $this->_aViewData[
"addsearch"] = $sSearch;
57 $this->_aViewData[
"afolder"] = $aFolders;
59 return "order_list.tpl";
75 $aFolders =
$myConfig->getConfigParam(
'aOrderfolder' );
78 if ( $sFolder && $sFolder !=
'-1' ) {
79 $sQ .=
" and ( oxorder.oxfolder = ".$oDb->quote( $sFolder ).
" )";
80 } elseif ( !$sFolder && is_array( $aFolders ) ) {
81 $aFolderNames = array_keys( $aFolders );
82 $sQ .=
" and ( oxorder.oxfolder = ".$oDb->quote( $aFolderNames[0] ).
" )";
101 $sSearch = trim( $sSearch );
105 switch ( $sSearchField ) {
106 case 'oxorderarticles':
107 $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 ";
110 $sQ =
"oxorder left join oxpayments on oxpayments.oxid=oxorder.oxpaymenttype where oxpayments.oxdesc like ".$oDb->quote(
"%{$sSearch}%" ) .
" and ";
113 $sQ =
"oxorder where oxorder.oxpaid like ".$oDb->quote(
"%{$sSearch}%" ).
" and ";
116 $sSql = str_replace(
'oxorder where', $sQ, $sSql);
129 $oOrder =
oxNew(
"oxorder" );
130 if ( $oOrder->load( $this->getEditObjectId() ) ) {
131 $oOrder->cancelOrder();
147 if ( isset( $aSorting[
"oxorder"][
"oxbilllname"] )) {
148 $this->_blDesc =
false;