Changeset 10739 for temp/branches


Ignore:
Timestamp:
2006/12/16 17:56:00 (19 years ago)
Author:
uehara
Message:
 
Location:
temp/branches/ec-cube-beta
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • temp/branches/ec-cube-beta/data/Smarty/templates/admin/contents/campaign.tpl

    r10716 r10739  
    2222<table width="878" border="0" cellspacing="0" cellpadding="0" summary=" "> 
    2323<form name="form1" id="form1" method="post" action="<!--{$smarty.server.PHP_SELF|escape}-->"> 
    24 <input type="hidden" name="mode" value="regist"> 
     24<input type="hidden" name="mode" value=""> 
     25<input type="hidden" name="product_id" value="<!--{$arrForm.product_id}-->" > 
    2526    <tr valign="top"> 
    2627        <td background="<!--{$smarty.const.URL_DIR}-->img/contents/navi_bg.gif" height="402"> 
     
    156157                                        <table border="0" cellspacing="0" cellpadding="0" summary=" "> 
    157158                                            <tr> 
    158                                                 <td><input type="image" onMouseover="chgImgImageSubmit('<!--{$smarty.const.URL_DIR}-->img/contents/btn_regist_on.jpg',this)" onMouseout="chgImgImageSubmit('<!--{$smarty.const.URL_DIR}-->img/contents/btn_regist.jpg',this)" src="<!--{$smarty.const.URL_DIR}-->img/contents/btn_regist.jpg" width="123" height="24" alt="¤³¤ÎÆâÍÆ¤ÇÅÐÏ¿¤¹¤ë" border="0" name="subm" onclick="return func_regist();"></td> 
     159                                                <td><a href="javascript:fnFormModeSubmit('form1', 'regist', '', ''); return false;"><img onMouseover="chgImgImageSubmit('<!--{$smarty.const.URL_DIR}-->img/contents/btn_regist_on.jpg',this)" onMouseout="chgImgImageSubmit('<!--{$smarty.const.URL_DIR}-->img/contents/btn_regist.jpg',this)" src="<!--{$smarty.const.URL_DIR}-->img/contents/btn_regist.jpg" width="123" height="24" alt="¤³¤ÎÆâÍÆ¤ÇÅÐÏ¿¤¹¤ë" border="0"></td> 
    159160                                            </tr> 
    160161                                        </table> 
  • temp/branches/ec-cube-beta/html/admin/contents/campaign.php

    r10723 r10739  
    4343        // ¥¨¥é¡¼¥Á¥§¥Ã¥¯ 
    4444        $objPage->arrErr = lfErrorCheck(); 
     45         
     46        if(count($objPage->arrErr) <= 0) { 
     47            // ÅÐÏ¿ 
     48            lfRegistCampaign(); 
     49        } 
     50         
    4551        break; 
    4652    default: 
     
    101107 */ 
    102108function lfErrorCheck() { 
     109     
    103110    global $objFormParam; 
    104111 
     
    114121} 
    115122 
     123/*  
     124 * ´Ø¿ô̾¡§lfRegistCampaign() 
     125 * ÀâÌÀ¡¡¡§¥­¥ã¥ó¥Ú¡¼¥óÅÐÏ¿ 
     126 */ 
     127function lfRegistCampaign() { 
     128 
     129    global $objFormParam; 
     130    $objSiteInfo = new SC_SiteInfo(); 
     131    $arrInfo = $objSiteInfo->data; 
     132 
     133    $arrList = $objFormParam->getHashArray();    
     134     
     135    // ³«»ÏÆü»þ¡¦½ªÎ»Æü»þÀ°·Á 
     136    $start_date = $arrList['start_year']."-".sprintf("%02d", $arrList['start_month'])."-".sprintf("%02d", $arrList['start_day'])." ".sprintf("%02d", $arrList['start_hour']).":".sprintf("%02d", $arrList['start_minute']).":00"; 
     137    $end_date = $arrList['end_year']."-".sprintf("%02d", $arrList['end_month'])."-".sprintf("%02d", $arrList['end_day'])." ".sprintf("%02d", $arrList['end_hour']).":".sprintf("%02d", $arrList['end_minute']).":00"; 
     138         
     139    $sqlval['campaign_name'] = $arrList['campaign_name']; 
     140    $sqlval['campaign_point_rate'] = $arrInfo['point_rate']; 
     141    $sqlval['start_date'] = $start_date; 
     142    $sqlval['end_date'] = $end_date; 
     143    $sqlval['directory_name'] = $arrList['directory_name']; 
     144    $sqlval['limit_count'] = $arrList['limit_count']; 
     145    $sqlval['orverlapping_flg'] = $arrList['orverlapping_flg']; 
     146    $sqlval['cart_flg'] = $arrList['cart_flg']; 
     147    $sqlval['deliv_free_flg'] = $arrList['deliv_free_flg']; 
     148    $sqlval['create_date'] = "now()"; 
     149    $sqlval['update_date'] = "now()"; 
     150     
     151    // insert 
     152    $objQuery->insert("dtb_campaign", $sqlval); 
     153} 
    116154?> 
Note: See TracChangeset for help on using the changeset viewer.