/*
Project Name : - ICT in Ed Toolkit
Created On : - 27 Dec 2004
Purpose : - This script contains the header of the user section
Created By : - Dharmendra Sharma
Include Files : -
Last Updated By : - Sonjara
Updates Done : - 30 Nov 2006
*/
function makefirstcharupper( $str )
{
$ret = strtoupper($str[0]);
for ( $i=1; $i < strlen($str); $i++ )
{
$ret .= $str[$i];
}
return $ret;
}
if ((!$sid) && ($mpid))
{
$Query = "SELECT page_desc FROM pages_master where section_id=$pid order by page_order";
$result = mysql_query($Query);
if(!$row = mysql_fetch_row($result)) // gets records row by row
{
$QueP = "SELECT section_id FROM section_master where parent_section_id=$pid order by section_order";
$resultP = mysql_query($QueP);
if($rowP = mysql_fetch_row($resultP)) // gets records row by row
{
?>
exit;
}
}
}
function getCountryName($country_id)
{
$query = "select country_name from country_master where country_id=$country_id";
$result = mysql_query($query) or die("getCountryName() failed - $query");
$country = "";
if ($line = mysql_fetch_assoc($result))
{
$country = $line["country_name"];
}
mysql_free_result($result);
return $country;
}
$filing_cabinet_url = "filing_cabinet.php";
if ($section->
container == "program") { $filing_cabinet_url .="?program_id={$_SESSION["user_program_id"]}"; } ?>