<?php
session_start();
// ============
include("../../asset/theme/css/myfunc.php");
include("../../php_crud/my_class.php");
$obj = new my_class();
// ============
$branchid = $_SESSION['LOGIN_BRANCH'];
extract($_GET);
//echo $sel_stat_id;
$value = $obj->Details_By_Cond("HYDROLOGY.LITHO_CODE_TBL@HYDRO10", "MATERIAL_CODE='$mat_code'");
$material_code = $value['MATERIAL_CODE'];
$lower_size = $value['LOWER_SIZE'];
$upper_size = $value['UPPER_SIZE'];
$description = $value['DESCRIPTION'];
$yl = $value['YL'];
$ym = $value['YM'];
$yh = $value['YH'];
// $status = $value['STATUS'];

// if ($status == "A") {
//     $status_show = "Active";
// }
// elseif ($status == "I") {
//     $status_show = "Inactive";
// }

?>

<div class="row-fluid">
    <table style="width: 100%; border-collapse: collapse; padding-left: 5px;">

        <tr>
            <td colspan="5">&nbsp;&nbsp;&nbsp; </td>
        </tr>
        <tr>
            <th style="text-align: right; width: 20%;">Material Code: </th>
            <td style="width: 28%; border-bottom: 1px dotted;"><?php echo "&nbsp;" . $material_code; ?></td>
            <td style="width: 4%;">&nbsp;&nbsp;&nbsp;</td>
            <th style="text-align: right; width: 20%;">YL: </th>
            <td style="width: 28%; border-bottom: 1px dotted;"><?php echo "&nbsp;" . $yl; ?></td>
            <th style="text-align: right; width: 20%;">&nbsp;&nbsp;&nbsp;</th>
            <td style="width: 28%;">&nbsp;&nbsp;&nbsp;</td>
        </tr>
        <tr>
            <td colspan="6">&nbsp;&nbsp;&nbsp; </td>
        </tr>
        <tr>
            <th style="text-align: right; width: 20%;">Description: </th>
            <td style="width: 28%; border-bottom: 1px dotted;"><?php echo "&nbsp;" . $description; ?></td>
            <td style="width: 4%;">&nbsp;&nbsp;&nbsp;</td>
            <th style="text-align: right; width: 20%;">YM: </th>
            <td style="width: 28%; border-bottom: 1px dotted;"><?php echo "&nbsp;" . $ym; ?></td>
            <td style="width: 28%;">&nbsp;&nbsp;&nbsp;</td>
        </tr>
        <tr>
            <td colspan="6">&nbsp;&nbsp;&nbsp; </td>
        </tr>
        <tr>
            <th style="text-align: right; width: 20%;">Lower Size: </th>
            <td style="width: 28%; border-bottom: 1px dotted;"><?php echo "&nbsp;" . $lower_size; ?></td>
            <td style="width: 4%;">&nbsp;&nbsp;&nbsp;</td>
            <th style="text-align: right; width: 20%;">YH: </th>
            <td style="width: 28%; border-bottom: 1px dotted;"><?php echo "&nbsp;" . $yh; ?></td>
            <td style="width: 28%;">&nbsp;&nbsp;&nbsp;</td>
        </tr>
        <tr>
            <td colspan="6">&nbsp;&nbsp;&nbsp; </td>
        </tr>
        <tr>
            <th style="text-align: right; width: 20%;">Upper Size: </th>
            <td style="width: 28%; border-bottom: 1px dotted;"><?php echo "&nbsp;" . $upper_size ?></td>
            <td style="width: 4%;">&nbsp;&nbsp;&nbsp;</td>
            <!-- <th style="text-align: right; width: 20%;">Status: </th>
            <td style="width: 28%; border-bottom: 1px dotted;"><?php echo "&nbsp;" . $status_show; ?></td>
            <td style="width: 28%;">&nbsp;&nbsp;&nbsp;</td> -->
        </tr>
        <tr>
            <td colspan="6">&nbsp;&nbsp;&nbsp; </td>
        </tr>
    </table>
</div>