save.php
来自「MetInfo企业网站管理系统采用PHP+Mysql架构」· PHP 代码 · 共 59 行
PHP
59 行
<?php
require_once '../login/login_check.php';
if($action=="add"){
if($link_lang=="")$link_lang="ch";
$query = "INSERT INTO $met_link SET
c_webname = '$c_webname',
e_webname = '$e_webname',
c_info = '$c_info',
e_info = '$e_info',
link_type = '$link_type',
weburl = '$weburl',
weblogo = '$weblogo',
contact = '$contact',
orderno = '$orderno',
com_ok = '$com_ok',
show_ok = '$show_ok',
link_lang = '$link_lang',
addtime = '$m_now_date'";
$db->query($query);
okinfo('index.php',$lang[user_admin]);
}
if($action=="editor"){
if($met_en_lang==1){
$query = "update $met_link SET
c_webname = '$c_webname',
e_webname = '$e_webname',
c_info = '$c_info',
e_info = '$e_info',
link_type = '$link_type',
weburl = '$weburl',
weblogo = '$weblogo',
contact = '$contact',
orderno = '$orderno',
com_ok = '$com_ok',
show_ok = '$show_ok',
link_lang = '$link_lang',
addtime = '$m_now_date'
where id='$id'";
}else{
$query = "update $met_link SET
c_webname = '$c_webname',
c_info = '$c_info',
link_type = '$link_type',
weburl = '$weburl',
weblogo = '$weblogo',
contact = '$contact',
orderno = '$orderno',
com_ok = '$com_ok',
show_ok = '$show_ok',
link_lang = '$link_lang',
addtime = '$m_now_date'
where id='$id'";
}
$db->query($query);
okinfo('index.php',$lang[user_admin]);
}
?>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?