Location: PHPKode > projects > Scorpio Framework for PHP > scorpioframework_php_0.3.5/libraries/generator/templates/mvc/base.dao.htmlList.tpl
{ldelim}assign var=offset value=$pagingOffset|default:0{rdelim}
{ldelim}assign var=limit value=30{rdelim}
{ldelim}assign var=totalObjects value=$oModel->getTotalObjects(){rdelim}
{ldelim}assign var=objects value=$oModel->getObjectList($offset, $limit){rdelim}
{ldelim}if $objects->getArrayCount() > 0{rdelim}
	<table class="data">
		<thead>
			<tr>
{foreach item=value from=$daoObjectVars}
				<th>{$value|replace:"_":""|spacifyCapitalisedString}</th>
{/foreach}
				<th>&nbsp;</th>
			</tr>
		</thead>
		<tbody>
		{ldelim}include file=$oView->getTemplateFile('daoPaging', '/shared') colspan={$daoObjectVars->getArrayCount()-1}{rdelim}
		{ldelim}foreach name=list item=oObject from=$objects{rdelim}
			<tr>
{foreach item=value from=$daoObjectVars}
				<td {ldelim}if $smarty.foreach.list.iteration % 2{rdelim}class="alt"{ldelim}/if{rdelim}>{ldelim}$oObject->get{$value|replace:"_":""}(){rdelim}</td>
{/foreach}
				<td class="actions {ldelim}if $smarty.foreach.list.iteration % 2{rdelim}alt{ldelim}/if{rdelim}">
					{ldelim}include file=$oView->getTemplateFile('daoObjectListDefaultActions', '/shared'){rdelim}
				</td>
			</tr>
		{ldelim}/foreach{rdelim}
		{ldelim}include file=$oView->getTemplateFile('daoPaging', '/shared') colspan={$daoObjectVars->getArrayCount()-1}{rdelim}
		</tbody>
	</table>
{ldelim}else{rdelim}
	<p>No objects found in system.</p>
{ldelim}/if{rdelim}
Return current item: Scorpio Framework for PHP