Guest User

Untitled

a guest
Aug 18th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.75 KB | None | 0 0
  1. JToolbar frontend submit value on click
  2. <form action="<?php echo JRoute::_('index.php');?>" method="post"
  3. name="termForm" id="adminForm">
  4.  
  5. <table class="stripeMe">
  6. <tbody>
  7.  
  8.  
  9. <thead>
  10.  
  11. <tr>
  12. <th>Begriff</th>
  13. <th>Definition</th>
  14.  
  15.  
  16.  
  17. <?php if ($user->authorize('com_glossary', 'edit', 'glossary', 'all')): ?><th>Published</th> <?php endif; ?>
  18.  
  19. </tr>
  20. </thead>
  21.  
  22. <?php foreach($this->items as $i => $item): ?>
  23.  
  24. <tr>
  25.  
  26. <td>
  27.  
  28. <span class="title"><?php echo $item->tterm; ?></span>
  29.  
  30. <?php if ($user->authorize('com_glossary', 'edit', 'bearbeiten', 'all')):?>
  31.  
  32. <?php echo $this->getEdit(); ?><?php endif; ?>
  33.  
  34. </td>
  35.  
  36. <td><?php echo $item->tdefinition; ?></td>
  37. <?php if ($user->authorize('com_glossary', 'edit', 'bearbeiten', 'all')): ?>
  38. <td><?php echo $this->getPublished(); ?></td> <?php endif; ?>
  39.  
  40.  
  41. </tr>
  42. <?php endforeach; ?>
  43.  
  44. </tbody>
  45. </table>
  46.  
  47. <div>
  48. <input type="hidden" name="task" value="" /> <input type="hidden"
  49. name="id" value="" onclick="submitbutton(<?php echo count( $item->id ); ?>);" /> <input type="hidden"
  50. name="option" value="com_glossary" /> <input type="hidden"
  51. name="controller" value="bearbeiten" />
  52.  
  53.  
  54. <?php echo JHtml::_('form.token'); ?>
  55. </div>
  56. </form>
  57.  
  58. <input type="hidden" name="boxchecked" value="0" />
  59.  
  60. <td><?php echo JHTML::_('grid.id', $i, $item->id ); ?></td>
Add Comment
Please, Sign In to add comment