@@ -43,7 +43,7 @@ | |||||
<td>自定义搜索结果页模板:</td> | <td>自定义搜索结果页模板:</td> | ||||
<td> | <td> | ||||
<input type="text" name="template" value="<?php echo $template;?>" class="admin-input-lg"> | <input type="text" name="template" value="<?php echo $template;?>" class="admin-input-lg"> | ||||
<span>(填写文件名,且文件必须在templets/default目录)</span> | |||||
<span>(填写文件名,且文件必须在theme/apps目录)</span> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
@@ -179,10 +179,10 @@ $dlist = new DataListCP(); | |||||
$dlist->pagesize = 30; | $dlist->pagesize = 30; | ||||
$dlist->SetParameter("hash", $sqlhash); | $dlist->SetParameter("hash", $sqlhash); | ||||
$dlist->SetParameter("mid", $mid); | $dlist->SetParameter("mid", $mid); | ||||
if (file_exists(DEDEROOT."/theme/templets/$template")) { | |||||
$templatefile = DEDEROOT."/theme/templets/$template"; | |||||
if (file_exists(DEDEROOT."/theme/dedebiz/$template")) { | |||||
$templatefile = DEDEROOT."/theme/dedebiz/$template"; | |||||
} else { | } else { | ||||
$templatefile = DEDEROOT."/theme/templets/advancedsearch.htm"; | |||||
$templatefile = DEDEROOT."/theme/apps/advancedsearch.htm"; | |||||
} | } | ||||
$dlist->SetTemplate($templatefile); | $dlist->SetTemplate($templatefile); | ||||
$dlist->SetSource($query); | $dlist->SetSource($query); | ||||
@@ -21,7 +21,7 @@ $diy = new diyform($diyid); | |||||
if ($action == 'post') { | if ($action == 'post') { | ||||
if (empty($do)) { | if (empty($do)) { | ||||
$postform = $diy->getForm(true); | $postform = $diy->getForm(true); | ||||
include DEDEROOT."/theme/plus/{$diy->postTemplate}"; | |||||
include DEDEROOT."/theme/apps/{$diy->postTemplate}"; | |||||
exit(); | exit(); | ||||
} elseif ($do == 2) { | } elseif ($do == 2) { | ||||
$dede_fields = empty($dede_fields) ? '' : trim($dede_fields); | $dede_fields = empty($dede_fields) ? '' : trim($dede_fields); | ||||
@@ -94,7 +94,7 @@ if ($action == 'post') { | |||||
$datalist->pagesize = 10; | $datalist->pagesize = 10; | ||||
$datalist->SetParameter('action', 'list'); | $datalist->SetParameter('action', 'list'); | ||||
$datalist->SetParameter('diyid', $diyid); | $datalist->SetParameter('diyid', $diyid); | ||||
$datalist->SetTemplate(DEDEINC."/../theme/plus/{$diy->listTemplate}"); | |||||
$datalist->SetTemplate(DEDEINC."/../theme/apps/{$diy->listTemplate}"); | |||||
$datalist->SetSource($query); | $datalist->SetSource($query); | ||||
$fieldlist = $diy->getFieldList(); | $fieldlist = $diy->getFieldList(); | ||||
$datalist->Display(); | $datalist->Display(); | ||||
@@ -119,6 +119,6 @@ if ($action == 'post') { | |||||
exit(); | exit(); | ||||
} | } | ||||
$fieldlist = $diy->getFieldList(); | $fieldlist = $diy->getFieldList(); | ||||
include DEDEROOT."/theme/plus/{$diy->viewTemplate}"; | |||||
include DEDEROOT."/theme/apps/{$diy->viewTemplate}"; | |||||
} | } | ||||
?> | ?> |
@@ -37,7 +37,7 @@ if ($open == 0) { | |||||
include_once(DEDEINC.'/taglib/channel/softlinks.lib.php'); | include_once(DEDEINC.'/taglib/channel/softlinks.lib.php'); | ||||
$ctag = ''; | $ctag = ''; | ||||
$downlinks = ch_softlinks($row[$vname], $ctag, $cu, '', TRUE); | $downlinks = ch_softlinks($row[$vname], $ctag, $cu, '', TRUE); | ||||
require_once(DEDETEMPLATE.'/plus/download_links_templet.htm'); | |||||
require_once(DEDETEMPLATE.'/apps/download_links_templet.htm'); | |||||
exit(); | exit(); | ||||
} | } | ||||
//提供软件给会员下载旧模式 | //提供软件给会员下载旧模式 | ||||
@@ -167,7 +167,7 @@ else if ($open == 2) { | |||||
$memberTypes[0] = "游客"; | $memberTypes[0] = "游客"; | ||||
$msgtitle = "您没有权限下载软件:{$arctitle}"; | $msgtitle = "您没有权限下载软件:{$arctitle}"; | ||||
$moremsg = "这个软件需要<span class='text-primary'>".$memberTypes[$needRank]."</span>才能下载,您目前等级是<span class='text-primary'>".$memberTypes[$cfg_ml->M_Rank]."</span>"; | $moremsg = "这个软件需要<span class='text-primary'>".$memberTypes[$needRank]."</span>才能下载,您目前等级是<span class='text-primary'>".$memberTypes[$cfg_ml->M_Rank]."</span>"; | ||||
include_once(DEDETEMPLATE.'/plus/view_msg.htm'); | |||||
include_once(DEDETEMPLATE.'/apps/view_msg.htm'); | |||||
exit(); | exit(); | ||||
} | } | ||||
//以下为正常情况,自动扣点数 | //以下为正常情况,自动扣点数 | ||||
@@ -181,7 +181,7 @@ else if ($open == 2) { | |||||
if ($needMoney > $cfg_ml->M_Money || $cfg_ml->M_Money == '') { | if ($needMoney > $cfg_ml->M_Money || $cfg_ml->M_Money == '') { | ||||
$msgtitle = "您没有权限下载软件:{$arctitle}"; | $msgtitle = "您没有权限下载软件:{$arctitle}"; | ||||
$moremsg = "该软件需要<span class='text-primary'>".$needMoney."</span>金币才能下载,您目前金币<span class='text-primary'>".$cfg_ml->M_Money."</span>"; | $moremsg = "该软件需要<span class='text-primary'>".$needMoney."</span>金币才能下载,您目前金币<span class='text-primary'>".$cfg_ml->M_Money."</span>"; | ||||
include_once(DEDETEMPLATE.'/plus/view_msg.htm'); | |||||
include_once(DEDETEMPLATE.'/apps/view_msg.htm'); | |||||
exit(0); | exit(0); | ||||
} | } | ||||
//有足够金币,记录会员信息 | //有足够金币,记录会员信息 | ||||
@@ -30,9 +30,9 @@ if ($dopost == 'save') { | |||||
exit; | exit; | ||||
} elseif ($dopost == 'add') { | } elseif ($dopost == 'add') { | ||||
//显示模板简单PHP文件 | //显示模板简单PHP文件 | ||||
include_once(DEDETEMPLATE.'/plus/flink-add.htm'); | |||||
include_once(DEDETEMPLATE.'/apps/flink-add.htm'); | |||||
exit; | exit; | ||||
} | } | ||||
//显示模板简单PHP文件 | //显示模板简单PHP文件 | ||||
include_once(DEDETEMPLATE.'/plus/flink-list.htm'); | |||||
include_once(DEDETEMPLATE.'/apps/flink-list.htm'); | |||||
?> | ?> |
@@ -10,5 +10,5 @@ | |||||
*/ | */ | ||||
require_once(dirname(__FILE__).'/../system/common.inc.php'); | require_once(dirname(__FILE__).'/../system/common.inc.php'); | ||||
require_once(DEDEINC.'/typelink/typelink.class.php'); | require_once(DEDEINC.'/typelink/typelink.class.php'); | ||||
require_once(DEDETEMPLATE.'/plus/heightsearch.htm'); | |||||
require_once(DEDETEMPLATE.'/apps/heightsearch.htm'); | |||||
?> | ?> |
@@ -48,7 +48,7 @@ if ($tinfos['issystem'] == -1) { | |||||
$memberTypes[0] = "游客或没权限会员"; | $memberTypes[0] = "游客或没权限会员"; | ||||
$msgtitle = "您没有权限浏览栏目:{$lv->Fields['typename']} "; | $msgtitle = "您没有权限浏览栏目:{$lv->Fields['typename']} "; | ||||
$moremsg = "该栏目需要<span class='text-primary'>".$memberTypes[$lv->Fields['corank']]."</span>才能浏览,您目前等级是<span class='text-primary'>".$memberTypes[$cfg_ml->M_Rank]."</span>"; | $moremsg = "该栏目需要<span class='text-primary'>".$memberTypes[$lv->Fields['corank']]."</span>才能浏览,您目前等级是<span class='text-primary'>".$memberTypes[$cfg_ml->M_Rank]."</span>"; | ||||
include_once(DEDETEMPLATE.'/plus/view_msg_catalog.htm'); | |||||
include_once(DEDETEMPLATE.'/apps/view_msg_catalog.htm'); | |||||
exit(); | exit(); | ||||
} | } | ||||
} | } | ||||
@@ -66,5 +66,5 @@ if ($arcRow['aid'] == '') { | |||||
} | } | ||||
extract($arcRow, EXTR_OVERWRITE); | extract($arcRow, EXTR_OVERWRITE); | ||||
//显示模板简单PHP文件 | //显示模板简单PHP文件 | ||||
include(DEDETEMPLATE.'/plus/recommend.htm'); | |||||
include(DEDETEMPLATE.'/apps/recommend.htm'); | |||||
?> | ?> |
@@ -74,6 +74,6 @@ if ($nextSrc != '') { | |||||
} else { | } else { | ||||
$pageGuide .= " | 没有了"; | $pageGuide .= " | 没有了"; | ||||
} | } | ||||
require_once(DEDETEMPLATE.'/plus/showphoto.htm'); | |||||
require_once(DEDETEMPLATE.'/apps/showphoto.htm'); | |||||
exit(); | exit(); | ||||
?> | ?> |
@@ -44,7 +44,7 @@ if ($needMoney > 0 || $needRank > 1) { | |||||
$memberTypes[0] = "游客或没权限会员"; | $memberTypes[0] = "游客或没权限会员"; | ||||
$msgtitle = "您没有权限浏览文档:{$arctitle} "; | $msgtitle = "您没有权限浏览文档:{$arctitle} "; | ||||
$moremsg = "该文档需要<span class='text-primary'>".$memberTypes[$needRank]."</span>才能浏览,您目前等级是<span class='text-primary'>".$memberTypes[$cfg_ml->M_Rank]."</span>"; | $moremsg = "该文档需要<span class='text-primary'>".$memberTypes[$needRank]."</span>才能浏览,您目前等级是<span class='text-primary'>".$memberTypes[$cfg_ml->M_Rank]."</span>"; | ||||
include_once(DEDETEMPLATE.'/plus/view_msg.htm'); | |||||
include_once(DEDETEMPLATE.'/apps/view_msg.htm'); | |||||
exit(); | exit(); | ||||
} | } | ||||
//需要金币的情况 | //需要金币的情况 | ||||
@@ -56,7 +56,7 @@ if ($needMoney > 0 || $needRank > 1) { | |||||
if ($cfg_ml->M_Money == '' || $needMoney > $cfg_ml->M_Money) { | if ($cfg_ml->M_Money == '' || $needMoney > $cfg_ml->M_Money) { | ||||
$msgtitle = "您没有权限浏览文档:{$arctitle} "; | $msgtitle = "您没有权限浏览文档:{$arctitle} "; | ||||
$moremsg = "该文档需要<span class='text-primary'>".$needMoney."</span>金币才能浏览,您目前金币<span class='text-primary'>".$cfg_ml->M_Money."</span>,<a class='btn btn-success btn-sm' href='{$GLOBALS['cfg_cmsurl']}/user/buy.php' target='_blank'>前去充值</a>"; | $moremsg = "该文档需要<span class='text-primary'>".$needMoney."</span>金币才能浏览,您目前金币<span class='text-primary'>".$cfg_ml->M_Money."</span>,<a class='btn btn-success btn-sm' href='{$GLOBALS['cfg_cmsurl']}/user/buy.php' target='_blank'>前去充值</a>"; | ||||
include_once(DEDETEMPLATE.'/plus/view_msg.htm'); | |||||
include_once(DEDETEMPLATE.'/apps/view_msg.htm'); | |||||
$arc->Close(); | $arc->Close(); | ||||
exit(); | exit(); | ||||
} else { | } else { | ||||
@@ -77,7 +77,7 @@ if ($needMoney > 0 || $needRank > 1) { | |||||
} | } | ||||
$msgtitle = "扣金币购买阅读"; | $msgtitle = "扣金币购买阅读"; | ||||
$moremsg = "该文档需要付费<span class='text-primary'>".$needMoney."</span>金币,您目前金币<span class='text-primary'>".$cfg_ml->M_Money."</span>,<a class='btn btn-success btn-sm' href='{$GLOBALS['cfg_cmsurl']}/apps/view.php?aid=".$aid."&dopost=buy' target='_blank'>确认付点阅读</a>"; | $moremsg = "该文档需要付费<span class='text-primary'>".$needMoney."</span>金币,您目前金币<span class='text-primary'>".$cfg_ml->M_Money."</span>,<a class='btn btn-success btn-sm' href='{$GLOBALS['cfg_cmsurl']}/apps/view.php?aid=".$aid."&dopost=buy' target='_blank'>确认付点阅读</a>"; | ||||
include_once($cfg_basedir.$cfg_templets_dir."/plus/view_msg.htm"); | |||||
include_once($cfg_basedir.$cfg_templets_dir."/apps/view_msg.htm"); | |||||
$arc->Close(); | $arc->Close(); | ||||
exit(); | exit(); | ||||
} | } | ||||
@@ -58,5 +58,5 @@ if ($dopost == 'view') { | |||||
} | } | ||||
} | } | ||||
//显示模板简单PHP文件 | //显示模板简单PHP文件 | ||||
include(DEDETEMPLATE.'/plus/vote.htm'); | |||||
include(DEDETEMPLATE.'/apps/vote.htm'); | |||||
?> | ?> |
@@ -47,9 +47,9 @@ class diyform | |||||
$this->name = $diyinfo['name']; | $this->name = $diyinfo['name']; | ||||
$this->table = $diyinfo['table']; | $this->table = $diyinfo['table']; | ||||
$this->public = $diyinfo['public']; | $this->public = $diyinfo['public']; | ||||
$this->listTemplate = $diyinfo['listtemplate'] != '' && file_exists(DEDETEMPLATE.'/plus/'.$diyinfo['listtemplate']) ? $diyinfo['listtemplate'] : 'list_diyform.htm'; | |||||
$this->viewTemplate = $diyinfo['viewtemplate'] != '' && file_exists(DEDETEMPLATE.'/plus/'.$diyinfo['viewtemplate']) ? $diyinfo['viewtemplate'] : 'view_diyform.htm';; | |||||
$this->postTemplate = $diyinfo['posttemplate'] != '' && file_exists(DEDETEMPLATE.'/plus/'.$diyinfo['posttemplate']) ? $diyinfo['posttemplate'] : 'post_diyform.htm';; | |||||
$this->listTemplate = $diyinfo['listtemplate'] != '' && file_exists(DEDETEMPLATE.'/apps/'.$diyinfo['listtemplate']) ? $diyinfo['listtemplate'] : 'list_diyform.htm'; | |||||
$this->viewTemplate = $diyinfo['viewtemplate'] != '' && file_exists(DEDETEMPLATE.'/apps/'.$diyinfo['viewtemplate']) ? $diyinfo['viewtemplate'] : 'view_diyform.htm';; | |||||
$this->postTemplate = $diyinfo['posttemplate'] != '' && file_exists(DEDETEMPLATE.'/apps/'.$diyinfo['posttemplate']) ? $diyinfo['posttemplate'] : 'post_diyform.htm';; | |||||
} | } | ||||
/** | /** | ||||
* 获取表单 | * 获取表单 | ||||
@@ -220,7 +220,7 @@ class OxWindow | |||||
} | } | ||||
$ctp = new DedeTagParse(); | $ctp = new DedeTagParse(); | ||||
if ($modfile == '') { | if ($modfile == '') { | ||||
$ctp->LoadTemplate($cfg_basedir.$cfg_templets_dir.'/plus/win_templet.htm'); | |||||
$ctp->LoadTemplate($cfg_basedir.$cfg_templets_dir.'/apps/win_templet.htm'); | |||||
} else { | } else { | ||||
$ctp->LoadTemplate($modfile); | $ctp->LoadTemplate($modfile); | ||||
} | } | ||||