</td> </tr> <?php } } ?> </table> <span class="fb f16">新增log</span> <table id="nfsSubTask_<?php echo $nfsSubTask->id; ?> " cellpadding="0" cellspacing="0" border="0" class="" style="margin:5px;width:100%;"> <?php $logTypes = $nfsSubTask->getNfsSubTaskLogTypesByType(); $pinYinArr = NfsSubTaskLog::getTypePinYinDefines(); $arr = NfsSubTaskLog::getTypeDefines(); foreach ($logTypes as $logType) { ?> <tr> <th> <input type="checkbox" value="<?php echo $logType; ?> " name="vars[<?php echo $nfsSubTask->id; ?> ][<?php echo $logType; ?> ][<?php echo $pinYinArr[$logType];
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); }
"> <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 echo $a; ?> " name="arrs[<?php echo $pinYinArr[$a]; ?> ]"> <?php echo $logTypes[$a];