templates.inc.php
来自「phpcms2007很好的cms内容管理系统,操作方便」· PHP 代码 · 共 43 行
PHP
43 行
<?php
defined('IN_PHPCMS') or exit('Access Denied');
if($dosubmit)
{
$db->query("UPDATE ".TABLE_MEMBER_COMPANY." SET templateid='$tpl' WHERE username='$_username'");
if($backgroundmode == 1)
{
$background = $backgroundmode.'|'.$background;
}
elseif($backgroundmode == 2)
{
$background = $backgroundmode.'|'.$color;
}
else
{
$background = '';
}
$db->query("UPDATE ".TABLE_MEMBER_COMPANY." SET background = '$background' WHERE username='$_username'");
createhtml('index',PHPCMS_ROOT.'/yp/web');
createhtml('introduce',PHPCMS_ROOT.'/yp/web');
$forward = "?file=cache&action=article,product,buy,sales,job";
showmessage($LANG['operation_success'],$forward);
}
else
{
@extract($db->get_one("SELECT background FROM ".TABLE_MEMBER_COMPANY." WHERE username='$_username'"));
$backgroundcolor = '#000000';
$backgroundimg = '';
if($background != '')
{
$arraybackground = explode('|',$background);
$backgroundmode = $arraybackground[0];
if($background == 1) $backgroundimg = $arraybackground[1];
if($background == 2) $backgroundcolor = $arraybackground[1];
}
else
{
$backgroundmode = 0;
}
include managetpl('companytpl');
}
?>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?