묻고답하기

위젯을 만들려고하고있습니다...

문제는 xml파일을 출력하고싶은데요..

queries에 쿼리는 다음과 같습니다.

 

<query id="getOneFileInDocument" action="select">
    <tables>
        <table name="files" alias="files"/>
        <table name="modules" alias="modules"/>
        <table name="documents" alias="documents"/>
    </tables>
    <columns>
        <column name="files.upload_target_srl" alias="document_srl"/>
  <column name="documents.module_srl" alias="module_srl" />   <<<<<이부분 추가하였구요
    </columns>
    <conditions>
        <condition operation="equal" column="modules.site_srl" var="site_srl" />
        <condition operation="in" column="modules.module_srl" var="module_srls" filter="numbers" pipe="and" />
        <condition operation="equal" column="files.module_srl" default="modules.module_srl" pipe="and" />
        <condition operation="equal" column="files.direct_download" var="direct_download" pipe="and" />
        <condition operation="equal" column="files.isvalid" var="isvalid" pipe="and" />
        <condition operation="equal" column="documents.document_srl" default="files.upload_target_srl" pipe="and" />
    </conditions>
    <groups>
        <group column="files.upload_target_srl" />
    </groups>
    <navigation>
        <index var="list_order" default="documents.list_order" order="asc" />
        <list_count var="list_count" default="20" />
    </navigation>
</query>


 저렇게 module_srl을 뽑아왔습니다... 따로 module_srl을 뽑아온 이유는 xml파일에 출력되는 document 마다의 module_srl을 같이 출력하고싶어서 입니다.

 

그리고나서 wiget의 php파일에서

 

            $files_output = executeQueryArray("widgets.flash_gallery.getOneFileInDocument", $obj);
   echo $files_output->data;
            $files_count = count($files_output->data);

            $document_srl_list = array();
            $document_list = array();
   $module_list = array();    <<<<<<
   $module_srl_list = array();   <<<<<   여기 추가하였구요


            if($files_count>0) {
                for($i=0;$i<$files_count;$i++)
    {
     $document_srl_list[] = $files_output->data[$i]->document_srl;
     $module_srl_list[] = $files_output->data[$i]->module_srl;    <<<<<여기서 module_srl_list 변수에 module_srl 저장했습니다.
    }

                $tmp_document_list = $oDocumentModel->getDocuments($document_srl_list);
                if(count($tmp_document_list)) {
                    foreach($tmp_document_list as $val) $document_list[] = $val;
                }
            }

            $document_count = count($document_list);
            $total_count = $widget_info->rows_list_count * $widget_info->cols_list_count;
            for($i=$document_count;$i<$total_count;$i++) $document_list[] = new DocumentItem();
            $widget_info->document_list = $document_list;
//    $widget_info->module_srl = $module_srl_list;      <<<<이부분처럼 widget_info->module_srl 변수에 module_srl을 저장하고싶은데 이부분에서 자꾸 오류가 납니다... 그래서 이걸 해결하고자 위의     foreach 부분다음에

forceah($tmp_module_list as $val1) $modlue_list[] = $val1; 추가하고 

$widget_info->document_list = $document_list;  다음줄에

$widget_info->module_list = $module_list; 를 추가햇는데... 역시 오류가 나네요.ㅠㅠ

 

$widget_info->module_list에   각 document에 따른 module_srl정보를 저장하는 방법좀 알려주세요. .....
   $widget_info->widget_path = $this->widget_path;

글쓴이 제목 최종 글
XE 공지 글 쓰기,삭제 운영방식 변경 공지 [16] 2019.03.05 by 남기남
초보자 메인페이지 바깥쪽에 내용 추가하려면..  
닥다리 네이버/다음 카페-> xe 로 컨버팅하는 프로그램 없나요? [1] 2009.08.14 by SMaker
현주영 외부로그인창 만드는거좀 알려주세용~~!^^  
돌쇠 게시물을 몇개까지 올릴 수 있나요? [2] 2009.08.14 by MX
천년여우 제로보드 + dq + 제로보드연동 플래시에 대한 질문입니다.  
으아악. 제로보드XE 공식 홈페이지의 최근게시물 스킨 공개 안되어 있나요??? [2] file 2009.08.14 by 궁금이2
aloy4u 상자위젯안에 내용직접추가위젯 사용하기 [1] 2009.08.14 by 닥다리
윤재근 어이없는 질문일지 모르나... [1] 2009.08.14 by 닥다리
뗑뗑 [질문] XE게시판기본스킨-갤러리 margin & padding 조절 [3] file 2009.08.14 by 뗑뗑
도와주세요 executeQueryArray의 결과를 보고싶습니다. [2] 2009.08.14 by 쥐엉
꼬짱 좀 도와주세요 ㅠ.ㅠ게시판에 spericalists 나 justin.tv 쓰면 등록이 안되요 ㅠ.ㅠ [1] 2009.08.14 by June Oh
vomart 쪽지함 실행 관련  
boy_y 제로보드 로그인이 안되요;; [1] 2009.08.14 by 제르빈
소박한꿈 웹진하고 갤러리 질문입니다.. [6] 2009.08.14 by 소박한꿈
upTiger 관리자 초기페이지 백지 화면으로 나와요.. [2] file 2009.08.14 by upTiger
푸른가슴 페이지 수정 > 상자 위젯 위치  
초보 회원정보 찾기 이메일이 날라가질 않네요 [1] 2009.08.14 by 우리아기
소소창 외부페이지에서 관리자권한 실행 질문 [2] 2009.08.14 by 소소창
수이 DB접속 오류가 발생하였습니다. [2] 2009.08.14 by 수이
쥐엉 고수님들 도와주세요.ㅠㅠㅠㅠ [2] 2009.08.14 by 쥐엉
코코넛스 (왕초보) GD라이브러리와 XML 라이브러리에 관해 질문 드립니다. [2] 2009.08.14 by sol
aflatoxin 게시판 상단이 벌어지는 이유가 뭘까요? file  
VINA답답이 게시판의 이미지 경로가 저절로 게시판ID가 삽입 되어 그림이 깨지는 현상 file  
으아악. xeBanner 사이에 공간이 생기는 어디서 수정해야 하나요?? [5] file 2009.08.14 by 으아악.
겨레사랑 웹브라우저 마다 화면이 조금씩 짤리거나 좁아져요 (ie,구글크롬,넷스케이프) [4] file 2009.08.14 by 겨레사랑
넘버백 1.8M 이미지 링크시 문제가 생기네요. [7] 2009.08.14 by 백성찬
겨레사랑 인기글 전광판 위젯 부탁드려요 file  
바닐라맨 위젯 수정시에 박스에서 MORE버튼 클립아트?가 없어졌어요  
바닐라맨 더보기 이미지 [선택] 버튼을 누르면 [2] 2009.08.14 by 바닐라맨
불맨 [질문]설치할 때 첫 화면이 계속 깜박거립니다. [4] 2009.08.14 by 불맨