- print('<table class="border">'."\n");
- print(' <tr>'."\n");
- print(' <th>User Agent string</th>'."\n");
- print(' <th>Brand</th>'."\n");
- print(' <th>Version</th>'."\n");
- print(' <th>Bot</th>'."\n");
- print(' <th>Mob</th>'."\n");
- print(' <th>Engine</th>'."\n");
- print(' <th>eVer</th>'."\n");
- print(' <th>OS</th>'."\n");
- print(' <th>Platform</th>'."\n");
- print(' <th>Lang</th>'."\n");
- print(' </tr>'."\n");
+ $tbl = $body->appendElement('table');
+ $tbl->setAttribute('class', 'border');
+ $tbl->setAttribute('id', 'ualist');
+ $thead = $tbl->appendElement('thead');
+ $trow = $thead->appendElement('tr');
+ $trow->appendElement('th', 'User Agent string');
+ $trow->appendElement('th', 'Brand');
+ $trow->appendElement('th', 'Version');
+ $trow->appendElement('th', 'Bot');
+ $trow->appendElement('th', 'Mob');
+ $trow->appendElement('th', 'Engine');
+ $trow->appendElement('th', 'eVer');
+ $trow->appendElement('th', 'OS');
+ $trow->appendElement('th', 'Platform');
+ $trow->appendElement('th', 'Lang');