* Time: 16:19 */ require '../sql/mysql_cls.php'; require 'lib.php'; error_reporting(0); $db = new mysql_cls(); $db->connect(); $database = $_GET['project']; $option = $_GET['option']; $db->changeDB($database); $databases = $db->getAllDBnames(); $data = null; if ($database == "") { $data = $db->getAllDBnames(); } if ($option == "property") { $data = getProperty(); } else { if ($option == "evaluation") { set_time_limit(1800); ////临时设置超时 $data = getEvaluations(); //echo $data; } else { if ($option == "manufacturer") { $data = getManufacturers(); } } } $data = json_encode($data); echo $data;
mysql_select_db($mod_cnf['dbname'], $sqlConnect) or die('error selecting table.'); //** get number of needed script-calls, based on active items with valid seo-url. cms and categories will be added to first sitemap automatically. $cntCalls = ceil(getCountScriptCalls() / $mod_cnf['offset']); // store cms- and category-data only at first call, further calls are products only if (1 == $pcall) { // get cms data from shop - only at first script-run! (-c 1) if ($mod_cnf['export_cms']) { $xmlList_cms = getCmsSite(); } // get vendor data from shop - only at first script-run! (-c 1) if ($mod_cnf['export_vendor']) { $xmlList_vendor = getVendors(); } // get manufcaturer data from shop - only at first script-run! (-c 1) if ($mod_cnf['export_manufcaturer']) { $xmlList_manufacturer = getManufacturers(); } // get manufcaturer data from shop if ($mod_cnf['export_tags']) { $xmlList_tags = getTags(); } // get static seo data from shop if ($mod_cnf['export_static']) { $xmlList_static = getStaticUrls(); } // get all categories if ($mod_cnf['export_categories']) { $xmlList_cat = getCategories(); } // get vendor products if ($mod_cnf['export_products_ve']) {
* @return string <p> Select valmistajan vaihtoehtot, HTML:nä. * Jos ei yhteyttä TecDociin, huomauttaa siitä. */ function printManufSelectOptions(array $manufs) { $returnString = ''; if ($manufs) { foreach ($manufs as $manuf) { $returnString .= "<option value='{$manuf->manuId}'>{$manuf->manuName}</option>"; } } else { $returnString = "<script>alert('TecDoc ei vastaa.');</script>"; } return $returnString; } $manufs = getManufacturers(); ?> <div class="ajoneuvomallihaku"> Ajoneuvomallilla haku:<br> <form action="" method="get" id="ajoneuvomallihaku"> <select id="manufacturer" name="manuf" title="Valmistaja"> <option value="">-- Valmistaja --</option> <?php echo printManufSelectOptions($manufs); ?> </select><br> <select id="model" name="model" disabled="disabled" title="Auton malli"> <option value="">-- Malli --</option> </select><br> <select id="car" name="car" disabled="disabled" title="Auto">
addLab(); break; case 9: getLabs(); break; case 10: editLab(); break; case 11: deleteLab(); break; case 12: addManufacturer(); break; case 13: getManufacturers(); break; case 14: editManufacturer(); break; case 15: deleteManufacturer(); break; default: echo '{"result": 0, "message": "Unknown command"}'; return; break; } function login() { include "user.php";