123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <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 %}" />
- <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 %}" />
- <div class="form">
- <label><span>执行时间:</span>
- <select id="update_looptype" onchange="looptype($(this))" name="update_looptype" class="w138">
- {% for v in data['looptype'] %}
- <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>
- {% end %}
- </select>
- <select id="update_hour" name="update_hour" class="w74">
- {% for v in data['hour'] %}
- <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>
- {% end %}
- </select>
- <select id="update_minute" name="update_minute" class="w74">
- {% for v in data['minute'] %}
- <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>
- {% end %}
- </select>
- <ul class="day-cont" style="display:none;">
- {% for v in data['week'] %}
- <li onclick="set($(this), '{{v['id']}}')" data-id="{{v['id']}}">{{v['name']}}<i class="icons"></i></li>
- {% end %}
- </ul>
- <ul class="day-cont" style="display:none;">
- {% for v in data['day'] %}
- <li onclick="set($(this), '{{v['id']}}')">{{v['name']}}<i class="icons"></i></li>
- {% end %}
- </ul>
- </label>
- <label><span>执行结果:</span>
- <select id="update_oper" name="update_oper">
- {% for v in data['oper'] %}
- <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>
- {% end %}
- </select>
- </label>
- {%include 'select.html'%}
- </div>
|