n-numeric ">日付\n'
  ..' <th class="title mdl-data-table__cell--non-numeric ">タイトル\n'
  ..' <th class="service mdl-data-table__cell--non-numeric ">サービス\n'
  ..' <th class="comment mdl-data-table__cell--non-numeric ">結果\n'
  ..' <th class="drop">D\n'
  ..' <th class="scramble">S\n'
  ..'<tbody>\n'

ctt={}
for i=pageIndex*PAGE_COUNT+1,math.min(#a,(pageIndex+1)*PAGE_COUNT) do
  v=a[i]
  bg=v.drops>0 and ' drops'
     or v.scrambles>0 and ' scrambles' or ''
  table.insert(ctt