Changeset 3259 for temp


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

blank

File:
1 edited

Legend:

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

    r3253 r3259  
    2626$objView = new SC_AdminView(); 
    2727$objSess = new SC_Session(); 
    28 $arrTemplate = array(); 
    2928 
    3029// ǧ¾Ú²ÄÈݤÎȽÄê 
    3130$objSess = new SC_Session(); 
    3231sfIsSuccess($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); 
    3832 
    3933// GET¤ÎÃͤò¼õ¤±¼è¤ë 
     
    9690function lfgetTemplate(){ 
    9791    global $objPage; 
    98     global $arrTemplate; 
    9992    $filepath = "/test/kakinaka/"; 
    10093     
     
    10699    // DB¤«¤é¸½ºßÁªÂò¤µ¤ì¤Æ¤¤¤ë¥Ç¡¼¥¿¼èÆÀ 
    107100    $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); 
    108106     
    109107    switch($objPage->tpl_subno_template) { 
     
    223221function lfChangeTemplate(){ 
    224222    global $objPage; 
    225     global $arrTemplate; 
    226223    $tpl_path = "test/kakinaka/"; 
    227224     
     
    230227     
    231228    $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));     
    232234     
    233235    switch($objPage->tpl_subno_template) { 
     
    260262    } 
    261263     
    262     sfprintr($arrTemplate); 
     264    sfprintr($chk_tpl); 
    263265     
    264266/*   
Note: See TracChangeset for help on using the changeset viewer.