Ignore:
Timestamp:
2010/03/11 10:35:11 (14 years ago)
Author:
kajiwara
Message:

正式版にナイトリービルド版をマージしてみるテスト

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tmp/version-2_5-test/data/class/pages/admin/contents/LC_Page_Admin_Contents_Inquiry.php

    r18562 r18609  
    110110                for ( $j=0; $j<count( $_POST['question'][$i]['option'] ); $j++ ){ 
    111111                    $_POST['question'][$i]['option'][$j] = mb_convert_kana( trim ( $_POST['question'][$i]['option'][$j] ) ); 
    112                 } 
    113             } 
    114  
    115             for( $i = 0; $i < count( $_POST["question"] ); $i++ ) { 
    116                 if( $_POST["question"][$i]["kind"] == 3 || $_POST["question"][$i]["kind"] == 4  ) { 
    117                     $temp_data = array(); 
    118                     // 項目間(テキストボックス)があいていたら詰めていく 
    119                     for( $j = 0; $j < count( $_POST["question"][$i]["option"] ); $j++ ) { 
    120                         if( strlen( $_POST["question"][$i]["option"][$j] ) > 0 ) $temp_data[] = mb_convert_kana( trim ( $_POST["question"][$i]["option"][$j]  ), "asKVn" ); 
    121                     } 
    122                     $_POST["question"][$i]["option"] = $temp_data; 
    123                 } else { 
    124                     $_POST["question"][$i]["option"] = NULL; 
    125112                } 
    126113            } 
     
    300287                if (strlen($_POST["question"][$i]["name"]) == 0) { 
    301288                    $objErr->arrErr["question"][$i]["name"] = "タイトルを入力して下さい。"; 
    302                 } else if ( strlen($_POST["question"][$i]["name"]) > STEXT_LEN ) { 
     289                } else if ( mb_strlen($_POST["question"][$i]["name"]) > STEXT_LEN ) { 
    303290                    $objErr->arrErr["question"][$i]["name"] = "タイトルは". STEXT_LEN  ."字以内で入力して下さい。"; 
    304291                } 
     
    307294            if( $_POST["question"][$i]["kind"] == 3 || $_POST["question"][$i]["kind"] == 4  ) { 
    308295 
     296                $temp_data = array(); 
    309297                for( $j = 0; $j < count( $_POST["question"][$i]["option"] ); $j++ ) { 
    310                     // 同じ回答がないかチェック 
    311                     if (strlen($_POST["question"][$i]["option"][$j]) > 0) { 
    312                         $checkArray = $_POST["question"][$i]["option"]; 
    313                         // 自身の値をunset 
    314                         unset($checkArray[$j]); 
    315                         if (in_array($_POST["question"][$i]["option"][$j], $checkArray)) { 
    316                             $objErr->arrErr["question"][$i]["option"][$j] = "同じ質問に同じ回答は設定出来ません。"; 
    317                         } 
    318                     } 
    319                 } 
     298 
     299                    // 項目間(テキストボックス)があいていたら詰めていく 
     300                    if( strlen( $_POST["question"][$i]["option"][$j] ) > 0 ) $temp_data[] = mb_convert_kana( trim ( $_POST["question"][$i]["option"][$j]  ), "asKVn" ); 
     301 
     302                } 
     303 
     304                $_POST["question"][$i]["option"] = $temp_data; 
    320305 
    321306                if( ( strlen( $_POST["question"][$i] ["option"][0] ) == 0 ) || ( strlen( $_POST["question"][$i] ["option"][0] ) > 0 
    322307                                                                                 && strlen( $_POST["question"][$i] ["option"][1] ) == 0 ) ) $objErr->arrErr["question"][$i]['kind'] = "下記の2つ以上の項目に記入してください。"; 
    323  
    324308            } 
    325309        } 
Note: See TracChangeset for help on using the changeset viewer.