作者 王晓刚
1 个管道 的构建 通过 耗费 3 秒

后台问卷调查

@@ -60,29 +60,40 @@ @@ -60,29 +60,40 @@
60 <tr> 60 <tr>
61 <th width="100">家庭结构</th> 61 <th width="100">家庭结构</th>
62 <td> 62 <td>
63 - <input class="form-control" type="text" name="family_num"  
64 - id="family_num" value="{$data.family_num}" placeholder="请输入家庭结构"/> 63 + <select class="form-control" name="family_num">
  64 + <option value='1-2' <eq name="$data.family_num" value="1-2">selected</eq>>1-2</option>
  65 + <option value='3-4' <eq name="$data.family_num" value="3-4">selected</eq>>3-4</option>
  66 + <option value='5个以上' <eq name="$data.family_num" value="5个以上">selected</eq>>5个以上</option>
  67 + </select>
65 </td> 68 </td>
66 </tr> 69 </tr>
67 <tr> 70 <tr>
68 <th width="100">职业</th> 71 <th width="100">职业</th>
69 <td> 72 <td>
70 - <input class="form-control" type="text" name="occupation"  
71 - id="occupation" value="{$data.occupation}" placeholder="请输入职业"/> 73 + <select class="form-control" name="occupation">
  74 + <option value='职员' <eq name="$data.occupation" value="职员">selected</eq>>职员</option>
  75 + <option value='学生' <eq name="$data.occupation" value="学生">selected</eq>>学生</option>
  76 + <option value='自由职业' <eq name="$data.occupation" value="自由职业">selected</eq>>自由职业</option>
  77 + <option value='企业高管' <eq name="$data.occupation" value="企业高管">selected</eq>>企业高管</option>
  78 + <option value='其它' <eq name="$data.occupation" value="其它">selected</eq>>其它</option>
  79 + </select>
72 </td> 80 </td>
73 </tr> 81 </tr>
74 <tr> 82 <tr>
75 <th width="100">有无吸烟酗酒史</th> 83 <th width="100">有无吸烟酗酒史</th>
76 <td> 84 <td>
77 - <input class="form-control" type="text" name="smoke_drink"  
78 - id="smoke_drink" value="{$data.smoke_drink}" placeholder="请输入有误吸烟酗酒史"/> 85 + <label><input type="radio" name="smoke_drink" value="有" <eq name="$data.smoke_drink" value="有">checked</eq> />有</label>
  86 + <label><input type="radio" name="smoke_drink" value="无" <eq name="$data.smoke_drink" value="无">checked</eq> />无</label>
79 </td> 87 </td>
80 </tr> 88 </tr>
81 <tr> 89 <tr>
82 <th width="100">出行方式</th> 90 <th width="100">出行方式</th>
83 <td> 91 <td>
84 - <input class="form-control" type="text" name="going"  
85 - id="going" value="{$data.going}" placeholder="请输入出行方式"/> 92 + <select class="form-control" name="going">
  93 + <option value='公共交通' <eq name="$data.going" value="公共交通">selected</eq>>公共交通</option>
  94 + <option value='自驾' <eq name="$data.going" value="自驾">selected</eq>>自驾</option>
  95 + <option value='公共交通+自驾' <eq name="$data.going" value="公共交通+自驾">selected</eq>>公共交通+自驾</option>
  96 + </select>
86 </td> 97 </td>
87 </tr> 98 </tr>
88 <tr> 99 <tr>
@@ -90,6 +101,8 @@ @@ -90,6 +101,8 @@
90 <td> 101 <td>
91 <input class="form-control" type="text" name="social" 102 <input class="form-control" type="text" name="social"
92 id="social" value="{$data.social}" placeholder="请输入有无社保"/> 103 id="social" value="{$data.social}" placeholder="请输入有无社保"/>
  104 + <label><input type="radio" name="social" value="有" <eq name="$data.social" value="有">checked</eq> />有</label>
  105 + <label><input type="radio" name="social" value="无" <eq name="$data.social" value="无">checked</eq> />无</label>
93 </td> 106 </td>
94 </tr> 107 </tr>
95 <tr> 108 <tr>
@@ -97,34 +110,51 @@ @@ -97,34 +110,51 @@
97 <td> 110 <td>
98 <input class="form-control" type="text" name="year_income" 111 <input class="form-control" type="text" name="year_income"
99 id="year_income" value="{$data.year_income}" placeholder="请输入家庭年收入"/> 112 id="year_income" value="{$data.year_income}" placeholder="请输入家庭年收入"/>
  113 + <select class="form-control" name="year_income">
  114 + <option value='5万以下' <eq name="$data.year_income" value="5万以下">selected</eq>>5万以下</option>
  115 + <option value='5-15万' <eq name="$data.year_income" value="5-15万">selected</eq>>5-15万</option>
  116 + <option value='15-25万' <eq name="$data.year_income" value="15-25万">selected</eq>>15-25万</option>
  117 + <option value='25-35万' <eq name="$data.year_income" value="25-35万">selected</eq>>25-35万</option>
  118 + <option value='35万以上' <eq name="$data.year_income" value="35万以上">selected</eq>>35万以上</option>
  119 + </select>
100 </td> 120 </td>
101 </tr> 121 </tr>
102 <tr> 122 <tr>
103 <th width="100">个人年收入</th> 123 <th width="100">个人年收入</th>
104 <td> 124 <td>
105 - <input class="form-control" type="text" name="personage_year_income"  
106 - id="personage_year_income" value="{$data.personage_year_income}" placeholder="请输入个人年收入"/> 125 + <select class="form-control" name="personage_year_income">
  126 + <option value='50000' <eq name="$data.personage_year_income" value="50000">selected</eq>>5万以下</option>
  127 + <option value='100000' <eq name="$data.personage_year_income" value="100000">selected</eq>>5-15万</option>
  128 + <option value='200000' <eq name="$data.personage_year_income" value="200000">selected</eq>>15-25万</option>
  129 + <option value='250000' <eq name="$data.personage_year_income" value="250000">selected</eq>>25-35万</option>
  130 + <option value='350000' <eq name="$data.personage_year_income" value="350000">selected</eq>>35万以上</option>
  131 + </select>
107 </td> 132 </td>
108 </tr> 133 </tr>
109 <tr> 134 <tr>
110 <th width="100">有无负债</th> 135 <th width="100">有无负债</th>
111 <td> 136 <td>
112 - <input class="form-control" type="text" name="liabilities"  
113 - id="liabilities" value="{$data.liabilities}" placeholder="请输入有无负债"/> 137 + <label><input type="radio" name="liabilities" value="有" <eq name="$data.liabilities" value="有">checked</eq> />有</label>
  138 + <label><input type="radio" name="liabilities" value="无" <eq name="$data.liabilities" value="无">checked</eq> />无</label>
114 </td> 139 </td>
115 </tr> 140 </tr>
116 <tr> 141 <tr>
117 <th width="100">大约未还负债</th> 142 <th width="100">大约未还负债</th>
118 <td> 143 <td>
119 - <input class="form-control" type="text" name="not_return"  
120 - id="not_return" value="{$data.not_return}" placeholder="请输入大约未还负债"/> 144 + <select class="form-control" name="not_return">
  145 + <option value='0' <eq name="$data.not_return" value="0">selected</eq>>无</option>
  146 + <option value='100000' <eq name="$data.not_return" value="100000">selected</eq>>10-30万</option>
  147 + <option value='150000' <eq name="$data.not_return" value="150000">selected</eq>>30-50万</option>
  148 + <option value='750000' <eq name="$data.not_return" value="750000">selected</eq>>50-100万</option>
  149 + <option value='1000000' <eq name="$data.not_return" value="1000000">selected</eq>>100万以上</option>
  150 + </select>
121 </td> 151 </td>
122 </tr> 152 </tr>
123 <tr> 153 <tr>
124 <th width="100">有无家族病史</th> 154 <th width="100">有无家族病史</th>
125 <td> 155 <td>
126 - <input class="form-control" type="text" name="family_disease"  
127 - id="family_disease" value="{$data.family_disease}" placeholder="请输入有无家族病史"/> 156 + <label><input type="radio" name="family_disease" value="有" <eq name="$data.family_disease" value="有">checked</eq> />有</label>
  157 + <label><input type="radio" name="family_disease" value="无" <eq name="$data.family_disease" value="无">checked</eq> />无</label>
128 </td> 158 </td>
129 </tr> 159 </tr>
130 <tr> 160 <tr>
@@ -132,6 +162,10 @@ @@ -132,6 +162,10 @@
132 <td> 162 <td>
133 <input class="form-control" type="text" name="safeguard" 163 <input class="form-control" type="text" name="safeguard"
134 id="safeguard" value="{$data.safeguard}" placeholder="请输入保障"/> 164 id="safeguard" value="{$data.safeguard}" placeholder="请输入保障"/>
  165 + <php>$safeguard=explode(',',$data.safeguard);</php>
  166 + <label><input type="checkbox" name="safeguard[]" value="旅游" <foreach name="$safeguard" item="s"><eq name="$s" value="旅游">checked</eq></foreach> />旅游</label>
  167 + <label><input type="checkbox" name="safeguard[]" value="意外" <foreach name="$safeguard" item="s"><eq name="$s" value="意外">checked</eq></foreach> />意外</label>
  168 + <label><input type="checkbox" name="safeguard[]" value="健康" <foreach name="$safeguard" item="s"><eq name="$s" value="健康">checked</eq></foreach> />健康</label>
135 </td> 169 </td>
136 </tr> 170 </tr>
137 <tr> 171 <tr>