Changeset 1429
- Timestamp:
- 2006/08/23 21:20:23 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
temp/trunk/html/admin/design/index.php
r1428 r1429 27 27 $page_id = $_POST['page_id']; 28 28 }else{ 29 $page_id = 1;29 $page_id = ""; 30 30 } 31 31 … … 36 36 $sel = ", pos.target_id, pos.bloc_id, pos.bloc_row "; 37 37 $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 "; 39 if ($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 ); 40 45 41 46 // ¥Ö¥í¥Ã¥¯¤ò¼èÆÀ
Note: See TracChangeset
for help on using the changeset viewer.