private function modifyNfsSubTaskLogPostImp($nfsSubTaskLog, $params) { /*{{{*/ if (isset($params['healthDiary']) && $params['healthDiary']) { $nfsSubTask = $nfsSubTaskLog->nfsSubTask; $typeDesc = NfsSubTask::getTypeDefines(); $logTypeDesc = NfsSubTaskLog::getTypeDefines(); $str = ''; $str .= '子任务名称:' . $typeDesc[$nfsSubTask->type] . "\n"; $str .= '子任务描述:' . $nfsSubTask->content . "\n"; $str .= '子任务执行内容:' . $logTypeDesc[$params['type']] . "\n"; $str .= '子任务log备注:' . $params['content'] . "\n"; $str .= '子任务log执行时间:' . $params['theTime'] . "\n"; HealthDiaryClient::getInstance()->updateDiary($nfsSubTaskLog->healthDiary->id, $str); } NfsSubTaskClient::getInstance()->modifyNfsSubTaskLog($nfsSubTaskLog->id, $params); }
"> <input type="hidden" name="userName" value="<?php echo $userName; ?> "> <input type="hidden" name="vars[type]" value="<?php echo $type; ?> "> <table> <tr> <th>子任务类型:</th> <td> <?php // echo HtmlControl::getRadioCtrImp(NfsSubTask::getTypeDefines(), 'vars[type]', '', ' '); $nfsSubTaskTypes = NfsSubTask::getTypeDefines(); echo $nfsSubTaskTypes[$type]; ?> </td> </tr> <?php $logTypes = NfsSubTaskLog::getTypeDefines(); $pinYinArr = NfsSubTaskLog::getTypePinYinDefines(); $arr = NfsSubTask::getAddNfsSubTaskLogTypesByType($type); foreach ($arr as $a) { ?> <tr> <th> <input type="hidden" value="<?php