本文整理汇总了PHP中keke_table_class::del方法的典型用法代码示例。如果您正苦于以下问题:PHP keke_table_class::del方法的具体用法?PHP keke_table_class::del怎么用?PHP keke_table_class::del使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类keke_table_class
的用法示例。
在下文中一共展示了keke_table_class::del方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: implode
db_factory::execute($sql);
kekezu::admin_system_log($_lang['move_recommend'] . $memberinfo_arr['username']);
kekezu::admin_show_msg($_lang['operate_success'], $url_str . '&page=' . $page, 3, '', 'success');
break;
}
if ($sbt_action && is_array($ckb)) {
$ids = implode(',', $ckb);
$sql = sprintf("select uid,username from %switkey_space where uid in (%s)", TABLEPRE, $ids);
$space_arr = db_factory::query($sql);
switch ($sbt_action) {
case $_lang['mulit_delete']:
if (in_array(1, $ckb)) {
kekezu::admin_show_msg("操作失败", 'index.php?do=user&view=list', 3, "系统账号无法删除", 'warning');
}
$table_class->del('uid', $ckb);
$member_class->del('uid', $ckb);
db_factory::execute(sprintf("delete from %switkey_shop where uid in (%s) ", TABLEPRE, $ids));
db_factory::execute(sprintf("delete from %switkey_service where uid in (%s)", TABLEPRE, $ids));
kekezu::admin_system_log($_lang['delete_user'] . "{$ids}");
kekezu::admin_show_msg($_lang['operate_success'], 'index.php?do=user&view=list', 3, $_lang['mulit_operate_success'], 'success');
break;
case $_lang['mulit_disable']:
if (in_array(1, $ckb)) {
kekezu::admin_show_msg("操作失败", 'index.php?do=user&view=list', 3, "系统账号无法删除", 'warning');
}
$sql = sprintf("update %switkey_space set status=2 where uid in (%s)", TABLEPRE, $ids);
db_factory::execute($sql);
foreach ($space_arr as $v) {
$v_arr = array($_lang['username'] => $v['username'], $_lang['website_name'] => $kekezu->_sys_config['website_name']);
keke_shop_class::notify_user($v['uid'], $v['username'], 'freeze', $_lang['user_freeze'], $v_arr, 2);
}
示例2: exit
<?php
defined('ADMIN_KEKE') or exit('Access Denied');
kekezu::admin_check_role(171);
$keyword_obj = new Keke_witkey_article_keyword_class();
$table_obj = new keke_table_class("witkey_article_keyword");
$url = "index.php?do={$do}&view={$view}&w[word]={$w['word']}&w[keyword_id]={$w['keyword_id']}&page_size={$page_size}&page={$page}&ord[0]={$ord['0']}&ord[1]={$ord['1']}";
if (isset($ac)) {
switch ($ac) {
case "del":
$res = $table_obj->del('keyword_id', $keyword_id, $url);
break;
case "open":
$keyword_obj->setWhere("keyword_id=" . $keyword_id);
$keyword_obj->setKeyword_status(1);
$res = $keyword_obj->edit_keke_witkey_article_keyword();
break;
case "disable":
$keyword_obj->setWhere("keyword_id=" . $keyword_id);
$keyword_obj->setKeyword_status(0);
$res = $keyword_obj->edit_keke_witkey_article_keyword();
break;
}
$res and kekezu::admin_show_msg($_lang['operate_success'], $url, 3, '', 'success') or kekezu::admin_show_msg($_lang['operate_fail'], $url, 3, '', 'warning');
} elseif (isset($sbt_action)) {
sizeof($ckb) or kekezu::admin_show_msg($_lang['choose_operate_item'], $url, 3, '', 'warning');
is_array($ckb) and $ids = implode(',', array_filter($ckb));
$keyword_obj->setWhere("keyword_id in ({$ids})");
if ($sbt_action) {
$res = $keyword_obj->del_keke_witkey_article_keyword();
kekezu::admin_system_log($_lang['mulit_recovery_articles']);
示例3: exit
<?php
defined('ADMIN_KEKE') or exit('Access Denied');
kekezu::admin_check_role(7);
$indus_obj = new Keke_witkey_industry_class();
$file_obj = new keke_file_class();
$table_obj = new keke_table_class("witkey_industry");
$url = "index.php?do={$do}&view={$view}&w[indus_pid]={$w[indus_pid]}&w[indus_name]={$w[indus_name]}\n\t\t&{$ord['0']}={$ord[1]}";
if ($ac == 'del') {
if ($indus_id && $indus_pid == 0) {
$table_obj->del('indus_pid', $indus_id, $url);
$table_obj->del('indus_id', $indus_id, $url);
} else {
$table_obj->del('indus_id', $indus_id, $url);
}
kekezu::admin_show_msg($_lang['delete_success'], 'index.php?do=task&view=industry', 3, '', 'success');
} elseif (isset($sbt_action)) {
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;
示例4: foreach
$readonly = nav_analysis($nav_config['nav_url']);
}
if ($fds and $sbt_edit) {
if ($set_index) {
$set_rs = db_factory::execute(sprintf("update %switkey_basic_config set v='%s' where k='set_index'", TABLEPRE, $fds['nav_style']));
} else {
$set_rs = db_factory::execute(sprintf("update %switkey_basic_config set v='index' where k='set_index'", TABLEPRE));
}
$res = $nav_obj->save($fds, $pk);
$res || $set_rs and kekezu::admin_show_msg($_lang['operate_success'], $url, 2, $_lang['edit_success'], "success") or kekezu::admin_show_msg($_lang['operate_fail'], $url, 2, $_lang['edit_fail'], "error");
}
require $template_obj->template(ADMIN_DIRECTORY . '/tpl/admin_config_' . $view . '_edit');
die;
}
if ($ac == 'del') {
$nav_obj->del('nav_id', $nav_id, $url);
kekezu::admin_show_msg($_lang['delete_nav_success'], "index.php?do=config&view=nav", 3, '', 'success');
}
if ($ac == 'set_index') {
$res = db_factory::execute(sprintf("update %switkey_basic_config set v='%s' where k='set_index'", TABLEPRE, $nav_style));
kekezu::admin_show_msg($_lang['set_index_success'], "index.php?do=config&view=nav", 3, '', 'success');
}
if ($sbt_edit) {
$sql = '';
$nav = array_filter($nav);
foreach ($nav as $nav_id => $v) {
$sql = ' update ' . TABLEPRE . 'witkey_nav set nav_title="' . $v['nav_title'] . '"';
$v['nav_url'] and $sql .= ',nav_url="' . $v['nav_url'] . '"';
$sql .= ',nav_style="' . $v['nav_style'] . '"';
$sql .= ',listorder=' . intval($v['listorder']);
$sql .= ' where nav_id=' . intval($nav_id);
示例5: exit
<?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') {
示例6: exit
<?php
defined('ADMIN_KEKE') or exit('Access Denied');
$art_obj = new Keke_witkey_article_class();
$table_obj = new keke_table_class("witkey_article");
$types = array('help', 'art', 'bulletin', 'about');
$type = !empty($type) && in_array($type, $types) ? $type : 'art';
$url = "index.php?do={$do}&view={$view}&w[username]={$w['username']}&w[art_title]={$w['art_title']}&w[art_cat_id]={$w['art_cat_id']}&page_size={$page_size}&page={$page}&type={$type}&ord[0]={$ord['0']}&ord[1]={$ord['1']}";
if ($opajax == 'setorder') {
$table_obj->save(array('listorder' => intval($ov)), array('art_id' => intval($dataid)));
kekezu::echojson('设置成功', 1);
die;
}
if ($ac == 'del') {
$res = $table_obj->del('art_id', $art_id, $url);
$res and kekezu::admin_show_msg($_lang['operate_success'], $url, 3, '', 'success') or kekezu::admin_show_msg($_lang['operate_fail'], $url, 3, '', 'warning');
} elseif (isset($sbt_action)) {
sizeof($ckb) or kekezu::admin_show_msg($_lang['choose_operate_item'], $url, 3, '', 'warning');
is_array($ckb) and $ids = implode(',', array_filter($ckb));
$art_obj->setWhere("art_id in ({$ids})");
if ($sbt_action) {
$res = $art_obj->del_keke_witkey_article();
kekezu::admin_system_log($_lang['mulit_recovery_articles']);
}
$res and kekezu::admin_show_msg($_lang['mulit_operate_success'], $url, 3, '', 'success') or kekezu::admin_show_msg($_lang['mulit_operate_fail'], $url, 3, '', 'warning');
} elseif ($op == 'listorder') {
$art_obj = new Keke_witkey_article_class();
$art_obj->setWhere("art_id='{$art_id}'");
$art_obj->setListorder(intval($value));
$art_obj->edit_keke_witkey_article();
kekezu::admin_system_log($_lang['edit_art_order'] . $art_id);
示例7: exit
<?php
defined('ADMIN_KEKE') or exit('Access Denied');
kekezu::admin_check_role(2);
$url = "index.php?do={$do}&view={$view}";
$default_currency = $kekezu->_sys_config['currency'];
$currencies_obj = new keke_table_class('witkey_currencies');
$page and $page = intval($page) or $page = 1;
$slt_page_size and $slt_page_size = intval($slt_page_size) or $slt_page_size = 20;
$cur = new keke_curren_class();
if ($ac == 'del') {
if ($cid && $cid != keke_curren_class::$_default['currencies_id']) {
$res = $currencies_obj->del("currencies_id", $cid, $url);
kekezu::admin_system_log($_lang['links_delete'] . $del_id);
kekezu::admin_show_msg($_lang['delete_success'], $url, 3, '', 'success');
die;
} else {
kekezu::admin_show_msg($_lang['delete_fail'], $url, 3, $_lang['del_default'], 'warning');
die;
}
} else {
$where = ' 1 = 1 ';
$d = $currencies_obj->get_grid($where, $url, $page, $slt_page_size, null, 1, 'ajax_dom');
$currencies_config = $d[data];
$pages = $d[pages];
}
if ($ac == 'update') {
if (isset($code)) {
$res = $cur->update(false, $code);
} else {
$res = $cur->update(true);