Changeset 515 for trunk/phpbms/modules/bms/clients_import.php
- Timestamp:
- 05/05/09 12:26:06 (3 years ago)
- Files:
-
- 1 modified
-
trunk/phpbms/modules/bms/clients_import.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpbms/modules/bms/clients_import.php
r485 r515 96 96 $thetable = new clients($db,2,$backurl); 97 97 $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 105 99 //Next we process the form (if submitted) and 106 100 // return the current record as an array ($therecord) … … 115 109 $pageTitle = ($therecord["title"])?$therecord["title"]:"General Table Import"; 116 110 117 // Next, we set up to include any118 // additional css or javascript files we will be using119 // This does nto include any field-type specific js (like datepicker)120 // as they are automatically icluded when you define the special fields you121 // will be using below.122 111 $phpbms->cssIncludes[] = "pages/imports.css"; 123 112 $phpbms->jsIncludes[] = "modules/bms/javascript/clients_import.js"; 124 113 125 // if you need to define a body onlload function, do so with the phpbms property126 127 // $phpbms->onload[] = "initializePage()";128 129 130 // Next we need to define any special fields that will be used in the form131 // A list of field objects (with documentation)is available in the /include/fields.php132 // file.133 114 134 115 // We need to define them here in the head … … 154 135 $theform->addField($theinput); 155 136 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);161 137 162 138 // lastly, use the jsMerge method to create the final Javascript formatting