<?php 
/*******************************************************************************
* Ourphp - CMS建站系统
* Copyright (C) 2014 ourphp.net
* 开发者：哈尔滨伟成科技有限公司
*******************************************************************************/
include 'ourphp_admin.php';
include 'ourphp_checkadmin.php';
include '../../function/ourphp_navigation.class.php';

if(isset($_GET["ourphp_cms"]) == ""){
	echo '';
}elseif ($_GET["ourphp_cms"] == "edit"){

	if (strstr($OP_Adminpower,"34")){
		cache("service");
		plugsclass::logs('修改客服信息',$OP_Adminname);
		$number = str_replace("/function/","function/",admin_sql($_POST["OP_QQnumber"]));
		$db -> update("`ourphp_qq`","`OP_QQname` = '".admin_sql($_POST["OP_QQname"])."',`OP_QQnumber` = '".admin_sql($number)."',`OP_QQclass` = '".admin_sql($_POST["OP_QQclass"])."',`OP_QQsorting` = '".admin_sql($_POST["OP_QQsorting"])."',`time` = '".date("Y-m-d H:i:s")."'","where id = ".intval($_GET['id']));
		$ourphp_font = 1;
		$ourphp_class = 'ourphp_qq.php?id=ourphp';
		require 'ourphp_remind.php';
		
	}else{
		
		$ourphp_font = 4;
		$ourphp_content = '权限不够，无法编辑内容！';
		$ourphp_class = 'ourphp_qq.php?id=ourphp';
		require 'ourphp_remind.php';
		
	}
			
}

$ourphp_rs = $db -> select("*","`ourphp_qq`","where `id` = ".intval($_GET['id']));
$smarty->assign('ourphp_qq',$ourphp_rs);
$smarty->display('ourphp_qqview.html');
?>