kohjhjhصثقص5572hjkhk7872ثقصثقgdfgdg
Ele57885fddfg872782782782 hjkhj782dfgfghgقفغفغفقhfg555434536
/
home4
/
kisgavwq
/
theeventage.in
/
Upload FileeE
HOME
<?php //faculties.php session_start(); require_once("../includes/settings.php"); require_once("../includes/database.php"); require_once("../includes/classes/db.cls.php"); require_once("../includes/classes/sitedata.cls.php"); require_once("includes/functions/common.php"); require_once("../includes/classes/Admin.cls.php"); require_once("../includes/classes/Faculties.cls.php"); require_once("../includes/classes/DBquery.cls.php"); $db = new SiteData(); $adminObj = new Admin(); $dbobj = new dbquery(); $data_student=$dbobj->fetch_data("tbl_registration"); $i=1; header("Content-Type: application/xls"); header("Content-Disposition: attachment; filename=visitor.xls"); header("Pragma: no-cache"); header("Expires: 0"); header("Content-Type: application/vnd.ms-excel"); header("Content-Disposition: attachment; filename=visitor.xls"); echo '<table border="1">'; echo '<caption>Visitor Registration Details</caption>'; echo '<tr><th>#</th><th>Name</th><th>Designation</th><th>Company Name</th><th>Email</th><th>Mobile</th><th>Address</th><th>Country</th><th>City</th><th>Website</th><th>Business Category</th><th>Submitted On</th></tr>'; foreach($data_student as $sdata){ $date=date_create($data['applydate']); $name=$data['salutation'].' '.$data['firstname'].' '.$data['lastname']; echo '<tr><td>'.$i++.'</td><td>'.$name.'</td><td>'.$sdata['designation'].'</td><td>'.$sdata['companyname'].'</td><td>'.$sdata['email'].'</td><td>'.$sdata['mobile'].'</td><td>'.$sdata['address'].'</td><td>'.$sdata['country'].'</td><td>'.$sdata['city'].'</td><td>'.$sdata['website'].'</td><td>'.$sdata['businesscategory'].'</td><td>'.date_format($date,"d/m/Y").'</td></tr>'; } echo "</table>"; ?>