Changeset 16603 for branches/feature-module-combz/data/downloads
- Timestamp:
- 2007/10/29 22:42:34 (15 years ago)
- Location:
- branches/feature-module-combz/data/downloads/module/mdl_combz
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/feature-module-combz/data/downloads/module/mdl_combz/combz_reserve.tpl
r16602 r16603 96 96 </tr> 97 97 <tr class="fs12n"> 98 <td width="" bgcolor="#f3f3f3">}K¼< span class="red"> ¦</span></td>98 <td width="" bgcolor="#f3f3f3">}K¼</td> 99 99 <td width="300" bgcolor="#ffffff"> 100 100 <!--{assign var=key value="subject"}--> … … 104 104 </tr> 105 105 <tr class="fs12n"> 106 <td width="" bgcolor="#f3f3f3">}K{¶< span class="red"> ¦</span></td>106 <td width="" bgcolor="#f3f3f3">}K{¶</td> 107 107 <td width="300" bgcolor="#ffffff"> 108 108 <!--{assign var=key value="body"}--> -
branches/feature-module-combz/data/downloads/module/mdl_combz/mdl_combz.inc
r16602 r16603 11 11 define('COMBZ_ENCODE', 'Shift-JIS'); 12 12 13 /**** ¢§Äê¿ôÀë¸À *********************************************************************************************/ 14 15 define("MDL_COMBZ_ID", 13); 16 define("MODULE_NAME", "¥³¥ó¥Ó¡¼¥ºÏ¢Æ°¥â¥¸¥å¡¼¥ë"); 17 define("MODULE_ID", MDL_COMBZ_ID); 18 19 /************************************************************************************************************** 20 * ´Ø¿ô̾ ¡§sfSetModuleDB 21 * ½èÍýÆâÍÆ ¡§É¬Íפʥǡ¼¥¿¤ò¼èÆÀ¤¹¤ë¡£ 22 * °ú¿ô1 ¡§ 23 * °ú¿ô2 ¡§ 24 * °ú¿ô3 ¡§ 25 * Ìá¤êÃÍ ¡§¼èÆÀ·ë²Ì 26 **************************************************************************************************************/ 27 function sfSetModuleDB($module_id, $objFormParam){ 28 global $objQuery; 29 $arrRet = $objFormParam->getHashArray(); 30 foreach($arrRet as $key => $val) { 31 $arrVal[$key] = $val; 32 } 33 $sqlval['sub_data'] = serialize($arrVal); 34 $objQuery->update("dtb_module", $sqlval, "module_id = ?", array($module_id)); 35 } 36 37 /************************************************************************************************************** 38 * ´Ø¿ô̾ ¡§sfGetModuleDB 39 * ½èÍýÆâÍÆ ¡§É¬Íפʥǡ¼¥¿¤ò¼èÆÀ¤¹¤ë¡£ 40 * °ú¿ô1 ¡§ 41 * °ú¿ô2 ¡§ 42 * °ú¿ô3 ¡§ 43 * Ìá¤êÃÍ ¡§¼èÆÀ·ë²Ì 44 **************************************************************************************************************/ 45 // DB¤«¤é¥Ç¡¼¥¿¤ò¼èÆÀ¤¹¤ë 46 function sfGetModuleDB($module_id){ 47 $objQuery = new SC_Query(); 48 $arrVal = array($module_id); 49 $arrRet = array(); 50 $sql = "SELECT 51 sub_data 52 FROM dtb_module WHERE module_id = ? " . $where; 53 $arrRet = $objQuery->getall($sql, $arrVal); 54 return unserialize($arrRet[0]['sub_data']); 55 } 13 56 /************************************************************************************************************** 14 57 * ´Ø¿ô̾ ¡§sfCombzReserve … … 24 67 ini_set("default_charset", COMBZ_ENCODE); 25 68 ini_set("mbstring.internal_encoding", COMBZ_ENCODE); 26 27 $arrForm = array(28 'pubid' => 'u7gu',29 'pw' => 'iejkngt67',30 'magid' => 'j7zb',31 );32 69 70 //¥Ç¡¼¥¿¤ò¼èÆÀ 71 $arrForm = sfGetModuleDB(MODULE_ID); 33 72 //¥Ú¡¼¥¸´ÉÍý¥¯¥é¥¹ 34 73 class LC_ReservePage { … … 65 104 ini_set("mbstring.internal_encoding", COMBZ_ENCODE); 66 105 67 $arrForm = array( 68 'pubid' => 'u7gu', 69 'pw' => 'iejkngt67', 70 'magid' => 'j7zb', 71 ); 106 //¥Ç¡¼¥¿¤ò¼èÆÀ 107 $arrForm = sfGetModuleDB(MODULE_ID); 72 108 73 109 //¥Ú¡¼¥¸´ÉÍý¥¯¥é¥¹ … … 85 121 $objQuery = new SC_Query(); 86 122 $arrRet = $objQuery->select("email, email_mobile", "dtb_customer", $where, $arrval); 87 123 $arrForm['set_data'] = ""; 88 124 for($i = 0; $i < count($arrRet); $i++) { 89 125 if($arrRet[$i]['email'] != "") { 90 $arrForm['set_data'] 126 $arrForm['set_data'].= $arrRet[$i]['email'] . "\n"; 91 127 } 92 if($arrRet[$i]['email_mobile'] != "" ) {93 $arrForm['set_data'] 94 } 128 if($arrRet[$i]['email_mobile'] != "" && $arrRet[$i]['email'] != $arrRet[$i]['email_mobile']) { 129 $arrForm['set_data'].= $arrRet[$i]['email_mobile'] . "\n"; 130 } 95 131 } 96 132
Note: See TracChangeset
for help on using the changeset viewer.