Description : In some cases, the Baraha Codes when entered into a database, is not stored properly, and hence, not retrieved properly as well. Hence, they are substituted by English phrases and stored in the database, and likewise also retrieved. This is used for that purpose. Author : Vijay Srinivas Email : vijay.srini@frlht.org */ $SubstitutionArray['ben_']=array("[tr]"=>"Œ", "[tt]"=>"Š", "[~jj]"=>"…²", "[nD]"=>"—", "[pt]"=>"›", "[ddh]"=>"Ž", "[ndh]"=>"™", "[Thy]"=>"œ", "[~jc]"=>"ƒ"); //!Used for Database storage of some of the Marathi Baraha Codes. /*!
Description : In some cases, the Baraha Codes when entered into a database, is not stored properly, and hence, not retrieved properly as well. Hence, they are substituted by English phrases and stored in the database, and likewise also retrieved. This is used for that purpose.
Author : Vijay Srinivas
Email : vijay.srini@frlht.org
*/ $SubstitutionArray['mar_']=array("[Dya]"=>"Ž"); //!Used for Database storage of some of the Hindi Baraha Codes. /*!
Description : In some cases, the Baraha Codes when entered into a database, is not stored properly, and hence, not retrieved properly as well. Hence, they are substituted by English phrases and stored in the database, and likewise also retrieved. This is used for that purpose.
Author : Vijay Srinivas
Email : vijay.srini@frlht.org
*/ $SubstitutionArray['hin_']=array("[kk]"=>"‚ü", "[~gG]"=>"†¡û", "[~g~g]"=>"ˆû", "[cc]"=>"Š", "[~gm]"=>"‰", "[~gk]"=>"ƒ¡û", "[~gK]"=>"„¡û", "[~gg]"=>"…¡û", "[Ty]"=>"š", "[ThTh]"=>"›û", "[Thy]"=>"œ", "[DG]"=>"†û", "[Dk]"=>"ƒû", "[DK]"=>"„û", "[Dg]"=>"…û", "[DD]"=>"Œû", "[Dy]"=>"Ž", "[Dhy]"=>"ž"); //!Used for Database storage of some of the Tamil Baraha Codes. /*!
Description : In some cases, the Baraha Codes when entered into a database, is not stored properly, and hence, not retrieved properly as well. Hence, they are substituted by English phrases and stored in the database, and likewise also retrieved. This is used for that purpose.
Author : Vijay Srinivas
Email : vijay.srini@frlht.org
*/ $SubstitutionArray['tam_']=array("[j]"=>"ˆ", "[ja]"=>"ƒ", "[~ju]"=>"š", "[~jU]"=>"œ", "[Sh]"=>"‰", "[Sha]"=>"„", "[S]"=>"Š", "[Sa]"=>"…", "[h]"=>"‹", "[ha]"=>"†", "[kSh]"=>"Œ", "[kSha]"=>"‡"); //!Used for Database storage of some of the Telugu Baraha Codes. /*!
Description : In some cases, the Baraha Codes when entered into a database, is not stored properly, and hence, not retrieved properly as well. Hence, they are substituted by English phrases and stored in the database, and likewise also retrieved. This is used for that purpose.
Author : Vijay Srinivas
Email : vijay.srini@frlht.org
*/ $SubstitutionArray['tel_']=array(); //!Used for Database storage of some of the Malayalam Baraha Codes. /*!
Description : In some cases, the Baraha Codes when entered into a database, is not stored properly, and hence, not retrieved properly as well. Hence, they are substituted by English phrases and stored in the database, and likewise also retrieved. This is used for that purpose.
Author : Vijay Srinivas
Email : vijay.srini@frlht.org
*/ $SubstitutionArray['mal_']=array(); // FOR BOTMAST == >unset current user if(isset($_SESSION['auth_user'])) $_SESSION['auth_user']=""; ?> $msg
"; print ""; //print ""; print ""; print ""; print ""; print ""; print ""; print ""; } else { if(strpos($ail_name, "a:2:{i:0;s:")===false) { } else { $Arrailname=unserialize($ail_name); $ail_name=$Arrailname[1]; } print ""; } print ""; } if( $tmp != $rs[$rid]) { print ""; if($_SESSION['ltag']=='kan_' || $_SESSION['ltag']=='hin_' || $_SESSION['ltag']=='mar_' || $_SESSION['ltag']=='ben_' || $_SESSION['ltag']=='tel_' || $_SESSION['ltag']=='tam_' || $_SESSION['ltag']=='mal_') { $ShowRecipe=utf8_encode($recipe); if($_SESSION['ltag']=='mar_' || $_SESSION['ltag']=='hin_' || $_SESSION['ltag']=='ben_' || $_SESSION['ltag']=='tam_' || $_SESSION['ltag']=='tel_' || $_SESSION['ltag']=='mal_') { foreach($SubstitutionArray[$_SESSION['ltag']] as $rskey=>$rsval) { $ShowRecipe=str_replace($rskey, $rsval, $ShowRecipe); } } print ""; }else { if(strpos($recipe, "a:2:{i:0;s:")===false) { } else { $Arrrecipe=unserialize($recipe); $recipe=$Arrrecipe[1]; } print ""; } print ""; print ""; print ""; } print ""; print ""; print ""; if($_SESSION['ltag']=='' || $_SESSION['ltag']=='Eng_') { print ""; print ""; } else { if($_SESSION['ltag']=='kan_' || $_SESSION['ltag']=='hin_' || $_SESSION['ltag']=='mar_' || $_SESSION['ltag']=='ben_' || $_SESSION['ltag']=='tel_' || $_SESSION['ltag']=='tam_' || $_SESSION['ltag']=='mal_') { $ShowPlant=utf8_encode($genus." ".$species); $ShowPlantPart=utf8_encode($rs[$_SESSION['ltag'].'plant_part']); if($_SESSION['ltag']=='mar_' || $_SESSION['ltag']=='hin_' || $_SESSION['ltag']=='ben_' || $_SESSION['ltag']=='tam_' || $_SESSION['ltag']=='tel_' || $_SESSION['ltag']=='mal_') { foreach($SubstitutionArray[$_SESSION['ltag']] as $rskey=>$rsval) { $ShowPlant=str_replace($rskey, $rsval, $ShowPlant); $ShowPlantPart=str_replace($rskey, $rsval, $ShowPlantPart); } } print ""; print ""; } else { if(strpos($genus, "a:2:{i:0;s:")!==false) { $Arrgen=unserialize($genus); $genus=$Arrgen[1]; } if(strpos($species, "a:2:{i:0;s:")!==false) { $Arrspe=unserialize($species); $species=$Arrspe[1]; } if(strpos($rs[$_SESSION['ltag'].'plant_part'], "a:2:{i:0;s:")===false) { $Plantpart=$rs[$_SESSION['ltag'].'plant_part']; } else { $ArrPlantpart=unserialize($rs[$_SESSION['ltag'].'plant_part']); $Plantpart=$ArrPlantpart[1]; } print ""; print ""; } } print ""; $tmp = $rs[$rid]; $temp = $ail_id; } } print "
Add new
AilmentRemedyPlantPlant partEdit"; print "Delete"; $formbg=$_SESSION['ltag']."graybg"; while($rs=mysql_fetch_array($result)) { $rid= "rec_id"; $rtab = $_SESSION['ltag']."recipe"; $rtabid = $_SESSION['ltag']."recipe_id"; $ailtab=$_SESSION['ltag']."ailments"; $ailtabid =$_SESSION['ltag']."ail_id"; $bot=$_SESSION['ltag']."botmast"; $tab = "tab_key"; $genus = fetch_me($bot,"genus","plant_id",$rs['plant_id']); $species = fetch_me($bot,"species","plant_id",$rs['plant_id']); $recipe = fetch_me($rtab,"recipe_name",$rtabid,$rs[$rid]); $ail_id = fetch_me($rtab,$ailtabid,$rtabid,$rs[$rid]); $ail_name = fetch_me($ailtab,"ail_name",$ailtabid,$ail_id); if( $temp != $ail_id) { if($_SESSION['ltag']=='kan_' || $_SESSION['ltag']=='hin_' || $_SESSION['ltag']=='mar_' || $_SESSION['ltag']=='ben_' || $_SESSION['ltag']=='tel_' || $_SESSION['ltag']=='tam_' || $_SESSION['ltag']=='mal_') { $ShowAilName=utf8_encode($ail_name); if($_SESSION['ltag']=='mar_' || $_SESSION['ltag']=='hin_' || $_SESSION['ltag']=='ben_' || $_SESSION['ltag']=='tam_' || $_SESSION['ltag']=='tel_' || $_SESSION['ltag']=='mal_') { foreach($SubstitutionArray[$_SESSION['ltag']] as $rskey=>$rsval) { $ShowAilName=str_replace($rskey, $rsval, $ShowAilName); } } print "
".$ShowAilName."
$ail_name
 ".$ShowRecipe."  $recipe  Add Plant(s)
  $genus $species".stripslashes($rs['plant_part'])."".$ShowPlant." ".$ShowPlantPart." ".$genus." ".$species."".$Plantpart."Edit"; print "Delete"; print "
"; } else { echo "You are not Authorised to view this page ! ! !"; } ?>