HomeHelpTrac

Ignore:
Timestamp:
11/19/09 23:23:17 (3 years ago)
Author:
Andrey Prikaznov
Message:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/boonex/ads/classes/BxAdsModule.php

    r13271 r13277  
    402402        } 
    403403 
    404         /*if (isset($_GET['SearchForm'])) { 
    405             if (((int)$_GET['SearchForm']) == 1) { 
    406                 return _t('_bx_ads_Filter'); 
    407             } 
    408         } else*/ 
    409404        if (isset($_REQUEST['action']) && $_REQUEST['action']=="3") { 
    410405            return _t('_bx_ads_Filtered_ads');; 
     
    582577EOF; 
    583578 
    584         $sActions = /*BxDolPageView::getBlockCaptionMenu(mktime(),*/ array( 
     579        $sActions = array( 
    585580            'ads_t1' => array('href' => 'javascript: void(0);', 'title' => $sPendingC, 'onclick' => 'switchAdmPage(1, this); return false;', 'active' => $iPage1Active), 
    586581            'ads_t2' => array('href' => 'javascript: void(0);', 'title' => $sSettingsC, 'onclick' => 'switchAdmPage(2, this); return false;', 'active' => $iPage2Active) 
    587         /*)*/); 
     582        ); 
    588583        return DesignBoxAdmin($sTitleC, $sBoxContent, $sActions); 
    589584    } 
     
    13631358 
    13641359                // Send email notification 
    1365                 // $sMessageB   = getParam( "t_BuyNow" ); 
    1366                 // $sMessageS   = getParam( "t_BuyNowS" ); 
    1367                 // $sSubject    = getParam('t_BuyNow_subject'); 
    1368                 // $sSubjectS   = getParam('t_BuyNowS_subject'); 
    13691360                $sMessageB  = $aTemplate['Body']; 
    13701361                $sMessageS  = $aTemplateS['Body']; 
     
    22632254                    'required' => false, 
    22642255                    'value' => $sCustomName1, 
    2265                     'checker' => array ( 
     2256                    /*'checker' => array ( 
    22662257                        'func' => 'length', 
    22672258                        'params' => array(3,50), 
    22682259                        'error' => _t('_bx_ads_custom_error_desc', 1, 50), 
    2269                     ), 
     2260                    ),*/ 
    22702261                    'db' => array ( 
    22712262                        'pass' => 'Xss',  
     
    22822273                    ), 
    22832274                ), 
    2284                 /*'CustomAction1' => array( 
    2285                     'type' => 'select', 
    2286                     'name' => 'CustomAction1Skip', 
    2287                     'caption' => _t('CustomAction1'), 
    2288                     'values' => array('4' => 'None', '1' => 'Min', '2' => 'Equal', '3' => 'Max'), 
    2289                     'required' => false, 
    2290                     'value' => $sCustomAction1, 
    2291                     'checker' => array ( 
    2292                         'func' => 'length', 
    2293                         'params' => array(1,2), 
    2294                         'error' => _t('_bx_ads_choose_custom_action'), 
    2295                     ), 
    2296                 ),*/ 
    22972275                'CustomFieldName2' => array( 
    22982276                    'type' => 'text', 
     
    23012279                    'required' => false, 
    23022280                    'value' => $sCustomName2, 
    2303                     'checker' => array ( 
     2281                    /*'checker' => array ( 
    23042282                        'func' => 'length', 
    23052283                        'params' => array(3,50), 
    23062284                        'error' => _t('_bx_ads_custom_error_desc', 2, 50), 
    2307                     ), 
     2285                    ),*/ 
    23082286                    'db' => array ( 
    23092287                        'pass' => 'Xss',  
     
    23202298                    ), 
    23212299                ), 
    2322                 /*'CustomAction2' => array( 
    2323                     'type' => 'select', 
    2324                     'name' => 'CustomAction2Skip', 
    2325                     'caption' => _t('CustomAction2'), 
    2326                     'values' => array('4' => 'None', '1' => 'Min', '2' => 'Equal', '3' => 'Max'), 
    2327                     'required' => false, 
    2328                     'value' => $sCustomAction2, 
    2329                     'checker' => array ( 
    2330                         'func' => 'length', 
    2331                         'params' => array(1,2), 
    2332                         'error' => _t('_bx_ads_choose_custom_action'), 
    2333                     ), 
    2334                 ),*/ 
    2335  
    23362300                'Picture' => array( 
    23372301                    'type' => 'text', 
     
    23892353        } 
    23902354 
    2391         $sActions = /*BxDolPageView::getBlockCaptionMenu(mktime(),*/ array( 
     2355        $sActions = array( 
    23922356            'add_subcat' => array('href' => 'javascript: void(0);', 'title' => _t('_bx_ads_add_subcategory'), 'onclick' => 'showPopupAnyHtml(\'modules/boonex/ads/post_mod_ads.php?action=add_sub_category\');', 'active' => 0), 
    23932357            'manager' => array('href' => 'javascript: void(0);', 'title' => _t('_bx_ads_category_manager'), 'onclick' => 'showPopupAnyHtml(\'modules/boonex/ads/post_mod_ads.php?action=category_manager\');', 'active' => 0) 
    2394         /*)*/); 
     2358        ); 
    23952359        return DesignBoxAdmin(_t('_bx_ads_Manage_categories_form'), $sCode . $oForm->getCode(), $sActions); 
    23962360    } 
     
    23992363        $sSubmitC = _t('_bx_ads_add_subcategory'); 
    24002364        $sAction = 'add_sub_category'; 
    2401         //$iSubCategoryID = 0; // possible for Edit process 
    24022365 
    24032366        $aParentCategories = array(); 
     
    24222385            'form_attrs' => array( 
    24232386                'name' => 'create_sub_cats_form', 
    2424                 /*'action' => $this->sCurrBrowsedFile . '?action=add_sub_category',*/ 
    24252387                'action' => 'javascript: void(0)', 
    24262388                'method' => 'post', 
Note: See TracChangeset for help on using the changeset viewer.