묻고답하기

채용 모듈을 튜닝하고 있는데요,

 

 applicant_list.html 스킨 파일은 아래에서

 <a href="{getUrl('act','disPaperOpinion','comment_srl',$applicant->comment_srl)}" class="btn_apply"><span>자세히</span></a> </span>로 수정하였습니다. 회원별로만 지원서류를 볼 수 있는 것에서 벗어나서 한 회원이 여러번 지원할 수 있도록 하려고 하는 의도인데요,

    <!--@foreach($applicant_list as $key => $applicant)-->
		    <tr class="bg{$i} applicationRow">
		        <td class="checkbox" cond="$logged_info->is_admin == 'Y'"><input class="cartCheckBox" type="checkbox" name="cart" value="{$applicant->comment_srl}"/></td>
		        <td class="author">{$applicant->applicant_name}</td>
		        <td><a href="mailto:{$applicant->email_address}" class="email_link">{$applicant->email_address}</td>
				 <td>{$applicant->total}</td>
		        <td>{zdate($applicant->last_update, 'Y-m-d', false)}</td>
				<td>{$applicant->result} </td>
		        <td style="text-align:right">
                    <span class="btn">
                     <!-- <a href="{getUrl('act','disPaperApply','document_srl',$oDocument->document_srl)}" class="btn_apply"><span>자세히</span></a> </span>   -->
                     <a href="{getUrl('act','disPaperOpinion','comment_srl',$applicant->comment_srl)}" class="btn_apply"><span>자세히</span></a> </span>
                     <!-- 			$url = sprintf("%s#comment_%s",getUrl('','document_srl',$oComment->get('document_srl')),$oComment->get('comment_srl')); -->
		            <span class="deleteComment btn"><a href="" onclick="showDeleteApplicant('{$applicant->comment_srl}','delete_applicant', false); return false;">{$lang->cmd_delete}</a></span>
                </td>
		    </tr>
		    {@$i = ($i+1)%2 ? 1:2;}
		    !--@end--

 

 

recruit.view.php에는 다음과 같은 함수를 추가햇습니다.

 

function disPaperOpinion()
        {
            //get job infomation
            $oPaperModel = &getModel('paper');
            $comment_srl = Context::get('comment_srl');
            if(!$comment_srl || !$this->grantInfo->write_comment) {
                return $this->dispMessage('msg_not_permitted');
            }
            // $oCommentModel = &getModel('comment');
            // $oComment = $oCommentModel->getComment($comment_srl);
            // Context::set('oComment', $oComment);

			$logged_info = Context::get('logged_info');
			if($logged_info){
				$application_info =  $oPaperModel->getApplicationBySrl($comment_srl);
				Context::set('application_info', $application_info);
			}

			$oFileModel = &getModel('file');
			$file_config = $oFileModel->getFileModuleConfig($this->module_info->module_srl);
			if($file_config) Context::set('file_config', $file_config);

            Context::addJsFilter($this->module_path.'tpl/filter', 'insert_comment.xml');

            $this->setTemplateFile('application_form');
        }

 

 

comment_srl 값을 받아서, getApplicatrionBySrl을 실행시키려고 하는데요,

 

어디에서 잘못된건지 모르겠습니다.

 

 

참고로 recruit.model.php는 다음과 같습니다.

 

        /**
         * get application info by srl 
         */
        function getApplicationBySrl($comment_srl)
        {
			if(!$comment_srl)  return new Object(-1, "msg_invalid_request");

			$args->comment_srl = $comment_srl;
            $output = executeQuery("paper.getApplicationBySrl", $comment_srl);

            // return when no result or error occurance
            if(!$output->toBool()||!count($output->data)) return $output;

			$comment = $output->data;
			unset($_oComment);
			$_oComment = new CommentItem(0);
            $_oComment->setAttribute($comment);
			$file_list = $_oComment->getUploadedFiles();
			$applicant_cv = $file_list[0];
			$_oComment->cv = $applicant_cv;

            // return $_oComment;
			return $output;
        }

 

 

너무 머리가 아프네요.

 

고수님들 도와주시면 감사하겠습니다. ㅜㅜ

글쓴이 제목 최종 글
XE 공지 글 쓰기,삭제 운영방식 변경 공지 [16] 2019.03.05 by 남기남
4our URL 설정방법 [1] 2014.12.17 by 4our
남남이 복권모듈 스킨을 바꾸면 에러가 납니다  
Ruinavan 게시판 글 작성시 메일 알림 서비스 문제 [2] 2014.12.17 by Ruinavan
보소보소 검색결과 글자 포인트 키우기 (파이어폭스) [2] file 2014.12.17 by 보소보소
댑펑 심각... 웹 용량 부족으로 인해 관리자모드에 접속 불가 [2] 2014.12.17 by 댑펑
☆후니 도와주세요~ 회원가입시 SQL syntax 에러가 나옴니다.  
콩이랑이 xe설치오류 [3] file 2014.12.17 by 키스투엑스이
꼬꼬마까망 스케치북 자동 줄 바뀜 기능(문단 자동 엔터)  
XESTUDIO 회원 프로필 사진 출력 [10] 2014.12.17 by Ikoo
eple123 XE 위키의 데이터는 DB 어느 테이블에 저장되어 있는지요?  
디기리 이미지파일 업로드시 [10] 2014.12.17 by 디기리
zartin 레이아웃을 설치했는데..... file  
GREATGUY 흰색 게시판 텍스트 적는 부분있죠? 네모 컨테이너요.....저걸 완전히 삭제해버리고 싶습니다. file  
GREATGUY 게시판 텍스트 작성부분 완전히 삭제하는방법좀 알려주세요.ㅠㅠㅠ file  
아름다운청년1 홈페이지에 사용중 여부 확인  
zeneger [도와주세요] 전일 입력한 내용 자동으로 불러오는 방법  
munya 회원정보 확장변수 포함 엑셀 출력 도와주세요!  
Su3riyn 모듈/스킨 설치시 발생하는 문제 file  
콩까기 모바일레웃아웃에서 '메뉴'화면에서 내용추가하고싶은데 if문을 어떻게 작성해야할까요? file  
GREATGUY 게시판 보시면 위에 편집바에 버튼들 모조리다 삭제하고 싶어요 [1] file 2014.12.17 by KrteamENT