require("config.php");
require("function.php");
header1();
if($_GET[view]=="orgdetail"){
$r2=ss_mysqli_fetch_array(ss_mysqli_query("select * from seervi_organization where slno='$slno'"));
?>
footer();
//include("homepage-banner-add.php");
exit;
}
?>
रोजगार समाचार
$html = file_get_contents("$basedir/sjobs/joblist.htm");
$dom = new DOMDocument;
@$dom->loadHTML($html);
$xpath = new DOMXPath($dom);
$arr_info = array();
$newstitle = $xpath->query("//div[contains(@class, 'nstory_header')]");
$brief_detail = $xpath->query("//div[contains(@class, 'nstory_intro')]");
$ndetail = $xpath->query("//div[contains(@class, 'nstory_dateline')]");
$len=$newstitle->length;
if($len>0) {
for($nm=0;$nm<$len;$nm++) {
if($newstitle->item($nm)) {
$arr_info['newstitle'] = $newstitle->item($nm)->nodeValue;
}
if($newstitle->item($nm)) {
$arr_info['news_url'] = $newstitle->item($nm)->getElementsByTagName('a')->item(0)->getAttribute('href');
}
if($brief_detail->item($nm)) {
$arr_info['briefdetail'] = $brief_detail->item($nm)->nodeValue;
//$arr_info['website_url'] = $company_profile_url_qry->item(0)->getElementsByTagName('li')->item(0)->getElementsByTagName('a')->item(0)->getAttribute('href');
}
if($ndetail->item($nm)) {
$arr_info['updtime'] = $ndetail->item($nm)->getElementsByTagName('time')->item(0)->nodeValue;;
}
?>
- echo "$arr_info[newstitle] ( $arr_info[updtime] )"; ?>
}
}
?>
footer();
//include("homepage-banner-add.php");
exit;
?>