tims-todo/application/views/friend/ajax_search.php

14 lines
408 B
PHP
Raw Normal View History

2014-08-08 15:41:59 -04:00
<?php $i=0 ?>
<tbody>
<?php if(is_array($results)) : ?>
<?php foreach ($results as $result): ?>
<tr class="<?= ($i%2 != 0 ) ? 'alt ' : "";?>">
<td><input type="button" value="Send Friend Request" id="f_<?= $result['id'] ?>" class="request_sub" /></td>
<td><?= $result['username'] ?></td>
<td><?= $result['email'] ?></td>
</tr>
<?php $i++ ?>
<?php endforeach; ?>
<?php endif ?>
</tbody>