Changeset 11674 for branches/mobile


Ignore:
Timestamp:
2007/03/09 14:14:40 (14 years ago)
Author:
rebelt
Message:

下記の問題点の修正です。

  • 検証結果19
Location:
branches/mobile
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • branches/mobile/data/Smarty/templates/mobile/entry/set1.tpl

    r11670 r11674  
    1313    ¡ÚÀ¸Ç¯·îÆü¡Û<font color="#FF0000">*</font><br> 
    1414    <font color="#FF0000"><!--{$arrErr.year}--><!--{$arrErr.month}--><!--{$arrErr.day}--></font> 
    15     <select name="year"> 
    16         <!--{html_options options=$arrYear selected=$year}--> 
    17     </select>ǯ<br> 
     15    <input type="text" name="year" value="<!--{$year|escape}-->" size="4" maxlength="4" istyle="4">ǯ<br> 
    1816    <select name="month"> 
    1917        <option value="">--</option> 
  • branches/mobile/data/Smarty/templates/mobile/mypage/set1.tpl

    r11670 r11674  
    1414    ¡ÚÀ¸Ç¯·îÆü¡Û<font color="#FF0000">*</font><br> 
    1515    <font color="#FF0000"><!--{$arrErr.year}--><!--{$arrErr.month}--><!--{$arrErr.day}--></font> 
    16     <select name="year"> 
    17         <!--{html_options options=$arrYear selected=$arrForm.year}--> 
    18     </select>ǯ<br> 
     16    <input type="text" name="year" value="<!--{$arrForm.year|escape}-->" size="4" maxlength="4" istyle="4">ǯ<br> 
    1917    <select name="month"> 
    2018        <option value="">--</option> 
  • branches/mobile/data/class/SC_CheckError.php

    r11454 r11674  
    182182        if($this->arrParam[$value[1]] > $value[2] ) { 
    183183            $this->arrErr[$value[1]] = "¢¨ " . $value[0] . "¤Ï" . $value[2] . "°Ê²¼¤ÇÆþÎϤ·¤Æ¤¯¤À¤µ¤¤¡£<br />"; 
     184        } 
     185    } 
     186     
     187    /*¡¡ºÇ¾®¿ôÃÍÀ©¸Â¤ÎȽÄê¡¡*/ 
     188    // value[0] = ¹àÌÜ̾ value[1] = ȽÄêÂоÝʸ»úÎó  value[2] = ºÇ¾®¿ô 
     189    function MIN_CHECK( $value ) {      // ÆþÎϤ¬ºÇ¾®¿ô̤Ëþ¤Ê¤é¥¨¥é¡¼¤òÊÖ¤¹ 
     190        if(isset($this->arrErr[$value[1]])) { 
     191            return; 
     192        } 
     193        if($this->arrParam[$value[1]] < $value[2] ) { 
     194            $this->arrErr[$value[1]] = "¢¨ " . $value[0] . "¤Ï" . $value[2] . "°Ê¾å¤ÇÆþÎϤ·¤Æ¤¯¤À¤µ¤¤¡£<br />"; 
    184195        } 
    185196    } 
  • branches/mobile/data/class/SC_Date.php

    r5934 r11674  
    2222        $this->start_year = $year; 
    2323    } 
    24  
     24     
     25    function getStartYear(){ 
     26        return $this->start_year; 
     27    } 
     28     
    2529    function setEndYear($endYear) { 
    2630        $this->end_year = $endYear;  
     31    } 
     32     
     33    function getEndYear() { 
     34        return $this->end_year; 
    2735    } 
    2836     
  • branches/mobile/html/mobile/entry/index.php

    r11569 r11674  
    221221} 
    222222 
    223 if($objPage->year == '') { 
    224     $objPage->year = '----'; 
    225 } 
    226  
    227223//----¡¡¥Ú¡¼¥¸É½¼¨ 
    228224$objView->assignobj($objPage); 
     
    366362function lfErrorCheck2($array) { 
    367363 
    368     global $objConn; 
     364    global $objConn, $objDate; 
    369365    $objErr = new SC_CheckError($array); 
    370366     
     
    374370 
    375371    $objErr->doFunc(array("À­ÊÌ", "sex") ,array("SELECT_CHECK", "NUM_CHECK"));  
    376     $objErr->doFunc(array("À¸Ç¯·îÆü", "year", "month", "day"), array("SELECT_CHECK", "CHECK_DATE")); 
     372    $objErr->doFunc(array("À¸Ç¯·îÆü (ǯ)", "year", 4), array("EXIST_CHECK", "SPTAB_CHECK", "NUM_CHECK", "NUM_COUNT_CHECK")); 
     373    if (!isset($objErr->arrErr['year'])) { 
     374        $objErr->doFunc(array("À¸Ç¯·îÆü (ǯ)", "year", $objDate->getStartYear()), array("MIN_CHECK")); 
     375        $objErr->doFunc(array("À¸Ç¯·îÆü (ǯ)", "year", $objDate->getEndYear()), array("MAX_CHECK")); 
     376    } 
     377    $objErr->doFunc(array("À¸Ç¯·îÆü (·îÆü)", "month", "day"), array("SELECT_CHECK")); 
     378    if (!isset($objErr->arrErr['year']) && !isset($objErr->arrErr['month']) && !isset($objErr->arrErr['day'])) { 
     379        $objErr->doFunc(array("À¸Ç¯·îÆü", "year", "month", "day"), array("CHECK_DATE")); 
     380    } 
    377381     
    378382    return $objErr->arrErr; 
  • branches/mobile/html/mobile/mypage/change.php

    r11569 r11674  
    188188} 
    189189 
    190 if($objPage->year == '') { 
    191     $objPage->year = '----'; 
    192 } 
    193  
    194190//----¡¡¥Ú¡¼¥¸É½¼¨ 
    195191$objView->assignobj($objPage); 
     
    367363function lfErrorCheck2($array) { 
    368364 
    369     global $objConn; 
     365    global $objConn, $objDate; 
    370366    $objErr = new SC_CheckError($array); 
    371367     
     
    375371 
    376372    $objErr->doFunc(array("À­ÊÌ", "sex") ,array("SELECT_CHECK", "NUM_CHECK"));  
    377     $objErr->doFunc(array("À¸Ç¯·îÆü", "year", "month", "day"), array("SELECT_CHECK", "CHECK_DATE")); 
     373    $objErr->doFunc(array("À¸Ç¯·îÆü (ǯ)", "year", 4), array("EXIST_CHECK", "SPTAB_CHECK", "NUM_CHECK", "NUM_COUNT_CHECK")); 
     374    if (!isset($objErr->arrErr['year'])) { 
     375        $objErr->doFunc(array("À¸Ç¯·îÆü (ǯ)", "year", $objDate->getStartYear()), array("MIN_CHECK")); 
     376        $objErr->doFunc(array("À¸Ç¯·îÆü (ǯ)", "year", $objDate->getEndYear()), array("MAX_CHECK")); 
     377    } 
     378    $objErr->doFunc(array("À¸Ç¯·îÆü (·îÆü)", "month", "day"), array("SELECT_CHECK")); 
     379    if (!isset($objErr->arrErr['year']) && !isset($objErr->arrErr['month']) && !isset($objErr->arrErr['day'])) { 
     380        $objErr->doFunc(array("À¸Ç¯·îÆü", "year", "month", "day"), array("CHECK_DATE")); 
     381    } 
    378382     
    379383    return $objErr->arrErr; 
Note: See TracChangeset for help on using the changeset viewer.