edit_cron.html 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. <div class="l-center edit">
  2. <div class="l-sort clearfix">
  3. <div class="l-sort-toolbar clearfix float-left">
  4. <span class="title edit"><b><?=__('Editing Cron Job')?></b></span>
  5. <?php
  6. if (!empty($_SESSION['error_msg'])) {
  7. echo "<span class=\"vst-error\"> → ".htmlentities($_SESSION['error_msg'])."</span>";
  8. } else {
  9. if (!empty($_SESSION['ok_msg'])) {
  10. echo "<span class=\"vst-ok\"> → ".$_SESSION['ok_msg']."</span>";
  11. }
  12. }
  13. ?>
  14. </div>
  15. </div>
  16. <? display_error_block() ?>
  17. </div>
  18. <div class="l-separator"></div>
  19. <!-- /.l-separator -->
  20. <div class="l-center">
  21. <?php
  22. $back = $_SESSION['back'];
  23. if (empty($back)) {
  24. $back = "location.href='/list/cron/'";
  25. } else {
  26. $back = "location.href='".$back."'";
  27. }
  28. ?>
  29. <form id="vstobjects" name="v_edit_cron" method="post" class="<?=$v_status?>">
  30. <input type="hidden" name="token" value="<?=$_SESSION['token']?>" />
  31. <input type="hidden" name="save" value="save" />
  32. <table class='data'>
  33. <tr class="data-add">
  34. <td class="data-dotted">
  35. <table class="data-col1">
  36. <tr>
  37. <td>
  38. <a class="data-date"><?=translate_date($v_date)?></a><br>
  39. <a class="data-date"><?=$v_time?></a>
  40. </td>
  41. </tr>
  42. <tr><td class="data-<?php echo $v_status ?>"><b><?=__($v_status)?></b></td></tr>
  43. </table>
  44. </td>
  45. <td class="data-dotted">
  46. <table class="data-col2" width="600px">
  47. <tr>
  48. <td class="vst-text step-top">
  49. <?php print __('Minute');?>
  50. </td>
  51. </tr>
  52. <tr>
  53. <td>
  54. <input type="text" size="20" class="vst-input" name="v_min" <?php if (isset($v_min)) echo "value=".htmlentities($v_min); ?>>
  55. </td>
  56. </tr>
  57. <tr>
  58. <td class="vst-text input-label">
  59. <?php print __('Hour');?>
  60. </td>
  61. </tr>
  62. <tr>
  63. <td>
  64. <input type="text" size="20" class="vst-input" name="v_hour" <?php if (isset($v_hour)) echo "value=".htmlentities($v_hour); ?>>
  65. </td>
  66. </tr>
  67. <tr>
  68. <td class="vst-text input-label">
  69. <?php print __('Day');?>
  70. </td>
  71. </tr>
  72. <tr>
  73. <td>
  74. <input type="text" size="20" class="vst-input" name="v_day" <?php if (isset($v_day)) echo "value=".htmlentities($v_day); ?>>
  75. </td>
  76. </tr>
  77. <tr>
  78. <td class="vst-text input-label">
  79. <?php print __('Month');?>
  80. </td>
  81. </tr>
  82. <tr>
  83. <td>
  84. <input type="text" size="20" class="vst-input" name="v_month" <?php if (isset($v_month)) echo "value=".htmlentities($v_month); ?>>
  85. </td>
  86. </tr>
  87. <tr>
  88. <td class="vst-text input-label">
  89. <?php print __('Day of week');?>
  90. </td>
  91. </tr>
  92. <tr>
  93. <td>
  94. <input type="text" size="20" class="vst-input" name="v_wday" <?php if (isset($v_wday)) echo "value=".htmlentities($v_wday); ?>>
  95. </td>
  96. </tr>
  97. <tr>
  98. <td class="vst-text input-label">
  99. <?php print __('Command');?>
  100. </td>
  101. </tr>
  102. <tr>
  103. <td>
  104. <input type="text" size="20" class="vst-input long" name="v_cmd" <?php if (isset($v_cmd)) echo "value='".htmlentities($v_cmd)."'"; ?>>
  105. </td>
  106. </tr>
  107. </table>
  108. <table class="data-col2">
  109. <tr>
  110. <td class="step-top" width="116px">
  111. <input type="submit" class="button" name="save" value="<?php print __('Save');?>">
  112. </td>
  113. <td class="step-top">
  114. <input type="button" class="button cancel" value="<?php print __('Back');?>" onclick="<?php echo $back ?>">
  115. </td>
  116. </tr>
  117. </table>
  118. </td>
  119. </tr>
  120. </table>
  121. </form>
  122. </div>