Changeset 10739 for temp/branches
- Timestamp:
- 2006/12/16 17:56:00 (19 years ago)
- Location:
- temp/branches/ec-cube-beta
- Files:
-
- 2 edited
-
data/Smarty/templates/admin/contents/campaign.tpl (modified) (2 diffs)
-
html/admin/contents/campaign.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
temp/branches/ec-cube-beta/data/Smarty/templates/admin/contents/campaign.tpl
r10716 r10739 22 22 <table width="878" border="0" cellspacing="0" cellpadding="0" summary=" "> 23 23 <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}-->" > 25 26 <tr valign="top"> 26 27 <td background="<!--{$smarty.const.URL_DIR}-->img/contents/navi_bg.gif" height="402"> … … 156 157 <table border="0" cellspacing="0" cellpadding="0" summary=" "> 157 158 <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> 159 160 </tr> 160 161 </table> -
temp/branches/ec-cube-beta/html/admin/contents/campaign.php
r10723 r10739 43 43 // ¥¨¥é¡¼¥Á¥§¥Ã¥¯ 44 44 $objPage->arrErr = lfErrorCheck(); 45 46 if(count($objPage->arrErr) <= 0) { 47 // ÅÐÏ¿ 48 lfRegistCampaign(); 49 } 50 45 51 break; 46 52 default: … … 101 107 */ 102 108 function lfErrorCheck() { 109 103 110 global $objFormParam; 104 111 … … 114 121 } 115 122 123 /* 124 * ´Ø¿ô̾¡§lfRegistCampaign() 125 * ÀâÌÀ¡¡¡§¥¥ã¥ó¥Ú¡¼¥óÅÐÏ¿ 126 */ 127 function 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 } 116 154 ?>
Note: See TracChangeset
for help on using the changeset viewer.
