Location: PHPKode > projects > Science Lab Inventory & Order Management > sciencelabinv/ordersmaster.php
<?php

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

// lesson
$orders->lesson->CellCssStyle = ""; $orders->lesson->CellCssClass = "";
$orders->lesson->CellAttrs = array(); $orders->lesson->ViewAttrs = array(); $orders->lesson->EditAttrs = array();

// title
$orders->title->CellCssStyle = ""; $orders->title->CellCssClass = "";
$orders->title->CellAttrs = array(); $orders->title->ViewAttrs = array(); $orders->title->EditAttrs = array();

// room
$orders->room->CellCssStyle = ""; $orders->room->CellCssClass = "";
$orders->room->CellAttrs = array(); $orders->room->ViewAttrs = array(); $orders->room->EditAttrs = array();

// order_date
$orders->order_date->CellCssStyle = ""; $orders->order_date->CellCssClass = "";
$orders->order_date->CellAttrs = array(); $orders->order_date->ViewAttrs = array(); $orders->order_date->EditAttrs = array();

// request_date
$orders->request_date->CellCssStyle = ""; $orders->request_date->CellCssClass = "";
$orders->request_date->CellAttrs = array(); $orders->request_date->ViewAttrs = array(); $orders->request_date->EditAttrs = array();

// return_date
$orders->return_date->CellCssStyle = ""; $orders->return_date->CellCssClass = "";
$orders->return_date->CellAttrs = array(); $orders->return_date->ViewAttrs = array(); $orders->return_date->EditAttrs = array();

// teacher
$orders->teacher->CellCssStyle = ""; $orders->teacher->CellCssClass = "";
$orders->teacher->CellAttrs = array(); $orders->teacher->ViewAttrs = array(); $orders->teacher->EditAttrs = array();

// attachment
$orders->attachment->CellCssStyle = ""; $orders->attachment->CellCssClass = "";
$orders->attachment->CellAttrs = array(); $orders->attachment->ViewAttrs = array(); $orders->attachment->EditAttrs = array();

// Call Row_Rendered event
$orders->Row_Rendered();
?>
<p><span class="phpmaker"><?php echo $Language->Phrase("MasterRecord") ?><?php echo $orders->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 $orders->lesson->FldCaption() ?></td>
			<td class="ewTableHeader"><?php echo $orders->title->FldCaption() ?></td>
			<td class="ewTableHeader"><?php echo $orders->room->FldCaption() ?></td>
			<td class="ewTableHeader"><?php echo $orders->order_date->FldCaption() ?></td>
			<td class="ewTableHeader"><?php echo $orders->request_date->FldCaption() ?></td>
			<td class="ewTableHeader"><?php echo $orders->return_date->FldCaption() ?></td>
			<td class="ewTableHeader"><?php echo $orders->teacher->FldCaption() ?></td>
			<td class="ewTableHeader"><?php echo $orders->attachment->FldCaption() ?></td>
		</tr>
	</thead>
	<tbody>
		<tr>
			<td<?php echo $orders->lesson->CellAttributes() ?>>
<div<?php echo $orders->lesson->ViewAttributes() ?>>
<?php if ($orders->lesson->HrefValue <> "" || $orders->lesson->TooltipValue <> "" || $orders->note->ViewValue <> "") { ?>
<a href="javascript:void(0);" onmouseover="ew_ShowTooltip(this, 'tt_orders_x_lesson');" onmouseout="ew_HideTooltip();"><?php echo $orders->lesson->ListViewValue() ?></a>
<?php } else { ?>
<?php echo $orders->lesson->ListViewValue() ?>
<?php } ?>
</div><div id="tt_orders_x_lesson" style="display: none">
<?php if ($orders->lesson->TooltipValue <> "") { ?>
<?php echo $orders->lesson->TooltipValue ?>
<?php } else { ?>
<div<?php echo $orders->note->ViewAttributes() ?>><?php echo $orders->note->ViewValue ?></div>
<?php } ?>
</div></td>
			<td<?php echo $orders->title->CellAttributes() ?>>
<div<?php echo $orders->title->ViewAttributes() ?>><?php echo $orders->title->ListViewValue() ?></div></td>
			<td<?php echo $orders->room->CellAttributes() ?>>
<div<?php echo $orders->room->ViewAttributes() ?>><?php echo $orders->room->ListViewValue() ?></div></td>
			<td<?php echo $orders->order_date->CellAttributes() ?>>
<div<?php echo $orders->order_date->ViewAttributes() ?>><?php echo $orders->order_date->ListViewValue() ?></div></td>
			<td<?php echo $orders->request_date->CellAttributes() ?>>
<div<?php echo $orders->request_date->ViewAttributes() ?>><?php echo $orders->request_date->ListViewValue() ?></div></td>
			<td<?php echo $orders->return_date->CellAttributes() ?>>
<div<?php echo $orders->return_date->ViewAttributes() ?>><?php echo $orders->return_date->ListViewValue() ?></div></td>
			<td<?php echo $orders->teacher->CellAttributes() ?>>
<div<?php echo $orders->teacher->ViewAttributes() ?>><?php echo $orders->teacher->ListViewValue() ?></div></td>
			<td<?php echo $orders->attachment->CellAttributes() ?>>
<?php if ($orders->attachment->HrefValue <> "" || $orders->attachment->TooltipValue <> "") { ?>
<?php if (!empty($orders->attachment->Upload->DbValue)) { ?>
<a href="<?php echo $orders->attachment->HrefValue ?>"><?php echo $orders->attachment->ListViewValue() ?></a>
<?php } elseif (!in_array($orders->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } else { ?>
<?php if (!empty($orders->attachment->Upload->DbValue)) { ?>
<?php echo $orders->attachment->ListViewValue() ?>
<?php } elseif (!in_array($orders->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } ?>
</td>
		</tr>
	</tbody>
</table>
</div>
</td></tr></table>
<br>
Return current item: Science Lab Inventory & Order Management