묻고답하기

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

 

 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 남기남
김낙지 스케치북 모바일 레이아웃 제목 크기 조절 [1] 2014.01.29 by LI-NA
ㅎㅎㅎ xe 데이터 이전을 했는데 댓글 닉네임 [10] 2014.01.29 by DynamicLaser
enzo 다른 사이트에서 글을 복사하여 붙여 넣을 때에 그림을 임배드... [1] 2014.01.29 by DynamicLaser
enzo GNB나 LNB 등의 메뉴에서 사용자 접근권한에 따른 표시 [1] 2014.01.29 by ForHanbi
라피에르 회원가입시 닉네임 길이제한이 전혀 먹히지 않습니다. [3] 2014.01.29 by 푸시아
김낙지 데이터 이전할 경우 닉네임 노출 [2] 2014.01.29 by 김낙지
styer 익명게시판에서 관리자 닉네임 출력하기 도와주세요 [11] 2014.01.29 by 김낙지
라피에르 스케치북 게시판 list 목록에서 닉네임 글자 5글자 이하로만 나오게 하고 싶어요 [4] 2014.01.29 by 몽실아빠
DynamicLaser XE의 코멘트 리스트 테이블(comments_list)의 arrange 컬럼의 구조를 알고싶습니다 [2] 2014.01.29 by DynamicLaser
키스미베이베 모바일 댓글 펼치기 기능 [1] 2014.01.29 by PodongS2
아로미로 게시판 가능한가요? [2] 2014.01.29 by 아로미로
주택바가지 관리자로 플짤태그를 사용하면 잘 나오는데 일반회원이 올리면 안먹어요.. [3] 2014.01.29 by KrteamENT
socialskyo 추천인 표기 팁에서 프로필 이미지 나오게 할수 없을까요? [12] 2014.01.29 by 몽실아빠
Fidelity 데이터 이전하는 방법 [2] 2014.01.29 by KrteamENT
Realhoon 이게뭘까요 여러분..봇? [2] file 2014.01.29 by Realhoon
김낙지 새 글 아이콘을 한 칸 띄워서 출력시키고 싶은데요 [2] file 2014.01.29 by Fidelity
주광색 도메인 연결 후 로그인이 안되는 현상요? [1] 2014.01.29 by 착한악마
설리반 스케치북 사용중인데 익명 댓글 관리자만 볼 수 있게 [3] 2014.01.29 by qwms
딩딩2 스케치북 레이아웃 버전이요!  
딩딩2 모바일레이아웃 설정에 궁금한점이 있어요! [3] file 2014.01.29 by BJ람보
가난한법학도 채용 모듈에서 getApplicationBySrl은 어떻게 사용해야 하는지요? [4] 2014.01.29 by 가난한법학도
스무스스 XE에 문제가 있는지 사이트에 문제가 있는지 [2] 2014.01.29 by 시니시즘
호두와후드사이 쿡레빗 로고와 메뉴 [2] file 2014.01.29 by 시니시즘
모얼더 위젯 캐시 시간 초단위로 줄일 수 있나요? [5] 2014.01.28 by 야옹이님
호두와후드사이 xdom 가로크기조정 [1] 2014.01.28 by ForHanbi
주광색 도메인 연결 후 왜 로그인이 안될까요? [1] 2014.01.28 by ForHanbi
goingtomarsss 게시판 글을 클릭하면 404 에러페이지가 나타납니다 [1] 2014.01.28 by 투씨
루팡쿠팡 서명란 표시기능... 사용하고 싶은데요.. 이거 없애버렸더라구요.. XE 최신버전에서는.. [15] 2014.01.28 by ForHanbi
김 기 상 다른사람이 작성한 게시물도 로그인한 회원이면 아무나 [2] 2014.01.28 by 김 기 상
솔리드 포인트가 마이너스로 내려가게 할수있나요? [2] 2014.01.28 by 솔리드