prepare("SELECT * FROM circleoffice WHERE id = ? ORDER BY id ASC");
$stmt->bind_param("i", $circleoffice_id);
$stmt->execute();
//Result
$result = $stmt->get_result();
$numrows = $result->num_rows;
while ($row = $result->fetch_assoc()) {
$circleofficeName = $row["circleofficeName"];
}
//অভ্যন্তরীণ ও বিদেশে প্রশিক্ষণ
$stmt = $conn->prepare("SELECT g.GovtId, g.NameB,
tra.coursetitle,tra.instName, tra.instLocation, tra.country,
tra.startDate,
tra.endDate,
tra.exmresult FROM
((SELECT
tr.GovtId,
tr.coursetitle,
tr.instName,
tr.instLocation,
'বাংলাদেশ' country,
tr.startDate,
tr.endDate,
tr.exmresult
FROM localtraining tr ORDER BY tr.GovtId)
UNION ALL
(SELECT
f.GovtId,
f.coursetitle,
f.instName,
f.instLocation,
c.CountryName,
f.startDate,
f.endDate,
f.exmresult
FROM foreigntraining f
LEFT JOIN country c ON(f.country_id=c.id) ORDER BY f.GovtId)) tra
LEFT JOIN `general` g INNER JOIN office offi ON(g.office_id=offi.id)
ON (g.GovtId=tra.GovtId)
,districtoffice d, circleoffice cr
WHERE offi.districtoffice_id=d.id AND d.circleoffice_id=cr.id AND g.status_id=1 AND cr.id=? ORDER BY g.GovtId");
$stmt->bind_param("s",$circleoffice_id);
$stmt->execute();
$result = $stmt->get_result();
$numrows=$result->num_rows;
$slno=0;
if($numrows>0)
{
?>
=$circleofficeName?> এর প্রশিক্ষণ প্রাপ্ত কর্মকর্তা/কর্মচারী
ক্রমিক নং |
PIMS আইডি |
কোর্স টাইটেল |
প্রশিক্ষণ প্রদানকারী প্রতিষ্ঠানের নাম |
লোকেশন |
দেশ |
প্রশিক্ষণ শুরু তারিখ |
প্রশিক্ষণ শেষের তারিখ |
প্রশিক্ষণের ফলাফল |
fetch_assoc())
{
$slno=$slno +1;
$id = $row["id"];
$GovtId = $row["GovtId"];
$coursetitle = $row["coursetitle"];
$instName = $row["instName"];
$country = $row["country"];
$instLocation = $row["instLocation"];
$startDate = $row["startDate"];
$endDate = $row["endDate"];
$exmresult = $row["exmresult"];
?>
=bangladate($slno)?> |
=bangladate($GovtId)?>
|
=$coursetitle ?> |
=$instName ?> |
=$instLocation ?> |
=$country ?> |
=bangladate(str_replace('1970-01-01','',$startDate)) ?> |
=bangladate(str_replace('1970-01-01','',$endDate)) ?> |
=$exmresult ?> |