<?php

// cod_categoria
$categoria->cod_categoria->CellCssStyle = "";
$categoria->cod_categoria->CellCssClass = "";

// des_categoria
$categoria->des_categoria->CellCssStyle = "";
$categoria->des_categoria->CellCssClass = "";

// des_imagen
$categoria->des_imagen->CellCssStyle = "";
$categoria->des_imagen->CellCssClass = "";

// margen
$categoria->margen->CellCssStyle = "";
$categoria->margen->CellCssClass = "";

// displayCat
$categoria->displayCat->CellCssStyle = "";
$categoria->displayCat->CellCssClass = "";

// orden
$categoria->orden->CellCssStyle = "";
$categoria->orden->CellCssClass = "";
?>
<p><span class="phpmaker">Registro Maestro: categorias<br>
<a href="<?php echo $gsMasterReturnUrl ?>">Regresar a página maestra</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">cod.</td>
			<td class="ewTableHeader">descripción</td>
			<td class="ewTableHeader">imagen</td>
			<td class="ewTableHeader">margen</td>
			<td class="ewTableHeader">cat</td>
			<td class="ewTableHeader">orden</td>
		</tr>
	</thead>
	<tbody>
		<tr>
			<td<?php echo $categoria->cod_categoria->CellAttributes() ?>>
<div<?php echo $categoria->cod_categoria->ViewAttributes() ?>><?php echo $categoria->cod_categoria->ListViewValue() ?></div></td>
			<td<?php echo $categoria->des_categoria->CellAttributes() ?>>
<div<?php echo $categoria->des_categoria->ViewAttributes() ?>><?php echo $categoria->des_categoria->ListViewValue() ?></div></td>
			<td<?php echo $categoria->des_imagen->CellAttributes() ?>>
<?php if ($categoria->des_imagen->HrefValue <> "") { ?>
<?php if (!is_null($categoria->des_imagen->Upload->DbValue)) { ?>
<img src="<?php echo ew_UploadPathEx(FALSE, EW_UPLOAD_DEST_PATH) . $categoria->des_imagen->Upload->DbValue ?>" border=0<?php echo $categoria->des_imagen->ViewAttributes() ?>>
<?php } elseif (!in_array($categoria->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } else { ?>
<?php if (!is_null($categoria->des_imagen->Upload->DbValue)) { ?>
<img src="<?php echo ew_UploadPathEx(FALSE, EW_UPLOAD_DEST_PATH) . $categoria->des_imagen->Upload->DbValue ?>" border=0<?php echo $categoria->des_imagen->ViewAttributes() ?>>
<?php } elseif (!in_array($categoria->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } ?>
</td>
			<td<?php echo $categoria->margen->CellAttributes() ?>>
<div<?php echo $categoria->margen->ViewAttributes() ?>><?php echo $categoria->margen->ListViewValue() ?></div></td>
			<td<?php echo $categoria->displayCat->CellAttributes() ?>>
<div<?php echo $categoria->displayCat->ViewAttributes() ?>><?php echo $categoria->displayCat->ListViewValue() ?></div></td>
			<td<?php echo $categoria->orden->CellAttributes() ?>>
<div<?php echo $categoria->orden->ViewAttributes() ?>><?php echo $categoria->orden->ListViewValue() ?></div></td>
		</tr>
	</tbody>
</table>
</div>
</td></tr></table>
<br>
