<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="renderer" content="webkit">
        <meta http-equiv="Cache-Control" content="no-siteapp" />
        <title>体征等信息</title>
        <meta name="description" content="">
        <link rel="shortcut icon" href="../../favicon.ico">
        <link rel="stylesheet" type="text/css" href="../../css/font-awesome.min93e3.css"/>
        <link href="../../css/bootstrap.min.css" rel="stylesheet">
        <link rel="stylesheet" type="text/css" href="../../css/plugins/datapicker/datepicker3.css"/>
        <link rel="stylesheet" type="text/css" href="../../css/plugins/chosen/chosen.css"/>
        <link rel="stylesheet" type="text/css" href="../../css/plugins/toastr/toastr.min.css"/>
        <link rel="stylesheet" type="text/css" href="../../css/style.css"/>
        <link rel="stylesheet" type="text/css" href="../../css/plugins/jqgrid/ui.jqgridffe4.css"/>
        <link rel="stylesheet" type="text/css" href="../../css/followup.css"/>
    </head>
    <body>
        <form id="question_form" class="form-inline" onsubmit="return submitForm()">
            <div class="clearfix form-info">
            </div>
            <div class="q-note q-note-3 hidden">空腹、餐后或随机血糖至少需要填写一项</div>
            <div class="q-note q-note-9 hidden">
                <span class="c-bold">温馨提示1：</span>如需达到高血压健康规范管理要求【症状、血压、心率、生活方式指导（运动频率、摄盐情况）、服药依从性】需要登记，并且一年内至少登记4次随访，每次随访时间间隔不能超过3个月。
                <p class="mt10">
                    <span class="c-bold">温馨提示2：</span>如需达到糖尿病健康规范管理要求【症状、血糖、生活方式指导（运动频率）、服药依从性】需要登记，并且一年内至少登记4次随访，每次随访时间间隔不能超过3个月。
                </p>
            </div>
            <div class="text-center mt40">
                <button type="submit" id="submitBtn" class="btn btn-blue disabled">保存并下一步</a>
            </div>
        </form>
        <!-- 弹出模态框 start -->
        <div class="modal fade" tabindex="-1" role="dialog" id="myModal">
          <div class="modal-dialog" role="document">
            <div class="modal-content">
              <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title">
                    <img src="../../img/shezi_tankuang_icon.png" class="mr10">
                    <span id="modal-title"></span>
                </h4>
              </div>
              <div class="modal-body">
                
              </div>
            </div>
          </div>
        </div>
        <!-- 弹出模态框 end -->
        <script type="text/html" id="item">
            <h1 class="text-center mb30" style="font-size: 20px;">{{pro_id}}、{{title}}</h1>
            <!--type 1-文本输入，2-radio选择，3-checkbox, 4 - textarea-->
            {{each data as it key}}
            {{if it.type == 1}}
            <div class="form-group mr20">
                <label for="{{key}}">
                    {{if it.required == true}}
                    <i class="required"></i>
                    {{/if}}
                    {{it.label}}
                </label>
                {{if it.textType == 'string'}}
                <input type="text" name="{{key}}" id="{{key}}" value="{{it.value}}" {{if it.readonly}}readonly="{{it.readonly}}"{{/if}}class="form-control input-xs" style="width: {{it.width}};"/>
                {{/if}}
                {{if it.textType == 'number'}}
                <input type="number" name="{{key}}" id="{{key}}" value="{{it.value}}" step="{{it.step}}" min="0" class="form-control input-xs" style="width: {{it.width}};"/>
                {{/if}}
                {{if it.textType == 'date'}}
                <div class="input-group date" style="width:200px">
                    <input type="text" name="{{key}}" id="{{key}}" value="{{it.value}}" data-val="date" class="form-control input-xs form_datetime" style="width: {{it.width}};" readonly="readonly" />
                    <div class="input-group-addon">
                        <!--<span class="glyphicon glyphicon-th"></span>-->
                        <i class="fa fa-calendar"></i>
                    </div>
                </div>
                {{/if}}
                {{if it.textType == 'select'}}
                <div class="input-group" style="width: {{it.width}};">
                <select name="{{key}}" id="{{key}}" class="my_select_box">
                    <option value="undefined">请选择</option>
                    {{each it.options as op}}
                    <option value="{{op.key}}" {{if it.value == op.key}}selected{{/if}}>{{op.value}}</option>
                    {{/each}}
                </select>
                </div>
                {{/if}}
                {{if it.unit}}{{it.unit}}{{/if}}
            </div>
            {{/if}}
            {{if it.type == 5}} 
            <!-- 多级输入框组合 -->
            <div class="form-group mr20 multi-input-group">
                <label for="">
                    {{if it.required == true}}
                    <i class="required"></i>
                    {{/if}}
                    {{it.label}}
                </label>
                {{each it.items as op index}}
                {{if index>0}}{{it.separate}}{{/if}}
                {{if op.textType == 'select'}}
                <div class="input-group" style="width: {{op.width}};">
                    <select name="{{op.name}}" class="my_select_box" >
                        <option value="undefined">请选择</option>
                        {{each op.options as oop}}
                        <option value="{{oop.key}}" {{if op.value == oop.key}}selected{{/if}}>{{oop.value}}</option>
                        {{/each}}
                    </select>
                </div>
                {{else if op.textType == "radio"}}
                    {{each op.options as oop id}}
                    <label class="mr10">
                        <input type="radio" class="icon-checkbox" name="{{op.name}}" value="{{id}}" {{if op.value == id}}checked="checked"{{/if}}>
                        {{oop}}
                    </label>
                    {{/each}}
                {{else}}
                <input type="{{op.textType}}" value="{{op.value}}" name="{{op.name}}" {{if op.textType == "number"}}step="{{op.step}}" min="0" {{/if}}maxlength="{{op.maxLength}}" class="form-control input-sm" style="width: {{op.width}};">
                {{/if}}
                {{/each}}
                {{if it.unit}}{{it.unit}}{{/if}}
            </div>
            {{/if}}
            {{if it.type == 2}}
            <div class="form-group fl">
                <label class="">
                    {{if it.required == true}}
                    <i class="required"></i>
                    {{/if}}
                    {{it.label}}{{if it.unit}}({{it.unit}}){{/if}}
                </label>
                <!--<div class="input-group">-->
                    {{each it.items as op id}}
                    <label class="mr10">
                        <input type="radio" class="icon-checkbox" name="{{key}}" value="{{id}}" {{if it.value == id}}checked="checked"{{/if}}>
                        {{op}}
                    </label>
                    {{/each}}
                <!--</div>-->
            </div>
            {{/if}} 
            {{if it.type == 3}}    
            <div class="form-group fl" style="width: 160px; margin-bottom: 10px;" has-hide="{{it.hide && it.hide.type}}">
                <input type="checkbox" class="icon-checkbox" name="{{key}}" {{if it.value}}checked="checked" value="{{it.value}}"{{else}}value="0"{{/if}}>
                <label>{{it.label}}</label>
            </div>
            {{/if}}
            {{if it.type == 4}}
            <div class="form-group fl" style="width: 100%;">
                <label class="col-xs-0 fl">
                    {{if it.required == true}}
                    <i class="required"></i>
                    {{/if}}
                    {{it.label}}
                    {{if it.unit}}({{it.unit}}){{/if}}
                </label>
                <div class="col-xs-10">
                    <textarea name="{{key}}" rows="{{it.row}}" cols="" maxlength="{{it.maxLength}}" style="width: {{it.width}};">{{it.value}}</textarea>
                    <p class="text-right c-f12 c-909090"><span class="other-count">{{it.valueLength||0}}</span>/{{it.maxLength}}</p>
                </div>
            </div>
            {{/if}}
            
            {{/each}}
        </script>
        <script src="../../js/jquery.min.js?v=2.1.4"></script>
        <script src="../../js/bootstrap.min.js?v=3.3.6"></script>
        <script src="../../js/plugins/toastr/toastr.min.js"></script>
        <script src="../../js/plugins/pace/pace.min.js"></script>
        <script src="../../js/plugins/datapicker/bootstrap-datepicker.js" type="text/javascript" charset="utf-8"></script>
        <script src="../../js/plugins/chosen/chosen.jquery.js " type="text/javascript" charset="utf-8"></script>
        <script src="../../js/template.js"></script>
        <script src="../../js/util.js"></script>
        <!--<script src="../../js/content.min.js" type="text/javascript" charset="utf-8"></script>-->
        <script src="../../js/underscore.js" type="text/javascript" charset="utf-8"></script>
        <script src="../../js/plugins/jqgrid/jquery.jqGrid.minffe4.js" type="text/javascript" charset="utf-8"></script>
        <script src="../../js/plugins/jqgrid/i18n/grid.locale-cnffe4.js" type="text/javascript" charset="utf-8"></script>
        <script src="../../js/api-service.js"></script>
        <script src="../../js/followup-api.js" type="text/javascript" charset="utf-8"></script>
        <script src="../../js/buz/followup/template_gxy.js" type="text/javascript" charset="utf-8"></script>
        <script src="../../js/buz/followup/questionaires.js" type="text/javascript" charset="utf-8"></script>
    </body>
</html>
