Changeset 710 for trunk/phpbms/include
- Timestamp:
- 01/04/10 13:22:31 (2 years ago)
- Files:
-
- 1 modified
-
trunk/phpbms/include/imports.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpbms/include/imports.php
r704 r710 108 108 //DO NOT CALL IN TRANSACTION 109 109 function _storeTempCSV($fileName){ 110 110 111 111 $querystatement = " 112 112 INSERT INTO 113 113 `files` 114 114 ( 115 `uuid`, 115 116 `name`, 116 117 `description`, … … 124 125 VALUES 125 126 ( 127 '".uuid(getUuidPrefix($this->table->db, "tbld:80b4f38d-b957-bced-c0a0-ed08a0db6475"))."', 126 128 'temporary', 127 129 'This is a temporary import file', 128 130 '".$this->_getFile($fileName)."', 129 131 'phpbms/temp', 130 ' -100',132 'Admin', 131 133 NOW(), 132 134 '".$_SESSION["userinfo"]["id"]."', … … 253 255 if($rowFieldNum == $fieldNum){ 254 256 $verify = $this->table->verifyVariables($trimmedRowData); 255 if(!count($verify)) 256 $theid = $this->table->insertRecord($trimmedRowData, NULL, true); 257 if(!count($verify)){ 258 $createdby = NULL; 259 $overrideID = true; 260 $replace = false; 261 if(!isset($trimmedRowData["uuid"])){ 262 $useUuid = true; 263 $thereturn = $this->table->insertRecord($trimmedRowData, $createdby, $overrideID, $replace, $useUuid); 264 $theid = $thereturn["id"]; 265 }else{ 266 $useUuid = false; 267 $thereturn = $this->table->insertRecord($trimmedRowData, $createdby, $overrideID, $replace, $useUuid); 268 $theid = $thereturn; 269 } 270 }//end if 257 271 }else 258 272 $this->error .= '<li> incorrect amount of fields for line number '.$rowNum.'.</li>'; … … 476 490 <input id="cancelButton<?php echo $ids?>" name="command" type="submit" value="cancel" class="Buttons" <?php if($ids==1) {?>accesskey="x" <?php }?> title="(access key+x)" /> 477 491 <?php }else{?> 478 <input type="submit" class="Buttons" value="import" name="command" id="import<?php echo $ids?>" title="commit" <?php echo ($numberOfRecords? '':'disabled="disabled"') ?>/>479 <input type="submit" class="Buttons" value="cancel" name="command" id="cancelButton<?php echo $ids?>" title="rollback"/>492 <input type="submit" class="Buttons" value="import" name="command" id="import<?php echo $ids?>" title="commit" <?php if($ids==1) {?>accesskey="i"<?php }?> <?php echo ($numberOfRecords? '':'disabled="disabled"') ?>/> 493 <input type="submit" class="Buttons" value="cancel" name="command" id="cancelButton<?php echo $ids?>" <?php if($ids==1) {?>accesskey="x"<?php }?> title="rollback"/> 480 494 <?php }//end if ?> 481 495 </div><?php