<tr> <th>健康参数单位:</th> <td> <input type="text" name="vars[resultFix]" value="<?php echo $ans->unit; ?> " /> </td> </tr> <tr> <th>管理内容:</th> <td> <?php $arr = explode(',', $healthItemStep->checkContent); foreach (HealthItemStep::getWeightTypeCheckContentDefines() as $define) { ?> <input type="checkbox" value="<?php echo $define; ?> " name="vars[checkContent][]" <?php echo in_array($define, $arr) ? "checked=checked" : ""; ?> /><?php echo $define; ?> <?php } ?> <!-- <input type="checkbox" value="肥胖危害" name="vars[checkContent][]" />肥胖危害
"> <input type="hidden" name="auditorRoleId" value="<?php echo $auditorRoleId; ?> "> <table cellpadding="0" cellspacing="0" border="0" class="" style="margin:5px;width:100%;"> <?php $_cnt = $healthItemProject->getMaxStepNo(); if ($_cnt == 0) { ?> <tr> <th>是否合作:</th> <td colspan="3"> <select name="vars[isCooperate]" > <?php $cooperates = HealthItemStep::getCooperateDefines(); foreach ($cooperates as $key => $cooperate) { ?> <option value="<?php echo $key; ?> " ><?php echo $cooperate; ?> </option> <?php } ?> </td> </tr>
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(); }