Esempio n. 1
0
    if ($edit_indus_name_arr) {
        foreach ($edit_indus_name_arr as $k => $v) {
            $indus_obj->setWhere("indus_id = {$k}");
            $indus_obj->setIndus_name($v);
            $indus_obj->edit_keke_witkey_industry();
        }
        kekezu::admin_system_log($_lang['edit_industry']);
    } elseif ($add_indus_name_arr) {
        foreach ($add_indus_name_arr as $k => $aindarr) {
            foreach ($aindarr as $kk => $v) {
                if (!$v) {
                    continue;
                }
                $indus_obj->_indus_id = null;
                $indus_obj->setIndus_name($v);
                $indus_obj->setIndus_pid($k);
                $indus_obj->setListorder($add_indus_name_listarr[$k][$kk] ? $add_indus_name_listarr[$k][$kk] : 0);
                $indus_obj->setOn_time(time());
                $indus_obj->create_keke_witkey_industry();
            }
        }
        kekezu::admin_system_log($_lang['delete_industry']);
    }
    $file_obj->delete_files(S_ROOT . "./data/data_cache/");
    $file_obj->delete_files(S_ROOT . './data/tpl_c/');
    kekezu::admin_show_msg($_lang['operate_success'], 'index.php?do=' . $do . '&view=' . $view, 3, '', 'success');
} elseif ($ac === 'editlistorder') {
    if ($iid) {
        $indus_obj->setWhere('indus_id=' . $iid);
        $indus_obj->setListorder($val);
        $indus_obj->edit_keke_witkey_industry();