Changeset 21634
- Timestamp:
- 2012/03/12 16:13:06 (12 years ago)
- Location:
- branches/version-2_12-dev/data/class
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/SC_SendMail.php
r21632 r21634 145 145 $_name = ereg_replace('>','>', $_name); 146 146 $_name = mb_encode_mimeheader($_name, 'JIS', 'B', "\n"); 147 $name_address = "\"". $_name . "\"<". $mail_address . '>';147 $name_address = '"' . $_name . '"<' . $mail_address . '>'; 148 148 } else { 149 149 $name_address = $mail_address; … … 223 223 function getTEXTHeader() { 224 224 $arrHeader = $this->getBaseHeader(); 225 $arrHeader['Content-Type'] = "text/plain; charset=\"ISO-2022-JP\"";225 $arrHeader['Content-Type'] = 'text/plain; charset="ISO-2022-JP"'; 226 226 return $arrHeader; 227 227 } … … 230 230 function getHTMLHeader() { 231 231 $arrHeader = $this->getBaseHeader(); 232 $arrHeader['Content-Type'] = "text/html; charset=\"ISO-2022-JP\"";232 $arrHeader['Content-Type'] = 'text/html; charset="ISO-2022-JP"'; 233 233 return $arrHeader; 234 234 } -
branches/version-2_12-dev/data/class/util/SC_Utils.php
r21593 r21634 520 520 foreach ($array as $key => $val) { 521 521 $val = mb_convert_encoding($val, CHAR_CODE, CHAR_CODE); 522 $line .= "\"".$val."\",";522 $line .= '"' .$val. '",'; 523 523 } 524 524 $line = ereg_replace(",$", "\r\n", $line); … … 584 584 function sfGetEnabled($val) { 585 585 if (! $val) { 586 return " disabled=\"disabled\"";586 return ' disabled="disabled"'; 587 587 } 588 588 return ''; … … 591 591 function sfGetChecked($param, $value) { 592 592 if ((string)$param === (string)$value) { 593 return "checked=\"checked\"";593 return 'checked="checked"'; 594 594 } 595 595 return ''; … … 1561 1561 1562 1562 /** 1563 * CSV出力用データ取得1564 *1565 * @return string1566 */1567 function getCSVData($array, $arrayIndex) {1568 for ($i = 0; $i < count($array); $i++) {1569 // インデックスが設定されている場合1570 if (is_array($arrayIndex) && 0 < count($arrayIndex)) {1571 for ($j = 0; $j < count($arrayIndex); $j++) {1572 if ($j > 0) $return .= ',';1573 $return .= "\"";1574 $return .= mb_ereg_replace('<','<',mb_ereg_replace("\"","\"\"",$array[$i][$arrayIndex[$j]])) ."\"";1575 }1576 } else {1577 for ($j = 0; $j < count($array[$i]); $j++) {1578 if ($j > 0) $return .= ',';1579 $return .= "\"";1580 $return .= mb_ereg_replace('<','<',mb_ereg_replace("\"","\"\"",$array[$i][$j])) ."\"";1581 }1582 }1583 $return .= "\n";1584 }1585 return $return;1586 }1587 1588 /**1589 1563 * 配列をテーブルタグで出力する。 1590 1564 *
Note: See TracChangeset
for help on using the changeset viewer.