/home/mip/public_html_/old-website/brokerxxx/config.php
<?
$db_host="localhost";
$db_name="mip_mipdb"; //the name of the database.
$db_username="mip_mipdb"; //mysql username to access the database with.
$db_password="mipdb"; //mysql password to access the database with.
/*
$db_host="localhost";
$db_name="jedegal_jedegalnewdb";
$db_username="jedegal";
$db_password="jakemanpower";
*/

$iris_version = "IRIS Online - Employer";

$educ= array("Elementary", "Secondary", "Vocational", "Training/Seminar", "College/University", "Post Graduate", "Licentiate");
$medical_status= array("Pending","Fit","Unfit");
$phase_array= array("1","2","3","4");

$passport_dir ="../irisonline/passport/";
$pic_dir1="../irisonline/pictures/";
$img_dir ="../irisonline/img/logo/";
$img_dir1 ="../irisonline/img/";  
$video_dir="../irisonline/videos/";
$video_dir1="videos/";



$sqltoday = date ("Y-m-d");

$array_duties = array(
											1=>array(field=>"care_6mos",duty=>"CARE OF NEWBORN TO SIX MONTHS OLD ",chi=>"&#29031;&#39015;&#21021;&#29983;&#30340;&#23344;&#20818;&#33267;&#20845;&#20491;&#26376;&#22823;"),
											   array(field=>"care_1yr",duty=>"CARE OF 6 MONTHS TO ONE YEAR OLD BABY ",chi=>"&#29031;&#39015;&#20845;&#20491;&#26376;&#33267;&#19968;&#24180;&#30340;&#23344;&#20818;"),
												 array(field=>"care_5yr",duty=>"CARE OF 1-5 YEARS OLD CHILDREN ",chi=>"&#29031;&#39015;&#19968;&#33267;&#20116;&#27506;&#30340;&#23401;&#31461;"),
												 array(field=>"care_6yr",duty=>"CARE OF OVER 5 YEARS OLD CHILDREN  ",chi=>"&#29031;&#39015;&#20116;&#27506;&#20197;&#19978;&#30340;&#23401;&#31461;"),
												 array(field=>"care_night",duty=>"CARE OF BABY (IES) DURING NIGHT TIME",chi=>"&#22812;&#38291;&#29031;&#39015;&#23344;&#20818;"),
												 array(field=>"look_elderly",duty=>"LOOK AFTER ELDERLY ",chi=>"&#29031;&#39015;&#32769;&#20154;"),
												 array(field=>"look_invalid",duty=>"LOOK AFTER INVALID / BEDRIDDEN  ",chi=>"&#29031;&#39015;&#27544;&#24369; &#21351;&#30149;&#22312;&#24202;"),
												 array(field=>"gardening",duty=>"DO GARDENING ",chi=>"&#22290;&#22320;&#24037;&#20316;"),
												 array(field=>"cooking",duty=>"DO COOKING  ",chi=>"&#28921;&#39146;&#24037;&#20316;"),
												 array(field=>"car_washing",duty=>"CAR WASHING  ",chi=>"&#27927;&#36554;"),
												 array(field=>"laundry",duty=>"LAUNDRY BY HANDWASHING ",chi=>"&#29992;&#25163;&#27927;&#34915"),
												 array(field=>"care_pets",duty=>"CARE OF PETS EX. DOG AND CAT  ",chi=>"&#29031;&#39015;&#23541;&#29289;&#20363;&#22914;&#61498;&#29399;&#21644;&#35987;"),
												 array(field=>"cleaning",duty=>"CLEANING OF WINDOWS, WALL, AND FLOOR  ",chi=>"&#27927;&#28136;&#31383;&#25142;,&#29254;&#22721;&#21450;&#22320;&#26495;")												 																													 
										);
										
										
										 
$array_duties_hk = array(
											1=>array(field=>"care_3mos",duty=>"Care of babies aged 0-3 months"),
											   array(field=>"care_12mos",duty=>"Care of babies aged 3-12 months"),
												 array(field=>"change_diapers",duty=>"Change of diapers"),
												 array(field=>"feed_baby",duty=>"Feed baby"),
												 array(field=>"carebaby_night",duty=>"Take care of babies at night"),
												 array(field=>"care_5yrs",duty=>"Care of children aged 1-5 years"),
												 array(field=>"care_10yrs",duty=>"Care of children over 5-10 years"),
												 array(field=>"care_over10yrs",duty=>"Care of children over 10 years"),
												 array(field=>"play_children",duty=>"Play with children"),
												 array(field=>"housework",duty=>"General Housework"),
												 array(field=>"washing",duty=>"Operate washing machine"),
												 array(field=>"carpet",duty=>"Operate carpet cleaner"),
												 array(field=>"drier",duty=>"Operate drier"),
												 array(field=>"laundry",duty=>"Do personally laundry by hand"),
												 array(field=>"ironing",duty=>"Ironing"),		
												 array(field=>"sewing",duty=>"Sewing"),
												 array(field=>"cooking",duty=>"Do plain cooking"),
												 array(field=>"chinese_cooking",duty=>"Do Chinese cooking"),
												 array(field=>"semi_invalid",duty=>"Look after semi-invalid person"),
												 array(field=>"drive",duty=>"Drive private vehicle"),				
												 array(field=>"invalid",duty=>"Look after invalid person"),
												 array(field=>"gardening",duty=>"Gardening"),
												 array(field=>"cleaning_car",duty=>"Cleaning/Washing of car"),												 								 												 										 												 																													 
										); 

$array_duties_hk2 = array(
											1=>array(field=>"prep_eatchi",duty=>"Are you prepared to eat Chinese food only?"),
											   array(field=>"prep_eatwest",duty=>"Are you prepared to eat Western food only?"),
												 array(field=>"prep_workchi",duty=>"Are you prepared to work for a Chinese family"),
												 array(field=>"prep_workwest",duty=>"Are you prepared to work for a Western family?"),
												 array(field=>"prep_usetel",duty=>"Are you prepared to use the telephone only with employer's permission?"),
												 array(field=>"prep_dayoff",duty=>"Are you prepared to take your day off set by your employer?"),
												 array(field=>"prep_giveup",duty=>"Are you prepared to give up some of your day off to earn more in addition to you basic salary?"),
												 array(field=>"prep_finish",duty=>"On your day off, are you prepared to finish the morning chores before you go out?"),
												 array(field=>"prep_returnhome",duty=>"Are you prepared to return home not later than 7:00 P.M. during your day off?"),
												 array(field=>"prom_saladv",duty=>"Can you promise not to ask salary advance from your employer no matter what the circumstance may be?"),
												 array(field=>"prep_code",duty=>"Are you prepared to follow the code of discipline drawn up by your agency?"),
												 array(field=>"prep_shoulder",duty=>"Are you prepared to shoulder your return airfare to Manila if you do not finish your contract?"),
												 array(field=>"prep_follow",duty=>"Are you ready to follow your employer; if they immigrate to other country?"),
												 array(field=>"prom_notinvite",duty=>"Can you promise not to invite your friends at your employer's residence without his/her consent?"),
												 array(field=>"prom_makeup",duty=>"Can you promise not to use make-up while at work?"),		
												 array(field=>"smoke",duty=>"Do you smoke?"),
												 array(field=>"alcohol",duty=>"Do you drink alcohol?"),
												 array(field=>"afraid_pets",duty=>"Are you afraid of dogs? Other pets?"),
												 array(field=>"afraid_alone",duty=>"Are you afraid of being left alone in the house at night?"),
												 array(field=>"defect",duty=>"Do you have any physical defect?"),				
												 array(field=>"allergy",duty=>"Do you suffer from any allergy?  If so, what?"),
												 array(field=>"serious_illness",duty=>"Have you suffered from any serious illness before?"),
												 array(field=>"operation",duty=>"Have you undergone any operation over the last 12 months?"),
												 array(field=>"skin_disease",duty=>"Do you suffer from any skin diseases?"),
												 array(field=>"ill_gohome",duty=>"If any member of your family becomes seriously ill, would you want to go home?	"),
												 array(field=>"die_gohome",duty=>"If any immediate member of your family should die while abroad, would you like to go home?"),
												 array(field=>"church",duty=>"Must you attend church weekly?"),
												 array(field=>"extend_contract",duty=>"Are you ready to extend your contract after 2 years?"),
												 array(field=>"love_babies",duty=>"Do you love babies/children?"),
												 array(field=>"love_animals",duty=>"Do you love animals?"),												 												 								 												 										 												 																													 
										);
										
										
$array_duties_dubai = array(
											1=>array(field=>"work_in_uae",duty=>"Willing to work in the Middle East for a period of 2 years? ",dub=>"&#1575;&#1604;&#1593;&#1605;&#1604;
  										         &#1601;&#1610; &#1583;&#1608;&#1604;&#1577;
  														 &#1575;&#1604;&#1573;&#1605;&#1575;&#1585;&#1575;&#1578;
  														 &#1575;&#1604;&#1593;&#1585;&#1576;&#1610;&#1577;
  														 &#1575;&#1604;&#1605;&#1578;&#1581;&#1583;&#1577; &#1604;&#1605;&#1583;&#1577;
  														 &#1587;&#1606;&#1578;&#1610;&#1606;&#1567;"),
											   array(field=>"sleep_w_babies",duty=>"Willing to sleep with babies/children at night? ",dub=>"&#1575;&#1604;&#1606;&#1608;&#1605;
  											       &#1605;&#1593; &#1575;&#1604;&#1571;&#1591;&#1601;&#1575;&#1604;
  														 &#1601;&#1610; &#1594;&#1585;&#1601;&#1578;&#1607;&#1605;
  														 &#1571;&#1579;&#1606;&#1575;&#1569;
  														 &#1575;&#1604;&#1604;&#1610;&#1604;&#1567;"),
												 array(field=>"cook_arab",duty=>"Willing to learn how to cook Arabic Food? ",dub=>"&#1575;&#1604;&#1575;&#1587;&#1578;&#1593;&#1583;&#1575;&#1583;
  											       &#1604;&#1578;&#1593;&#1604;&#1605; &#1575;&#1604;&#1591;&#1576;&#1582;
  														 &#1575;&#1604;&#1593;&#1585;&#1576;&#1610;&#1567;"),
												 array(field=>"no_day_off",duty=>"Willing to work with no days off?  ",dub=>"&#1575;&#1604;&#1593;&#1605;&#1604;
  											       &#1576;&#1583;&#1608;&#1606; &#1571;&#1610;&#1577;
  														 &#1571;&#1610;&#1575;&#1605; &#1593;&#1591;&#1604;&#1577;&#1567;"),
												 array(field=>"cover_hair",duty=>"Willing to cover your hair at employer's request?",dub=>"&#1608;&#1590;&#1593;
  											       &#1594;&#1591;&#1575;&#1569; &#1593;&#1604;&#1609;
  														 &#1575;&#1604;&#1585;&#1571;&#1587; &#1601;&#1610; &#1581;&#1575;&#1604; &#1585;&#1594;&#1576;&#1577;
  														 &#1575;&#1604;&#1603;&#1601;&#1610;&#1604;
  														 &#1576;&#1584;&#1604;&#1603;&#1567;"),
												 array(field=>"wo_mobile",duty=>"Willing to work without mobile phone? ",dub=>"&#1575;&#1604;&#1593;&#1605;&#1604;
  											       &#1576;&#1583;&#1608;&#1606;
  														 &#1575;&#1587;&#1578;&#1582;&#1583;&#1575;&#1605;
  														 &#1575;&#1604;&#1607;&#1575;&#1578;&#1601;
  														 &#1575;&#1604;&#1605;&#1578;&#1581;&#1585;&#1603;&#1567;"),
												 array(field=>"worked_in_uae",duty=>"Have you ever worked in Middle East?  ",dub=>"&#1607;&#1604;
  											       &#1593;&#1605;&#1604;&#1578; &#1605;&#1606; &#1602;&#1576;&#1604;
  														 &#1601;&#1610; &#1583;&#1608;&#1604;&#1577;
  														 &#1575;&#1604;&#1573;&#1605;&#1575;&#1585;&#1575;&#1578;
  														 &#1575;&#1604;&#1593;&#1585;&#1576;&#1610;&#1577; &#1575;&#1604;&#1605;&#1578;&#1581;&#1583;&#1577;&#1567;"),
												 array(field=>"per_illness",duty=>"Do you have any permanent illness or problem?",dub=>"&#1607;&#1604;
  											       &#1578;&#1593;&#1575;&#1606;&#1610;&#1606; &#1605;&#1606; &#1571;&#1610;
  														 &#1605;&#1585;&#1590; &#1571;&#1608; &#1605;&#1588;&#1603;&#1604;&#1577;
  														 &#1589;&#1581;&#1610;&#1577; &#1605;&#1586;&#1605;&#1606;&#1577;&#1567;")
																								 																													 
										);
										

$array_ability_dubai = array(
											1=>array(field=>"baby_sitting",duty=>"Babysitting ",chi=>"&#1580;&#1604;&#1610;&#1587;&#1577;
  																							 	&#1571;&#1591;&#1601;&#1575;&#1604;"),
											   array(field=>"children_care",duty=>"Children Care ",chi=>"&#1573;&#1580;&#1575;&#1583;&#1577;
  																							 &#1575;&#1604;&#1604;&#1594;&#1575;&#1578;"),
												 array(field=>"elderly_care",duty=>"Elderly People Care ",chi=>"&#1575;&#1604;&#1593;&#1606;&#1575;&#1610;&#1577;
  																							 &#1576;&#1603;&#1576;&#1575;&#1585; &#1575;&#1604;&#1587;&#1606;"),
												 array(field=>"sick_care",duty=>"Sick People Care  ",chi=>"&#1575;&#1604;&#1593;&#1606;&#1575;&#1610;&#1577;
  																							 &#1576;&#1575;&#1604;&#1605;&#1585;&#1590;&#1609;"),
												 array(field=>"arabic_cooking",duty=>"Arabic Cooking ",chi=>"&#1575;&#1604;&#1591;&#1576;&#1582;
  																							 &#1575;&#1604;&#1593;&#1585;&#1576;&#1610;"),
												 array(field=>"general_cooking",duty=>"General Cleaning ",chi=>"&#1575;&#1604;&#1571;&#1593;&#1605;&#1575;&#1604;
  																							 &#1575;&#1604;&#1605;&#1606;&#1586;&#1604;&#1610;&#1577;
  																							 &#1575;&#1604;&#1610;&#1608;&#1605;&#1610;&#1577;")												 												 																													 
										);
										
										

																				 										
$array_spoken = array("CAN NOT","POOR","FAIR","GOOD","VERY GOOD");
$array_spoken_chi = array("&#19981;&#26371;","&#19981;&#22909;","&#26222;&#36890;","&#22909;","&#24456;&#22909;");
$array_skincolor = array("DARK","TAN","FAIR");
$array_skincolor_chi = array("&#40657;","&#26222;&#36890;","&#30333;");
$array_good = array("Excellent","Very Good","Good","Fair","Poor");
?>