<style>
	th {
		border-bottom: 1px solid #EAEAEA !important;
	}
	
</style>
<?php

	require_once '../../asset/mpdf/vendor/autoload.php';
	error_reporting(E_ALL);
	ini_set('display_errors', 1);
	extract($_REQUEST);
	include("../../php_crud/my_class.php");
	$obj = new my_class();
	$header = '<table style="width: 1000px" border="0" cellpadding="0" cellspacing="0" id="station_tbl" class="table table-bordered table-striped table-bordered table-hover">
				<tr>
					<td style="text-align: center; width: 25%">
						<img src="../../asset/custom/site_images/BWDB-LOGO.jpg" width="100px" />
					</td>
					<td style="text-align: center; width: 63%;">
						<h3 style="text-align: center;">BWCSRP COMPONENT B: SHEWS</h3>
						<h3 style="text-align: center;">BANGLADESH WATER DEVELOPMENT BOARD (BWDB)</h3>
						
					</td>
				</tr>
			</table>
			<br />
			<br />
	';
	
	
	$html .= '<table style="width: 1000px" border="0" cellpadding="0" cellspacing="0" id="station_tbl" class="table table-bordered table-striped table-bordered table-hover" style="font-size: 11px !important;">
    <thead>
        <tr style="">
                        <th  rowspan="2" style="padding: 5px;border-top: 1px solid #CCC;border-left: 1px solid #CCC;border-right: 1px solid #CCC;border-bottom: 1px solid #CCC;">Sl</th>
			<th  rowspan="2" style="padding: 5px;border-top: 1px solid #CCC;border-right: 1px solid #CCC;border-bottom: 1px solid #CCC;">No. Of Sample</th>
			<th  rowspan="2" style="padding: 5px;border-top: 1px solid #CCC;border-right: 1px solid #CCC;border-bottom: 1px solid #CCC;">Type Of Sample</th>

			<th  rowspan="2" style="padding: 5px;border-top: 1px solid #CCC;border-right: 1px solid #CCC;border-bottom: 1px solid #CCC;">Lithological Description</th>
			<th  colspan="4" style="padding: 5px;border-top: 1px solid #CCC;border-right: 1px solid #CCC;border-bottom: 1px solid #CCC;">Physical</th>
			<th  colspan="5" style="padding: 5px;border-top: 1px solid #CCC;border-right: 1px solid #CCC;border-bottom: 1px solid #CCC;">Disturbed Sample</th>
	</tr>	
	<tr>
			<th style="padding: 5px;border-top: 1px solid #CCC;border-right: 1px solid #CCC;border-bottom: 1px solid #CCC;">Density</th>
			<th style="padding: 5px;border-top: 1px solid #CCC;border-right: 1px solid #CCC;border-bottom: 1px solid #CCC;">Color</th>
			<th style="padding: 5px;border-top: 1px solid #CCC;border-right: 1px solid #CCC;border-bottom: 1px solid #CCC;">Moisture</th>
			<th style="padding: 5px;border-top: 1px solid #CCC;border-right: 1px solid #CCC;border-bottom: 1px solid #CCC;">Dilatancy</th>
			<th style="padding: 5px;border-top: 1px solid #CCC;border-right: 1px solid #CCC;border-bottom: 1px solid #CCC;">BOS 0-6</th>
			<th style="padding: 5px;border-top: 1px solid #CCC;border-right: 1px solid #CCC;border-bottom: 1px solid #CCC;">BOS 6-12</th>
			<th style="padding: 5px;border-top: 1px solid #CCC;border-right: 1px solid #CCC;border-bottom: 1px solid #CCC;">BOS 12-18</th>
			<th style="padding: 5px;border-top: 1px solid #CCC;border-right: 1px solid #CCC;border-bottom: 1px solid #CCC;">BOS 18-24</th>
			<th style="padding: 5px;border-top: 1px solid #CCC;border-right: 1px solid #CCC;border-bottom: 1px solid #CCC;">BOC 0-12</th>
        </tr>
    </thead><tbody>';
         $sl  = 0;
         foreach($obj->View_colmn_By_Cond_hydro("HYDROLOGY.LITHO_FIELD_BORE_LOG_DET@HYDRO10","*","1=1") as $bor_log_list){
         //print_r($bor_log_list);
         $sl++;
	 $html .="<tr>  
				<td style='padding: 5px;border-left: 1px solid #CCC;border-right: 1px solid #CCC;border-bottom: 1px solid #CCC;'>".$sl."</td>
				<td style='padding: 5px;border-right: 1px solid #CCC;border-bottom: 1px solid #CCC;'>".$bor_log_list['NO_OF_SAMPLE']."</td>
				<td style='padding: 5px;border-right: 1px solid #CCC;border-bottom: 1px solid #CCC;'>".$bor_log_list['TYPE_OF_SAMPLE']."</td>
				<td style='padding: 5px;border-right: 1px solid #CCC;border-bottom: 1px solid #CCC;'>".$bor_log_list ['LITHOLOGICAL_DESC']."</td>
				<td style='padding: 5px;border-right: 1px solid #CCC;border-bottom: 1px solid #CCC;'>".$bor_log_list['DENSITY']."</td>
				<td style='padding: 5px;border-right: 1px solid #CCC;border-bottom: 1px solid #CCC;'>".$bor_log_list['COLOR']."</td>
				<td style='padding: 5px;border-right: 1px solid #CCC;border-bottom: 1px solid #CCC;'>".$bor_log_list ['MOISTURE']."</td>
				<td style='padding: 5px;border-right: 1px solid #CCC;border-bottom: 1px solid #CCC;'>".$bor_log_list['DILATANCY']."</td>
				<td style='padding: 5px;border-right: 1px solid #CCC;border-bottom: 1px solid #CCC;'>".$bor_log_list['BOS_0_6']."</td>
				<td style='padding: 5px;border-right: 1px solid #CCC;border-bottom: 1px solid #CCC;'>".$bor_log_list ['BOS_6_12']."</td>
				<td style='padding: 5px;border-right: 1px solid #CCC;border-bottom: 1px solid #CCC;'>".$bor_log_list['BOS_12_18']."</td>
				<td style='padding: 5px;border-right: 1px solid #CCC;border-bottom: 1px solid #CCC;'>".$bor_log_list['BOS_18_24']."</td>
				<td style='padding: 5px;border-right: 1px solid #CCC;border-bottom: 1px solid #CCC;'>".$bor_log_list ['BOC_0_12']."</td>

			</tr>";
		$i++;
	}
	$html .= '</tbody></table>';
	//echo $html;
//==============================================================
//==============================================================
//==============================================================
$mpdf = new \Mpdf\Mpdf();
			$mpdf->WriteHTML($html);
			$mpdf->Output();
// include("../../asset/mpdf/mpdf.php");
// $mpdf=new mPDF('c','A4-L','','',10,10,40,25,10,13); 
// $mpdf->simpleTables = true;
// $mpdf->packTableData = true;
// $mpdf->keep_table_proportions = TRUE;
// $mpdf->shrink_tables_to_fit=1;
// $mpdf->SetDisplayMode('fullpage');
// $mpdf->SetHTMLHeader($header);

// $mpdf->list_indent_first_level = 0;	// 1 or 0 - whether to indent the first level of a list

// // LOAD a stylesheet
// $stylesheet = file_get_contents('mpdfstyletables.css');
// $mpdf->WriteHTML($stylesheet,1);	// The parameter 1 tells that this is css/style only and no body/html/text

// $mpdf->WriteHTML($html,2);

// $mpdf->Output('mpdf.pdf','I');

//==============================================================
//==============================================================
//==============================================================


?>