function subject($login1,$login2,$subject)
{
if(ereg("^.+@.+\\..+$",$subject))//means the subject contains a email address
{
$len=strlen($subject);
for($i=0;$i<$len;$i++)
{
if($subject[$i]=="@")
break;
}
for($j=$i-1;$j>0;$j--)
{
$n=$subject[$j];
if(ereg("[[:space:]]",$n))
{
break;
}
}
//now $j has the value of the starting address of the email
$j=$j+1;
for($k=$j;$k<$len;$k++)
{
$n=$subject[$k];
if(ereg("[[:space:]]",$n))
{
break;
}
}
$l=$k-$j;
$substring=substr($subject,$j,$l);
$pat="";
$subject=ereg_replace(trim($substring),$pat,trim($subject));
return($subject);
}//end of if
return($subject);
}//end of function
class BC_Timer{
//properties
var $stime;
var $etime;
//methods
//get_microtime function taken from Everett Michaud on Zend.com
function get_microtime(){
$tmp=split(" ",microtime());
$rt=$tmp[0]+$tmp[1];
return $rt;
}//end get_microtime()
function start_time(){
$this->stime = $this->get_microtime();
}//end start_time
function end_time(){
$this->etime = $this->get_microtime();
}//end start_time
function elapsed_time(){
return ($this->etime - $this->stime);
}//end start_time
}//end BC_Timer class
?>
/*
EZCOMM INDIA LTD, MUMBAI
Copyright (c), 2000 - yarnsandfibers.com,India
Auction Module For YnFx
December 8, 2000
Name: messages.inc.php
Aim: This file contains all the messages required by the auction module.
Any change made in this file will reflect globally.
*/
######################################## Error Messages ##############################################
$ERR = ""; // leave this line as is
$ERR_000 = "The following errors were detected:";
$ERR_001_1 = "Please specify whether you are seller or buyer ";
$ERR_001_2 = "Please specify whether auction is local or global ";
$ERR_001 = "Please specify the product";
$ERR_002 = "Please specify the fineness";
$ERR_002_1 = "Please specify the unit of fineness";
$ERR_002_2 = "Invalid fineness";
$ERR_003 = "Please specify the length";
$ERR_003_1 = "invalid length";
$ERR_004 = "Please specify the color";
$ERR_005 = "Please specify the grade";
$ERR_006 = "Please specify the quantity";
$ERR_006_1 = "Invalid quantity";
$ERR_007 = "Please specify the measuring unit for quantity";
$ERR_008 = "Please specify the type of package ";
$ERR_009 = "";
$ERR_010 = " ";
$ERR_011 = "";
$ERR_012 = "Please specify the weight per package";
$ERR_012_1 = "Invalid weight per package";
$ERR_013 = "Please specify the no of packages per container";
$ERR_013_1 = "Invalid no of packages per container";
$ERR_014 = "Please specify the net weight per container";
$ERR_014_2 = "Invalid net weight per container";
$ERR_014_1 = "Please specify the no of containers";
$ERR_014_3 = "Invalid no of containers";
$ERR_015 = "Please specify the port of shipment / discharge ";
$ERR_016 = "Please specify the payment details";
$ERR_017 = "Please specify the reseve price";
$ERR_017_1 = "Please specify the starting bid amount";
$ERR_018 = "Please specify the shipment date";
$ERR_019 = "Please specify the shipment month";
$ERR_020 = "Please specify the shipment year";
$ERR_021 = "Please specify the expiry date";
$ERR_022 = "Please specify the expiry month";
$ERR_023 = "Please specify the expiry year";
$ERR_024 = "Invalid bid amount";
$ERR_025 = "Your bid amount is less than the next permisible bid or ";
$ERR_025_1 = "Your bid amount is higher than the next permisible bid or ";
$ERR_026 = "Please specify login";
$ERR_027 = "Please specify password";
$ERR_028 = "Invalid expiry date";
$ERR_028_1 = "Invalid to date";
$ERR_029 = "Invalid shipment date";
$ERR_029_1 = "Invalid from date";
$ERR_030 = "Shipment date cannot occur before the expiry date of the auction";
$ERR_030_1 = "Duration( to) date cannot occur before duration ( from) date";
$ERR_031 = "Expiry date cannot occur before ";
$ERR_031_1 = "Duration ( to ) date cannot occur before current date";
$ERR_032 = "Shipment date cannot occur before current date";
$ERR_032_1 = "Duration ( from ) date cannot occur before current date";
$ERR_033 = "Please specify increment";
$ERR_034 = "Please specify currency";
$ERR_035 = "Other exceed max characters";
$ERR_036 = "Invalid reserve price";
$ERR_037 = "Invalid increment";
$ERR_038 = "Invalid starting bid";
$ERR_039 = "Unexpected error !!!";
$ERR_040= "Auction setter can NOT bid";
$ERR_041= "Your Auction has already been made";
$ERR_042= "Starting bid cannot be greater than reserve price.";
$ERR_043= "Incerement cannot be greater than reserve price.";
$ERR_044= "The sum of starting bid and increment cannot be more than reserve price ";
$ERR_045= "Starting bid should be greater than reserve price.";
$ERR_046= "Decrement should be less than reserve price.";
$ERR_047= "The difference between starting bid and decrement should be greater than reserve price ";
################################# Auction Authorization Level ########################################
$MSG_001 = "Auction Authorization Level";
$MSG_001_1 = "Auction Pre-qualification";
$MSG_002 = "Production Process";
$MSG_002_1="Indicate the type of machinery, technology and processes used by You.";
$MSG_002_2="This auction is for";
$MSG_002_3="Local use ( for people in my country of origin)";
$MSG_002_4="Global use ( for people all over the world )";
$MSG_003 = "Ratings & Certifications";
$MSG_004 = "Vendor Rating ( Hint: SGS )";
$MSG_005 = "Vendor Rating Registeration Number";
$MSG_006 = "Quality Certification ( Hint: ISO )";
$MSG_007 = "Quality Rating Registeration Number";
$MSG_008 = "Credit Rating";
$MSG_009 = "Credit Rating Registeration Number";
$MSG_010 = "Bank Details";
$MSG_011 = "Name of Bank";
$MSG_012 = "Address line1";
$MSG_013 = "Address line2";
$MSG_014 = "City";
$MSG_015 = "State";
$MSG_016 = "Zip/Pin";
$MSG_017 = "Country";
$MSG_018 = "Account Number";
$MSG_019 = "Phone";
$MSG_019_1 = "Bank's email";
$MSG_020 = "Can we get in touch with your bank?";
$MSG_021 = "Yes";
$MSG_022 = "No";
$MSG_023 = "Choose credit rating company";
$MSG_024 = "Choose country";
$MSG_024_1 = "Declaration: ";
$MSG_024_2 = "By writing \"Accept\" and submitting this form, I agree to have read and undertake to abide by all the terms and conditions of the YnFxchange Auctions on YarnsandFibers.com.
A copy of the terms and conditions will be emailed to you for acceptance.";
$MSG_024_3 = "Please confirm your acceptance by typing ACCEPT (CAPITALS only)";
$MSG_024_4="All person/s registering on YnFxauctions - YarnsandFibers.com agree to have read and to abide by the following terms and conditions.";
####################################### STAPLE ###################################################
$MSG_025 = "Sell Staple Fiber";
$MSG_026 = "Name of product";
$MSG_027 = "Specification of the product";
$MSG_028 = "Fineness";
$MSG_029 = "Staple length ( mm )";
$MSG_030 = "Color/Luster";
$MSG_031 = "Grade";
$MSG_032 = "Quantity";
$MSG_033 = "Other conditions";
$MSG_034 = "Port of shipment / discharge";
$MSG_035 = "Payment terms";
$MSG_036 = "Reserve price per unit
Sellers should specify prices on FOB basis, and
Buyers on CIF basis.";
$MSG_036_1="FOB";
$MSG_036_2="CIF";
$MSG_037 = "Expiry date";
$MSG_037_1 = " (minimum 7 days)";
$MSG_038 = " ( numbers only - you can use decimals )";
$MSG_039 = "Bright";
$MSG_040 = "Bright trialobal";
$MSG_041 = "Dope dyed semi dull";
$MSG_042 = "Dope dyed bright";
$MSG_043 = "Package dyed semi dull";
$MSG_044 = "Package dyed bright";
$MSG_045 = "Raw white semi dull";
$MSG_046 = "Natural";
$MSG_047 = "Shipment Date";
$MSG_048 = "Choose any one";
$MSG_049 = "A grade";
$MSG_050 = "B grade";
$MSG_051 = "Other";
$MSG_052 = "Month";
$MSG_053 = "January";
$MSG_054 = "February";
$MSG_055 = "March";
$MSG_056 = "April";
$MSG_057 = "May";
$MSG_058 = "June";
$MSG_059 = "July";
$MSG_060 = "August";
$MSG_061 = "September";
$MSG_062 = "October";
$MSG_063 = "November";
$MSG_064 = "December";
$MSG_065 = "Year";
$MSG_066 = "2000";
$MSG_067 = "2001";
$MSG_068 = "2002";
$MSG_069 = "2003";
$MSG_070 = "2004";
$MSG_071 = "2005";
$MSG_072 = "Day";
$MSG_073 = "01";
$MSG_074 = "02";
$MSG_075 = "03";
$MSG_076 = "04";
$MSG_077 = "05";
$MSG_078 = "06";
$MSG_079 = "07";
$MSG_080 = "08";
$MSG_081 = "09";
$MSG_082 = "10";
$MSG_083 = "11";
$MSG_084 = "12";
$MSG_085 = "13";
$MSG_086 = "14";
$MSG_087 = "15";
$MSG_088 = "16";
$MSG_089 = "17";
$MSG_090 = "18";
$MSG_091 = "19";
$MSG_092 = "20";
$MSG_093 = "21";
$MSG_094 = "22";
$MSG_095 = "23";
$MSG_096 = "24";
$MSG_097 = "25";
$MSG_098 = "26";
$MSG_099 = "27";
$MSG_100 = "28";
$MSG_101 = "29";
$MSG_102 = "30";
$MSG_103 = "31";
$MSG_104 = "Bales";
$MSG_105 = "Weight/bale";
$MSG_106 = "Bales/container";
$MSG_107 = "Container load";
$MSG_108 = "Packing details (optional for buyer)";
$MSG_109 = "Additional information";
$MSG_110 = "You can further specify product information such as
functionality, reliability, tests, certification, and regulatory compliance.
( Max limit 1000 characters )";
$MSG_111 = "You are NOT eligible to participate in the YnFxchange auctions, Please apply now";
$MSG_112 = "Thank you. Your application is under process. Kindly await our intimation.";
$MSG_113 = "YarnsandFibers has been unable to consider your request favourably.";
$MSG_114 = "Your application is under process";
$MSG_115 = "Please fill this form to pre-qualify again.";
$MSG_116 = "";
$MSG_117 = "";
$MSG_118 = "";
$MSG_119 = "";
$MSG_120 = "";
############################################ SPUN #############################################
$MSG_121 = "Sell Spun";
$MSG_121_1 = "Spun composition";
$MSG_122 = "Cotton";
$MSG_123 = "Lyocell";
$MSG_124 = "Linen";
$MSG_125 = "Polyester";
$MSG_126 = "Tencel";
$MSG_127 = "Jute";
$MSG_128 = "Viscose";
$MSG_129 = "Mohair";
$MSG_130 = "Hemp";
$MSG_131 = "Wool";
$MSG_132 = "Cashmere";
$MSG_133 = "Spandex";
$MSG_134 = "Acrylic";
$MSG_135 = "Camel";
$MSG_136 = "Aramid";
$MSG_137 = "Silk";
$MSG_138 = "Alpaca";
$MSG_139 = "Triacetate";
$MSG_140 = "Nylon";
$MSG_141 = "Flex";
$MSG_142 = "Modacrylic";
$MSG_143 = "Application";
$MSG_144 = "Count";
$MSG_145 = "Ply";
$MSG_146 = "Twist per meter";
$MSG_147 = "RKM";
$MSG_148 = "CSP";
$MSG_149 = "";
$MSG_150 = "TPM";
$MSG_151 = "Or";
$MSG_152 = "(in kgs)";
$MSG_152_1 = " kgs ";
//application
$MSG_153 = "Weaving";
$MSG_154 = "Knitting";
$MSG_155 = "Weaving";
$MSG_156 = "Sewing Threads";
//color
$MSG_158 = "Semi dull";
$MSG_159 = "Bright";
$MSG_160 = "Fiber dyed";
$MSG_161 = "Package dyed";
$MSG_162 = "Melange";
$MSG_163 = "Natural";
//ply
$MSG_164 = "1 ply";
$MSG_165 = "2 ply";
$MSG_166 = "3 ply";
$MSG_167 = "4 ply";
//grade
$MSG_168 = "A even";
$MSG_169 = "A uneven";
$MSG_170 = "B grade";
######################################### FILAMENT #############################################
//filament specs
$MSG_201 = "Sell Filament";
$MSG_202 = "Filament";
$MSG_203 = "Ply and Direction";
$MSG_204 = "Air intermingled / TPM ";
$MSG_205 = "NIM - Non Intermingled";
$MSG_206 = "IM - Air Intermingled";
$MSG_207 = "TPM - Twist Per Meter";
$MSG_208 = "NA - Not Applicable (for partially oriented yarn)";
$MSG_209 = " ( numbers only - you cannot use decimals )";
//filament grade
$MSG_216 = "A even";
$MSG_217 = "A uneven";
$MSG_218 = "B grade";
$MSG_219 = "other";
$MSG_220 = "";
//ply and direction
$MSG_221 = "1 ply 'S'";
$MSG_222 = "1 ply 'Z'";
$MSG_223 = "2 ply 'S'";
$MSG_224 = "2 ply 'Z'";
$MSG_225 = "2 ply 'S' and 'Z'";
$MSG_226 = "3 ply 'S'";
$MSG_227 = "3 ply 'Z'";
$MSG_228 = "";
$MSG_229 = "";
$MSG_230 = "";
//filament types
$MSG_231 = "";
$MSG_232 = "";
$MSG_233 = "";
$MSG_234 = "";
$MSG_235 = "";
$MSG_236 = "";
$MSG_237 = "";
####################################### FABRIC DETAILS ##########################################
//fabric types
$MSG_238 = "Sell Fabric";
$MSG_239 = "Fabric type";
$MSG_240 = "Fabric composition";
$MSG_241 = "Fabric construction";
$MSG_242 = "Woven";
$MSG_243 = "Non-woven";
$MSG_244 = "Circular knitted";
$MSG_245 = "Warp knitted";
//fabric construction
$MSG_246 = "Weave type";
$MSG_247 = "Plain";
$MSG_248 = "Twill";
$MSG_249 = "Single jersy";
$MSG_250 = "Interlock";
$MSG_251 = "Warp X Weft";
$MSG_252 = "eg:50*60";
$MSG_253 = "Warp";
$MSG_254 = "Weft";
$MSG_255 = "Width";
$MSG_256 = "Weight";
$MSG_257 = "Ne";
$MSG_258 = "Type of Yarn";
$MSG_259 = "Centimeter";
$MSG_260 = "Meter";
$MSG_261 = "Inch";
$MSG_262 = "Yard";
$MSG_263 = "gm/sq.mtr";
$MSG_264 = "oz/sq.yard";
$MSG_265 = "Type of finish";
$MSG_266 = "Color/Shade";
$MSG_267 = "Shrinkage ( % )";
$MSG_268 = "Care";
$MSG_268_1 = "Quantity ( meters )";
$MSG_269 = "Polypropylene";
$MSG_270 = "Carbon";
$MSG_270_1 = "Glass";
$MSG_271 = "Stock lot";
$MSG_272 = "( Please specify percentage
wise composition )";
$MSG_273 = "Denier";
$MSG_273_1 = "Micron";
$MSG_274 = "Other information";
############################################ Machinery ###########################################
$MSG_281 = "Sell Machinery";
$MSG_281_1 = "Specifications";
//start of product list for machinery
$MSG_282 = "Machinery-Spinning";
$MSG_283 = "Machinery-Filament";
$MSG_284 = "Machinery-Weaving";
$MSG_285 = "Machinery-Knitting";
$MSG_286 = "Machinery-Finishing";
$MSG_287 = "Machinery-Non Woven";
$MSG_288 = "Machinery-Spare Parts";
$MSG_289 = "Machinery-Quality Control";
//end of product list for machinery
$MSG_289_1 = "Machinery";
$MSG_290 = "Product";
######################################### Capacity Exchange #########################################
$MSG_291 = "Sell CAPACITY";
$MSG_292 = "Location";
$MSG_293 = "Unit of Measure";
$MSG_294 = "Duration (from)";
$MSG_295 = "Duration (to)";
$MSG_296 = "Metric Tonnes";
$MSG_297 = "Kilo Grams";
$MSG_298 = "Kilo Litres";
$MSG_299 = "Number";
$MSG_300 = " Meters ";
$MSG_301 = "Description of facility";
$MSG_302 = "";
$MSG_303 = "";
$MSG_304 = "";
$MSG_305 = "";
######################################### Intermediates #############################################
$MSG_306 = "Sell Intermediate";
$MSG_307 = "Specification";
$MSG_308 = "";
$MSG_309 = "";
$MSG_310 = "";
$MSG_311 = "";
$MSG_312 = "";
$MSG_313 = "";
$MSG_314 = "";
$MSG_315 = "";
############################################## Punctuation ##########################################
$MSG_501=" / "; // forward slash( / )
$MSG_502 = " - "; // hyphen( - )
$MSG_503 = " % ";// percentage( % )
$MSG_504 = " : ";// colon( : )
$MSG_505 = " , ";// comma( , )
$MSG_506 = " | ";// pipe ( | )
$MSG_507 = " * ";// pipe ( | )
$MSG_508 = " " ;// space ( )
############################################# Display Auctions #######################################
$MSG_601="Last created auctions";
$MSG_602="Time left";
$MSG_603="Closing bid";
$MSG_604="Expiry date";
$MSG_604_1="Closing date";
$MSG_605="Bidders";
$MSG_606="Buy/Sell";
$MSG_607 =" days, ";
$MSG_608 ="h";
$MSG_609 ="m";
$MSG_610 ="s";
$MSG_611 ="Bid History";
$MSG_611_1 ="Offer History";
$MSG_612 ="Details";
$MSG_613 ="Bid Value";
$MSG_613_1 ="Offer Value";
$MSG_614 ="Server Date";
$MSG_614_1 ="Server Time";
$MSG_614_2 ="Current Server Date: ";
$MSG_614_3 ="Current Server Time: ";
$MSG_615 ="Close";
$MSG_616 ="Active auctions";
$MSG_617 ="of";
$MSG_618 ="Detailed information for staple";
$MSG_619 ="for";
$MSG_620 ="Staple Fiber";
$MSG_621 ="Spun Yarn";
$MSG_622 ="Filament Yarn";
$MSG_623 ="Fabrics";
$MSG_624 ="Intermediates";
$MSG_625 ="Machinery";
$MSG_626 ="Capacity";
$MSG_626_1 ="View ";
$MSG_627 ="Place Your Bid";
$MSG_628 ="Starting bid";
$MSG_629 ="Increment";
$MSG_629_1 ="Decrement";
$MSG_630 ="Current bid";
$MSG_631 ="No bid";
$MSG_632 ="No bid is made for this auction";
$MSG_633 ="Auction Admin Panel";
$MSG_634 ="Approve";
$MSG_635 ="Delete";
$MSG_636 ="Edit";
$MSG_637 =" View Active";
$MSG_638 ="View Closed";
$MSG_639 ="View all";
$MSG_640 ="Post an auction";
$MSG_641 ="Go";
$MSG_642 ="Search";
$MSG_643 ="Help";
$MSG_644 ="The auctions marked with * sign are closed.";
$MSG_645 ="To view details of auction click on the 'details'.";
$MSG_645_1 ="Get";
$MSG_645_2 ="qualified";
$MSG_645_3 ="to participate in an auction";
$MSG_645_4 ="To setup an auction, choose your product under 'Make Auctions'";
$MSG_645_5 ="You are already qualified to participate in YnFxchange Auctions.";
$MSG_645_6 ="Your application for participation in YnFxchange Auctions is under process.";
$MSG_645_7 ="To bid for an auction view product ";
$MSG_645_8 ="Dear";
$MSG_645_8_0 ="You submission for setting up an Auction on YnFxchange Auctions was successfully received.";
$MSG_645_8_1 ="Thank you for choosing YarnsandFibers, The eMarketplace for the yarns and fibers industry, globally!";
$MSG_645_8_2="Your details are currently being reviewed, once approved, your request will go live and be visible to all the members.";
$MSG_645_9 ="In the meantime, please feel free to use the";
$MSG_645_9_0 ="Please feel free to use the";
$MSG_645_9_1="Live Help";
$MSG_645_9_2= "or contact us at auctions@yarnsandfibers.com for any assistance that you may require.";
$MSG_645_10 ="
Team YnFx - YarnsandFibers
www.yarnsandfibers.com ";
$MSG_645_11="Your downturn equalizer!";
$MSG_646 ="Make Auctions";
$MSG_647 ="View Auctions";
$MSG_648 ="Active Auctions";
$MSG_649 ="Closed Auctions";
$MSG_649_1="Packing details which are optional for buyer.";
$MSG_650 ="All items are required";
$MSG_650_1 ="All the items marked with * are required.";
$MSG_651 ="No auction is posted in this category.";
$MSG_652 ="Auction ID";
$MSG_653 ="Dated";
$MSG_654 ="This auction is for";
$MSG_655 ="buying";
$MSG_655_1 ="Offer value";
$MSG_656 ="selling";
$MSG_656_1="Bid";
$MSG_657 ="This auction is closed";
$MSG_658 ="Login";
$MSG_659 ="Password";
$MSG_660 ="Thank you for the bid !";
$MSG_661 ="Currency";
$MSG_662 ="Increment / Decrement";
$MSG_663 ="Your application for participation in YnFxchange Auctions is successfully submitted.
The Auction Desk will get in touch with you shortly to assist you through the process.";
$MSG_664 ="";
$MSG_665 ="Your auction will be live on the Auction Zone after getting approval from Auction Screening Panel.";
$MSG_666 ="Your request to set up an Auction has been successfully submitted
The Auction Desk will get in touch with you shortly to assist you through the process.";
$MSG_667="I am a ";
$MSG_668="Seller ";
$MSG_669="Buyer ";
$MSG_670="Some body has already made bid for this amount";
$MSG_671="YnFxchange auctions terms and conditions";
######################################## Packing details ##########################################
$MSG_701 ="Type of package";
$MSG_702 ="Paper Cone";
$MSG_703 ="Plastic cone";
$MSG_704 ="Paper tube";
$MSG_705 ="Plastic tube";
$MSG_706 ="Aluminium cops";
$MSG_707 ="Paper cops";
$MSG_708 ="Dye package";
$MSG_708_1 ="Hank";
$MSG_709 ="Secondary Packing";
$MSG_710 ="Weight per pack";
$MSG_711 ="No of packages";
$MSG_711_1 ="No of containers";
$MSG_712 ="Weight per master package";
$MSG_713 ="No of master packages per container";
$MSG_714 ="Net weight per container";
$MSG_715 ="Bale";
$MSG_716 ="Carton";
$MSG_717 ="Pallet";
$MSG_718 ="per";
$MSG_719 ="You have submitted following details";
$MSG_720 ="THIS IS A PREVIEW OF YOUR POSTING. THE POSTING HAS NOT BEEN MADE YET. ";
$MSG_721 ="Bidder Id";
$MSG_721_1 ="Bidder Id";
$MSG_722="If you want to make any changes you can go back and do so now.";
$MSG_723="I don't want to make any changes. Post my auction now";
?>