本文整理汇总了PHP中kekezu::get_industry方法的典型用法代码示例。如果您正苦于以下问题:PHP kekezu::get_industry方法的具体用法?PHP kekezu::get_industry怎么用?PHP kekezu::get_industry使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类kekezu
的用法示例。
在下文中一共展示了kekezu::get_industry方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: defined
<?php
defined('ADMIN_KEKE') or exit('Access Denied');
kekezu::admin_check_role(6);
$indus_table_obj = new Keke_witkey_industry_class();
$indus_obj = keke_table_class::get_instance("witkey_industry");
$file_obj = new keke_file_class();
$indus_arr = kekezu::get_industry(0);
isset($indus_id) and intval($indus_id) > 0 and $indus_info = $indus_obj->get_table_info('indus_id', $indus_id);
empty($art_info) or extract($art_info);
if (isset($indus_id) && intval($indus_id) > o) {
$indus_info = $indus_obj->get_table_info('indus_id', $indus_id);
$indus_pid = $indus_info['indus_pid'];
}
if ($sbt_edit) {
$indus_table_obj->setWhere("indus_name = '" . $fs['indus_name'] . "'");
$res = $indus_table_obj->count_keke_witkey_industry();
!$pk && $res and kekezu::admin_show_msg($_lang['operate_fail'], $url, 3, $_lang['indus_has']);
$fs['on_time'] = time();
isset($fs['is_recommend']) or $fs['is_recommend'] = 0;
isset($fs['totask']) or $fs['totask'] = 0;
isset($fs['togoods']) or $fs['togoods'] = 0;
$fs = kekezu::escape($fs);
$res = $indus_obj->save($fs, $pk);
$indus_info = $indus_obj->get_table_info('indus_id', $pk['indus_id']);
$url = "index.php?do=task&view=industry";
!$pk and kekezu::admin_system_log($_lang['add_industry']) or kekezu::admin_system_log($_lang['edit_industry'] . ':' . $indus_info['indus_name']);
$file_obj->delete_files(S_ROOT . "./data/data_cache/");
$file_obj->delete_files(S_ROOT . './data/tpl_c/');
$res and kekezu::admin_show_msg($_lang['operate_success'], $url, 3, '', 'success') or kekezu::admin_show_msg($_lang['operate_fail'], $url, 3, '', 'warning');
}
示例2: get_indus_by_index
public static function get_indus_by_index($indus_type = "1", $pid = NULL)
{
global $kekezu;
$indus_index_arr = $kekezu->_cache_obj->get('indus_index_arr' . $indus_type . '_' . $pid);
if (!$indus_index_arr) {
$indus_arr = kekezu::get_industry($pid);
$indus_index_arr = array();
foreach ($indus_arr as $indus) {
$indus_index_arr[$indus['indus_pid']][$indus['indus_id']] = $indus;
}
$kekezu->_cache_obj->set('indus_index_arr' . $indus_type . '_' . $pid, $indus_index_arr, 3600);
}
return $indus_index_arr;
}
示例3: defined
<?php
defined('ADMIN_KEKE') or exit('Access Denied');
kekezu::admin_check_role(20);
$indus_p_arr = $kekezu->_indus_p_arr;
$url = "index.php?do={$do}&view={$view}";
if (isset($sbt_edit)) {
$to_indus_id or kekezu::admin_show_msg($_lang['target_industry_not_top'], $url, 2, '', 'warning');
$indus_hb_arr = kekezu::get_industry($to_indus_id);
foreach ($indus_hb_arr as $k => $v) {
db_factory::execute("update " . TABLEPRE . "witkey_industry set indus_pid = {$slt_indus_id} where indus_id = {$v['indus_id']}");
}
db_factory::execute("delete from " . TABLEPRE . "witkey_industry where indus_id = {$to_indus_id}");
db_factory::execute("update " . TABLEPRE . "witkey_task set indus_pid = {$slt_indus_id} where indus_pid = {$to_indus_id}");
db_factory::execute("update " . TABLEPRE . "witkey_service set indus_pid = {$slt_indus_id} where indus_pid = {$to_indus_id}");
kekezu::admin_show_msg($_lang['industry_union_success'], $url, 3, '', 'success');
}
require_once $template_obj->template(ADMIN_DIRECTORY . '/tpl/admin_' . $do . '_' . $view);
示例4: intval
intval($w[indus_pid]) and $where .= " and indus_pid = {$w['indus_pid']}";
strval($w[indus_name]) and $where .= " and indus_name like '%{$w['indus_name']}%'";
$ord[1] and $where .= " order by {$ord['0']} {$ord['1']}";
}
$indus_arr = kekezu::get_table_data("*", "witkey_industry", $where, "", "", "", "", 0);
sort($indus_arr);
if (!$w) {
$t_arr = array();
kekezu::get_tree($indus_arr, $t_arr, 'cat', NULL, 'indus_id', 'indus_pid', 'indus_name');
$indus_show_arr = $t_arr;
unset($t_arr);
} else {
$indus_show_arr = $indus_arr;
}
$temp_arr = array();
$indus_option_arr = kekezu::get_industry();
kekezu::get_tree($indus_option_arr, $temp_arr, "option", $w[indus_pid]);
$indus_option_arr = $temp_arr;
unset($temp_arr);
$indus_index_arr = kekezu::get_indus_by_index();
}
function sortTree($nodeid, $arTree)
{
$res = array();
for ($i = 0; $i < sizeof($arTree); $i++) {
if ($arTree[$i]["indus_pid"] == $nodeid) {
array_push($res, $arTree[$i]);
$subres = sortTree($arTree[$i]["indus_id"], $arTree);
for ($j = 0; $j < sizeof($subres); $j++) {
array_push($res, $subres[$j]);
}
示例5: explode
$option .= '<option value=' . $v['indus_id'] . '>' . $v['indus_name'] . '</option>';
}
CHARSET == 'gbk' and $option = kekezu::gbktoutf($option);
echo $option;
die;
}
$service_info = db_factory::get_one(sprintf("select * from %switkey_service where service_id='%d'", TABLEPRE, $service_id));
if ($service_info['pic']) {
$servicePics = explode(',', $service_info['pic']);
}
if ($service_info['file_path']) {
$serviceFiles = explode(',', $service_info['file_path']);
}
$service_info['ext_fields'] = CustomClass::getExtDataList($service_info['service_id'], $service_info['model_id']);
$service_info and extract($service_info) or $service_info = array();
$indus_pid and $indus_arr = kekezu::get_industry($indus_pid, 0) or $indus_arr = array();
if ($sbt_edit) {
if ($ext_fds) {
CustomClass::editExtData($pk['service_id'], $model_id, $ext_fds);
}
kekezu::admin_system_log($_lang['to_witkey_goods_name_is'] . $service_info['title'] . $_lang['to_edit_operate']);
goods_shop_class::set_on_sale_num($pk['service_id'], $fds['service_status']);
$service_obj = keke_table_class::get_instance('witkey_service');
$c = $fds['content'];
$fds = kekezu::escape($fds);
$fds['content'] = $c;
isset($fds['is_top']) or $fds['is_top'] = 0;
$res = $service_obj->save($fds, $pk);
kekezu::admin_show_msg($_lang['goods_edit_success'], 'index.php?do=model&model_id=6&view=list', 2, $_lang['goods_edit_success'], 'success');
}
if ($file_path) {