Changeset 3250 for temp/trunk/html


Ignore:
Timestamp:
2006/08/30 21:37:40 (20 years ago)
Author:
kakinaka
Message:

blank

File:
1 edited

Legend:

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

    r3247 r3250  
    2626$objView = new SC_AdminView(); 
    2727$objSess = new SC_Session(); 
     28$arrTemplate = array(); 
    2829 
    2930// ǧ¾Ú²ÄÈݤÎȽÄê 
    3031$objSess = new SC_Session(); 
    3132sfIsSuccess($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); 
    3238 
    3339// GET¤ÎÃͤò¼õ¤±¼è¤ë 
     
    9096function lfgetTemplate(){ 
    9197    global $objPage; 
     98    global $arrTemplate 
    9299    $filepath = "/test/kakinaka/"; 
    93100     
     
    98105     
    99106    // DB¤«¤é¸½ºßÁªÂò¤µ¤ì¤Æ¤¤¤ë¥Ç¡¼¥¿¼èÆÀ 
    100     $arrDefcheck = lfgetTemplaeData(); 
    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); 
     107    $arrDefcheck = lfgetTemplaeBaseData(); 
    106108     
    107109    switch($objPage->tpl_subno_template) { 
     
    149151 
    150152/************************************************************************************************************** 
    151  * ´Ø¿ô̾   ¡§lfgetTemplaeData 
     153 * ´Ø¿ô̾   ¡§lfgetTemplaeBaseData 
    152154 * ½èÍýÆâÍÆ ¡§DB¤ËÊݸ¤µ¤ì¤Æ¤¤¤ë¥Æ¥ó¥×¥ì¡¼¥È¥Ç¡¼¥¿¤ò¼èÆÀ¤¹¤ë 
    153155 * °ú¿ô     ¡§¤Ê¤· 
    154156 * Ìá¤êÃÍ   ¡§DB¤ËÊݸ¤µ¤ì¤Æ¤¤¤ë¥Æ¥ó¥×¥ì¡¼¥È¥Ç¡¼¥¿(ÇÛÎó) 
    155157 **************************************************************************************************************/ 
    156 function lfgetTemplaeData(){ 
     158function lfgetTemplaeBaseData(){ 
    157159    $objDBConn = new SC_DbConn;     // DBÁàºî¥ª¥Ö¥¸¥§¥¯¥È 
    158160    $sql = "";                      // ¥Ç¡¼¥¿¼èÆÀSQLÀ¸À®ÍÑ 
     
    221223function lfChangeTemplate(){ 
    222224    global $objPage; 
     225    global $arrTemplate; 
    223226    $tpl_path = "test/kakinaka/"; 
    224227     
     
    257260    } 
    258261     
    259     sfprintr($chk_tpl); 
     262    sfprintr($arrTemplate); 
    260263     
    261264/*   
Note: See TracChangeset for help on using the changeset viewer.