Rev 1131 | Rev 1142 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1131 | Rev 1138 | ||
---|---|---|---|
Line 285... | Line 285... | ||
285 | $out['text'] .= '<h2>'._L('Root OID %1',$oid).'</h2>'; |
285 | $out['text'] .= '<h2>'._L('Root OID %1',$oid).'</h2>'; |
286 | if ($root['verified']) { |
286 | if ($root['verified']) { |
287 | $count = 0; |
287 | $count = 0; |
288 | $out['text'] .= '<div class="container box"><div id="suboid_table" class="table-responsive">'; |
288 | $out['text'] .= '<div class="container box"><div id="suboid_table" class="table-responsive">'; |
289 | $out['text'] .= '<table class="table table-bordered table-striped">'; |
289 | $out['text'] .= '<table class="table table-bordered table-striped">'; |
- | 290 | $out['text'] .= '<thead>'; |
|
290 | $out['text'] .= '<tr><th colspan="3">'._L('Actions').'</th><th>'._L('OID').'</th></tr>'; |
291 | $out['text'] .= '<tr><th colspan="3">'._L('Actions').'</th><th>'._L('OID').'</th></tr>'; |
- | 292 | $out['text'] .= '</thead>'; |
|
- | 293 | $out['text'] .= '<tbody>'; |
|
291 | 294 | ||
292 | $lookup_nonoid = array(); |
295 | $lookup_nonoid = array(); |
293 | $row_lookup = array(); |
296 | $row_lookup = array(); |
294 | 297 | ||
295 | $all_local_oids_of_root = array(); |
298 | $all_local_oids_of_root = array(); |
Line 454... | Line 457... | ||
454 | '<td><a target="_blank" href="'.$url.'">'._L('Add to oid-info.com manually').'</a></td>'. |
457 | '<td><a target="_blank" href="'.$url.'">'._L('Add to oid-info.com manually').'</a></td>'. |
455 | '<td>'.$local_oid.'</td>'. |
458 | '<td>'.$local_oid.'</td>'. |
456 | '</tr>'; |
459 | '</tr>'; |
457 | } |
460 | } |
458 | } |
461 | } |
- | 462 | $out['text'] .= '</tbody>'; |
|
459 | if ($count == 0) { |
463 | if ($count == 0) { |
- | 464 | $out['text'] .= '<tfoot>'; |
|
460 | $out['text'] .= '<tr><td colspan="4">'._L('No missing OIDs found').'</td></tr>'; |
465 | $out['text'] .= '<tr><td colspan="4">'._L('No missing OIDs found').'</td></tr>'; |
- | 466 | $out['text'] .= '</tfoot>'; |
|
461 | } |
467 | } |
462 | $out['text'] .= '</table></div></div>'; |
468 | $out['text'] .= '</table></div></div>'; |
463 | } else { |
469 | } else { |
464 | $out['text'] .= '<p>'._L('This root is not validated. Please send an email to %1 in order to request ownership verification of this root OID.',$json['vts_verification_email']).'</p>'; |
470 | $out['text'] .= '<p>'._L('This root is not validated. Please send an email to %1 in order to request ownership verification of this root OID.',$json['vts_verification_email']).'</p>'; |
465 | } |
471 | } |
Line 579... | Line 585... | ||
579 | // TODO: "Import all" button |
585 | // TODO: "Import all" button |
580 | if ($root['verified']) { |
586 | if ($root['verified']) { |
581 | $count = 0; |
587 | $count = 0; |
582 | $out['text'] .= '<div class="container box"><div id="suboid_table" class="table-responsive">'; |
588 | $out['text'] .= '<div class="container box"><div id="suboid_table" class="table-responsive">'; |
583 | $out['text'] .= '<table class="table table-bordered table-striped">'; |
589 | $out['text'] .= '<table class="table table-bordered table-striped">'; |
- | 590 | $out['text'] .= '<thead>'; |
|
584 | $out['text'] .= '<tr><th colspan="4">'._L('Actions').'</th><th>'._L('OID').'</th></tr>'; |
591 | $out['text'] .= '<tr><th colspan="4">'._L('Actions').'</th><th>'._L('OID').'</th></tr>'; |
- | 592 | $out['text'] .= '</thead>'; |
|
- | 593 | $out['text'] .= '<tbody>'; |
|
585 | natsort($root['children']); |
594 | natsort($root['children']); |
586 | foreach ($root['children'] as $child_oid) { |
595 | foreach ($root['children'] as $child_oid) { |
587 | if (!in_array($child_oid, $all_local_oids)) { |
596 | if (!in_array($child_oid, $all_local_oids)) { |
588 | $count++; |
597 | $count++; |
589 | // Note: "Actions" is at the left, because it has a fixed width, so the user can continue clicking without the links moving if the OID length changes between lines |
598 | // Note: "Actions" is at the left, because it has a fixed width, so the user can continue clicking without the links moving if the OID length changes between lines |
Line 594... | Line 603... | ||
594 | (strpos($child_oid,'1.3.6.1.4.1.37476.30.9.') === 0 ? '<td> </td>' : '<td><a href="javascript:OIDplusPageAdminOIDInfoExport.importMissingOid(\''.$child_oid.'\');">'._L('Import OID').'</a></td>'). |
603 | (strpos($child_oid,'1.3.6.1.4.1.37476.30.9.') === 0 ? '<td> </td>' : '<td><a href="javascript:OIDplusPageAdminOIDInfoExport.importMissingOid(\''.$child_oid.'\');">'._L('Import OID').'</a></td>'). |
595 | '<td>'.$child_oid.'</td>'. |
604 | '<td>'.$child_oid.'</td>'. |
596 | '</tr>'; |
605 | '</tr>'; |
597 | } |
606 | } |
598 | } |
607 | } |
- | 608 | $out['text'] .= '</tbody>'; |
|
599 | if ($count == 0) { |
609 | if ($count == 0) { |
- | 610 | $out['text'] .= '<tfoot>'; |
|
600 | $out['text'] .= '<tr><td colspan="5">'._L('No extra OIDs found').'</td></tr>'; |
611 | $out['text'] .= '<tr><td colspan="5">'._L('No extra OIDs found').'</td></tr>'; |
- | 612 | $out['text'] .= '</tfoot>'; |
|
601 | } |
613 | } |
602 | $out['text'] .= '</table></div></div>'; |
614 | $out['text'] .= '</table></div></div>'; |
603 | } else { |
615 | } else { |
604 | $out['text'] .= '<p>'._L('This root is not validated. Please send an email to %1 in order to request ownership verification of this root OID.',$json['vts_verification_email']).'</p>'; |
616 | $out['text'] .= '<p>'._L('This root is not validated. Please send an email to %1 in order to request ownership verification of this root OID.',$json['vts_verification_email']).'</p>'; |
605 | } |
617 | } |