Changeset 11730 for branches/comu/html/mypage/delivery.php
- Timestamp:
- 2007/03/11 06:27:25 (20 years ago)
- File:
-
- 1 edited
-
branches/comu/html/mypage/delivery.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/comu/html/mypage/delivery.php
r11729 r11730 10 10 function LC_Page(){ 11 11 $this->tpl_mainpage = USER_PATH . 'templates/mypage/delivery.tpl'; 12 $this->tpl_title = "MY ページ/お届け先追加・変更";12 $this->tpl_title = "MY¥Ú¡¼¥¸/¤ªÆÏ¤±ÀèÄɲåÊѹ¹"; 13 13 $this->tpl_navi = USER_PATH . 'templates/mypage/navi.tpl'; 14 14 $this->tpl_mainno = 'mypage'; … … 26 26 $objConn = new SC_DBConn(); 27 27 28 // ログイン判定28 //¥í¥°¥¤¥óȽÄê 29 29 if(!$objCustomer->isLoginSuccess()) { 30 30 sfDispSiteError(CUSTOMER_ERROR); 31 31 }else { 32 // マイページトップ顧客情報表示用32 //¥Þ¥¤¥Ú¡¼¥¸¥È¥Ã¥×¸ÜµÒ¾ðÊóɽ¼¨ÍÑ 33 33 $objPage->CustomerName1 = $objCustomer->getvalue('name01'); 34 34 $objPage->CustomerName2 = $objCustomer->getvalue('name02'); … … 37 37 38 38 39 // レイアウトデザインを取得39 // ¥ì¥¤¥¢¥¦¥È¥Ç¥¶¥¤¥ó¤ò¼èÆÀ 40 40 $objPage = sfGetPageLayout($objPage, false, "mypage/index.php"); 41 41 42 // 削除42 //ºï½ü 43 43 if($_POST['mode'] == 'delete') { 44 // 不正アクセス判定44 //ÉÔÀµ¥¢¥¯¥»¥¹È½Äê 45 45 $flag = $objQuery->count("dtb_other_deliv", "customer_id=? AND other_deliv_id=?", array($objCustomer->getValue('customer_id'), $_POST['other_deliv_id'])); 46 46 if($flag > 0) { 47 // 削除47 //ºï½ü 48 48 $objQuery->delete("dtb_other_deliv", "other_deliv_id=?", array($_POST['other_deliv_id'])); 49 49 } else { … … 59 59 $order = "other_deliv_id DESC"; 60 60 61 // お届け先登録件数取得61 //¤ªÆÏ¤±ÀèÅÐÏ¿·ï¿ô¼èÆÀ 62 62 $linemax = $objQuery->count($from, $where, $arrval); 63 63 64 64 $objPage->tpl_linemax = $linemax; 65 65 66 // 表示順序66 // ɽ¼¨½ç½ø 67 67 $objQuery->setorder($order); 68 68 69 // 別のお届け先情報表示69 //Ê̤ΤªÆÏ¤±Àè¾ðÊóɽ¼¨ 70 70 $objPage->arrOtherDeliv = $objQuery->select("*", $from, $where, $arrval); 71 71 72 // お届け先登録数をテンプレートに渡す72 //¤ªÆÏ¤±ÀèÅÐÏ¿¿ô¤ò¥Æ¥ó¥×¥ì¡¼¥È¤ËÅϤ¹ 73 73 $objPge->deliv_cnt = count($objPage->arrOtherDeliv); 74 74
Note: See TracChangeset
for help on using the changeset viewer.
