Skip to content

Instantly share code, notes, and snippets.


galvao/datagrid.phtml Secret

Created Jan 14, 2015
What would you like to do?
The problematic partial
<table class="datagrid">
<span class="sorter" direction="up">
<img class="clickable" src="/image/icon/blueTopArrow.png">
<span class="sorter" direction="down">
<img class="clickable" src="/image/icon/blueBottomArrow.png">
<th width="100">
if ($this->dataCount) {
foreach ($this->data as $record) {
echo '<tr class="datarow">';
echo '<td><a class="record" href="' . $this->url('activity-type-list', array(), array('force_canonical' => true), true) . '">' . $record->name . '</a><br>
<a class="record" href="' . $this->serverUrl() . '/tipo_atividade">' . $record->name . '<br>
<a class="record" href="">Foo</a><br>
<a class="record" href="' . $this->serverUrl() . '/tipo_atividade">' . $record->name . '</a></td>';
echo '<td align="right" valign="middle" id="r' . $record->id . '"><img class="action clickable invisible" src="/image/icon/edit.png">&nbsp;&nbsp;<img class="action clickable invisible" src="/image/icon/delete.png"></td>';
echo '</tr>';
} else {
<td>Nenhum registro encontrado</td>
<script type="text/javascript" src="/js/datagrid.js"></script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment