Bootstrap テーブルの利用 その3

テーブルの利用

Bootstrap テーブルの利用 その3
stype.cssのtable関連はコメントにしておく事
<table class=”table class=”table table-striped table-bordered table-hover”>
<thead>
<tr>
<th>
 罫線有り、一行おき色つき、選択行をハイに
・サンプル見出しの色とセル幅の指定 %指定が便利
text-left.text-center.text-right
  左寄せ  中央寄せ  右寄せ

	見出し部を指定%で割り振り
	print '<table class="table table-striped table-bordered table-hover">';
	 print '<thead>';
	  print '<tr  class ="table-primary">';
	   print '<th  style="width: 6%">選択</th>';
	   print '<th style="width: 8%">仕入日</th>';
	   print '<th style="width: 8%">仕入No</th>';
	   print '<th  style="width: 18%">取引先</th>';
	   print '<th  style="width: 30%">品名(ロット)</th>';
	   print '<th  style="width: 8%"">数量</th>';
	   print '<th  style="width: 8%">単価</th>';
	   print '<th  style="width: 8%">金額</th>';	
	   print '<th  style="width: 6%">区分</th>';	
	  print '</tr>';
	 print '</thead>';
     ----------明細の繰り返し ---------
	  print '<tr>';
	    print'<td>';
	    print'</td>';
	    print '<td>'.setymd($rec['SYMD']).'</td>';
	    print '<td>'.sprintf('%08d',$rec['DNO']).'</td>';
            print '<td>'.selecttokuta($rec['CD']).'</td>';
	    print '<td>'.$rec['HINA'].'('.$rec['RNO'].')'.'</td>';
            print '<td  class="text-right"></td>';
            print '</tr>';
 
      print'</table>';