CI 묻고 답하기

제목 모델에서 팝업닫기
글쓴이 씨아이세상 작성시각 2013/03/09 15:31:12
댓글 : 1 추천 : 0 스크랩 : 0 조회수 : 15836   RSS

view에서 팝업을 호출한후
         function open()
         {
             window.open'../as/inpop','','toolbar=no,location=no,status=no,menubar=no,scrollbars=0,resizable=no,width=600,height=400')
         }
 
모듈에서
 
    function inpop()
     {
         $this->load->view('inpop');
     }
 이렇게 팝업을 띄었습니다..
 팝업view에서 날짜, 내용을 입력한후
<!--<form action="../as/insert" id="form" method="post" name="form" enctype="multipart/form-data">
            <div class="box">
                <table width="510" cellspacing="0" cellpadding="0" border="0" class="jasmain_table">
                    <colgroup><col width="100"><col width="300"></colgroup>
                    <tbody>
                        <tr>
                            <td class="text1"> 날짜</td><td> <input type="text" name="suridate" size="50"/></td>
                        </tr>
                        <tr>
                            <td class="text1"> 내용</td><td> <input type="text" name="suricomment" size="50"/></td>
                        </tr>

                    </tbody>
                </table>
            <div class="icon"><input type="image" src="../../images/bt_input.gif" width="54" height="23" alt="입력"/></div>
            </div>
            </form>
            -->
입력누르면
 다시 모듈로가서 모델에 인서트한후 자동으로 띄어졌던
     function inpop() 페이즈를 닫을수있을가요?
    
 
    function insert()
     {
         $data="";
    ~~~~~
             $data['result'] = $this->model->resirmfom($atm_data);
 
 

        }
     }
 

 다음글 다중디비오류 (4)
 이전글 여러 프로그램을 어떻게 관리하는지요..? (3)

댓글

변종원(웅파) / 2013/03/09 20:35:39 / 추천 0
컨트롤러 inpop함수에서 모델 호출후 결과에 따라 닫아주시면 됩니다. 자기 창이기 때문에 self.close()로 닫으시면 됩니다.