예제 #1
0
<?php 
$authors = Author::GetAuthors();
$i = 0;
foreach ($authors as $author) {
    ?>
<tr onclick="getRow(<?php 
    echo $author->getId();
    ?>
)"
  onmouseover="setPointer(this, 0, 'over');" onmouseout="setPointer(this, 0, 'out');" style="cursor:pointer">
  <td><?php 
    echo $author->getName();
    ?>
</td>
  <td><?php 
    echo l_getType($author->getTypeWithNames());
    ?>
</td>
  <td align="right" class="last" id="row_0">
    <a href="" onclick="return deleteAuthor(<?php 
    echo $author->getId();
    ?>
);"><img
      src="<?php 
    echo $Campsite["ADMIN_IMAGE_BASE_URL"];
    ?>
/delete.png" border="0"
      alt="<?php 
    echo $translator->trans('Delete author', array(), 'authors');
    ?>
" title="<?php 
예제 #2
0
<tr>
  <th><?php putGS('Author'); ?></th>
  <th><?php putGS('Type'); ?></th>
  <th><?php putGS('Delete'); ?></th>
</tr>
</thead>
<tbody>
<?php
$authors = Author::GetAuthors();
$i = 0;
foreach($authors as $author) {
?>
<tr onclick="getRow(<?php echo $author->getId()?>)"
  onmouseover="setPointer(this, 0, 'over');" onmouseout="setPointer(this, 0, 'out');" style="cursor:pointer">
  <td><?php echo $author->getName(); ?></td>
  <td><?php echo l_getType($author->getTypeWithNames()); ?></td>
  <td align="right" class="last" id="row_0">
    <a href="" onclick="return deleteAuthor(<?php echo $author->getId() ?>);"><img
      src="<?php echo $Campsite["ADMIN_IMAGE_BASE_URL"]; ?>/delete.png" border="0"
      alt="<?php echo getGS('Delete author'); ?>" title="<?php echo getGS('Delete author'); ?>" /></a>
  </td>
</tr>
<?php
  $i++;
}?>
</tbody>
</table>
<script type="text/javascript">
$(function() {
    $('#gridx tr').click(function() {
        $('#gridx tr').removeClass('selected');