Source code of file oscpmwin_v0.1.1.652/oscpmdata.pas from the
osCommerce Product Manager for Windows.


0000:   {%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0001:   osCommerce Product Manager for Windows (oscpmwin).
0002:   0003:   
0004:   You can contact Mario A. Valdez-Ramirez
0005:   by email at mario@mariovaldez.org or paper mail at
0006:   Olmos 809, San Nicolas, NL. 66495, Mexico.
0007:   
0008:   This program is free software; you can redistribute it and/or modify
0009:   it under the terms of the GNU General Public License as published by
0010:   the Free Software Foundation; either version 2 of the License, or (at
0011:   your option) any later version.
0012:   
0013:   This program is distributed in the hope that it will be useful, but
0014:   WITHOUT ANY WARRANTY; without even the implied warranty of
0015:   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
0016:   General Public License for more details.
0017:   
0018:   You should have received a copy of the GNU General Public License
0019:   along with this program; if not, write to the Free Software
0020:   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
0021:   %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%}
0022:   unit oscpmdata;
0023:   
0024:   interface
0025:   
0026:   USES Windows, Forms, Controls, Classes, SysUtils, ComCtrls;
0027:   
0028:   
0029:   CONST
0030:     opmC_FindByID = 1;
0031:     opmC_FindByIndex = 2;
0032:     opmC_FindByNode = 3;
0033:     opmC_SQLSelect = 0;
0034:     opmC_SQLInsert = 1;
0035:     opmC_SQLUpdate = 2;
0036:     opmC_SQLDelete = 3;
0037:     opmC_SQLDelIns = 4;
0038:     opmC_SQLDelInsNoZero = 5;
0039:     opmC_ImageDontExist = 0;
0040:     opmC_ImageMayExist = 1;
0041:     opmC_ImageExists = 2;
0042:     opmC_ImageIsEmpty = 3;
0043:     opmC_ImageIsCorrupt = 4;
0044:     opmC_ImageIsBeingProcessed = 5;
0045:     opmC_ConnStatNo = 0;
0046:     opmC_ConnStatYes = 1;
0047:     opmC_ConnStatUnknown = 2;
0048:     opmC_ConnStatYesSSH = 3;
0049:     opmC_ConnStatIgnore = -1;
0050:     opmC_ProgressNone = 0;
0051:     opmC_ProgressIgnore = -1;
0052:     opmC_PTotalIgnore = -1;
0053:     opmC_SearchIgnore = 0;
0054:     opmC_SearchNo = 1;
0055:     opmC_SearchYes = 2;
0056:     opmC_SQLBackends = 'mysql-3.20'#13#10'mysql-3.23'#13#10'mysql-4.0';
0057:     opmC_AppName1 = 'osCommerce Product Manager';
0058:     opmC_AppName2 = 'for Windows';
0059:     opmC_AppShortName = 'oscpmwin';
0060:     opmC_Version = '0.1.1';
0061:     opmC_Homepage = 'http://www.mariovaldez.net/software/oscpmwin/';
0062:     opmC_Copyright = 'Copyright 2003, 2004, 2005 by Mario A. Valdez-Ramirez';
0063:     opmC_Email = 'mario@mariovaldez.org';
0064:     opmC_EmailURL = 'mailto:mario@mariovaldez.org';
0065:     opmC_OSCAppName = 'osCommerce 2.2';
0066:     opmC_OSCHomepage = 'http://www.oscommerce.com/';
0067:   0068:     opmC_UserAgent = opmC_AppShortName + '/' + opmC_Version;
0069:     opmC_Def_Host = 'localhost';
0070:     opmC_CheckUpdates_URL = 'http://www.mariovaldez.net/software/oscpmwin/checkupdates.php';
0071:   
0072:     opmC_Max_Products_PerList = 35000;
0073:     opmC_Max_Descriptions_PerList = 700000;
0074:     opmC_Max_Languages_PerList = 20;
0075:     opmC_Max_Categories_PerList = 5000;
0076:     opmC_Max_Menufacturers_PerList = 5000;
0077:     opmC_Max_Taxes_PerList = 150;
0078:   
0079:     opmC_Def_Port = 3306;
0080:     opmC_Def_Protocol = 'mysql-3.23';
0081:     opmC_Def_Database = 'catalog';
0082:     opmC_Def_Username = 'root';
0083:     opmC_Def_Password = 'root';
0084:     opmC_Def_ImgURL = 'http://localhost/catalog/images/';
0085:     opmC_Def_UploadURL = 'http://localhost/catalog/oscpm1_upload.php';
0086:     opmC_Def_ProxyHost = 'proxy';
0087:     opmC_Def_ProxyPort = 3128;
0088:     opmC_Def_DBConnWait = 1000;
0089:     opmC_Def_ModConnWait = 1000;
0090:     opmC_Def_SSHConnWait = 5000;
0091:     opmC_Def_DBConnRetries = 3;
0092:     opmC_Def_ModConnRetries = 5;
0093:     opmC_Def_ImgX = 200;
0094:     opmC_Def_ImgY = 250;
0095:     opmC_Def_ImgQ = 50;
0096:     opmC_Def_PaddingColor = 16777215;
0097:     opmC_Min_Port = 1;
0098:     opmC_Max_Port = 65535;
0099:     opmC_Min_ProxyPort = 1;
0100:     opmC_Max_ProxyPort = 65535;
0101:     opmC_Min_DBConnWait = 1000;
0102:     opmC_Max_DBConnWait = 60000;
0103:     opmC_Min_ModConnWait = 1000;
0104:     opmC_Max_ModConnWait = 60000;
0105:     opmC_Min_SSHConnWait = 1000;
0106:     opmC_Max_SSHConnWait = 60000;
0107:     opmC_Min_DBConnRetries = 1;
0108:     opmC_Max_DBConnRetries = 50;
0109:     opmC_Min_ModConnRetries = 1;
0110:     opmC_Max_ModConnRetries = 50;
0111:     opmC_Min_ImgX = 20;
0112:     opmC_Max_ImgX = 1024;
0113:     opmC_Min_ImgY = 20;
0114:     opmC_Max_ImgY = 1024;
0115:     opmC_Min_ImgQ = 0;
0116:     opmC_Max_ImgQ = 100;
0117:     opmC_RootCategory = 'Catalog';
0118:     opmC_DefWindow_XSize = 1016;
0119:     opmC_MinWindow_XSize = 300;
0120:     opmC_MaxWindow_XSize = 2000;
0121:     opmC_DefWindow_YSize = 600;
0122:     opmC_MinWindow_YSize = 200;
0123:     opmC_MaxWindow_YSize = 2000;
0124:     opmC_DefPWindow_XSize = 500;
0125:     opmC_MinPWindow_XSize = 500;
0126:     opmC_MaxPWindow_XSize = 2000;
0127:     opmC_DefPWindow_YSize = 500;
0128:     opmC_MinPWindow_YSize = 500;
0129:     opmC_MaxPWindow_YSize = 2000;
0130:     opmC_DefCatList_Size = 200;
0131:     opmC_MinCatList_Size = 50;
0132:     opmC_MaxCatList_Size = 500;
0133:     opmC_DefGauge_Size = 150;
0134:     opmC_DefCurPan_Size = 40;
0135:     opmC_DefMemPan_Size = 100;
0136:     opmC_Def_DisplayLang = 1;
0137:     opmC_Def_Col0X = 25;
0138:     opmC_Def_Col1X = 40;
0139:     opmC_Def_Col2X = 85;
0140:     opmC_Def_Col3X = 90;
0141:     opmC_Def_Col4X = 200;
0142:     opmC_Def_Col5X = 100;
0143:     opmC_Def_Col6X = 32;
0144:     opmC_Def_Col7X = 76;
0145:     opmC_Def_Col8X = 32;
0146:     opmC_Def_Col9X = 100;
0147:     opmC_Def_Col10X = 20;
0148:     opmC_Def_Col20X = 110;
0149:     opmC_Def_Col21X = 110;
0150:     opmC_Def_Col22X = 110;
0151:     opmC_MinColX = 25;
0152:     opmC_Def_Col0Align = taLeftJustify;
0153:     opmC_Def_Col1Align = taRightJustify;
0154:     opmC_Def_Col2Align = taLeftJustify;
0155:     opmC_Def_Col3Align = taLeftJustify;
0156:     opmC_Def_Col4Align = taLeftJustify;
0157:     opmC_Def_Col5Align = taLeftJustify;
0158:     opmC_Def_Col6Align = taRightJustify;
0159:     opmC_Def_Col7Align = taRightJustify;
0160:     opmC_Def_Col8Align = taRightJustify;
0161:     opmC_Def_Col9Align = taLeftJustify;
0162:     opmC_Def_Col10Align = taCenter;
0163:     opmC_Def_Col20Align = taLeftJustify;
0164:     opmC_Def_Col21Align = taLeftJustify;
0165:     opmC_Def_Col22Align = taLeftJustify;
0166:     opmC_Def_RememberDisplay = 1;
0167:     opmC_Def_HotTracking = 0;
0168:     opmC_Def_Autoload = 1;
0169:     opmC_Def_DragDrop = 0;
0170:     opmC_Def_ImgDragDrop = 0;
0171:     opmC_Def_ToolTips = 1;
0172:     opmC_Def_Compress = 1;
0173:     opmC_Def_UseProxy = 0;
0174:     opmC_Def_ProxyApply = 0;
0175:     opmC_Def_UseSSH = 0;
0176:     opmC_Def_SSHExe = 'plink.exe';
0177:     opmC_Def_SSHUsername = 'sshtunnel';
0178:     opmC_Def_SSHPassword = 'tunnel';
0179:     opmC_Def_SSHLocalHost = '127.0.0.1';
0180:     opmC_Def_SSHLocalPort = 3306;
0181:     opmC_Def_SSHCompress = 1;
0182:     opmC_Def_SSHProtocol = 2;
0183:     opmC_Def_StorePass = 1;
0184:     opmC_Def_Silent = 0;
0185:     opmC_Def_ConfirmDels = 1;
0186:     opmC_Def_ConfirmDrag = 0;
0187:     opmC_Def_ConfirmMods = 0;
0188:     opmC_Def_AllowZeroPrice = 0;
0189:     opmC_Def_AllowEditImageName = 0;
0190:     opmC_Def_AllowNegativeQuantity = 0;
0191:     opmC_Def_AutoDownImg = 0;
0192:     opmC_Def_NoCacheImg = 0;
0193:     opmC_Def_ResizeImg = 1;
0194:     opmC_Def_PaddingImg = 1;
0195:     opmC_Def_KeepARImg = 1;
0196:     opmC_Def_SmartRename = 1;
0197:     opmC_Def_ConfirmExit = 1;
0198:     opmC_Def_DBDebugLog = 0;
0199:     opmC_Def_DBDebug = 0;
0200:     opmC_Def_SSHDebug = 0;
0201:     opmC_Def_WBDebug = 0;
0202:     opmC_Def_GUILang = 'en';
0203:   
0204:     opmC_DBUsername_MaxLen = 128;
0205:     opmC_DBPassword_MaxLen = 128;
0206:     opmC_SSHUsername_MaxLen = 128;
0207:     opmC_SSHPassword_MaxLen = 128;
0208:   
0209:     opmC_ProdModel_MaxLen = 25;
0210:     opmC_ProdName_MaxLen = 64;
0211:     opmC_ProdWeight_MaxLen = 8;
0212:     opmC_ProdPrice_MaxLen = 18;
0213:     opmC_ProdQuantity_MaxLen = 16;
0214:     opmC_ProdURL_MaxLen = 255;
0215:     opmC_ProdImageURL_MaxLen = 64;
0216:     opmC_ProdDescription_MaxLen = 32000;
0217:     opmC_ProdSpecial_MaxLen = 18;
0218:     opmC_CatName_MaxLen = 32;
0219:     opmC_LangName_MaxLen = 32;
0220:     opmC_ManName_MaxLen = 32;
0221:   
0222:     opmC_CatList_Spacer = ' ';
0223:     opmC_Bevel_Size = 2;
0224:     opmC_Wait_Mouse = crHourGlass;
0225:     opmC_Normal_Mouse = crDefault;
0226:     opmC_MaxPast_Servers = 10;
0227:     opmC_MaxPast_Usernames = 10;
0228:     opmC_MaxPast_SSHUsernames = 10;
0229:     opmC_MaxPast_Databases = 10;
0230:     opmC_MaxPast_ImgURL = 10;
0231:     opmC_MaxPast_UploadURL = 10;
0232:     opmC_MaxPast_Proxy = 10;
0233:     opmC_Unamed_Cat = '- - - - - - - -';
0234:     opmC_Unamed_Man = '- - - - - - - -';
0235:     opmC_Unamed_Prod = '- - - - - - - -';
0236:     opmC_Unamed_Tax = '- - - - - - - -';
0237:     opmC_Def_ExportExt = 'txt';
0238:     opmC_Def_ExportFilename = 'export_products.txt';
0239:     opmC_Def_ExportFilter = '*.txt;*.csv;*.tab';
0240:     opmC_Def_ImportExt = 'txt';
0241:     opmC_Def_ImportFilename = 'import_products.txt';
0242:     opmC_Def_ImportFilter = '*.txt;*.csv;*.tab';
0243:     opmC_ExportSeparator = #9;
0244:     opmC_ExportJSeparator = ' | ';
0245:     opmC_ExportJHSeparator = '-';
0246:     opmC_PasswordChar = '*';
0247:   
0248:     opmC_WebScriptVersion = '0.1.9';
0249:     opmC_WebScriptOKCode = 'OK';
0250:     opmC_WebScriptBadVerCode = 'ERROR WRONG SCRIPT VERSION';
0251:   
0252:     opmC_InsertProdID = 999999;
0253:     opmC_MaxMemoryLoad = 90;
0254:     opmC_DefaultFont = 'Arial';
0255:     opmC_DefaultFontHeight = -11;
0256:     opmC_DefaultFontCharset = DEFAULT_CHARSET;
0257:     opmC_DefaultFontStyle = [];
0258:     opmC_Min_FontHeight = 6;
0259:     opmC_Max_FontHeight = 100;
0260:     opmC_Def_Clip_ColSize = 30;
0261:     opmC_Min_Clip_ColSize = 3;
0262:     opmC_Max_Clip_ColSize = 400;
0263:     opmC_Def_PRNDirectPrint = 0;
0264:     opmC_PrintTitle_Separator = '-';
0265:     opmC_MiliSecIncrement = 1000;
0266:     opmC_Def_DBTable_Categories = 'categories';
0267:     opmC_Def_DBTable_Manufacturers = 'manufacturers';
0268:     opmC_Def_DBTable_Languages = 'languages';
0269:     opmC_Def_DBTable_Products = 'products';
0270:     opmC_Def_DBTable_Specials = 'specials';
0271:     opmC_Def_DBTable_ProductsDescription = 'products_description';
0272:     opmC_Def_DBTable_TaxClass = 'tax_class';
0273:     opmC_Def_DBTable_Currencies = 'currencies';
0274:     opmC_Def_DBTable_Configuration = 'configuration';
0275:     opmC_Def_DBTable_ProductsToCategories = 'products_to_categories';
0276:     opmC_Def_DBTable_CategoriesDescription = 'categories_description';
0277:     opmC_Def_DBTable_TaxRates = 'tax_rates';
0278:     opmC_Def_DBTable_ManufacturersInfo = 'manufacturers_info';
0279:     opmC_DebugFile = 'OSCDEBUG.TXT';
0280:     opmC_DebugFileSeparator = '======================================';
0281:     opmC_Def_PDate = 36161;  {01/01/1999}
0282:     opmC_Max_PDate = 44196;  {31/12/2020}
0283:     opmC_Min_PDate = 29221;  {01/01/1980}
0284:     opmC_PDate_Format = 'yyyy-MM-dd';
0285:     opmC_Def_Past_PAvailDate = opmC_Def_PDate;
0286:     opmC_Def_Past_PManufacturer = 0;
0287:     opmC_Def_Past_PTaxClass = 0;
0288:     opmC_Def_Past_PImageDir = '';
0289:   
0290:     opmC_DirReports = 'reports';
0291:     opmC_Report_ProdList1 = 'prodlist1.frf';
0292:     opmC_Def_ReportExt = 'frf';
0293:   
0294:     opmC_ETABitrates = '28 kbps (dialup)'#13#10'56 kbps (dialup)'#13#10'64 kbps (ISDN)'#13#10'128 kbps (ISDN, ADSL, Cable)'#13#10'256 kbps (ADSL, Cable)'#13#10'512 kbps (ADSL, Cable)'#13#10'1500 kbps (ADSL, Cable, LAN)';
0295:     opmC_Def_ETABase = '28';
0296:   
0297:     opmC_SC_Parent = 9999999;
0298:     opmC_SC_BaseID = 10000000;
0299:     opmC_SC_TrashCanID = 10000001;
0300:     opmC_SC_TrashCanIndex = 10000001;
0301:   
0302:     opmC_Capa_OSCommerce = 'OSCSTANDARD';
0303:     opmC_Capa_MorePics6 = 'MOREPICS6';
0304:     opmC_Capa_TotalB2B = 'TOTALB2B';
0305:     opmC_Capa_PollBooth = 'POLLBOOTH';
0306:     opmC_Capa_HeaderTags = 'HEADERTAGS';
0307:   
0308:     opmC_DirBackups = 'backups';
0309:     opmC_Def_BackupExt = 'gz';
0310:     opmC_Def_BackupFilename = '';
0311:     opmC_Def_BackupFilter = '*.gz';
0312:     opmC_TmpBak_Filename = 'oscpmtmp.bak';
0313:   
0314:   
0315:   TYPE
0316:     opmR_Category = RECORD
0317:                        ID : LONGINT;
0318:                        Parent : LONGINT;
0319:                        Name : STRING;
0320:                        TreeIndex : LONGINT;
0321:                        ListIndex : LONGINT;
0322:                      END;
0323:     opmR_SingleCategory = RECORD
0324:                             ID : LONGINT;
0325:                             Parent : LONGINT;
0326:                             Name : STRING;
0327:                             LanguageID : LONGINT;
0328:                           END;
0329:     opmR_Manufacturer = RECORD
0330:                            ID : LONGINT;
0331:                            Name : STRING;
0332:                            ListIndex : LONGINT;
0333:                          END;
0334:     opmR_Language = RECORD
0335:                        ID : LONGINT;
0336:                        Name : STRING;
0337:                        ListIndex : LONGINT;
0338:                      END;
0339:     opmR_Product = RECORD
0340:                        ID : LONGINT;
0341:                        Model : STRING;
0342:                        Quantity : LONGINT;
0343:                        Price : CURRENCY;
0344:                        Weight : REAL;
0345:                        ManufacturerID : LONGINT;
0346:                        CategoryID : LONGINT;
0347:                        DisplayName : STRING;
0348:                        ImageURL : STRING;
0349:                        Available : LONGINT;
0350:                        Special : CURRENCY;
0351:                        LanguageID : LONGINT;
0352:                        Tax : LONGINT;
0353:                        AvailDate : TDateTime;
0354:                        CreationDate : TDateTime;
0355:                        ChangeDate : TDateTime;
0356:                        ImageURL1, ImageURL2, ImageURL3, ImageURL4, ImageURL5, ImageURL6 : STRING;
0357:                      END;
0358:     opmR_Description = RECORD
0359:                        ID : LONGINT;
0360:                        Name : STRING;
0361:                        Description : STRING;
0362:                        URL : STRING;
0363:                        LanguageID : LONGINT;
0364:                        Viewed : LONGINT;
0365:                      END;
0366:     opmR_Tax = RECORD
0367:                  ID : LONGINT;
0368:                  Name : STRING;
0369:                  ListIndex : LONGINT;
0370:                  SumRate : REAL;
0371:                END;
0372:     opmR_Currency = RECORD
0373:                      Code : STRING;
0374:                      Left : STRING;
0375:                      Right : STRING;
0376:                    END;
0377:     opmT_CategoryList = ARRAY [0..opmC_Max_Categories_PerList] OF opmR_Category;
0378:     opmT_ManufacturerList = ARRAY [0..opmC_Max_Menufacturers_PerList] OF opmR_Manufacturer;
0379:     opmT_LanguageList = ARRAY [0..opmC_Max_Languages_PerList] OF opmR_Language;
0380:     opmT_ProductList = ARRAY [0..opmC_Max_Products_PerList] OF opmR_Product;
0381:     opmT_DescriptionList = ARRAY [0..opmC_Max_Descriptions_PerList] OF opmR_Description;
0382:     opmT_TaxList = ARRAY [0..opmC_Max_Taxes_PerList] OF opmR_Tax;
0383:     opmT_SingleDescList = ARRAY [0..opmC_Max_Languages_PerList] OF opmR_Description;
0384:     opmT_CurPosDescList = ARRAY [0..opmC_Max_Languages_PerList] OF INTEGER;
0385:     opmT_CharsetList = ARRAY [0..255] OF STRING;
0386:     opmT_SingleCatList = ARRAY [0..opmC_Max_Languages_PerList] OF opmR_SingleCategory;
0387:   
0388:   VAR
0389:     opmG_TMPPath : STRING;
0390:     opmG_DBHost : STRING;
0391:     opmG_DBPort : LONGINT;
0392:     opmG_DBProtocol : STRING;
0393:     opmG_ETABase : LONGINT;
0394:     opmG_DBDatabase : STRING;
0395:     opmG_DBUsername : STRING;
0396:     opmG_DBPassword : STRING;
0397:     opmG_WBImgURL : STRING;
0398:     opmG_WBUploadURL : STRING;
0399:     opmG_WBProxyHost : STRING;
0400:     opmG_WBProxyPort : LONGINT;
0401:     opmG_DBConnWait : LONGINT;
0402:     opmG_ModConnWait : LONGINT;
0403:     opmG_SSHConnWait : LONGINT;
0404:     opmG_DBConnRetries : LONGINT;
0405:     opmG_ModConnRetries : LONGINT;
0406:     opmG_WBImgX : LONGINT;
0407:     opmG_WBImgY : LONGINT;
0408:     opmG_WBImgQ : LONGINT;
0409:     opmG_WBPaddingColor : LONGINT;
0410:     opmG_UIWindow_XSize : LONGINT;
0411:     opmG_UIWindow_YSize : LONGINT;
0412:     opmG_UICatList_XSize : LONGINT;
0413:     opmG_UICol0X, opmG_UICol1X, opmG_UICol2X, opmG_UICol3X, opmG_UICol4X, opmG_UICol5X, opmG_UICol6X, opmG_UICol7X, opmG_UICol8X, opmG_UICol9X, opmG_UICol10X : LONGINT;
0414:     opmG_UICol20X, opmG_UICol21X, opmG_UICol22X : LONGINT;
0415:     opmG_UIRememberDisplay : WORD;
0416:     opmG_UIHotTracking : WORD;
0417:     opmG_UIClickLoad : WORD;
0418:     opmG_UIDragDrop : WORD;
0419:     opmG_UIImgDragDrop : WORD;
0420:     opmG_UIToolTips : WORD;
0421:     opmG_DBCompress : WORD;
0422:     opmG_UseProxy : WORD;
0423:     opmG_ProxyApply : WORD;
0424:     opmG_UseSSH : WORD;
0425:     opmG_SSHUsername : STRING;
0426:     opmG_SSHPassword : STRING;
0427:     opmG_SSHLocalPort : WORD;
0428:     opmG_DBStorePass : WORD;
0429:     opmG_UISilent : WORD;
0430:     opmG_UIConfirmDels : WORD;
0431:     opmG_UIConfirmDrag : WORD;
0432:     opmG_UIConfirmMods : WORD;
0433:     opmG_UIAllowZeroPrice : WORD;
0434:     opmG_UIAllowEditImageName : WORD;
0435:     opmG_UIAllowNegativeQuantity : WORD;
0436:     opmG_UIAutoDownImg : WORD;
0437:     opmG_WBNoCacheImg : WORD;
0438:     opmG_WBResizeImg : WORD;
0439:     opmG_WBPaddingImg : WORD;
0440:     opmG_WBKeepARImg : WORD;
0441:     opmG_WBSmartRename : WORD;
0442:     opmG_UIConfirmExit : WORD;
0443:     opmG_DBDebugLog : WORD;
0444:     opmG_UIDBDebug : WORD;
0445:     opmG_UISSHDebug : WORD;
0446:     opmG_UIWBDebug : WORD;
0447:     opmG_UIGUILang : STRING;
0448:     opmG_Past_PAvailDate : LONGINT;
0449:     opmG_Past_PManufacturer : LONGINT;
0450:     opmG_Past_PTaxClass : LONGINT;
0451:     opmG_Past_PImageDir : STRING;
0452:   
0453:     opmG_PastHost_BoxList : TStringList;
0454:     opmG_PastDatabase_BoxList : TStringList;
0455:     opmG_PastUsername_BoxList : TStringList;
0456:     opmG_PastSSHUsername_BoxList : TStringList;
0457:     opmG_PastImgURL_BoxList : TStringList;
0458:     opmG_PastUploadURL_BoxList : TStringList;
0459:     opmG_PastProxy_BoxList : TStringList;
0460:   
0461:     opmG_CategoryList : opmT_CategoryList;
0462:     opmG_ManufacturerList : opmT_ManufacturerList;
0463:     opmG_LanguageList : opmT_LanguageList;
0464:     opmG_ProductList : opmT_ProductList;
0465:     opmG_DescriptionList : opmT_DescriptionList;
0466:     opmG_TaxList : opmT_TaxList;
0467:     opmG_CategoryBoxList : TStringList;
0468:     opmG_ManufacturerBoxList : TStringList;
0469:     opmG_LanguageBoxList : TStringList;
0470:     opmG_TaxBoxList : TStringList;
0471:   
0472:     opm_TotalCategories : LONGINT;
0473:     opm_TotalManufacturers : LONGINT;
0474:     opm_TotalLanguages : LONGINT;
0475:     opm_TotalProducts : LONGINT;
0476:     opm_TotalTaxes : LONGINT;
0477:   
0478:     opm_CurrentLang : LONGINT;
0479:     opm_CurrentCategory : LONGINT;
0480:     opm_CurrentMan : LONGINT;
0481:     opm_CurrentProdID : LONGINT;
0482:     opm_CurrentProdRecord : opmR_Product;
0483:     opm_CurrentSingleDescList : opmT_SingleDescList;
0484:     opm_CurrentPEditRecord : opmR_Product;
0485:     opm_CurrentLangRecord : opmR_Language;
0486:     opm_CurrentCatRecord : opmR_Category;
0487:     opm_CurrentManRecord : opmR_Manufacturer;
0488:     opm_CurrentTaxRecord : opmR_Tax;
0489:     opm_CurrentCurrency : opmR_Currency;
0490:     opm_Search_PCategory : LONGINT;
0491:     opm_Search_PManufacturer : LONGINT;
0492:     opm_Search_PModel, opm_Search_PName, opm_Search_PDesc : STRING;
0493:     opm_Search_PSPrice, opm_Search_PImagURL, opm_Search_PAvailable : LONGINT;
0494:     opm_CanExpandTree_Flag : BOOLEAN;
0495:     opm_WeAreSearching : BOOLEAN;
0496:     opm_WeAreConnected : BOOLEAN;
0497:     opmG_RightClickTreeBug : BOOLEAN;
0498:     opmG_UIFontName : STRING;
0499:     opmG_UIFontHeight : LONGINT;
0500:     opmG_UIFontCharset : LONGINT;
0501:     opmG_CharsetList : opmT_CharsetList;
0502:     opmG_Clip_ColSize : LONGINT;
0503:     opmG_PRNDirectPrint : WORD;
0504:     opmG_DBTable_Categories : STRING;
0505:     opmG_DBTable_Manufacturers : STRING;
0506:     opmG_DBTable_Languages : STRING;
0507:     opmG_DBTable_Products : STRING;
0508:     opmG_DBTable_Specials : STRING;
0509:     opmG_DBTable_ProductsDescription : STRING;
0510:     opmG_DBTable_TaxClass : STRING;
0511:     opmG_DBTable_Currencies : STRING;
0512:     opmG_DBTable_Configuration : STRING;
0513:     opmG_DBTable_ProductsToCategories : STRING;
0514:     opmG_DBTable_CategoriesDescription : STRING;
0515:     opmG_DBTable_TaxRates : STRING;
0516:     opmG_DBTable_ManufacturersInfo : STRING;
0517:     opmG_PList_LastOrderColumn : LONGINT;
0518:     opmG_PList_LastOrderType : BOOLEAN;
0519:     opmG_Cur_PPrintID : LONGINT;
0520:     opmG_Cur_PPrintRecord : opmR_Product;
0521:     opmG_Cur_PrintListItem : TListItem;
0522:     opmG_Cur_PPrintEOF : BOOLEAN;
0523:     opmG_Cur_PPrintTitle : STRING;
0524:     opmG_Cur_PPrintTitle2 : STRING;
0525:   
0526:     opmG_Capa_MorePics6 : BOOLEAN;
0527:     opmG_Capa_TotalB2B : BOOLEAN;
0528:     opmG_Capa_PollBooth : BOOLEAN;
0529:     opmG_Capa_HeaderTags : BOOLEAN;
0530:   
0531:   
0532:   
0533:   IMPLEMENTATION
0534:   
0535:   INITIALIZATION
0536:   
0537:     opmG_CategoryBoxList := TStringList.Create;
0538:     opmG_ManufacturerBoxList := TStringList.Create;
0539:     opmG_LanguageBoxList := TStringList.Create;
0540:     opmG_TaxBoxList := TStringList.Create;
0541:     opmG_PastHost_BoxList := TStringList.Create;
0542:     opmG_PastDatabase_BoxList := TStringList.Create;
0543:     opmG_PastUsername_BoxList := TStringList.Create;
0544:     opmG_PastSSHUsername_BoxList := TStringList.Create;
0545:     opmG_PastImgURL_BoxList := TStringList.Create;
0546:     opmG_PastUploadURL_BoxList := TStringList.Create;
0547:     opmG_PastProxy_BoxList := TStringList.Create;
0548:     DateSeparator := '-';
0549:     ShortDateFormat	:= 'yyyy/mm/dd';
0550:     DecimalSeparator := '.';
0551:     ThousandSeparator := ',';
0552:     opmG_RightClickTreeBug := FALSE;
0553:     opmG_CharsetList[0] := 'ansi';
0554:     opmG_CharsetList[1] := 'default';
0555:     opmG_CharsetList[2] := 'symbol';
0556:     opmG_CharsetList[77] := 'mac';
0557:     opmG_CharsetList[128] := 'shiftjis';
0558:     opmG_CharsetList[129] := 'hangeul';
0559:     opmG_CharsetList[130] := 'johab';
0560:     opmG_CharsetList[134] := 'gb2312';
0561:     opmG_CharsetList[136] := 'chinesebig5';
0562:     opmG_CharsetList[161] := 'greek';
0563:     opmG_CharsetList[162] := 'turkish';
0564:     opmG_CharsetList[163] := 'vietnamese';
0565:     opmG_CharsetList[177] := 'hebrew';
0566:     opmG_CharsetList[178] := 'arabic';
0567:     opmG_CharsetList[186] := 'baltic';
0568:     opmG_CharsetList[204] := 'russian';
0569:     opmG_CharsetList[222] := 'thai';
0570:     opmG_CharsetList[238] := 'easteurope';
0571:     opmG_CharsetList[255] := 'oem';
0572:   
0573:   
0574:   FINALIZATION
0575:   
0576:     FreeAndNIL (opmG_CategoryBoxList);
0577:     FreeAndNIL (opmG_ManufacturerBoxList);
0578:     FreeAndNIL (opmG_LanguageBoxList);
0579:     FreeAndNIL (opmG_TaxBoxList);
0580:     FreeAndNIL (opmG_PastHost_BoxList);
0581:     FreeAndNIL (opmG_PastDatabase_BoxList);
0582:     FreeAndNIL (opmG_PastUsername_BoxList);
0583:     FreeAndNIL (opmG_PastSSHUsername_BoxList);
0584:     FreeAndNIL (opmG_PastImgURL_BoxList);
0585:     FreeAndNIL (opmG_PastUploadURL_BoxList);
0586:     FreeAndNIL (opmG_PastProxy_BoxList);
0587:   
0588:   end.
 
 
NA fum/lmd: 2007.07.15
Copyright ©1994-2017 by Mario A. Valdez-Ramírez.
no siga este enlace / do not follow this link