示例#1
0
        $query = "delete from {$met_link} where id='{$val}'";
        $db->query($query);
    }
    $htmjs = onepagehtm('link', 'index') . '$|$';
    $htmjs .= indexhtm();
    metsave($backurl, '', $depth, $htmjs);
} elseif ($action == "delno") {
    $query = "delete from {$met_link} where show_ok=0 and lang='{$lang}'";
    $db->query($query);
    $htmjs = onepagehtm('link', 'index') . '$|$';
    $htmjs .= indexhtm();
    metsave($backurl, '', $depth, $htmjs);
} elseif ($action == "delall") {
    $query = "delete from {$met_link} where lang='{$lang}'";
    $db->query($query);
    $htmjs = onepagehtm('link', 'index') . '$|$';
    $htmjs .= indexhtm();
    metsave($backurl, '', $depth, $htmjs);
} else {
    $admin_list = $db->get_one("SELECT * FROM {$met_link} WHERE id='{$id}'");
    if (!$admin_list) {
        metsave('-1', $lang_dataerror, $depth);
    }
    $query = "delete from {$met_link} where id='{$id}'";
    $db->query($query);
    $htmjs = onepagehtm('link', 'index') . '$|$';
    $htmjs .= indexhtm();
    metsave($backurl, '', $depth, $htmjs);
}
# This program is an open source system, commercial use, please consciously to purchase commercial license.
# Copyright (C) MetInfo Co., Ltd. (http://www.metinfo.cn). All rights reserved.
示例#2
0
文件: inc.php 项目: nanfs/lt
<?php

$depth = '../';
require_once $depth . '../login/login_check.php';
require_once ROOTPATH . 'public/php/searchhtml.inc.php';
$backurl = "../content/job/inc.php?anyid={$anyid}&lang={$lang}";
if ($action == "modify") {
    require_once $depth . '../include/config.php';
    $htmjs = onepagehtm('job', 'cv', 1);
    metsave($backurl, '', $depth, $htmjs);
} else {
    $query = "SELECT * FROM {$met_parameter} where module=6 and lang='{$lang}' order by no_order";
    $result = $db->query($query);
    while ($list = $db->fetch_array($result)) {
        $cv_para[$list[type]][] = $list;
    }
    $met_cv_type1[$met_cv_type] = "checked";
    $met_cv_emtype1[$met_cv_emtype] = "checked";
    $met_cv_back1 = $met_cv_back ? "checked" : "";
    $m_list = $db->get_one("SELECT * FROM {$met_column} WHERE module='6' and lang='{$lang}'");
    $class1 = $m_list['id'];
    $listclass = '';
    $listclass[4] = 'class="now"';
    $css_url = $depth . "../templates/css";
    $img_url = $depth . "../templates/images";
    include template('content/job/inc');
    footer();
}
示例#3
0
# Copyright (C) MetInfo Co.,Ltd (http://www.metinfo.cn). All rights reserved.
$depth = '../';
require_once $depth . '../login/login_check.php';
require_once ROOTPATH . 'public/php/searchhtml.inc.php';
$fnam = $db->get_one("SELECT * FROM {$met_column} WHERE id='{$class1}' and lang='{$lang}'");
if ($action == "modify") {
    $columnid = $fnam['id'];
    if ($met_fd_ok) {
        $query = "update {$met_column} SET display = '0' where id ='{$columnid}' ";
        $db->query($query);
    } else {
        $query = "update {$met_column} SET display = '1' where id ='{$columnid}' ";
        $db->query($query);
    }
    require_once $depth . '../include/config.php';
    $htmjs = onepagehtm($foldename, 'index', 1, $htmpack, $fnam['filename'], $class1);
    metsave('../content/feedback/inc.php?lang=' . $lang . '&class1=' . $class1 . '&anyid=' . $anyid . '&classall=' . $classall, '', $depth, $htmjs);
} else {
    foreach ($settings_arr as $key => $val) {
        if ($val['columnid'] == $fnam['id']) {
            ${$val}['name'] = $val['value'];
        }
    }
    $query = "SELECT * FROM {$met_parameter} where module=8 and lang='{$lang}' and class1='{$class1}' order by no_order";
    $result = $db->query($query);
    while ($list = $db->fetch_array($result)) {
        $fd_para[$list[type]][] = $list;
        if ($list[type] == 2 || $list[type] == 6) {
            $fd_paraall[] = $list;
        }
    }
示例#4
0
文件: htm.php 项目: nanfs/lt
         if ($val['id'] == $class1) {
             $methtm[] = onepagehtm($val['foldername'], 'index', 1, $htmpack, $val['filename'], $class1);
         }
     }
 }
 if ($module == 9) {
     $methtm[] = onepagehtm('link', 'index', 1);
     $methtm[] = onepagehtm('link', 'addlink', 1);
 }
 if ($class1 == 'login' && $met_member_use != 0) {
     //$methtm[]=onepagehtm('member','index',1);
     $methtm[] = onepagehtm('member', 'login', 1);
     $methtm[] = onepagehtm('member', 'register', 1);
 }
 if ($action == 'sitemap') {
     $methtmx .= onepagehtm('sitemap', 'sitemap', 1);
 }
 if ($module || $action || $index || $class1 == 'login') {
     if ($methtmx != '') {
         /*分页*/
         $htmlist = explode('$|$', $methtmx);
         foreach ($htmlist as $key => $valx1) {
             if ($valx1 != '') {
                 $methtm[] = $valx1;
             }
         }
         /*分页*/
     }
     echo json_encode($methtm);
     die;
 }
示例#5
0
$query = "select * from {$met_parameter} where lang='{$lang}' and module='7' and type='3'";
$menus = $db->query($query);
while ($list = $db->fetch_array($menus)) {
    $fd_paraalls[] = $list;
}
if ($action == "modify") {
    $columnid = $fnam['id'];
    if ($met_fd_ok) {
        $query = "update {$met_column} SET display = '0' where id ='{$columnid}' ";
        $db->query($query);
    } else {
        $query = "update {$met_column} SET display = '1' where id ='{$columnid}' ";
        $db->query($query);
    }
    require_once $depth . '../include/config.php';
    $htmjs = onepagehtm('message', 'message') . '$|$';
    $htmjs .= classhtm($class1, 0, 0);
    metsave('../content/message/inc.php?lang=' . $lang . '&class1=' . $class1 . '&anyid=' . $anyid, '', $depth, $htmjs);
} else {
    foreach ($settings_arr as $key => $val) {
        if ($val['columnid'] == $fnam['id']) {
            ${$val}['name'] = $val['value'];
        }
    }
    $met_fd_ok1[$met_fd_ok] = "checked='checked'";
    $met_fd_email1 = $met_fd_email ? "checked" : "";
    $met_fd_back1 = $met_fd_back ? "checked" : "";
    $met_fd_type1 = $met_fd_type ? "checked" : "";
    $met_fd_sms_back1 = $met_fd_sms_back ? "checked" : "";
    $met_sms_back1 = $met_sms_back ? "checked='checked'" : "";
    $m_list = $db->get_one("SELECT * FROM {$met_column} WHERE module='7' and lang='{$lang}'");