if ((isset($_COOKIE["user"])) or (isset($_COOKIE["bengali"])) or (isset($_COOKIE["malayalam"])) )
{
@ob_start();
@session_start();
if($_SESSION['ltag'] && !$_GET['id'])
{
header('location:lang_Addedit_recipe.php');
}
include '../include/connect.php';
include '../include/Form.php';
include '../include/display.php';
include '../include/common.php';
display_top();
display_cms_menu();
//!This is the different class representation for different languages.
/*!
for more details about $lang_arr, click here.
*/
$cls = $lang_arr[$_SESSION['ltag']];
//!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
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.
";
//PLANTS DROP DOWN
//$plants=get_list_data("'".$_SESSION['ltag']."ver_names'",'plant_id',array('NAME'),'',"SELECT * FROM ".$_SESSION['ltag']."ver_names WHERE lang_name='".$cls."' " );
$plants=get_list_data("'".$_SESSION['ltag']."botmast'",'plant_id',array('genus','species'),'',"SELECT * FROM ".$_SESSION['ltag']."botmast ORDER BY genus, species");
$curform->displayselectrow('plant_id[]','Plant',$plants,$row['plant_id'],'','','--- SELECT ---','','',$cls);
$curform->displaytextrow('plant_part[]','Plant Part',$row['plant_part'],35,100,1,'','',$cls);
//PLANTS DROP DOWN
$curform->displayselectrow('plant_id[]','Plant',$plants,$row['plant_id'],'','','--- SELECT ---','','',$cls);
$curform->displaytextrow('plant_part[]','Plant Part',$row['plant_part'],35,100,1,'','',$cls);
//PLANTS DROP DOWN
$curform->displayselectrow('plant_id[]','Plant',$plants,$row['plant_id'],'','','--- SELECT ---','','',$cls);
$curform->displaytextrow('plant_part[]','Plant Part',$row['plant_part'],35,100,1,'','',$cls);
//PLANTS DROP DOWN
$curform->displayselectrow('plant_id[]','Plant',$plants,$row['plant_id'],'','','--- SELECT ---','','',$cls);
$curform->displaytextrow('plant_part[]t','Plant Part',$row['plant_part'],35,100,1,'','',$cls);
//PLANTS DROP DOWN
$curform->displayselectrow('plant_id[]','Plant',$plants,$row['plant_id'],'','','--- SELECT ---','','',$cls);
$curform->displaytextrow('plant_part[]','Plant Part',$row['plant_part'],35,100,1,'','',$cls);
}
ELSE if($_GET['id'] !="")
{
$sql="SELECT * FROM ".""."rec_plant INNER JOIN ".$_SESSION['ltag']."recipe ON ".""."rec_plant.".""."rec_id = ".$_SESSION['ltag']."recipe.".$_SESSION['ltag']."recipe_id WHERE ".""."rec_plant.".""."rec_id=".$_GET['id'];
//print $sql;
$r = mysql_query($sql);
$nm = mysql_num_rows($r);
/*
if($nm==0)
{
print "
";
print "
Please enter plant and part used for the recipe
";
print "
";
$plants=get_list_data("'".$_SESSION['ltag']."botmast'",'plant_id',array('genus','species'),'',"SELECT * FROM ".$_SESSION['ltag']."botmast ORDER BY genus, species");
$curform->displayselectrow('plant_id[]','Plant',$plants,$row['plant_id'],'','','--- SELECT ---','','',$cls);
$curform->displaytextrow('plant_part[]','Plant Part456',$row['plant_part'],35,100,1,'','',$cls);
//PLANTS DROP DOWN
$curform->displayselectrow('plant_id[]','Plant',$plants,$row['plant_id'],'','','--- SELECT ---','','',$cls);
$curform->displaytextrow('plant_part[]','Plant Part',$row['plant_part'],35,100,1,'','',$cls);
//PLANTS DROP DOWN
$curform->displayselectrow('plant_id[]','Plant',$plants,$row['plant_id'],'','','--- SELECT ---','','',$cls);
$curform->displaytextrow('plant_part[]','Plant Part',$row['plant_part'],35,100,1,'','',$cls);
//PLANTS DROP DOWN
$curform->displayselectrow('plant_id[]','Plant',$plants,$row['plant_id'],'','','--- SELECT ---','','',$cls);
$curform->displaytextrow('plant_part[]t','Plant Part',$row['plant_part'],35,100,1,'','',$cls);
//PLANTS DROP DOWN
$curform->displayselectrow('plant_id[]','Plant',$plants,$row['plant_id'],'','','--- SELECT ---','','',$cls);
$curform->displaytextrow('plant_part[]','Plant Part',$row['plant_part'],35,100,1,'','',$cls);
$curform->displayHidden('newactn','addplants');
} */
}
if($_GET['id']=="")
{
$curform->displayhidden("submit","Add");
$curform->displaysubmitrow("submit1","Add");
}
else
{
$curform->displayhidden("submit","Update");
$curform->displaysubmitrow("submit1","Update");
}
$curform->end();
print"