if ((isset($_COOKIE["user"])) or (isset($_COOKIE["bengali"])) or (isset($_COOKIE["malayalam"])) ) { @session_start(); include '../include/connect.php'; include '../include/Form.php'; include '../include/display.php'; include '../include/common.php'; display_top(); display_cms_menu(); //!Used for Database storage of some of the Bengali 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 |
: | vijay.srini@frlht.org |
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 |
: | vijay.srini@frlht.org |
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 |
: | vijay.srini@frlht.org |
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 |
: | vijay.srini@frlht.org |
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 |
: | vijay.srini@frlht.org |
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 |
: | vijay.srini@frlht.org |
Add new | "; print "|||||||||
Ailment | "; print "Remedy | "; print "Plant | "; print "Plant part | "; print "Edit"; 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." | "; } else { if(strpos($ail_name, "a:2:{i:0;s:")===false) { } else { $Arrailname=unserialize($ail_name); $ail_name=$Arrailname[1]; } print "|||||||||
$ail_name | "; } print "|||||||||
".$ShowRecipe." | "; }else { if(strpos($recipe, "a:2:{i:0;s:")===false) { } else { $Arrrecipe=unserialize($recipe); $recipe=$Arrrecipe[1]; } print "$recipe | "; } print ""; print " | Add Plant(s) | "; print "||||||
"; print " | "; if($_SESSION['ltag']=='' || $_SESSION['ltag']=='Eng_') { print " | $genus $species | "; print "".stripslashes($rs['plant_part'])." | "; } 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 "".$ShowPlant." | "; print "".$ShowPlantPart." | "; } 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 "".$genus." ".$species." | "; print "".$Plantpart." | "; } } print "Edit"; print " | Delete"; print " |