<?php
/**
* (c) 2000, 2001, 2002, 2003 Remistech Sdn Bhd. All Rights Reserved.
*  Developed by John Lim
*  Licensed to Natsoft (M) Sdn Bhd to distribute and support. Refer to LICENSE document.
*/

// en_uk stands for English, US version
class PHPLens_en_us {
// first array element is a filler, do not remove -- 13 elements in txtMonths array
var $txtMonths = array('??','January','February','March','April','May','June','July','August','September','October','November','December');
var $txtWeekDays = array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");  

// For month, "m" will be text input box, 'N' will make it a popup
var $fmtDateInput="m/d/Y"; // this must be 5 chars long, with same separator character
var $fmtTimeStampInput="m/d/Y h:i:s A";

var $fmtDateOutput="M-d-Y"; // format must match PHP date() function
var $fmtTimeStampOutput="M-d-Y h:i:s A"; // format must match PHP date() function
var $fmtThousands = ',';
var $fmtDecimal = '.';

// Icon text
var $dynEditIcon = '<img src="$PHPLENS_PATH/img/editbtn.gif" border=0 width=14 height=13 alt="phpLens Settings" />';
var $dynEditColIcon = '<img src="$PHPLENS_PATH/img/editcol.gif" border=0 width=14 height=13 alt="Column Settings" />';
var $dynEditTabIcon = '<img src="$PHPLENS_PATH/img/edittab.gif" border=0 width=14 height=13 alt="Choose Visible Columns" />';
var $menuPrev = '<img src="$PHPLENS_PATH/img/prev.gif" width=20 height=20 border=0 alt=Previous />';
var $menuNext = '<img src="$PHPLENS_PATH/img/next.gif" width=20 height=20 border=0 alt=Next />';
var $menuBegin = '<img src="$PHPLENS_PATH/img/begin.gif" width=20 height=20 border=0 alt=Begin />';
var $menuEnd = '<img src="$PHPLENS_PATH/img/end.gif" width=20 height=20 border=0 alt="End$END" />';
var $menuFilter = '<img src="$PHPLENS_PATH/img/filter.gif" width=20 height=20 border=0 alt=Search />';
var $menuFilterReset = '<img src="$PHPLENS_PATH/img/filterreset.gif" width=20 height=20 border=0 alt="Reset Search" />';
var $menuClear = '<img src="$PHPLENS_PATH/img/dot.gif" width=20 height=20 border=0 />';
var $menuNew = '<img src="$PHPLENS_PATH/img/new.gif" width=20 height=20 border=0 alt="New Record" />';

var $iconDel = '<img src="$PHPLENS_PATH/img/del.gif" width=13 height=13 alt=Delete border=0 />';
var $iconEdit = '<img src="$PHPLENS_PATH/img/edit.gif" width=17 height=15 alt=Edit border=0 />';

// Warnings
var $txtWarnNewRecord = "Warning: you cannot create new records till you select some <a href=%s?lens_e_%s=new>New Record Columns</a><br>";
var $txtWarnEditRecord = "Warning: you cannot create edit records till you select some <a href=%s?lens_e_%s=edit>Edit Record Columns</a><br>";
var $txtWarnKeyCol = "Warning: Editing and New Record might not work. Key Column <i>%s</i> not found in among the selected columns. <a href=\"%s?lens_e_%s=nav\">Edit Here</a><br>";
var $txtWarnEmail =  'Expected email format such as info@phplens.com or info@natsoft.com.my';
var $txtWarnRedirect = "<H3>Redirecting web page. If the redirection does not work, click on the link below</H3>";
// Javascript Text -- not used
// var $txtJSValidationErr='\\n\\n X: A-Z or 0-9 must fill\\n x: A-Z or 0-9 optional\\n #: 0-9 must fill\\n 9: 0-9 optional\\n ?: A-Z must fill';

// Search Text
var $txtMatchExact = "Match Exactly &nbsp; ";
var $txtMatchBegin = "Match Beginning &nbsp; ";
var $txtMatchAnywhere ="Match Anywhere &nbsp; ";

// Captions
// Note that captions support for following macro variables: 
// $PageNo: The current page number
var $topCaption = '<b><font color=white> &nbsp; PHPLens</font></b>';
var $bottomCaption = '<font color=white> &nbsp; <b>00&gt;</b> <font size=2>Visualize your Information &nbsp; (Page $PageNo) &nbsp;</font></font>';

// Error Txt
var $txtInvalidValue = 'Field = '; # for javascript validation
var $txtInvalidDate = 'Invalid Date ';	
var $txtInvalidTimeStamp = 'Invalid TimeStamp ';	
var $txtInvalidNumber = 'Invalid Number ';
var $txtMustFill = 'Must Fill: ';
var $txtErrGroupLens = 'Invalid Group Column ($this->groupLens): ';
var $txtErrID = 'Invalid $id passed to PHPLens constructor. Must be alphanumeric chars only and max length: ';
var $txtErrChartSQL = 'Error in SQL to find min,max for chart';
var $txtErrSessions = 'Cannot save variable. Sessions not available.';
var $txtErrSpaceInName = "Cannot handle column name with embedded spaces: ";
var $txtErrAuth = "You need to set a phpLens property. You are not authorised to carry out this action: ";
var $txtErrNoRecords = "No records found";
var $txtImageNotFound = "Image";
var $txtNoDataOrSQLError = 'No data returned (sql error?)';
var $txtErrModified = 'Cannot save. Data has just been modified by another user. Please retry.';
var $txtErrNoNewPerms = "No permission to create new records";
var $txtErrNoEditPerms = "No permission to update records";

// Misc Text
var $txtMatchPassword = "PASSWORD"; // text to match for password input fields. Uppercase please
var $txtError = "Error "; // make sure there is a space at the end of this string...
var $txtClearAll = '<font size=1>Clear All</font>';
var $txtCheckAll = '<font size=1>Check All</font>';
var $txtPrev = 'Prev';
var $txtNext = 'Next';	
var $txtBegin = 'Begin'	;
var $txtEnd = 'End';
var $txtEdit = 'Edit';
var $txtFilter = 'Search';
var $txtFilterReset = 'Clear Search';
var $txtDel = 'Delete';
var $txtTotal = 'Total:'; // should have : at the end
var $txtSubTotal = 'Subtotal:'; // should have : at the end
var $txtExpected='Expected format';
var $txtSubmit = 'Submit';
var $txtTrue = 'Yes';
var $txtFalse = 'No';
var $txtUndefined = 'Undefined';
var $txtField = 'Field';

// the text used in describing timestamp fields
var $txtShortTimeStamp = 'Day/Mth/Yr/Hr/Min/Sec/AM/PM'; // always use / separator

// used for submit buttons
var $txtNew = ' &nbsp; New &nbsp; ';
var $txtSave = ' &nbsp; Save &nbsp; ';

// used for cancel buttons
var $txtCancel = 'Cancel';

// NEW TO PHPLENS 1.2
// displayed in topCaption when editing/creating
var $editCaption = '<font color=white id=lens-tedit><b>Edit Record</b></font>';
var $newCaption = '<font color=white id=lens-tnew><b>New Record</b></font>';

//------------------
// NEW TO PHPLENS 2
var $txtRecord = 'Record';
var $txtNegativeNumber = 'Must be a Positive Number ';

//---------------------
// NEW TO PHPLENS 2.1.2
// displayed in topCaption of search form - default is blank for backward compat
var $filterCaption = '<b>&nbsp;</b>';

//-------------------
// NEW TO PHPLENS 2.2
// for export to excel/csv feature
var $menuExport = '<img src="$PHPLENS_PATH/img/excel.gif" width=20 height=20 border=0 alt="Export to Excel" />';
var $exportReturn = "<h3>Export completed. Go <a href='javascript:history.back()'>back</a> to previous page</h3>";

//---------------------
// NEW TO PHPLENS 2.4.2
// caption displayed in delete icon
var $txtDeleteRecord = 'Delete Record';

//---------------------
// NEW TO PHPLENS 2.5.4
// for sorting form
var $menuSort = '<img src="$PHPLENS_PATH/img/sortasc.gif" width=20 height=20 border=0 alt="Set Sort Order" />';
var $txtSortForm = 'Set Sort Order^Fields^Sort Order';

var $upArrow = '&uarr;';
var $dnArrow = '&darr;';

var $txtSort = 'Sort';
var $txtAscending = '(a-z)';
var $txtDescending = '(z-a)';

var $txtRangeSign = '...'; // eg to represent -100...-30

//---------------------
// NEW TO PHPLENS 2.6.0

// for sorting form
var $up = 'Up';
var $down = 'Down';
var $left = '<b>&lt;&lt;</b>';
var $right = '<b>>></b>';

//-------------------------
// for searching/filtering 

// the following text is used for ranges in the search form
var $betweenTxt = array('(to)','(until)'); // lowercase and wrapped in ( )
var $txtMatchOr = 'Find More'; // new checkbox in search form

// help icon to display in search screen
var $menuHelp = '<img src="$PHPLENS_PATH/img/help.gif" width=20 height=20 border=0 alt="Help" />';

// help text to display in search screen
// make sure that all new-lines use \\n
// note also that _TO_ is replaced with $lens->lang->betweenTxt[0];
var $txtFilterHelp = "
Use <,>,<=,>= to search for inequalities. \\n
   <= 3.14159\\n
\\n
To search ranges use \"_TO_\".\\n
   1 _TO_ 100\\n
   1998 _TO_ 2005\\n
   London _TO_ Paris\\n
\\n
If \"%s\" is unchecked, we search:     \\n
   field1=value AND field2=value\\n
If \"%s\" is checked, then we search:\\n
   field1=value OR field2=value\\n
";


//---------------------
// NEW TO PHPLENS 2.8.0

// displayed in "Last Page" icon as a popup caption when scrollLinks > 0
var $atPage = ' (Page %s)';

//  NEW TO PHPLENS 3.0.0
var $txtMinChars = 'Searching requires a minimum number of characters';

//  NEW TO PHPLENS 3.3.0
var $txtNoPermsUpdateThis = 'No permission to edit this record.';
}; 
?>