<?php

// Call Row_Rendering event
$tbl_hotel->Row_Rendering();

// language_id
$tbl_hotel->language_id->CellCssStyle = ""; $tbl_hotel->language_id->CellCssClass = "";
$tbl_hotel->language_id->CellAttrs = array(); $tbl_hotel->language_id->ViewAttrs = array(); $tbl_hotel->language_id->EditAttrs = array();

// country_id
$tbl_hotel->country_id->CellCssStyle = ""; $tbl_hotel->country_id->CellCssClass = "";
$tbl_hotel->country_id->CellAttrs = array(); $tbl_hotel->country_id->ViewAttrs = array(); $tbl_hotel->country_id->EditAttrs = array();

// province_id
$tbl_hotel->province_id->CellCssStyle = ""; $tbl_hotel->province_id->CellCssClass = "";
$tbl_hotel->province_id->CellAttrs = array(); $tbl_hotel->province_id->ViewAttrs = array(); $tbl_hotel->province_id->EditAttrs = array();

// category
$tbl_hotel->category->CellCssStyle = ""; $tbl_hotel->category->CellCssClass = "";
$tbl_hotel->category->CellAttrs = array(); $tbl_hotel->category->ViewAttrs = array(); $tbl_hotel->category->EditAttrs = array();

// photo
$tbl_hotel->photo->CellCssStyle = ""; $tbl_hotel->photo->CellCssClass = "";
$tbl_hotel->photo->CellAttrs = array(); $tbl_hotel->photo->ViewAttrs = array(); $tbl_hotel->photo->EditAttrs = array();

// hotel_name
$tbl_hotel->hotel_name->CellCssStyle = ""; $tbl_hotel->hotel_name->CellCssClass = "";
$tbl_hotel->hotel_name->CellAttrs = array(); $tbl_hotel->hotel_name->ViewAttrs = array(); $tbl_hotel->hotel_name->EditAttrs = array();

// order_by
$tbl_hotel->order_by->CellCssStyle = ""; $tbl_hotel->order_by->CellCssClass = "";
$tbl_hotel->order_by->CellAttrs = array(); $tbl_hotel->order_by->ViewAttrs = array(); $tbl_hotel->order_by->EditAttrs = array();

// Call Row_Rendered event
$tbl_hotel->Row_Rendered();
?>
<p><span class="phpmaker"><?php echo $Language->Phrase("MasterRecord") ?><?php echo $tbl_hotel->TableCaption() ?><br>
<a href="<?php echo $gsMasterReturnUrl ?>"><?php echo $Language->Phrase("BackToMasterPage") ?></a></span></p>
<table cellspacing="0" class="ewGrid"><tr><td class="ewGridContent">
<div class="ewGridMiddlePanel">
<table cellspacing="0" class="ewTable ewTableSeparate">
	<thead>
		<tr>
			<td class="ewTableHeader"><?php echo $tbl_hotel->language_id->FldCaption() ?></td>
			<td class="ewTableHeader"><?php echo $tbl_hotel->country_id->FldCaption() ?></td>
			<td class="ewTableHeader"><?php echo $tbl_hotel->province_id->FldCaption() ?></td>
			<td class="ewTableHeader"><?php echo $tbl_hotel->category->FldCaption() ?></td>
			<td class="ewTableHeader"><?php echo $tbl_hotel->photo->FldCaption() ?></td>
			<td class="ewTableHeader"><?php echo $tbl_hotel->hotel_name->FldCaption() ?></td>
			<td class="ewTableHeader"><?php echo $tbl_hotel->order_by->FldCaption() ?></td>
		</tr>
	</thead>
	<tbody>
		<tr>
			<td<?php echo $tbl_hotel->language_id->CellAttributes() ?>>
<div<?php echo $tbl_hotel->language_id->ViewAttributes() ?>><?php echo $tbl_hotel->language_id->ListViewValue() ?></div></td>
			<td<?php echo $tbl_hotel->country_id->CellAttributes() ?>>
<div<?php echo $tbl_hotel->country_id->ViewAttributes() ?>><?php echo $tbl_hotel->country_id->ListViewValue() ?></div></td>
			<td<?php echo $tbl_hotel->province_id->CellAttributes() ?>>
<div<?php echo $tbl_hotel->province_id->ViewAttributes() ?>><?php echo $tbl_hotel->province_id->ListViewValue() ?></div></td>
			<td<?php echo $tbl_hotel->category->CellAttributes() ?>>
<div<?php echo $tbl_hotel->category->ViewAttributes() ?>><?php echo $tbl_hotel->category->ListViewValue() ?></div></td>
			<td<?php echo $tbl_hotel->photo->CellAttributes() ?>>
<?php if ($tbl_hotel->photo->HrefValue <> "" || $tbl_hotel->photo->TooltipValue <> "") { ?>
<?php if (!empty($tbl_hotel->photo->Upload->DbValue)) { ?>
<img src="<?php echo ew_UploadPathEx(FALSE, $tbl_hotel->photo->UploadPath) . $tbl_hotel->photo->Upload->DbValue ?>" border=0<?php echo $tbl_hotel->photo->ViewAttributes() ?>>
<?php } elseif (!in_array($tbl_hotel->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } else { ?>
<?php if (!empty($tbl_hotel->photo->Upload->DbValue)) { ?>
<img src="<?php echo ew_UploadPathEx(FALSE, $tbl_hotel->photo->UploadPath) . $tbl_hotel->photo->Upload->DbValue ?>" border=0<?php echo $tbl_hotel->photo->ViewAttributes() ?>>
<?php } elseif (!in_array($tbl_hotel->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } ?>
</td>
			<td<?php echo $tbl_hotel->hotel_name->CellAttributes() ?>>
<div<?php echo $tbl_hotel->hotel_name->ViewAttributes() ?>><?php echo $tbl_hotel->hotel_name->ListViewValue() ?></div></td>
			<td<?php echo $tbl_hotel->order_by->CellAttributes() ?>>
<div<?php echo $tbl_hotel->order_by->ViewAttributes() ?>><?php echo $tbl_hotel->order_by->ListViewValue() ?></div></td>
		</tr>
	</tbody>
</table>
</div>
</td></tr></table>
<br>
