menu_rrd.html 1.4 KB

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. if (!empty($_SESSION['error_msg'])) {
  3. ?>
  4. <script type="text/javascript">
  5. $(function() {
  6. $( "#dialog:ui-dialog" ).dialog( "destroy" );
  7. $( "#dialog-message" ).dialog({
  8. modal: true,
  9. buttons: {
  10. Ok: function() {
  11. $( this ).dialog( "close" );
  12. }
  13. }
  14. });
  15. });
  16. </script>
  17. <div id="dialog-message" title="Error">
  18. <p><?php echo $_SESSION['error_msg'] ?>.</p>
  19. </div>
  20. <?php
  21. unset($_SESSION['error_msg']);
  22. }
  23. ?>
  24. <table class="sub-menu">
  25. <tr >
  26. <td style="padding: 19px 0 16px 22px">
  27. <a class="add" <?php if ((empty($_GET['period'])) || ($_GET['period'] == 'daily')) echo "style='color: #34536A'" ?> href="?period=daily">Daily</a>
  28. <a class="add" <?php if ($_GET['period'] == 'weekly') echo "style='color: #34536A'" ?> href="?period=weekly">Weekly</a>
  29. <a class="add" <?php if ($_GET['period'] == 'monthly') echo "style='color: #34536A'" ?> href="?period=monthly">Monthly</a>
  30. <a class="add" <?php if ($_GET['period'] == 'yearly') echo "style='color: #34536A'" ?> href="?period=yearly">Yearly</a>
  31. </td>
  32. <td style="text-align: right;" ><input type="text" size="30" style="padding: 3px 80px 3px 0;"> <button> Search </button></td>
  33. </tr>
  34. </table>