📄 co_export.php
字号:
<?php
require_once(dirname(__FILE__)."/config.php");
CheckPurview('co_Export');
if(empty($dopost))
{
$dopost = '';
}
if($dopost!='done')
{
require_once(DEDEADMIN."/inc/inc_catalog_options.php");
$totalcc = $channelid = $usemore = 0;
if(!empty($nid))
{
$mrow = $dsql->GetOne("Select count(*) as dd From `#@__co_htmls` where nid='$nid' And isdown='1' ");
$totalcc = $mrow['dd'];
$rrow = $dsql->GetOne("Select channelid,usemore From `#@__co_note` where nid='$nid' ");
$channelid = $rrow['channelid'];
$usemore = $rrow['usemore'];
}
else
{
$mrow = $dsql->GetOne("Select count(*) as dd From `#@__co_htmls` where isdown='1' ");
$totalcc = $mrow['dd'];
}
include DedeInclude("templets/co_export.htm");
exit();
}
else
{
require_once(DEDEINC.'/dedecollection.class.php');
$channelid = isset($channelid) && is_numeric($channelid) ? $channelid : 0;
$typeid = isset($typeid) && is_numeric($typeid) ? $typeid : 0;
$pageno = isset($pageno) && is_numeric($pageno) ? $pageno : 1;
$startid = isset($startid) && is_numeric($startid) ? $startid : 0;
$endid = isset($endid) && is_numeric($endid) ? $endid : 0;
if(!isset($makehtml))
{
$makehtml = 0;
}
if(!isset($onlytitle))
{
$onlytitle = 0;
}
if(!isset($usetitle))
{
$usetitle = 0;
}
if(!isset($autotype))
{
$autotype = 0;
}
$co = new DedeCollection();
$co->LoadNote($nid);
$orderway = (($co->noteInfos['cosort']=='desc' || $co->noteInfos['cosort']=='asc') ? $co->noteInfos['cosort'] : 'desc');
if($channelid==0 && $typeid==0)
{
ShowMsg('璇锋寚瀹氶粯璁ゅ
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -