- Timestamp:
- 2007/12/20 14:02:40 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/feature-module-update/data/class/util/SC_Utils.php
r16777 r16938 1914 1914 return $str; 1915 1915 } 1916 1917 /** 1918 * 配列をテーブルタグで出力する。 1919 * 1920 * @return string 1921 */ 1922 function getTableTag($array) { 1923 $html = "<table>"; 1924 $html.= "<tr>"; 1925 foreach($array[0] as $key => $val) { 1926 $html.="<th>$key</th>"; 1927 } 1928 $html.= "</tr>"; 1929 1930 $cnt = count($array); 1931 1932 for($i = 0; $i < $cnt; $i++) { 1933 $html.= "<tr>"; 1934 foreach($array[$i] as $val) { 1935 $html.="<td>$val</td>"; 1936 } 1937 $html.= "</tr>"; 1938 } 1939 return $html; 1940 } 1916 1941 1917 1942 /**
Note: See TracChangeset
for help on using the changeset viewer.