Changeset 1429


Ignore:
Timestamp:
2006/08/23 21:20:23 (18 years ago)
Author:
kakinaka
Message:

blank

File:
1 edited

Legend:

Unmodified
Added
Removed
  • temp/trunk/html/admin/design/index.php

    r1428 r1429  
    2727    $page_id = $_POST['page_id']; 
    2828}else{ 
    29     $page_id = 1; 
     29    $page_id = ""; 
    3030} 
    3131 
     
    3636$sel   = ", pos.target_id, pos.bloc_id, pos.bloc_row "; 
    3737$from  = ", dtb_blocposition AS pos"; 
    38 $where = " where lay.page_id = ? AND lay.page_id = pos.page_id AND exists (select bloc_id from dtb_bloc as blc where pos.bloc_id = blc.bloc_id) ORDER BY lay.page_id,pos.target_id, pos.bloc_row, pos.bloc_id "; 
    39 $arrBlocPos = lfgetLayoutData($sel, $from, $where, array($page_id)); 
     38$where = " where "; 
     39if ($page_id === "") { 
     40    $where .= " lay.page_id = ? AND "; 
     41    $arrData = array($page_id); 
     42} 
     43$where .= "lay.page_id = pos.page_id AND exists (select bloc_id from dtb_bloc as blc where pos.bloc_id = blc.bloc_id) ORDER BY lay.page_id,pos.target_id, pos.bloc_row, pos.bloc_id "; 
     44$arrBlocPos = lfgetLayoutData($sel, $from, $where, $arrData ); 
    4045 
    4146// ¥Ö¥í¥Ã¥¯¤ò¼èÆÀ 
Note: See TracChangeset for help on using the changeset viewer.