Changeset 12999
- Timestamp:
- 2007/05/17 21:26:13 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/dev/html/input_zip_json.php
r12988 r12999 8 8 require_once("./require.php"); 9 9 //header("Content-Type: text/json; charset=euc-jp"); 10 class LC_Page { 11 var $tpl_state; 12 var $tpl_city; 13 var $tpl_town; 14 var $tpl_onload; 15 var $tpl_message; 16 function CPage() { 17 $this->tpl_message = "½»½ê¤ò¸¡º÷¤·¤Æ¤¤¤Þ¤¹¡£"; 18 } 19 } 10 20 11 21 12 $conn = new SC_DBconn(ZIP_DSN); … … 27 18 28 19 // ÆþÎÏ¥¨¥é¡¼¤Î¾ì¹ç¤Ï½ªÎ» 29 if(count($arrErr) > 0) { 30 $objPage->tpl_start = "window.close();"; 31 } 20 if(count($arrErr) == 0) { 32 21 33 22 // Í¹ÊØÈֹ渡º÷ʸºîÀ® … … 41 30 $arrREV_PREF = array_flip($arrPref); 42 31 43 $ objPage->tpl_state = $arrREV_PREF[$data_list[0]['state']];44 $ objPage->tpl_city = $data_list[0]['city'];32 $state = $arrREV_PREF[$data_list[0]['state']]; 33 $city = $data_list[0]['city']; 45 34 $town = $data_list[0]['town']; 46 35 /* … … 52 41 $town = ereg_replace("¡Ê.*¡Ë$","",$town); 53 42 $town = ereg_replace("°Ê²¼¤Ë·ÇºÜ¤¬¤Ê¤¤¾ì¹ç","",$town); 54 $objPage->tpl_town = $town;55 43 56 44 // Í¹ÊØÈֹ椬ȯ¸«¤µ¤ì¤¿¾ì¹ç … … 61 49 //$objPage->tpl_start = "window.close();"; 62 50 } else { 63 echo "{ 'POST' : 'test2' , 'GET' : 'test2'}";64 $objPage->tpl_message = "³ºÅö¤¹¤ë½»½ê¤¬¸«¤Ä¤«¤ê¤Þ¤»¤ó¤Ç¤·¤¿¡£"; 51 echo "{'MSG':'½»½ê¤¬¸«¤Ä¤«¤ê¤Þ¤»¤ó¤Ç¤·¤¿¡£'}"; 52 } 65 53 } 66 67 54 /* ÆþÎÏ¥¨¥é¡¼¤Î¥Á¥§¥Ã¥¯ */ 68 55 function fnErrorCheck() {
Note: See TracChangeset
for help on using the changeset viewer.