📄 archives_edit.php
字号:
<?php
require_once(dirname(__FILE__)."/config.php");
CheckRank(0,0);
require_once(DEDEINC."/dedetag.class.php");
require_once(DEDEINC."/customfields.func.php");
require_once(DEDEMEMBER."/inc/inc_catalog_options.php");
require_once(DEDEMEMBER."/inc/inc_archives_functions.php");
$channelid = isset($channelid) && is_numeric($channelid) ? $channelid : 1;
$aid = isset($aid) && is_numeric($aid) ? $aid : 0;
$mtypesid = isset($mtypesid) && is_numeric($mtypesid) ? $mtypesid : 0;
/*-------------
function _ShowForm(){ }
--------------*/
if(empty($dopost))
{
//璇诲彇褰掓。淇℃伅
$arcQuery = "Select arc.*,ch.addtable,ch.fieldset,m.mtypeid
From `#@__archives` arc left join `#@__channeltype` ch on ch.id=arc.channel
left join `#@__member_archives` as m on arc.id = m.id
where arc.id='$aid' And arc.mid='".$cfg_ml->M_ID."'; ";
$row = $dsql->GetOne($arcQuery);
if(!is_array($row))
{
ShowMsg("璇诲彇鏂囨。淇℃伅鍑洪敊!","-1");
exit();
}
else if($row['arcrank']>=0 && $row['arcsta']==-1)
{
$dtime = time();
$maxtime = $cfg_mb_editday * 24 *3600;
if($dtime - $row['senddate'] > $maxtime)
{
ShowMsg("杩欑瘒鏂囨。宸茬粡閿佸畾锛屼綘涓嶈兘鍐嶄慨鏀瑰畠锛
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -