manage-label.php 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
  2. <h1 class="page-header">Label verwalten</h1>
  3. <div class="row">
  4. <form action="" method="POST">
  5. <input type="hidden" name="labelID" value="<?php echo $this->_['label']->getID(); ?>">
  6. <div class="form-group">
  7. <label for="labelName">Name</label>
  8. <input type="text" class="form-control" id="labelName" name="labelName" value="<?php echo $this->_['label']->getName(); ?>">
  9. </div>
  10. <div class="form-group">
  11. <label>Zugewiesene Mailaccounts</label>
  12. <table class="table table-striped">
  13. <thead>
  14. <tr>
  15. <th>#</th>
  16. <th>Account</th>
  17. <th>Folder</th>
  18. <th></th>
  19. <th></th>
  20. </tr>
  21. <?php
  22. if($this->_['mailboxFolders']) {
  23. foreach($this->_['mailboxFolders'] as $mailboxFolder) {
  24. echo '<tr>';
  25. echo '<td>' . $mailboxFolder->getID() . '</td>';
  26. echo '<td>' . Mailbox::getMailboxNameFromMailaccountID($mailboxFolder->getMailboxID()) . '</td>';
  27. echo '<td>' . $mailboxFolder->getFolderName() . '</td>';
  28. echo '<td><a class="manage-mailboxfolder fancybox.ajax" data-uid="' . $this->_['user']->getUserID() . '" href="ajax.php?action=manageMailboxFolder&mfID=' . $mailboxFolder->getID() . '&mbID=' . $mailboxFolder->getMailboxID() . '" data-id="' . $mailboxFolder->getID() . '"><i class="fa fa-wrench"></i></a></td>';
  29. echo '<td><a class="remove-mailboxfolder" href="#" data-id="' . $mailboxFolder->getID() . '"><i class="fa fa-minus-circle"></i></a></td>';
  30. echo '</tr>';
  31. }
  32. }
  33. ?>
  34. </thead>
  35. <tr>
  36. <td><a id="add-mailboxfolder" href="#" data-uid="<?php echo $this->_['user']->getUserID(); ?>" data-lid="<?php echo $this->_['label']->getID(); ?>"><i class="fa fa-plus-circle"></i></a></td>
  37. <td></td>
  38. <td></td>
  39. <td></td>
  40. <td></td>
  41. </tr>
  42. </table>
  43. </div>
  44. </form>
  45. </div>
  46. </div>