require CACHE_COMMON_PATH . "cache_type.php"; $_PB_CACHE['industry'] = cache_read("industry"); uses("industry", "typeoption"); $cache = new Caches(); $typeoption = new Typeoption(); $industry = new Industries(); $condition = null; $conditions = array(); $tpl_file = "industry"; $page = new Pages(); setvar("Types", $_PB_CACHE['industrytype']); $cache_items = $_PB_CACHE['industry']; setvar("AskAction", $typeoption->get_cache_type("common_option")); if (isset($_POST['del'])) { if (!empty($_POST['id'])) { $industry->del($_POST['id']); } } if (isset($_POST['hide_batch'])) { if (!empty($_POST['id'])) { $industry->saveField('available', 0, $_POST['id']); } } if (isset($_POST['show_batch'])) { if (!empty($_POST['id'])) { $industry->saveField('available', 1, $_POST['id']); } } if (isset($_POST['do'])) { $do = trim($_POST['do']); if ($do == "clear") {