2
0

manager_main.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <div align='center'>
  2. <table width="100%" border="0" cellpadding="6" cellspacing="0">
  3. <tr>
  4. <td align='left'><b>XMPP Manager</b><br>
  5. Utilizes the Jingle protocol. Jingle is an extension to the Jabber/XMPP protocol.
  6. </td>
  7. </tr>
  8. </table>
  9. <br />
  10. <table width='100%' border='0' cellpadding='0' cellspacing='0'>
  11. <tr>
  12. <th>Profile</th>
  13. <th>Context</th>
  14. <th>State</th>
  15. <th>Enabled</th>
  16. <th>Description</th>
  17. <td align='right' width='42'>
  18. <?php if (permission_exists('xmpp_add')) { ?>
  19. <a href='v_profile_edit.php' alt='add'><?php echo $v_link_label_add; ?></a>
  20. <?php } ?>
  21. </td>
  22. </tr>
  23. <?php
  24. foreach($profiles_array as $profile){
  25. ?>
  26. <tr>
  27. <td><?php echo $profile['profile_name']; ?></td>
  28. <td><?php echo $profile['context']; ?></td>
  29. <td><?php echo $profile['status']; ?></td>
  30. <td><?php echo $profile['enabled']; ?></td>
  31. <td><?php echo $profile['description']; ?></td>
  32. <td align='right' width='42'>
  33. <?php if (permission_exists('xmpp_edit')) { ?>
  34. <a href='v_profile_edit.php?id=<?php echo $profile['xmpp_profile_uuid']; ?>' alt='edit'><?php echo $v_link_label_edit; ?></a>
  35. <?php } ?>
  36. <?php if (permission_exists('xmpp_delete')) { ?>
  37. <a href='v_profile_delete.php?id=<?php echo $profile['xmpp_profile_uuid']; ?>' onclick="return confirm('Do you really want to delete this?')"
  38. alt='delete'><?php echo $v_link_label_delete; ?></a>
  39. <?php } ?>
  40. </td>
  41. </tr>
  42. <?php
  43. }
  44. ?>
  45. <tr>
  46. <td colspan='6' align='right' width='42'>
  47. <?php if (permission_exists('xmpp_add')) { ?>
  48. <a href='v_profile_edit.php' alt='add'><?php echo $v_link_label_add; ?></a>
  49. <?php } ?>
  50. </td>
  51. </tr>
  52. </table>
  53. </div>