$art_cat_info = $art_cat_info[0]; $art_cat_pid = $art_cat_info[art_cat_pid]; } if ($sbt_edit) { $flag = null; if ($hdn_art_cat_id) { $art_cat_obj->setWhere('art_cat_id=' . intval($hdn_art_cat_id)); $art_cat_info = $art_cat_obj->query_keke_witkey_article_category(); $art_cat_info = $art_cat_info[0]; if ($art_cat_info['art_cat_pid'] > 0) { $art_cat_obj->setArt_cat_pid($slt_cat_id); } } else { $art_cat_obj->setArt_cat_pid($slt_cat_id); } $art_cat_obj->setCat_name(kekezu::escape($txt_cat_name)); $art_cat_obj->setListorder($txt_listorder ? $txt_listorder : 0); $art_cat_obj->setIs_show(intval($chk_is_show)); $art_cat_obj->setSeo_title($seo_title); $art_cat_obj->setSeo_keyword($seo_keyword); $art_cat_obj->setSeo_desc($seo_desc); $art_cat_obj->setOn_time(time()); if ($type == "art") { $art_cat_obj->setCat_type("article"); $top_index = '{1}'; } else { if ($type == "help") { $art_cat_obj->setCat_type("help"); $top_index = '{100}'; } else { if ($type == "single") {
<?php defined('ADMIN_KEKE') or exit('Access Denied'); $cat_obj = new Keke_witkey_article_category_class(); $file_obj = new keke_file_class(); $table_obj = new keke_table_class("witkey_article_category"); $cat_all_arr = kekezu::get_table_data('*', "witkey_article_category", '', '', '', '', 'art_cat_id'); $url = "index.php?do={$do}&view={$view}&type={$type}&w[art_cat_pid]={$w[art_cat_pid]}&w[cat_name]={$w[cat_name]}\n\t\t&{$ord['0']}={$ord[1]}"; if ($ac == 'del') { $table_obj->del('art_cat_id', $art_cat_id, $url); kekezu::admin_show_msg($_lang['delete_success'], 'index.php?do=article&view=cat_list&type=' . $type, 3, '', 'success'); } elseif (isset($sbt_action)) { if ($edit_cat_name_arr) { foreach ($edit_cat_name_arr as $k => $v) { $cat_obj->setWhere("art_cat_id = {$k}"); $cat_obj->setCat_name($v); $cat_obj->edit_keke_witkey_article_category(); } kekezu::admin_system_log($_lang['edit_article_category']); } elseif ($add_cat_name_arr) { foreach ($add_cat_name_arr as $k => $aindarr) { foreach ($aindarr as $kk => $v) { if (!$v) { continue; } $cat_obj->_art_cat_id = null; $cat_obj->setCat_name($v); $cat_obj->setArt_cat_pid($k); $cat_obj->setListorder($add_cat_name_listarr[$k][$kk] ? $add_cat_name_listarr[$k][$kk] : 0); $cat_obj->setOn_time(time()); if ($type == 'art') {