$options = $_answer->getOptions(); if (false == empty($options)) { foreach ($options as $o) { echo $o->content; } } else { echo $_answer->content; } } ?> </td> </tr> <?php } $xinJiMeiPuArr = ProjectQuestionSheetHelper::getXinJiMeiPuArr(); foreach ($xinJiMeiPuArr as $k => $v) { $_answer = $answerSheet->getAnswerByQuestionContent($k . '是否检查'); if (empty($_answer)) { continue; } ?> <tr> <th><?php echo $k; ?> 是否检查</th> <td> <?php if ($_answer instanceof Answer) { $options = $_answer->getOptions();
} }); }); }); function checkForm() {/*{{{*/ $("#form1").submit(); }/*}}}*/ </script> <div> <span class="subTitle">实验室检查--填写</span> <table class="thinleftAndClear mt10"> <?php $arr = ProjectQuestionSheetHelper::getLaboratoryCheckArr(); $k_index = 0; foreach ($arr as $k => $v) { $q = $questionSheet->getQuestionByContent($k . '是否检查'); $opts = $q->getOptions(); $k_index++; ?> <tr> <th align=right width="120"><?php echo $k; ?> 是否检查</th> <td width="120"> <input type='hidden' name='qid[<?php echo $q->id; ?>