"> <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(); }