public function iframeApplyAction()
 {
     if (empty($this->loginUserInfo)) {
         $this->renderError('请登录!');
     }
     $contestId = (int) Request::getGET('contest-id');
     $contestInfo = OjContestInterface::getById(array('id' => $contestId));
     if (empty($contestInfo)) {
         $this->renderError('竞赛不存在!');
     }
     if ($contestInfo['type'] != ContestVars::TYPE_APPLY) {
         $this->renderError('该竞赛不需要报名!');
     }
     // 当前报名信息
     $applyInfo = OjContestApplyInterface::getDetail(array('contest_id' => $contestId, 'user_id' => $this->loginUserInfo['id']));
     // 最近一次报名信息
     $preApplyInfo = $applyInfo;
     if (empty($applyInfo)) {
         $preApplyInfo = OjContestApplyInterface::getLastInfo(array('user_id' => $this->loginUserInfo['id']));
     }
     $this->renderIframe(array('contestInfo' => $contestInfo, 'preApplyInfo' => $preApplyInfo, 'applyInfo' => $applyInfo), 'contest/iframe/my_apply.php');
 }