Changeset 672
- Timestamp:
- 10/26/09 14:08:14 (3 years ago)
- Location:
- trunk/phpbms
- Files:
-
- 12 modified
-
include/search_class.php (modified) (2 diffs)
-
install/index.php (modified) (2 diffs)
-
modules/base/general_import.php (modified) (1 diff)
-
modules/base/include/widgets.php (modified) (2 diffs)
-
modules/base/tabledefs_addedit.php (modified) (2 diffs)
-
modules/base/users_addedit.php (modified) (1 diff)
-
modules/base/widgets/workload/class.php (modified) (1 diff)
-
modules/bms/clients_import.php (modified) (2 diffs)
-
modules/bms/include/receipts.php (modified) (1 diff)
-
modules/sample/include/sampletable.php (modified) (1 diff)
-
report/pdfreport_class.php (modified) (7 diffs)
-
requirements.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpbms/include/search_class.php
r666 r672 1013 1013 1014 1014 1015 //check to see if criter a has been saved to Session1015 //check to see if criteria has been saved to Session 1016 1016 if(isset($_SESSION["tableparams"][$this->ref])) 1017 1017 //grab the session … … 1287 1287 return $message; 1288 1288 } 1289 1289 1290 1290 /* 1291 1291 * function runPush 1292 1292 * @param string $pushRecordUuid 1293 1293 */ 1294 1294 1295 1295 function runPush($pushRecordUuid) { 1296 1296 1297 1297 include_once("modules/api/include/push.php"); 1298 1298 1299 1299 $uuidArray = getUuidArray($this->db, $this->tabledefuuid, $this->idsArray); 1300 1300 1301 1301 if($uuidArray === false) 1302 1302 $uuidArray = array(); 1303 1303 1304 1304 $push = new push($this->db, $pushRecordUuid, $uuidArray); 1305 1305 $thereturn = $push->process(); 1306 1306 1307 1307 if($thereturn !== false) 1308 1308 $message = count($push->uuidArray)." record(s) pushed."; 1309 1309 else 1310 1310 $message = "An error has occured."; 1311 1311 1312 1312 return $message; 1313 1313 1314 1314 }//end function 1315 1315 -
trunk/phpbms/install/index.php
r526 r672 335 335 </p> 336 336 337 <h2>Availa le Modules</h2>337 <h2>Available Modules</h2> 338 338 339 339 <?php $moduleClass->displayInstallTable() ?> … … 377 377 phpBMS has a scheduler function that runs items on a timed basis using cron 378 378 or another scheduler program to run php via command line. Check the 379 Scheduler under the system menu after loggin in for details on configuring this379 Scheduler under the system menu after logging in for details on configuring this 380 380 in your crontab file. Once configured, you will want to disable your web server from 381 381 allowing this file to be called from your web server (the outside). -
trunk/phpbms/modules/base/general_import.php
r592 r672 154 154 </p> 155 155 <p> 156 Delim eters are commas (,) and enclosures are double-quotes ("). If you156 Delimiters are commas (,) and enclosures are double-quotes ("). If you 157 157 wish to escape a double-quote character inside of an enclosure, add another 158 158 double-quote character (e.g ...,"Benny ""The Jet"" Rodriguez",...), or with -
trunk/phpbms/modules/base/include/widgets.php
r579 r672 78 78 if(isset($variables["title"])){ 79 79 if($variables["title"] === "" || $variables["title"] === NULL) 80 $this->verifyErrors[] = "The `title` field must benot be blank.";80 $this->verifyErrors[] = "The `title` field must not be blank."; 81 81 }else 82 82 $this->verifyErrors[] = "The `title` field must be set."; … … 84 84 if(isset($variables["file"])){ 85 85 if($variables["file"] === "" || $variables["file"] === NULL) 86 $this->verifyErrors[] = "The `file` field must benot be blank.";86 $this->verifyErrors[] = "The `file` field must not be blank."; 87 87 }else 88 88 $this->verifyErrors[] = "The `file` field must be set."; -
trunk/phpbms/modules/base/tabledefs_addedit.php
r646 r672 203 203 <?php $theform->showField("importfile") ?><br /> 204 204 <span class="notes">file name, including path from application root, that is used for importing records. If none 205 is spec fied, the general import for the table def will be used. This may not always result in accurate imports for205 is specified, the general import for the table def will be used. This may not always result in accurate imports for 206 206 the more complicated table definitions.</span> 207 207 </p> … … 241 241 <div id="defaultQuickSearch" <?php if($therecord["defaultsearchtype"]=="") echo "style=\"display:none;\""?>> 242 242 <p> 243 <label for="defaultcriteriafindoptions">criter a: selected find option</label> <span class="notes">(quick search)</span><br/>243 <label for="defaultcriteriafindoptions">criteria: selected find option</label> <span class="notes">(quick search)</span><br/> 244 244 <textarea id="defaultcriteriafindoptions" name="defaultcriteriafindoptions" cols="32" rows="2"><?php echo htmlQuotes($therecord["defaultcriteriafindoptions"])?></textarea> 245 245 -
trunk/phpbms/modules/base/users_addedit.php
r638 r672 123 123 <p class="notes"> 124 124 user accounts marked as portal access cannot login to phpBMS, but are used by external applications 125 when creating/modif iying information from outside the application for recording purposes.125 when creating/modifying information from outside the application for recording purposes. 126 126 </p> 127 127 </fieldset> -
trunk/phpbms/modules/base/widgets/workload/class.php
r572 r672 253 253 <p><?php echo $bottomInfo ?></p> 254 254 255 <? }//endif ?>255 <?php }//endif ?> 256 256 </div> 257 257 -
trunk/phpbms/modules/bms/clients_import.php
r575 r672 175 175 </p> 176 176 <p> 177 Delim eters are commas (,) and enclosures are double-quotes ("). If you177 Delimiters are commas (,) and enclosures are double-quotes ("). If you 178 178 wish to escape a double-quote character inside of an enclosure, add another 179 179 double-quote character (e.g ...,"Benny ""The Jet"" Rodriguez",...), or with … … 195 195 </p> 196 196 <p> 197 Delim eters are commas (,) and enclosures are double-quotes ("). <span class="notes" >(This197 Delimiters are commas (,) and enclosures are double-quotes ("). <span class="notes" >(This 198 198 is done by default by Sugar CRM)</span> If you wish to escape a double-quote character 199 199 inside of an enclosure, add another double-quote character (e.g ...,"Benny -
trunk/phpbms/modules/bms/include/receipts.php
r657 r672 407 407 408 408 if(!in_array(((string)$variables["paymentmethodid"]),$this->_availablePaymentMethodUUIDs)) 409 $this->verifyErrors[] = "The `paymentmethod` field does not give an existing/acc petable payment method uuid.";409 $this->verifyErrors[] = "The `paymentmethod` field does not give an existing/acceptable payment method uuid."; 410 410 411 411 }else -
trunk/phpbms/modules/sample/include/sampletable.php
r621 r672 7 7 that helps in the above functions, or with display. 8 8 9 This sample will show you how to do some basic over ides.10 Remember to instantiate the overrid edclass on the add/edit page.9 This sample will show you how to do some basic overrides. 10 Remember to instantiate the overridden class on the add/edit page. 11 11 12 12 -
trunk/phpbms/report/pdfreport_class.php
r314 r672 38 38 */ 39 39 class pdfColumn{ 40 40 41 41 var $title; 42 42 var $fieldname; … … 44 44 var $format; 45 45 var $align = "L"; 46 46 47 47 function pdfColumn($title, $fieldname, $size = 1, $format = "", $align = "L"){ 48 48 49 49 $this->title = $title; 50 50 $this->fieldname = $fieldname; … … 52 52 $this->format = $format; 53 53 $this->align = $align; 54 55 }//end method 56 54 55 }//end method 56 57 57 }//end class 58 58 59 59 class pdfColor{ 60 60 61 61 var $r = 0; 62 62 var $g = 0; … … 64 64 65 65 function pdfColor($r = 0,$g = 0,$b = 0){ 66 66 67 67 $this->r = $r; 68 68 $this->g = $g; 69 69 $this->b = $b; 70 71 }//end method 72 73 }//end class 74 75 70 71 }//end method 72 73 }//end class 74 75 76 76 class pdfFont { 77 77 78 78 var $family = "Arial"; 79 79 var $style = ""; 80 80 var $size = 8; 81 81 82 82 function pdfFont($family = "Arial", $style ="", $size = 8){ 83 83 84 84 $this->family = $family; 85 85 $this->style = $style; 86 $this->size = $size; 87 88 }//end method 89 90 }//end class 91 92 86 $this->size = $size; 87 88 }//end method 89 90 }//end class 91 92 93 93 class pdfStyle{ 94 94 95 95 var $font = NULL; 96 96 var $textColor = NULL; 97 97 var $backgroundColor = NULL; 98 98 99 99 function pdfStyle($font = NULL, $textColor = NULL, $backgroundColor = NULL){ 100 100 101 101 if($font) $this->font = $font; 102 102 if($textColor) $this->textColor = $textColor; 103 103 if($backgroundColor) $this->backgroundColor = $backgroundColor; 104 105 }//end method 106 107 }//end class 108 104 105 }//end method 106 107 }//end class 108 109 109 110 110 if(!class_exists("MEM_IMAGE")){ 111 111 112 112 include("fpdf/fpdf.php"); 113 113 include("fpdf/mem_image.php"); 114 114 115 115 }//end if 116 116 117 117 class phpbmsPDFReport extends MEM_IMAGE { 118 118 119 119 var $borderDebug = 0; 120 120 121 121 var $leftmargin = 0.5; 122 122 var $rightmargin = 0.5; … … 124 124 var $paperwidth = 8.5; 125 125 var $paperlength = 11; 126 126 127 127 var $hasComapnyHeader = false; 128 128 var $companyImageWidth = 1; 129 129 130 130 var $styles = array(); 131 132 131 132 133 133 function phpbmsPDFReport($db, $orientation='P', $unit='mm', $format='Letter'){ 134 134 135 135 $this->db = $db; 136 136 137 137 parent::MEM_IMAGE($orientation, $unit, $format); 138 138 139 139 $this->initStyles(); 140 140 $this->SetLineWidth(0.01); 141 142 }//end method 143 144 141 142 }//end method 143 144 145 145 function initStyles(){ 146 146 147 147 //here we set the standard styles 148 148 149 // NORMAL 149 // NORMAL 150 150 $font = new pdfFont("Arial", "", 8); 151 151 $style = new pdfStyle($font); … … 168 168 169 169 $this->styles["header"] = $style; 170 170 171 171 }//end method 172 172 173 173 174 174 function defineStyle($name, $pdfStyleObj){ 175 175 176 176 if(get_class($pdfStyleObj) != "pdfStyle") 177 $error = new appError(1400,"defineStyle Method needs pdfStyle ob eject as paramater 2","PDF Error",true,true,false);178 177 $error = new appError(1400,"defineStyle Method needs pdfStyle object as parameter 2","PDF Error",true,true,false); 178 179 179 $this->styles[$name] = $pdfStyleObj; 180 180 181 181 }//end if 182 182 183 183 184 184 function setStyle($name){ 185 185 186 186 if(!isset($this->styles[$name])) 187 187 $name = "normal"; 188 188 189 189 $newStyle = $this->styles[$name]; 190 190 … … 193 193 else 194 194 $this->SetFont("Arial", "", 8); 195 195 196 196 if(isset($newStyle->textColor)) 197 197 $this->SetTextColor($newStyle->textColor->r, $newStyle->textColor->g, $newStyle->textColor->b); 198 198 else 199 199 $this->SetTextColor(0,0,0); 200 200 201 201 if(isset($newStyle->backgroundColor)) 202 202 $this->SetFillColor($newStyle->backgroundColor->r, $newStyle->backgroundColor->g, $newStyle->backgroundColor->b); 203 203 else 204 204 $this->SetFillColor(255,255,255); 205 205 206 206 }//end if 207 207 208 208 209 209 function SetMargins(){ 210 210 211 211 parent::SetMargins($this->leftmargin, $this->topmargin, $this->rightmargin); 212 213 }//end method 214 215 216 function Header(){ 212 213 }//end method 214 215 216 function Header(){ 217 217 if($this->hasComapnyHeader){ 218 218 219 219 $cname = COMPANY_NAME; 220 $caddress = COMPANY_ADDRESS."\n".COMPANY_CSZ."\n".COMPANY_PHONE; 221 220 $caddress = COMPANY_ADDRESS."\n".COMPANY_CSZ."\n".COMPANY_PHONE; 221 222 222 $querystatement = " 223 SELECT 223 SELECT 224 224 `file`, 225 225 UPPER(`type`) AS `type` 226 FROM 227 files 228 WHERE 226 FROM 227 files 228 WHERE 229 229 id=1"; 230 230 231 231 $pictureresult = $this->db->query($querystatement); 232 232 233 233 $thepicture = $this->db->fetchArray($pictureresult); 234 234 235 235 if($thepicture["type"]=="IMAGE/JPEG"){ 236 236 237 237 global $image; 238 238 $image = $thepicture["file"]; 239 $this->Image('var://image', $this->leftmargin,$this->topmargin, $this->companyImageWidth, 0, "JPEG"); 240 239 $this->Image('var://image', $this->leftmargin,$this->topmargin, $this->companyImageWidth, 0, "JPEG"); 240 241 241 } elseif($thepicture["type"]=="IMAGE/PNG") 242 $this->MemImage($thepicture["file"], $this->leftmargin, $this->topmargin, $this->companyImageWidth); 243 242 $this->MemImage($thepicture["file"], $this->leftmargin, $this->topmargin, $this->companyImageWidth); 243 244 244 //company name 245 245 $this->SetXY($this->companyImageWidth + $this->leftmargin, $this->topmargin); 246 246 $this->SetFont("Times","B",12); 247 247 $this->Cell(4, 0.25, $cname, $this->borderDebug, 2, "L"); 248 248 249 249 //and last, company address 250 250 $this->SetFont("Times","",8); 251 251 $this->MultiCell(4, .125 , $caddress, $this->borderDebug); 252 252 253 253 }//end if 254 255 }//end method 256 257 }//end class 258 254 255 }//end method 256 257 }//end class 258 259 259 ?> -
trunk/phpbms/requirements.php
r485 r672 75 75 <h3>Cookie support</h3> 76 76 <p> 77 phpBMS sets a single cookie to track your login. Cookie sup ort for this site77 phpBMS sets a single cookie to track your login. Cookie support for this site 78 78 must be enabled in order for the application to allow you to log in 79 79 </p> … … 81 81 82 82 <li> 83 <h3>Full Cas scading Style Sheet (CSS) v1.2 support</h3>83 <h3>Full Cascading Style Sheet (CSS) v1.2 support</h3> 84 84 <p> 85 85 phpBMS takes advantage of CSS v1.2 to render pages. Without this