phpBMS

Show
Ignore:
Timestamp:
05/05/09 12:26:06 (3 years ago)
Author:
nate
Message:
  • removed widget's default import
  • For new tabledefs, the import command is disabled by default
  • Products should now use the general import page.
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/phpbms/modules/bms/clients_import.php

    r485 r515  
    9696                        $thetable = new clients($db,2,$backurl); 
    9797                        $import = new clientsImport($thetable, $importType); 
    98  
    99         //and if you are setting the backurl, make sure you pass that as well 
    100         // like this: 
    101  
    102         //              $thetable = new [tablename]($db,[table definition id],$backurl); 
    103  
    104  
     98                         
    10599        //Next we process the form (if submitted) and 
    106100        // return the current record as an array ($therecord) 
     
    115109        $pageTitle = ($therecord["title"])?$therecord["title"]:"General Table Import"; 
    116110 
    117         // Next, we set up to include any 
    118         // additional css or javascript files we will be using 
    119         //  This does nto include any field-type specific js (like datepicker) 
    120         // as they are automatically icluded when you define the special fields you 
    121         // will be using below. 
    122111        $phpbms->cssIncludes[] = "pages/imports.css"; 
    123112        $phpbms->jsIncludes[] = "modules/bms/javascript/clients_import.js"; 
    124113 
    125         // if you need to define a body onlload function, do so with the phpbms property 
    126  
    127         //              $phpbms->onload[] = "initializePage()"; 
    128  
    129  
    130         // Next we need to define any special fields that will be used in the form 
    131         // A list of field objects (with documentation)is available in the /include/fields.php 
    132         // file. 
    133114 
    134115        // We need to define them here in the head 
     
    154135                $theform->addField($theinput); 
    155136 
    156                 // if you neeed to add additional attributes toa field, it's easy. 
    157                 //$theinput = new inputBasicList("type",$therecord["type"],array("Quote"=>"Quote","Order"=>"Order","Invoice"=>"Invoice","VOID"=>"VOID"), $displayName = NULL, $displayLabel = true); 
    158                 //$theinput->setAttribute("onchange","checkType(this)"); 
    159                 //$theinput->setAttribute("class","important"); 
    160                 //$theform->addField($theinput); 
    161137 
    162138                // lastly, use the jsMerge method to create the final Javascript formatting 
phpBMS vulnerability assesment provided by Orvant Inc. Copyright © 2010 Kreotek, LLC. All Rights reserved.