Changeset 12999


Ignore:
Timestamp:
2007/05/17 21:26:13 (15 years ago)
Author:
nakanishi
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/dev/html/input_zip_json.php

    r12988 r12999  
    88require_once("./require.php"); 
    99//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 
    2011 
    2112$conn = new SC_DBconn(ZIP_DSN); 
     
    2718 
    2819// ÆþÎÏ¥¨¥é¡¼¤Î¾ì¹ç¤Ï½ªÎ» 
    29 if(count($arrErr) > 0) { 
    30     $objPage->tpl_start = "window.close();"; 
    31 } 
     20if(count($arrErr) == 0) { 
    3221 
    3322// ͹ÊØÈֹ渡º÷ʸºîÀ® 
     
    4130$arrREV_PREF = array_flip($arrPref); 
    4231 
    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']; 
    4534$town =  $data_list[0]['town']; 
    4635/* 
     
    5241$town = ereg_replace("¡Ê.*¡Ë$","",$town); 
    5342$town = ereg_replace("°Ê²¼¤Ë·ÇºÜ¤¬¤Ê¤¤¾ì¹ç","",$town); 
    54 $objPage->tpl_town = $town; 
    5543 
    5644// ͹ÊØÈֹ椬ȯ¸«¤µ¤ì¤¿¾ì¹ç 
     
    6149    //$objPage->tpl_start = "window.close();"; 
    6250} else { 
    63     echo "{ 'POST' : 'test2' , 'GET' : 'test2' }"; 
    64     $objPage->tpl_message = "³ºÅö¤¹¤ë½»½ê¤¬¸«¤Ä¤«¤ê¤Þ¤»¤ó¤Ç¤·¤¿¡£"; 
     51    echo "{'MSG':'½»½ê¤¬¸«¤Ä¤«¤ê¤Þ¤»¤ó¤Ç¤·¤¿¡£'}"; 
     52    } 
    6553} 
    66  
    6754/* ÆþÎÏ¥¨¥é¡¼¤Î¥Á¥§¥Ã¥¯ */ 
    6855function fnErrorCheck() { 
Note: See TracChangeset for help on using the changeset viewer.