public function stepsOfHealthItemProject($request, $response) { $healthItemProject = DAL::get()->find('HealthItemProject', $request->healthItemProjectId); DBC::requireTrue($healthItemProject instanceof HealthItemProject, "不存在该项目"); $response->healthItemProject = $healthItemProject; $response->followupCustomer = $healthItemProject->followupCustomer; $healthItemSteps = DAL::get()->find_all_by_healthitemprojectid('HealthItemStep', $healthItemProject->id); $response->healthItemSteps = $healthItemSteps; $response->types = HealthItemProject::getTypeDefines(); $response->cooperates = HealthItemStep::getCooperateDefines(); $response->preMsg = $preMsg = $request->preMsg; $response->con = $con = $healthItemProject->genScoreStr(); }
</tr> <tr> <th>家族肥胖史:</th> <td> <?php echo HtmlControl::getRadioCtrImp(HealthItemProject::getWeightHistoryDefines(), 'vars[hasWeightHistory]', '', ' '); ?> </td> </tr> <tr> <th>运动相关疾病:</th> <td> <?php echo HtmlControl::getRadioCtrImp(HealthItemProject::getSportRelatedDiseaseDefines(), 'vars[hasRelatedDisease]', '', ' '); ?> </td> </tr> <?php } else { ?> <tr> <th>上次评分:</th> <td> <input type="text" name="vars[preStepScore]" /> <span class="red">*(0-5)</span> </td> </tr> <?php }
</tr> <tr> <th>家族肥胖史:</th> <td> <?php echo HtmlControl::getRadioCtrImp(HealthItemProject::getWeightHistoryDefines(), "vars[healthItemProject][{$healthItemProject->id}][hasWeightHistory]", '', ' '); ?> </td> </tr> <tr> <th>运动相关疾病:</th> <td> <?php echo HtmlControl::getRadioCtrImp(HealthItemProject::getSportRelatedDiseaseDefines(), "vars[healthItemProject][{$healthItemProject->id}][hasRelatedDisease]", '', ' '); ?> </td> </tr> <?php } else { ?> <tr> <th>上次评分:</th> <td> <input type="text" name="vars[healthItemProject][<?php echo $healthItemProject->id; ?> ][preStepScore]" /> <span class="red">*(0-5)</span>