<?php include '../common.inc.php'; if (file_exists('dic.' . $_GET['type'] . '.php')) { include 'dic.' . $_GET['type'] . '.php'; } else { if (class_exists($_GET['type'])) { $class = new $_GET['type'](); $class->setKw($_GET); echo aryOption($class->getList()); } }
<?php $where[] = "channel='" . $_GET['channel'] . "'"; if ($_GET['page']) { $where[] = "page='" . $_GET['page'] . "'"; } if ($where) { $where = 'where ' . implode(' and ', $where); } $sql = 'select ' . $_GET['idf'] . ' as id,' . $_GET['namef'] . ' as name from _sys_local ' . $where . ' group by ' . $_GET['idf'] . ''; echo aryOption($webdb->getList($sql));