⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 index_set.php

📁 MetInfo企业网站管理系统采用PHP+Mysql架构
💻 PHP
字号:
<?php
require_once '../login/login_check.php';
include_once("../../fckeditor/fckeditor.php");
if($action=="modify"){
if($met_en_lang==1){
$query = "update $met_index SET
                      c_content     = '$c_content',
					  e_content     = '$e_content',
					  online_type   = '$online_type',
					  news_no       = '$news_no',
					  product_no    = '$product_no',
					  download_no   = '$download_no',
					  link_ok       = '$link_ok',
					  link_img      = '$link_img',
					  link_text     = '$link_text',
					  img_no        = '$img_no'
					  where id='$id'";}
else{
$query = "update $met_index SET
                      c_content     = '$c_content',
					  online_type   = '$online_type',
					  news_no       = '$news_no',
					  product_no    = '$product_no',
					  download_no   = '$download_no',
					  link_ok       = '$link_ok',
					  link_img      = '$link_img',
					  link_text     = '$link_text',
					  img_no        = '$img_no'
					  where id='$id'";
}
$db->query($query);
if($met_index_type){

if($met_webhtm==1){
$fromurl=$met_weburl."/index.php?en=en";
$filename="../../index.htm";
createhtm($fromurl,$filename);
if($met_en_lang==1){
$fromurl=$met_weburl."/index.php?ch=ch";
$filename="../../index_ch.htm";
createhtm($fromurl,$filename);
}}

}else{
if($met_webhtm==1){
$fromurl=$met_weburl."/index.php";
$filename="../../index.htm";
createhtm($fromurl,$filename);
if($met_en_lang==1){
$fromurl=$met_weburl."/index.php?en=en";
$filename="../../index_en.htm";
createhtm($fromurl,$filename);
}
}
}
okinfo('index_set.php',$lang[user_admin]);

}
else
{
$index = $db->get_one("SELECT * FROM $met_index order by id desc");
if(!$index){
okinfo('../site/sysadmin.php',$lang[noid]);
}
$online_type1[$index[online_type]]="checked='checked'";
$link_ok1[$index[link_ok]]="checked='checked'";
}
$rooturl="..";
$css_url="../templates/".$met_skin."/css";
$img_url="../templates/".$met_skin."/images";
include template('index_set');
footer();
?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -