archives_add.php

来自「这是matlab的一个小程序」· PHP 代码 · 共 70 行

PHP
70
字号
<?php
require_once(dirname(__FILE__)."/config.php");
CheckPurview('a_New,a_AccNew');
require_once(DEDEINC."/customfields.func.php");
require_once(DEDEADMIN."/inc/inc_archives_functions.php");

if(empty($dopost))
{
	$dopost = '';
}
if($dopost!='save')
{
	require_once(DEDEINC."/dedetag.class.php");
	require_once(DEDEADMIN."/inc/inc_catalog_options.php");

	$channelid = empty($channelid) ? 0 : intval($channelid);
	$cid = empty($cid) ? 0 : intval($cid);

	//鑾峰緱棰戦亾妯″瀷ID
	if($cid > 0 && $channelid == 0)
	{
		$row = $dsql->GetOne("Select channeltype From `#@__arctype` where id='$cid'; ");
		$channelid = $row['channeltype'];
	}
	else
	{
		if($channelid==0)
		{
			ShowMsg("鏃犳硶璇嗗埆妯″瀷淇℃伅锛屽洜姝ゆ棤娉曟搷浣滐紒","-1");
			exit();
		}
	}

	//鑾峰緱棰戦亾妯″瀷淇℃伅
	$cInfos = $dsql->GetOne(" Select * From  `#@__channeltype` where id='$channelid' ");
	$channelid = $cInfos['id'];
	include DedeInclude("templets/archives_add.htm");
	exit();
}

/*--------------------------------
function __save(){  }
-------------------------------*/
else if($dopost=='save')
{
	require_once(DEDEINC.'/image.func.php');
	require_once(DEDEINC.'/oxwindow.class.php');

	$flag = isset($flags) ? join(',',$flags) : '';

	if(!isset($autokey))
	{
		$autokey = 0;
	}
	if(!isset($remote))
	{
		$remote = 0;
	}
	if(!isset($dellink))
	{
		$dellink = 0;
	}
	if(!isset($autolitpic))
	{
		$autolitpic = 0;
	}

	if($typeid==0)
	{
		ShowMsg("璇锋寚瀹氭枃妗g殑鏍忕洰锛

⌨️ 快捷键说明

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