phpBMS

Changeset 672

Show
Ignore:
Timestamp:
10/26/09 14:08:14 (3 years ago)
Author:
nate
Message:
  • Fixed typos as per the patch in ticket #369.
Location:
trunk/phpbms
Files:
12 modified

Legend:

Unmodified
Added
Removed
  • trunk/phpbms/include/search_class.php

    r666 r672  
    10131013 
    10141014 
    1015                         //check to see if critera has been saved to Session 
     1015                        //check to see if criteria has been saved to Session 
    10161016                        if(isset($_SESSION["tableparams"][$this->ref])) 
    10171017                                //grab the session 
     
    12871287                        return $message; 
    12881288                } 
    1289                  
     1289 
    12901290                /* 
    12911291                 * function runPush 
    12921292                 * @param string $pushRecordUuid 
    12931293                 */ 
    1294                  
     1294 
    12951295                function runPush($pushRecordUuid) { 
    1296                          
     1296 
    12971297                        include_once("modules/api/include/push.php"); 
    1298                          
     1298 
    12991299                        $uuidArray = getUuidArray($this->db, $this->tabledefuuid, $this->idsArray); 
    1300                          
     1300 
    13011301                        if($uuidArray === false) 
    13021302                                $uuidArray = array(); 
    1303                          
     1303 
    13041304                        $push = new push($this->db, $pushRecordUuid, $uuidArray); 
    13051305                        $thereturn = $push->process(); 
    1306                          
     1306 
    13071307                        if($thereturn !== false) 
    13081308                                $message = count($push->uuidArray)." record(s) pushed."; 
    13091309                        else 
    13101310                                $message = "An error has occured."; 
    1311                          
     1311 
    13121312                        return $message; 
    1313                          
     1313 
    13141314                }//end function 
    13151315 
  • trunk/phpbms/install/index.php

    r526 r672  
    335335                                </p> 
    336336 
    337                                 <h2>Availale Modules</h2> 
     337                                <h2>Available Modules</h2> 
    338338 
    339339                                <?php $moduleClass->displayInstallTable() ?> 
     
    377377                                                    phpBMS has a scheduler function that runs items on a timed basis using cron 
    378378                                                    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 this 
     379                                                    Scheduler under the system menu after logging in for details on configuring this 
    380380                                                    in your crontab file.  Once configured, you will want to disable your web server from 
    381381                                                    allowing this file to be called from your web server (the outside). 
  • trunk/phpbms/modules/base/general_import.php

    r592 r672  
    154154                                        </p> 
    155155                                        <p> 
    156                                                 Delimeters are commas (,) and enclosures are double-quotes (").  If you 
     156                                                Delimiters are commas (,) and enclosures are double-quotes (").  If you 
    157157                                                wish to escape a double-quote character inside of an enclosure, add another 
    158158                                                double-quote character (e.g ...,"Benny ""The Jet"" Rodriguez",...), or with 
  • trunk/phpbms/modules/base/include/widgets.php

    r579 r672  
    7878                        if(isset($variables["title"])){ 
    7979                                if($variables["title"] === "" || $variables["title"] === NULL) 
    80                                         $this->verifyErrors[] = "The `title` field must be not be blank."; 
     80                                        $this->verifyErrors[] = "The `title` field must not be blank."; 
    8181                        }else 
    8282                                $this->verifyErrors[] = "The `title` field must be set."; 
     
    8484                        if(isset($variables["file"])){ 
    8585                                if($variables["file"] === "" || $variables["file"] === NULL) 
    86                                         $this->verifyErrors[] = "The `file` field must be not be blank."; 
     86                                        $this->verifyErrors[] = "The `file` field must not be blank."; 
    8787                        }else 
    8888                                $this->verifyErrors[] = "The `file` field must be set."; 
  • trunk/phpbms/modules/base/tabledefs_addedit.php

    r646 r672  
    203203                                <?php $theform->showField("importfile") ?><br /> 
    204204                                <span class="notes">file name, including path from application root, that is used for importing records. If none 
    205                                 is specfied, the general import for the table def will be used.  This may not always result in accurate imports for 
     205                                is specified, the general import for the table def will be used.  This may not always result in accurate imports for 
    206206                                the more complicated table definitions.</span> 
    207207                        </p> 
     
    241241                        <div id="defaultQuickSearch" <?php if($therecord["defaultsearchtype"]=="") echo "style=\"display:none;\""?>> 
    242242                                <p> 
    243                                         <label for="defaultcriteriafindoptions">critera: 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/> 
    244244                                        <textarea id="defaultcriteriafindoptions" name="defaultcriteriafindoptions" cols="32" rows="2"><?php echo htmlQuotes($therecord["defaultcriteriafindoptions"])?></textarea> 
    245245 
  • trunk/phpbms/modules/base/users_addedit.php

    r638 r672  
    123123                <p class="notes"> 
    124124                        user accounts marked as portal access cannot login to phpBMS, but are used by external applications 
    125                         when creating/modifiying information from outside the application for recording purposes. 
     125                        when creating/modifying information from outside the application for recording purposes. 
    126126                </p> 
    127127        </fieldset> 
  • trunk/phpbms/modules/base/widgets/workload/class.php

    r572 r672  
    253253                                                        <p><?php echo $bottomInfo ?></p> 
    254254 
    255                                                 <? }//endif ?> 
     255                                                <?php }//endif ?> 
    256256                                        </div> 
    257257 
  • trunk/phpbms/modules/bms/clients_import.php

    r575 r672  
    175175                                        </p> 
    176176                                        <p> 
    177                                                 Delimeters are commas (,) and enclosures are double-quotes (").  If you 
     177                                                Delimiters are commas (,) and enclosures are double-quotes (").  If you 
    178178                                                wish to escape a double-quote character inside of an enclosure, add another 
    179179                                                double-quote character (e.g ...,"Benny ""The Jet"" Rodriguez",...), or with 
     
    195195                                        </p> 
    196196                                        <p> 
    197                                                 Delimeters are commas (,) and enclosures are double-quotes ("). <span class="notes" >(This 
     197                                                Delimiters are commas (,) and enclosures are double-quotes ("). <span class="notes" >(This 
    198198                                                is done by default by Sugar CRM)</span> If you wish to escape a double-quote character 
    199199                                                inside of an enclosure, add another double-quote character (e.g ...,"Benny 
  • trunk/phpbms/modules/bms/include/receipts.php

    r657 r672  
    407407 
    408408                                if(!in_array(((string)$variables["paymentmethodid"]),$this->_availablePaymentMethodUUIDs)) 
    409                                         $this->verifyErrors[] = "The `paymentmethod` field does not give an existing/accpetable payment method uuid."; 
     409                                        $this->verifyErrors[] = "The `paymentmethod` field does not give an existing/acceptable payment method uuid."; 
    410410 
    411411                        }else 
  • trunk/phpbms/modules/sample/include/sampletable.php

    r621 r672  
    77        that helps in the above functions, or with display. 
    88 
    9         This sample will show you how to do some basic overides. 
    10         Remember to instantiate the overrided class 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. 
    1111 
    1212 
  • trunk/phpbms/report/pdfreport_class.php

    r314 r672  
    3838*/ 
    3939        class pdfColumn{ 
    40                  
     40 
    4141                var $title; 
    4242                var $fieldname; 
     
    4444                var $format; 
    4545                var $align = "L"; 
    46          
     46 
    4747                function pdfColumn($title, $fieldname, $size = 1, $format = "", $align = "L"){ 
    48                  
     48 
    4949                        $this->title = $title; 
    5050                        $this->fieldname = $fieldname; 
     
    5252                        $this->format = $format; 
    5353                        $this->align = $align; 
    54                  
    55                 }//end method 
    56          
     54 
     55                }//end method 
     56 
    5757        }//end class 
    5858 
    5959        class pdfColor{ 
    60                  
     60 
    6161                var $r = 0; 
    6262                var $g = 0; 
     
    6464 
    6565                function pdfColor($r = 0,$g = 0,$b = 0){ 
    66                  
     66 
    6767                        $this->r = $r; 
    6868                        $this->g = $g; 
    6969                        $this->b = $b; 
    70                  
    71                 }//end method 
    72                                  
    73         }//end class 
    74  
    75          
     70 
     71                }//end method 
     72 
     73        }//end class 
     74 
     75 
    7676        class pdfFont { 
    77          
     77 
    7878                var $family = "Arial"; 
    7979                var $style = ""; 
    8080                var $size = 8; 
    81                  
     81 
    8282                function pdfFont($family = "Arial", $style ="", $size = 8){ 
    83                          
     83 
    8484                        $this->family = $family; 
    8585                        $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 
    9393        class pdfStyle{ 
    94          
     94 
    9595                var $font = NULL; 
    9696                var $textColor = NULL; 
    9797                var $backgroundColor = NULL; 
    98                  
     98 
    9999                function pdfStyle($font = NULL, $textColor = NULL, $backgroundColor = NULL){ 
    100                          
     100 
    101101                        if($font) $this->font = $font; 
    102102                        if($textColor) $this->textColor = $textColor; 
    103103                        if($backgroundColor) $this->backgroundColor = $backgroundColor; 
    104                  
    105                 }//end method 
    106                  
    107         }//end class 
    108          
     104 
     105                }//end method 
     106 
     107        }//end class 
     108 
    109109 
    110110        if(!class_exists("MEM_IMAGE")){ 
    111          
     111 
    112112                include("fpdf/fpdf.php"); 
    113113                include("fpdf/mem_image.php"); 
    114          
     114 
    115115        }//end if 
    116116 
    117117        class phpbmsPDFReport extends MEM_IMAGE { 
    118          
     118 
    119119                var $borderDebug = 0; 
    120          
     120 
    121121                var $leftmargin = 0.5; 
    122122                var $rightmargin = 0.5; 
     
    124124                var $paperwidth = 8.5; 
    125125                var $paperlength = 11; 
    126                  
     126 
    127127                var $hasComapnyHeader = false; 
    128128                var $companyImageWidth = 1; 
    129                  
     129 
    130130                var $styles = array(); 
    131                  
    132          
     131 
     132 
    133133                function phpbmsPDFReport($db, $orientation='P', $unit='mm', $format='Letter'){ 
    134                  
     134 
    135135                        $this->db = $db; 
    136                          
     136 
    137137                        parent::MEM_IMAGE($orientation, $unit, $format); 
    138                          
     138 
    139139                        $this->initStyles(); 
    140140                        $this->SetLineWidth(0.01); 
    141                          
    142                 }//end method 
    143                  
    144                  
     141 
     142                }//end method 
     143 
     144 
    145145                function initStyles(){ 
    146                          
     146 
    147147                        //here we set the standard styles 
    148148 
    149                         // NORMAL                        
     149                        // NORMAL 
    150150                        $font = new pdfFont("Arial", "", 8); 
    151151                        $style = new pdfStyle($font); 
     
    168168 
    169169                        $this->styles["header"] = $style; 
    170                  
     170 
    171171                }//end method 
    172172 
    173173 
    174174                function defineStyle($name, $pdfStyleObj){ 
    175                  
     175 
    176176                        if(get_class($pdfStyleObj) != "pdfStyle") 
    177                                 $error = new appError(1400,"defineStyle Method needs pdfStyle obeject 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 
    179179                        $this->styles[$name] = $pdfStyleObj; 
    180                  
     180 
    181181                }//end if 
    182182 
    183183 
    184184                function setStyle($name){ 
    185                  
     185 
    186186                        if(!isset($this->styles[$name])) 
    187187                                $name = "normal"; 
    188                                  
     188 
    189189                        $newStyle = $this->styles[$name]; 
    190190 
     
    193193                        else 
    194194                                $this->SetFont("Arial", "", 8); 
    195                                  
     195 
    196196                        if(isset($newStyle->textColor)) 
    197197                                $this->SetTextColor($newStyle->textColor->r, $newStyle->textColor->g, $newStyle->textColor->b); 
    198198                        else 
    199199                                $this->SetTextColor(0,0,0); 
    200                  
     200 
    201201                        if(isset($newStyle->backgroundColor)) 
    202202                                $this->SetFillColor($newStyle->backgroundColor->r, $newStyle->backgroundColor->g, $newStyle->backgroundColor->b); 
    203203                        else 
    204204                                $this->SetFillColor(255,255,255); 
    205                  
     205 
    206206                }//end if 
    207207 
    208208 
    209209                function SetMargins(){ 
    210                                                  
     210 
    211211                        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(){ 
    217217                        if($this->hasComapnyHeader){ 
    218                          
     218 
    219219                                $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 
    222222                                $querystatement = " 
    223                                         SELECT  
     223                                        SELECT 
    224224                                                `file`, 
    225225                                                UPPER(`type`) AS `type` 
    226                                         FROM  
    227                                                 files  
    228                                         WHERE  
     226                                        FROM 
     227                                                files 
     228                                        WHERE 
    229229                                                id=1"; 
    230                                                  
     230 
    231231                                $pictureresult = $this->db->query($querystatement); 
    232                                  
     232 
    233233                                $thepicture = $this->db->fetchArray($pictureresult); 
    234                                  
     234 
    235235                                if($thepicture["type"]=="IMAGE/JPEG"){ 
    236                                  
     236 
    237237                                        global $image; 
    238238                                        $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 
    241241                                } 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 
    244244                                //company name 
    245245                                $this->SetXY($this->companyImageWidth + $this->leftmargin, $this->topmargin); 
    246246                                $this->SetFont("Times","B",12); 
    247247                                $this->Cell(4, 0.25, $cname, $this->borderDebug, 2, "L"); 
    248                          
     248 
    249249                                //and last, company address 
    250250                                $this->SetFont("Times","",8); 
    251251                                $this->MultiCell(4, .125 , $caddress, $this->borderDebug); 
    252                                                                  
     252 
    253253                        }//end if 
    254                          
    255                 }//end method    
    256                  
    257         }//end class 
    258          
     254 
     255                }//end method 
     256 
     257        }//end class 
     258 
    259259?> 
  • trunk/phpbms/requirements.php

    r485 r672  
    7575                        <h3>Cookie support</h3> 
    7676                        <p> 
    77                                 phpBMS sets a single cookie to track your login.  Cookie suport for this site 
     77                                phpBMS sets a single cookie to track your login.  Cookie support for this site 
    7878                                must be enabled in order for the application to allow you to log in 
    7979                        </p> 
     
    8181 
    8282                <li> 
    83                         <h3>Full Casscading Style Sheet (CSS) v1.2 support</h3> 
     83                        <h3>Full Cascading Style Sheet (CSS) v1.2 support</h3> 
    8484                        <p> 
    8585                                phpBMS takes advantage of CSS v1.2 to render pages.  Without this 
phpBMS vulnerability assesment provided by Orvant Inc. Copyright © 2010 Kreotek, LLC. All Rights reserved.