$('#filters').multiSelect({ noneSelected: 'no filters', oneOrMoreSelected: '% filters', selectAll: false }); </script> <?php echo '<div class="error">This tool didn\'t survive the transition to Tool Labs. It\'s temporarily offline until it\'s reimplemented. Sorry!</div>'; $backend->footer(); die; #################### ## Search result #################### $rows = $script->execute(); echo '<!--query=', $backend->formatText($script->query), ' | values=', $backend->formatText(print_r($script->values, true)), '-->'; if (!count($rows)) { echo '<div class="neutral">There are no results matching your search.</div>'; } else { echo '<table>', '<tr>', '<th>standard</th>', '<th>code</th>', '<th>name</th>', '<th>type</th>', '<th>scope</th>', '<th>notes</th>', '</tr><tbody>'; foreach ($rows as $row) { echo '<tr>', '<td><span style="color:gray;">ISO 639-</span>', $row['list'], '</td>', '<td>', $row['code'], '</td>', '<td>', $row['name'], $row['native_name'] && $row['name'] != $row['native_name'] ? '; <i>' . $row['native_name'] : '', '</td>', '<td>', $row['type'], '</td>', '<td>', $row['scope'], '</td>', '<td>', $row['notes'], '</td>', '</tr>'; } echo '</tbody></table>'; if (count($rows) == Script::MAX_LIMIT) { echo '<div class="neutral">Only the first ', Script::MAX_LIMIT, ' matching languages are shown.</div>'; } echo '<!--', $backend->formatText($script->query), '-->'; echo '<!--', $backend->formatText(print_r($script->values, true)), '-->'; }
/** * Test * * @return void */ public function testExecute() { $this->assertInternalType('string', $this->object->execute(__DIR__ . '/_files/script.php')); }