コード例 #1
0
 public function modifyPost($request, $response)
 {
     /*{{{*/
     //检查角色
     $this->myProjectOperator->checkAuthOrQuit('update');
     $event = DAL::get()->find('ProjectBleedingEvent', $request->projectBleedingEventId);
     $params = $request->vars;
     $params = ProjectBleedingEvent::convertArrayValue2Str($params);
     $eventId = ProjectBleedingEventClient::getInstance()->modify($event->id, $params);
     $preMsg = $event->id . " 修改成功";
     $response->setRedirect("/projectbleedingeventmgr/modify?projectBleedingEventId=" . $event->id . "&preMsg=" . $preMsg);
 }
コード例 #2
0
ファイル: modify.php プロジェクト: sdgdsffdsfff/hdf-client
<tr>
    <th>结论</th>
    <td>
<?php 
$arr = ProjectBleedingEvent::getConClusionDefines();
echo HtmlControl::getRadioCtrImp($arr, "vars[conclusion]", $event->conclusion);
?>
    </td>
</tr>

<tr>
 <th>BARC出血类型</th>
    <td>
<?php 
echo HtmlControl::getRadioCtrImp(ProjectBleedingEvent::getBarcTypeDefines(), "vars[barcType]", $event->barcType);
?>
    </td>
</tr>

    <tr>
        <td></td><td><input class="submitButton" value="提交" type="button" onclick="checkForm()"  /></td>
    </tr>
</table>


    </form>
</div>

</div>