1234567891011121314151617 |
- <?php
- // by 请勿倒卖,已申请软著,否则追究法律责任
- require '../system/db.class.php';
- header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
- header("Cache-Control: no-cache, must-revalidate");
- header("Pragma: no-cache");
- header("Content-type: text/html;charset=" . IN_CHARSET);
- header("Access-Control-Allow-Origin: " . (isset($_SERVER['HTTP_ORIGIN']) ? $_SERVER['HTTP_ORIGIN'] : NULL));
- header("Access-Control-Allow-Credentials: true");
- $cert = NULL;
- $type = SafeRequest('type', 'get') ?: 0;
- $query = db('cert')->where('type', $type)->where('status', '1')->select();
- foreach ($query as $row) {
- $cert .= '<option value="' . $row['in_dir'] . '" id="cert_' . $row['in_dir'] . '">' . $row['in_name'] . '</option>';
- }
- echo $cert ?: '<option value="">No business certificate</option>';
|