Exemplo n.º 1
0
		<tr>
			<th><?php echo Yii::t('AutoAdmin.generator', 'SQL table name')?></th>
			<th><?php echo Yii::t('AutoAdmin.generator', 'Columns')?></th>
		</tr>
	</thead>
	<tbody>
<?php
if(!empty($tables))
{
	$url = $this->createUrl('aagenerator/table');
	foreach($tables as $tableName=>$table)
	{
		?>
		<tr>
			<td>
				<a href="<?php echo AAHelperUrl::addParam($url, 'table', $tableName);?>"><?php echo $tableName?></a></td>
			<td>
				<?php
				if(!empty($table->columns))
					echo implode(', ', array_slice(array_keys($table->columns), 0, 5));
				if(count($table->columns) > 5)
					echo ', &hellip;';
				?>
			</td>
		</tr>
		<?php
	}
}
?>
	</tbody>
</table>
Exemplo n.º 2
0
?>
		<th></th>
	</tr>
</thead>
<tbody>
<?php
foreach($dataRows as $rowI=>$dataRow)
{
	?>
	<tr id="tr_<?php echo (1)?>">
		<td class="row-number"><span><?php echo (($rowI+1) + $rowsOnPage*($currentPage-1))?>.</span></td>
	<?php
	if(!empty($urlSub))
	{
		?>
		<td class="subtable"><?php echo CHtml::link('-', AAHelperUrl::addParam($urlSub, 'bk', $dataRow->pk))?></td>
		<?php
	}

	foreach($dataRow as $k=>$field)
	{	//Output fields that were set for show
		if(!$field->showInList)
			continue;
		?>
		<td class="t-<?php echo $field->type?>">
		<?php
		if(is_null($field->value))
		{
			?><span class="null">NULL</span><?php
		}
		else