loop.html 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <input type="hidden" name="id" id="id" value="{% if 'info' in data and data['info'] and 'id' in data['info'] and data['info']['id'] > 0 %}{{data['info']['id']}}{% end %}" />
  2. <input type="hidden" name="update_loop" id="update_loop" value="{% if 'info' in data and data['info'] and 'loop' in data['info'] and data['info']['loop'] %}{{data['info']['loop']}}{% end %}" />
  3. <div class="form">
  4. <label><span>执行时间:</span>
  5. <select id="update_looptype" onchange="looptype($(this))" name="update_looptype" class="w138">
  6. {% for v in data['looptype'] %}
  7. <option value="{{v['id']}}" {% if 'info' in data and data['info'] and 'looptype' in data['info'] and data['info']['looptype'] == v['id'] %}selected{% end %}>{{v['name']}}</option>
  8. {% end %}
  9. </select>
  10. <select id="update_hour" name="update_hour" class="w74">
  11. {% for v in data['hour'] %}
  12. <option value="{{v['id']}}" {% if 'info' in data and data['info'] and 'hour' in data['info'] and data['info']['hour'] == v['id'] %}selected{% end %}>{{v['name']}}</option>
  13. {% end %}
  14. </select>
  15. <select id="update_minute" name="update_minute" class="w74">
  16. {% for v in data['minute'] %}
  17. <option value="{{v['id']}}" {% if 'info' in data and data['info'] and 'minute' in data['info'] and data['info']['minute'] == v['id'] %}selected{% end %}>{{v['name']}}</option>
  18. {% end %}
  19. </select>
  20. <ul class="day-cont" style="display:none;">
  21. {% for v in data['week'] %}
  22. <li onclick="set($(this), '{{v['id']}}')" data-id="{{v['id']}}">{{v['name']}}<i class="icons"></i></li>
  23. {% end %}
  24. </ul>
  25. <ul class="day-cont" style="display:none;">
  26. {% for v in data['day'] %}
  27. <li onclick="set($(this), '{{v['id']}}')">{{v['name']}}<i class="icons"></i></li>
  28. {% end %}
  29. </ul>
  30. </label>
  31. <label><span>执行结果:</span>
  32. <select id="update_oper" name="update_oper">
  33. {% for v in data['oper'] %}
  34. <option value="{{v['id']}}" {% if 'info' in data and data['info'] and 'oper' in data['info'] and data['info']['oper'] == v['id'] %}selected{% end %}>{{v['name']}}</option>
  35. {% end %}
  36. </select>
  37. </label>
  38. {%include 'select.html'%}
  39. </div>