- Timestamp:
- 2006/08/30 21:39:28 (20 years ago)
- File:
-
- 1 edited
-
temp/trunk/html/admin/design/template.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
temp/trunk/html/admin/design/template.php
r3253 r3259 26 26 $objView = new SC_AdminView(); 27 27 $objSess = new SC_Session(); 28 $arrTemplate = array();29 28 30 29 // ǧ¾Ú²ÄÈݤÎȽÄê 31 30 $objSess = new SC_Session(); 32 31 sfIsSuccess($objSess); 33 34 // ¥Æ¥ó¥×¥ì¡¼¥È¥Ç¡¼¥¿¤ò¼èÆÀ¤¹¤ë35 $objQuery = new SC_Query();36 $sql = "SELECT template_code,template_name,file_path FROM dtb_template ORDER BY create_date DESC";37 $arrTemplate = $objQuery->getall($sql);38 32 39 33 // GET¤ÎÃͤò¼õ¤±¼è¤ë … … 96 90 function lfgetTemplate(){ 97 91 global $objPage; 98 global $arrTemplate;99 92 $filepath = "/test/kakinaka/"; 100 93 … … 106 99 // DB¤«¤é¸½ºßÁªÂò¤µ¤ì¤Æ¤¤¤ë¥Ç¡¼¥¿¼èÆÀ 107 100 $arrDefcheck = lfgetTemplaeBaseData(); 101 102 // ¥Æ¥ó¥×¥ì¡¼¥È¥Ç¡¼¥¿¤ò¼èÆÀ¤¹¤ë 103 $objQuery = new SC_Query(); 104 $sql = "SELECT template_code,template_name,file_path FROM dtb_template ORDER BY create_date DESC"; 105 $arrTemplate = $objQuery->getall($sql); 108 106 109 107 switch($objPage->tpl_subno_template) { … … 223 221 function lfChangeTemplate(){ 224 222 global $objPage; 225 global $arrTemplate;226 223 $tpl_path = "test/kakinaka/"; 227 224 … … 230 227 231 228 $chk_tpl = $_POST['check_template']; 229 230 // ¥Æ¥ó¥×¥ì¡¼¥È¥Ç¡¼¥¿¤ò¼èÆÀ¤¹¤ë 231 $objQuery = new SC_Query(); 232 $sql = "SELECT template_code,template_name,file_path FROM dtb_template WHERE template_code = ?"; 233 $arrTemplate = $objQuery->getall($sql, array($chk_tpl)); 232 234 233 235 switch($objPage->tpl_subno_template) { … … 260 262 } 261 263 262 sfprintr($ arrTemplate);264 sfprintr($chk_tpl); 263 265 264 266 /*
Note: See TracChangeset
for help on using the changeset viewer.
