Browse Source

移除无效模块文件

tags/6.0.0
tianya 3 years ago
parent
commit
0d9d375876
35 changed files with 0 additions and 3958 deletions
  1. +0
    -67
      src/dede/makehtml_story.php
  2. +0
    -44
      src/dede/story_add.php
  3. +0
    -81
      src/dede/story_add_action.php
  4. +0
    -61
      src/dede/story_add_content.php
  5. +0
    -124
      src/dede/story_add_content_action.php
  6. +0
    -59
      src/dede/story_add_photo.php
  7. +0
    -141
      src/dede/story_add_photo_action.php
  8. +0
    -85
      src/dede/story_books.php
  9. +0
    -211
      src/dede/story_catalog.php
  10. +0
    -55
      src/dede/story_content_edit.php
  11. +0
    -160
      src/dede/story_do.php
  12. +0
    -37
      src/dede/story_edit.php
  13. +0
    -98
      src/dede/story_edit_action.php
  14. +0
    -94
      src/dede/story_edit_content_action.php
  15. +0
    -112
      src/dede/story_edit_photo_action.php
  16. +0
    -30
      src/dede/story_feedback_edit.php
  17. +0
    -87
      src/dede/story_feedback_main.php
  18. +0
    -39
      src/dede/story_list_chapter.php
  19. +0
    -49
      src/dede/story_list_content.php
  20. +0
    -54
      src/dede/story_photo_edit.php
  21. +0
    -94
      src/dede/templets/makehtml_story.htm
  22. +0
    -131
      src/dede/templets/plus_bshare.htm
  23. +0
    -186
      src/dede/templets/plus_bshare_state.htm
  24. +0
    -181
      src/dede/templets/story_add.htm
  25. +0
    -134
      src/dede/templets/story_add_content.htm
  26. +0
    -193
      src/dede/templets/story_add_photo.htm
  27. +0
    -165
      src/dede/templets/story_books.htm
  28. +0
    -155
      src/dede/templets/story_catalog.htm
  29. +0
    -135
      src/dede/templets/story_content_edit.htm
  30. +0
    -191
      src/dede/templets/story_edit.htm
  31. +0
    -83
      src/dede/templets/story_feedback_edit.htm
  32. +0
    -172
      src/dede/templets/story_feedback_main.htm
  33. +0
    -152
      src/dede/templets/story_list_chapter.htm
  34. +0
    -135
      src/dede/templets/story_list_content.htm
  35. +0
    -163
      src/dede/templets/story_photo_edit.htm

+ 0
- 67
src/dede/makehtml_story.php View File

@@ -1,67 +0,0 @@
<?php
/**
* Enter description here...
*
* @author Administrator
* @package defaultPackage
* @rcsfile $RCSfile: makehtml_story.php,v $
* @revision $Revision: 1.1 $
* @date $Date: 2008/12/11 02:09:55 $
*/
require_once(dirname(__FILE__)."/config.php");
require_once(DEDEROOT.'/book/include/story.view.class.php');
CheckPurview('sys_MakeHtml');
if(!isset($action)) $action = '';
if(empty($startid)) $startid = 0;
//更新HTML操作
if($action=='make')
{
if(empty($start)) $start = 0;
$addquery = " bid>='$startid' ";
if(!empty($endid) && $endid>$startid ) $addquery .= " And bid<='$endid' ";
if(!empty($catid)) $addquery .= " And (catid='$catid' Or bcatid='$catid') ";
if(empty($makenum)) $makenum = 50;
$dsql->SetQuery("Select SQL_CALC_FOUND_ROWS bid From #@__story_books where $addquery limit $start,$makenum ");
$dsql->Execute();
$n = 0;
$row = $dsql->GetOne("SELECT FOUND_ROWS() as dd ");
$limitrow = $row['dd'];
while($row = $dsql->GetObject()){
$start++;
$bv = new BookView($row->bid,'book');
$artUrl = $bv->MakeHtml(false);
//echo "更新: <a href='$artUrl' target='_blank'>{$bv->Fields['bookname']}</a> OK!<br />\r\n";
//echo $row->bid." - ";
}
if($start>=$limitrow){
ShowMsg("完成所有HTML的更新!","javascript:;");
}
else{
$hasMake = $limitrow - $start;
if($limitrow>0) $proportion = 100 - ceil(($hasMake / $limitrow) * 100);
ShowMsg("已更新至:{$proportion}% 继续更新其它内容...","makehtml_story.php?start={$start}&action=make&startid={$startid}&endid={$endid}&catid={$catid}&makenum={$makenum}");
}
exit();
}
//读取所有栏目
$dsql->SetQuery("Select id,classname,pid,rank,booktype From #@__story_catalog order by rank asc");
$dsql->Execute();
$ranks = Array();
$btypes = Array();
$stypes = Array();
$booktypes = Array();
while($row = $dsql->GetArray()){
if($row['pid']==0) $btypes[$row['id']] = $row['classname'];
else $stypes[$row['pid']][$row['id']] = $row['classname'];
$ranks[$row['id']] = $row['rank'];
if($row['booktype']=='0') $booktypes[$row['id']] = '小说';
else $booktypes[$row['id']] = '漫画';
}
$lastid = $row['id'];
require_once(dirname(__FILE__)."/templets/makehtml_story.htm");
?>

+ 0
- 44
src/dede/story_add.php View File

@@ -1,44 +0,0 @@
<?php
/**
* @version $Id: story_add.php 1 9:02 2010年9月25日Z 蓝色随想 $
* @package DedeCMS.Module.Book
* @copyright Copyright (c) 2007 - 2020, DesDev, Inc.
* @license http://help.dedecms.com/usersguide/license.html
* @link http://www.dedecms.com
*/
require_once(dirname(__FILE__). "/config.php");
CheckPurview('story_Catalog');
if(!isset($action)) $action = '';
$keywords = $writer = '';
//读取所有栏目
$dsql->SetQuery("SELECT id,classname,pid,rank,booktype FROM #@__story_catalog ORDER BY rank ASC");
$dsql->Execute();
$ranks = Array();
$btypes = Array();
$stypes = Array();
$booktypes = Array();
while($row = $dsql->GetArray())
{
if($row['pid']==0)
{
$btypes[$row['id']] = $row['classname'];
}
else
{
$stypes[$row['pid']][$row['id']] = $row['classname'];
}
$ranks[$row['id']] = $row['rank'];
if($row['booktype']=='0')
{
$booktypes[$row['id']] = '小说';
}
else
{
$booktypes[$row['id']] = '漫画';
}
}
$lastid = $row['id'];
$msg = '';
require_once(dirname(__FILE__). "/templets/story_add.htm");

+ 0
- 81
src/dede/story_add_action.php View File

@@ -1,81 +0,0 @@
<?php
/**
* @version $Id: story_add_action.php 1 9:02 2010年9月25日Z 蓝色随想 $
* @package DedeCMS.Module.Book
* @copyright Copyright (c) 2007 - 2020, DesDev, Inc.
* @license http://help.dedecms.com/usersguide/license.html
* @link http://www.dedecms.com
*/
require_once(dirname(__FILE__). "/config.php");
CheckPurview('story_New');
require_once(DEDEINC. "/image.func.php");
require_once(DEDEINC. "/oxwindow.class.php");
require_once(dirname(__FILE__). "/inc/inc_archives_functions.php");
if(!isset($iscommend))
{
$iscommend = 0;
}
if($catid==0)
{
ShowMsg("请指定图书所属栏目!", "-1");
exit();
}
//获得父栏目
$nrow = $dsql->GetOne("SELECT * FROM #@__story_catalog WHERE id='$catid' ");
$bcatid = $nrow['pid'];
$booktype = $nrow['booktype'];
$pubdate = GetMkTime($pubdate);
$bookname = cn_substr($bookname,50);
if($keywords!="") $keywords = trim(cn_substr($keywords,60));
if(empty($author))$author=$cuserLogin->getUserName();
//处理上传的缩略图
if($litpic != ""){
$litpic = GetDDImage('litpic',$litpicname,0);
}
$adminID = $cuserLogin->getUserID();
//自动摘要
if($description=="" && $cfg_auot_description>0)
{
$description = stripslashes(cn_substr(html2text($body),$cfg_auot_description));
$description = addslashes($description);
}
$inQuery = "
INSERT INTO `#@__story_books`(`catid`,`bcatid`,`booktype`,`iscommend`,`click`,`freenum`,`bookname`,`author`,`mid`,`litpic`,`pubdate`,`lastpost`,`postnum`,`lastfeedback`,`feedbacknum`,`weekcc`,`monthcc`,`weekup`,`monthup`,`description`,`body`,`keywords`,`userip`,`senddate` ,`arcrank`,`goodpost`,`badpost`,`notpost`) VALUES ('$catid','$bcatid','$booktype', '$iscommend', '$click', '$freenum', '$bookname', '$author', '0', '$litpic', '$pubdate', '$pubdate', '0', '0', '0', '0', '0', '0', '0', '$description' , '$body' , '$keywords', '','".time()."','$arcrank','0','0','0')";
if(!$dsql->ExecuteNoneQuery($inQuery))
{
ShowMsg("把数据保存到数据库时出错,请检查!","-1");
exit();
}
$arcID = $dsql->GetLastID();
//生成HTML
require_once(DEDEROOT. '/book/include/story.view.class.php');
$bv = new BookView($arcID, 'book');
$artUrl = $bv->MakeHtml();
$bv->Close();
//返回成功信息
$msg = "
  请选择你的后续操作:
<a href='./story_add.php?catid=$catid'><u>继续发布图书</u></a>
&nbsp;&nbsp;
<a href='$artUrl' target='_blank'><u>查看图书</u></a>
&nbsp;&nbsp;
<a href='./story_add_content.php?bookid={$arcID}'><u>增加图书内容</u></a>
&nbsp;&nbsp;
<a href='./story_books.php'><u>管理图书</u></a>
";
$wintitle = "成功发布图书!";
$wecome_info = "连载管理::发布图书";
$win = new OxWindow();
$win->AddTitle("成功发布一本图书:");
$win->AddMsgItem($msg);
$winform = $win->GetWindow("hand", "&nbsp;", false);
$win->Display();

+ 0
- 61
src/dede/story_add_content.php View File

@@ -1,61 +0,0 @@
<?php
/**
* @version $Id: story_add_content.php 1 9:02 2010年9月25日Z 蓝色随想 $
* @package DedeCMS.Module.Book
* @copyright Copyright (c) 2007 - 2020, DesDev, Inc.
* @license http://help.dedecms.com/usersguide/license.html
* @link http://www.dedecms.com
*/
require_once(dirname(__FILE__). "/config.php");
CheckPurview('story_New');
if(!isset($action)) $action = '';
if(empty($bookid))
{
ShowMsg("参数错误!","-1");
exit();
}
$bookinfos = $dsql->GetOne("SELECT catid,bcatid,bookname,booktype FROM #@__story_books WHERE bid='$bookid' ");
if(empty($bookinfos['booktype'])) $bookinfos['booktype'] = '';
if($bookinfos['booktype']==1)
{
header("location:story_add_photo.php?bookid={$bookid}");
exit();
}
//读取所有栏目
$dsql->SetQuery("SELECT id,classname,pid,rank FROM #@__story_catalog ORDER BY rank ASC");
$dsql->Execute();
$ranks = Array();
$btypes = Array();
$stypes = Array();
while($row = $dsql->GetArray())
{
if($row['pid']==0)
{
$btypes[$row['id']] = $row['classname'];
}
else
{
$stypes[$row['pid']][$row['id']] = $row['classname'];
}
$ranks[$row['id']] = $row['rank'];
}
$lastid = $row['id'];
$msg = '';
$dsql->SetQuery("SELECT id,chapnum,chaptername FROM #@__story_chapter WHERE bookid='$bookid' ORDER BY chapnum DESC");
$dsql->Execute();
$chapters = Array();
$chapnums = Array();
while($row = $dsql->GetArray())
{
$chapters[$row['id']] = $row['chaptername'];
$chapnums[$row['id']] = $row['chapnum'];
}
$catid = $bookinfos['catid'];
$bcatid = $bookinfos['bcatid'];
$bookname = $bookinfos['bookname'];
$booktype = $bookinfos['booktype'];
require_once(DEDEADMIN. '/templets/story_add_content.htm');

+ 0
- 124
src/dede/story_add_content_action.php View File

@@ -1,124 +0,0 @@
<?php
/**
* @version $Id: story_add_content_action.php 1 9:02 2010年9月25日Z 蓝色随想 $
* @package DedeCMS.Module.Book
* @copyright Copyright (c) 2007 - 2020, DesDev, Inc.
* @license http://help.dedecms.com/usersguide/license.html
* @link http://www.dedecms.com
*/
require_once(dirname(__FILE__). "/config.php");
require_once(DEDEINC. "/oxwindow.class.php");
require_once(DEDEROOT. '/book/include/story.func.php');
if( empty($chapterid)
|| (!empty($addchapter) && !empty($chapternew)) )
{
if(empty($chapternew))
{
ShowMsg("由于你发布的内容没选择章节,系统拒绝发布!", "-1");
exit();
}
$row = $dsql->GetOne("SELECT * FROM #@__story_chapter WHERE bookid='$bookid' ORDER BY chapnum desc");
if(is_array($row))
{
$nchapnum = $row['chapnum']+1;
}
else
{
$nchapnum = 1;
}
$query = "INSERT INTO `#@__story_chapter`(`bookid`,`catid`,`chapnum`,`mid`,`chaptername`,`bookname`)
VALUES ('$bookid', '$catid', '$nchapnum', '0', '$chapternew','$bookname');";
$rs = $dsql->ExecuteNoneQuery($query);
if($rs)
{
$chapterid = $dsql->GetLastID();
}
else
{
ShowMsg("增加章节失败,请检查原因!","-1");
exit();
}
}
//获得父栏目
$nrow = $dsql->GetOne("SELECT * FROM #@__story_catalog WHERE id='$catid' ");
$bcatid = $nrow['pid'];
$booktype = $nrow['booktype'];
if(empty($bcatid))
{
$bcatid = 0;
}
if(empty($booktype))
{
$booktype = 0;
}
$addtime = time();
//处理上传的缩略图
//$litpic = GetDDImage('litpic',$litpicname,0);
$adminID = $cuserLogin->getUserID();
//本章最后一个小说的排列顺次序
$lrow = $dsql->GetOne("SELECT sortid From #@__story_content WHERE bookid='$bookid' AND chapterid='$chapterid' ORDER BY sortid DESC");
if(empty($lrow))
{
$sortid = 1;
}
else
{
$sortid = $lrow['sortid']+1;
}
$inQuery = "
INSERT INTO `#@__story_content`(`title`,`bookname`,`chapterid`,`catid`,`bcatid`,`bookid`,`booktype`,`sortid`,
`mid`,`bigpic`,`body`,`addtime`)
VALUES ('$title','$bookname', '$chapterid', '$catid','$bcatid', '$bookid','$booktype','$sortid', '0', '' , '', '$addtime');";
if(!$dsql->ExecuteNoneQuery($inQuery))
{
ShowMsg("把数据保存到数据库时出错,请检查!".$dsql->GetError().$inQuery,"-1");
$dsql->Close();
exit();
}
$arcID = $dsql->GetLastID();
WriteBookText($arcID,$body);
//更新图书的内容数
$row = $dsql->GetOne("Select count(id) AS dd FROM #@__story_content WHERE bookid = '$bookid' ");
$dsql->ExecuteNoneQuery("UPDATE #@__story_books SET postnum='{$row['dd']}',lastpost='".time()."' WHERE bid='$bookid' ");
//更新章节的内容数
$row = $dsql->GetOne("SELECT count(id) AS dd FROM #@__story_content WHERE bookid = '$bookid' AND chapterid='$chapterid' ");
$dsql->ExecuteNoneQuery("UPDATE #@__story_chapter SET postnum='{$row['dd']}' WHERE id='$chapterid' ");
//生成HTML
//$artUrl = MakeArt($arcID,true);
if(empty($artcontentUrl)) $artcontentUrl = '';
if($artcontentUrl=="") $artcontentUrl = $cfg_cmspath."/book/story.php?id=$arcID";
require_once(DEDEROOT.'/book/include/story.view.class.php');
$bv = new BookView($bookid, 'book');
$artUrl = $bv->MakeHtml();
$bv->Close();
//返回成功信息
$msg = "
  请选择你的后续操作:
<a href='story_add_content.php?bookid={$bookid}'><u>继续发布</u></a>
&nbsp;&nbsp;
<a href='$artUrl' target='_blank'><u>预览小说</u></a>
&nbsp;&nbsp;
<a href='$artcontentUrl' target='_blank'><u>预览内容</u></a>
&nbsp;&nbsp;
<a href='story_list_content.php?bookid={$bookid}'><u>管理所有内容</u></a>
&nbsp;&nbsp;
<a href='story_books.php'><u>管理所有图书</u></a>
";
$wintitle = "成功发布文章!";
$wecome_info = "连载管理::发布文章";
$win = new OxWindow();
$win->AddTitle("成功发布文章:");
$win->AddMsgItem($msg);
$winform = $win->GetWindow("hand","&nbsp;",false);
$win->Display();
//ClearAllLink();

+ 0
- 59
src/dede/story_add_photo.php View File

@@ -1,59 +0,0 @@
<?php
/**
* @version $Id: story_add_photo.php 1 9:02 2010年9月25日Z 蓝色随想 $
* @package DedeCMS.Module.Book
* @copyright Copyright (c) 2007 - 2020, DesDev, Inc.
* @license http://help.dedecms.com/usersguide/license.html
* @link http://www.dedecms.com
*/
require_once(dirname(__FILE__). "/config.php");
CheckPurview('story_New');
if(!isset($action)) $action = '';
if(empty($bookid))
{
ShowMsg("参数错误!","-1");
exit();
}
$bookinfos = $dsql->GetOne("SELECT catid,bcatid,bookname,booktype FROM #@__story_books WHERE bid='$bookid' ");
if($bookinfos['booktype']==0)
{
header("location:story_add_content.php?bookid={$bookid}");
exit();
}
//读取所有栏目
$dsql->SetQuery("SELECT id,classname,pid,rank FROM #@__story_catalog ORDER BY rank ASC");
$dsql->Execute();
$ranks = Array();
$btypes = Array();
$stypes = Array();
while($row = $dsql->GetArray())
{
if($row['pid']==0)
{
$btypes[$row['id']] = $row['classname'];
}
else
{
$stypes[$row['pid']][$row['id']] = $row['classname'];
}
$ranks[$row['id']] = $row['rank'];
}
$lastid = $row['id'];
$msg = '';
$dsql->SetQuery("SELECT id,chapnum,chaptername FROM #@__story_chapter WHERE bookid='$bookid' ORDER BY chapnum DESC");
$dsql->Execute();
$chapters = Array();
$chapnums = Array();
while($row = $dsql->GetArray())
{
$chapters[$row['id']] = $row['chaptername'];
$chapnums[$row['id']] = $row['chapnum'];
}
$catid = $bookinfos['catid'];
$bcatid = $bookinfos['bcatid'];
$bookname = $bookinfos['bookname'];
$booktype = $bookinfos['booktype'];
require_once DedeInclude('/templets/story_add_photo.htm');

+ 0
- 141
src/dede/story_add_photo_action.php View File

@@ -1,141 +0,0 @@
<?php
/**
* @version $Id: story_add_photo_action.php 1 9:02 2010年9月25日Z 蓝色随想 $
* @package DedeCMS.Module.Book
* @copyright Copyright (c) 2007 - 2020, DesDev, Inc.
* @license http://help.dedecms.com/usersguide/license.html
* @link http://www.dedecms.com
*/
require_once(dirname(__FILE__). "/config.php");
CheckPurview('story_New');
require_once(DEDEINC. "/image.func.php");
require_once(DEDEINC. "/oxwindow.class.php");
require_once(DEDEADMIN. '/inc/inc_archives_functions.php');
if( empty($chapterid)
|| (!empty($addchapter) && !empty($chapternew)) )
{
if(empty($chapternew))
{
ShowMsg("由于你发布的内容没选择章节,系统拒绝发布!","-1");
exit();
}
$row = $dsql->GetOne("SELECT * FROM #@__story_chapter WHERE bookid='$bookid' ORDER BY chapnum DESC");
if(is_array($row))
{
$nchapnum = $row['chapnum']+1;
}
else
{
$nchapnum = 1;
}
$query = "INSERT INTO `#@__story_chapter`(`bookid`,`catid`,`chapnum`,`mid`,`chaptername`,`bookname`)
VALUES ('$bookid', '$catid', '$nchapnum', '0', '$chapternew','$bookname');";
$rs = $dsql->ExecuteNoneQuery($query);
if($rs)
{
$chapterid = $dsql->GetLastID();
}
else
{
ShowMsg("增加章节失败,请检查原因!", "-1");
exit();
}
}
//获得父栏目
$nrow = $dsql->GetOne("SELECT * FROM #@__story_catalog WHERE id='$catid' ");
$bcatid = $nrow['pid'];
$booktype = $nrow['booktype'];
$addtime = time();
//本章最后一个漫画的排列顺次序
$lrow = $dsql->GetOne("SELECT sortid FROM #@__story_content WHERE bookid='$bookid' AND chapterid='$chapterid' ORDER BY sortid DESC");
if(empty($lrow))
{
$sortid = 1;
}
else
{
$sortid = $lrow['sortid']+1;
}
//处理上传的图片
if(!isset($isremote))
{
$isremote = 0;
}
//$bigpic = UploadOneImage('bigpic',$bigpicname,$ddisremote);
$adminID = $cuserLogin->getUserID();
$postnum = 0;
for($i=1;$i<=$photonum;$i++)
{
$bigpic = UploadOneImage('imgfile'.$i,${'imgurl'.$i},$isremote);
if($bigpic!='')
{
$titlen = ${'title'.$i};
if(empty($titlen))
{
$titlen = ${'title'};
}
$inQuery = "
INSERT INTO `#@__story_content`(`title`,`bookname`,`chapterid`,`catid`,`bcatid`,`booktype`,`bookid`,`sortid`,
`mid`,`bigpic`,`body`,`addtime`)
VALUES ('$titlen','$bookname', '$chapterid', '$catid','$bcatid','$booktype', '$bookid','$sortid', '0', '$bigpic' , '', '$addtime');";
$rs = $dsql->ExecuteNoneQuery($inQuery);
//if(!$rs) echo $inQuery."<hr>\r\n";
if($rs)
{
$sortid++;
$postnum++;
}
}
}
$arcID = $dsql->GetLastID();
//更新图书的内容数
$row = $dsql->GetOne("SELECT count(id) AS dd FROM #@__story_content WHERE bookid = '$bookid' ");
$dsql->ExecuteNoneQuery("UPDATE #@__story_books SET postnum='{$row['dd']}',lastpost='".time()."' WHERE bid='$bookid' ");
//更新章节的内容数
$row = $dsql->GetOne("SELECT count(id) AS dd FROM #@__story_content WHERE bookid = '$bookid' AND chapterid='$chapterid' ");
$dsql->ExecuteNoneQuery("UPDATE #@__story_chapter SET postnum='{$row['dd']}' WHERE id='$chapterid' ");
if(empty($arcID))
{
ShowMsg("没成功保存任何图片,可能是系统有问题!","-1");
exit();
}
//生成HTML
//$artUrl = MakeArt($arcID,true);
if(empty($artcontentUrl)) $artcontentUrl="";
if($artcontentUrl=="") $artcontentUrl = $cfg_mainsite.$cfg_cmspath."/book/show-photo.php?id=$arcID&bookid=$bookid&chapterid=$chapterid";
require_once(DEDEROOT. '/book/include/story.view.class.php');
$bv = new BookView($bookid, 'book');
$artUrl = $bv->MakeHtml();
$bv->Close();
//返回成功信息
$msg = "
  请选择你的后续操作:
<a href='story_add_photo.php?bookid={$bookid}'><u>继续发布</u></a>
&nbsp;&nbsp;
<a href='$artUrl' target='_blank'><u>预览漫画</u></a>
&nbsp;&nbsp;
<a href='$artcontentUrl' target='_blank'><u>预览内容</u></a>
&nbsp;&nbsp;
<a href='story_list_content.php?bookid={$bookid}'><u>本书所有内容</u></a>
&nbsp;&nbsp;
<a href='story_books.php'><u>管理所有图书</u></a>
";
$wintitle = "成功发布图片!";
$wecome_info = "连载管理::发布图片";
$win = new OxWindow();
$win->AddTitle("成功发布图片:");
$win->AddMsgItem($msg);
$winform = $win->GetWindow("hand", "&nbsp;", false);
$win->Display();

+ 0
- 85
src/dede/story_books.php View File

@@ -1,85 +0,0 @@
<?php
/**
* @version $Id: story_books.php 1 9:02 2010年9月25日Z 蓝色随想 $
* @package DedeCMS.Module.Book
* @copyright Copyright (c) 2007 - 2020, DesDev, Inc.
* @license http://help.dedecms.com/usersguide/license.html
* @link http://www.dedecms.com
*/
require_once(dirname(__FILE__). "/config.php");
require_once DEDEINC. '/datalistcp.class.php';
setcookie("ENV_GOBACK_URL", $dedeNowurl, time()+3600,"/");
CheckPurview('story_list');
if(!isset($action)) $action = '';
if(!isset($catid)) $catid = 0;
if(!isset($keyword)) $keyword = "";
if(!isset($orderby)) $orderby = 0;
if(!isset($ischeck)) $ischeck = 0;
if(!isset($cid)) $cid = 0;
if($action == 'checked')
{
$id = intval($id);
$query="UPDATE #@__story_books SET ischeck=1 WHERE bid='$id'";
if($dsql->ExecuteNoneQuery($query))
{
showmsg('审核成功','story_books.php');
exit();
}
else
{
showmsg('审核失败','story_books.php');
exit();
}
}
//读取所有栏目列表
$dsql->SetQuery("SELECT id,classname,pid,rank FROM #@__story_catalog ORDER BY rank ASC");
$dsql->Execute();
$ranks = Array();
$btypes = Array();
$stypes = Array();
while($row = $dsql->GetArray())
{
if($row['pid']==0)
{
$btypes[$row['id']] = $row['classname'];
}
else
{
$stypes[$row['pid']][$row['id']] = $row['classname'];
}
$ranks[$row['id']] = $row['rank'];
}
$addquery = "";
if($ischeck == 1)
{
$addquery .= " and ischeck=0 ";
}
$orderby = " ORDER BY b.bid DESC ";
if($catid!=0)
{
$addquery .= " And (b.bcatid='$catid' OR b.catid='$catid') ";
}
if($keyword!="")
{
$addquery .= " And (b.bookname LIKE '%$keyword%' OR b.author LIKE '%$keyword%') ";
}
$query = "
SELECT b.bid,b.catid,b.bookname,b.booktype,b.litpic,b.ischeck,b.postnum,b.senddate,c.id AS cid,c.classname FROM #@__story_books b
LEFT JOIN #@__story_catalog c ON c.id = b.catid WHERE b.bid>0 $addquery $orderby
";
$dlist = new DataListCP();
$dlist->pageSize = 20;
$dlist->SetParameter("keyword", $keyword);
$dlist->SetParameter("catid", $cid);
$dlist->SetParameter("orderby", $orderby);
$dlist->SetTemplate(DEDEADMIN. '/templets/story_books.htm');
$dlist->SetSource($query);
$dlist->Display();

+ 0
- 211
src/dede/story_catalog.php View File

@@ -1,211 +0,0 @@
<?php
/**
* @version $Id: story_catalog.php 1 9:02 2010年9月25日Z 蓝色随想 $
* @package DedeCMS.Module.Book
* @copyright Copyright (c) 2007 - 2020, DesDev, Inc.
* @license http://help.dedecms.com/usersguide/license.html
* @link http://www.dedecms.com
*/
require_once(dirname(__FILE__). "/config.php");
CheckPurview('story_Catalog');
if(!isset($action)) $action = '';
if(!isset($stypes)) $stypes = '';
//统计图书数量
function TjBookNum($cid,&$dsql)
{
$row = $dsql->GetOne("SELECT count(bid) AS dd FROM #@__story_books WHERE catid='$cid' OR bcatid='$cid' ");
return $row['dd'];
}
//增加栏目
/*
function SaveNew();
*/
if($action=='add')
{
$inQuery = "INSERT INTO #@__story_catalog(classname,pid,rank,listrule,viewrule,booktype,keywords,description)
VALUES('$classname','$pid','$rank','','','$booktype','$keywords','$description')";
$rs = $dsql->ExecuteNoneQuery($inQuery);
if($rs)
{
$msg = "成功增加一个栏目:{$classname} !";
}
else
{
$msg = "增加栏目时失败:{$classname} !";
}
}
//保存修改
/*
function SaveEdit();
*/
else if($action=='editsave')
{
$inQuery = "UPDATE #@__story_catalog SET
classname='$classname',pid='$pid',rank='$rank',booktype='$booktype',
keywords='$keywords',description='$description'
WHERE id='$catid' ";
$dsql->ExecuteNoneQuery($inQuery);
$msg = "成功修改栏目:{$catid} = {$classname} !";
if(isset($ranks[$catid]))
{
$ranks[$catid] = $rank;
}
if(isset($btypes[$catid]))
{
$btypes[$catid] = $classname;
}
else
{
if(is_array($stypes))
{
foreach($stypes as $kk=>$vv)
{
if(isset($vv[$catid]))
{
$stypes[$kk][$catid] = $classname;
break;
}
}
}
}
}
//删除栏目
/*---------------------
function DelCatalog()
-----------------------*/
else if($action=='del')
{
$dsql->SetQuery("SELECT id FROM #@__story_catalog WHERE pid='{$catid}' ");
$dsql->Execute();
$ids = $catid;
while($row = $dsql->GetArray())
{
$ids .= ','.$row['id'];
}
$dsql->ExecuteNoneQuery("DELETE FROM #@__story_books WHERE catid in ($ids) ");
$dsql->ExecuteNoneQuery("DELETE FROM #@__story_chapter WHERE catid in ($ids) ");
$dsql->ExecuteNoneQuery("DELETE FROM #@__story_content WHERE catid in ($ids) ");
$dsql->ExecuteNoneQuery("DELETE FROM #@__story_catalog WHERE id in ($ids) ");
$msg = "删除栏目:{$catid} !OK";
}
//更新排序
/*---------------------
function UpRanks();
-----------------------*/
else if($action=='uprank')
{
foreach($_POST as $rk=>$rv)
{
if(ereg('rank',$rk))
{
$catid = str_replace('rank_','',$rk);
$dsql->ExecuteNoneQuery("UPDATE #@__story_catalog SET rank='{$rv}' WHERE id='$catid' ");
$ranks[$catid] = $rv;
}
}
ShowMsg("成功更新排序!","story_catalog.php");
exit();
}
//读取所有栏目
$dsql->SetQuery("SELECT id,classname,pid,rank FROM #@__story_catalog ORDER BY rank ASC");
$dsql->Execute();
$ranks = Array();
$btypes = Array();
$stypes = Array();
while($row = $dsql->GetArray())
{
if($row['pid']==0)
{
$btypes[$row['id']] = $row['classname'];
}
else
{
$stypes[$row['pid']][$row['id']] = $row['classname'];
}
$ranks[$row['id']] = $row['rank'];
}
$lastid = $row['id'];
$msg = '';
//载入栏目(用于修改,Ajax模式载入)
/*
function LoadEdit();
*/
if($action=='editload')
{
$row = $dsql->GetOne("SELECT * FROM #@__story_catalog WHERE id='$catid'");
AjaxHead();
?>
<form name='editform' action='story_catalog.php' method='get'>
<input type='hidden' name='action' value='editsave' />
<input type='hidden' name='catid' value='<?php echo $catid; ?>' />
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="90" height="28">栏目名称:</td>
<td width="101"><input name="classname" type="text" id="classname" value="<?php echo $row['classname']; ?>" /></td>
<td width="20" align="right" valign="top"><a href="javascript:CloseEditCatalog()"><img src="images/close.gif" width="12" height="12" border="0" /></a></td>
</tr>
<tr>
<td height="28">隶属栏目:</td>
<td colspan="2">
<select name="pid" id="pid">
<option value="0">顶级栏目</option>
<?php
foreach($btypes as $k=>$v)
{
if($row['pid']==$k)
{
echo "<option value='$k' selected>{$v}</option>\r\n";
}
elseif($v != $row['classname'])
{
echo "<option value='$k'>{$v}</option>\r\n";
}
}
?>
</select>
</td>
</tr>
<tr>
<td height="28">排序级别:</td>
<td colspan="2"><input name="rank" type="text" id="rank" size="5" value="<?php echo $row['rank']; ?>" />
(数值小靠前)</td>
</tr>
<tr>
<td height="28">连载类型:</td>
<td colspan="2">
<input name="booktype" type="radio" value="0"<?php if($row['booktype']==0) echo " checked='checked'";?> />
小说
<input type="radio" name="booktype" value="1" <?php if($row['booktype']==1) echo " checked='checked'";?> />
漫画
</td>
</tr>
<tr>
<td height="28">关键字:</td>
<td colspan="2"><input name="keywords" type="text" id="keywords" value="<?php echo $row['keywords']; ?>" /></td>
</tr>
<tr>
<td>摘 要:</td>
<td colspan="2">
<textarea name="description" id="description" style="width:180px;height:45px"><?php echo $row['description']; ?></textarea>
</td>
</tr>
<tr>
<td height="43">&nbsp;</td>
<td colspan="2"><input type="submit" name="Submit" value="保存更改" style="width:80px"/></td>
</tr>
</table>
</form>
<?php
exit();
}
require_once(dirname(__FILE__). "/templets/story_catalog.htm");

+ 0
- 55
src/dede/story_content_edit.php View File

@@ -1,55 +0,0 @@
<?php
/**
* @version $Id: story_content_edit.php 1 9:02 2010年9月25日Z 蓝色随想 $
* @package DedeCMS.Module.Book
* @copyright Copyright (c) 2007 - 2020, DesDev, Inc.
* @license http://help.dedecms.com/usersguide/license.html
* @link http://www.dedecms.com
*/
require_once(dirname(__FILE__). "/config.php");
require_once(DEDEROOT. "/book/include/story.func.php");
CheckPurview('story_Edit');
if(!isset($action)) $action = '';
if(empty($cid))
{
ShowMsg("参数错误!", "-1");
exit();
}
//读取所有栏目
$dsql->SetQuery("Select id,classname,pid,rank From #@__story_catalog order by rank asc");
$dsql->Execute();
$ranks = Array();
$btypes = Array();
$stypes = Array();
while($row = $dsql->GetArray()){
if($row['pid']==0) $btypes[$row['id']] = $row['classname'];
else $stypes[$row['pid']][$row['id']] = $row['classname'];
$ranks[$row['id']] = $row['rank'];
}
$lastid = $row['id'];
$contents = $dsql->GetOne("SELECT * FROM #@__story_content WHERE id='$cid' ");
$bookinfos = $dsql->GetOne("SELECT catid,bcatid,bookname,booktype FROM #@__story_books WHERE bid='{$contents['bookid']}' ");
$catid = $bookinfos['catid'];
$bcatid = $bookinfos['bcatid'];
$bookname = $bookinfos['bookname'];
$booktype = $bookinfos['booktype'];
$bookid = $contents['bookid'];
$dsql->SetQuery("SELECT id,chapnum,chaptername FROM #@__story_chapter WHERE bookid='{$contents['bookid']}' ORDER BY chapnum DESC");
$dsql->Execute();
$chapters = Array();
$chapnums = Array();
while($row = $dsql->GetArray()){
$chapters[$row['id']] = $row['chaptername'];
$chapnums[$row['id']] = $row['chapnum'];
}
require_once DedeInclude('/templets/story_content_edit.htm');
//ClearAllLink();

+ 0
- 160
src/dede/story_do.php View File

@@ -1,160 +0,0 @@
<?php
/**
* @version $Id: story_do.php 1 9:02 2010年9月25日Z 蓝色随想 $
* @package DedeCMS.Module.Book
* @copyright Copyright (c) 2007 - 2020, DesDev, Inc.
* @license http://help.dedecms.com/usersguide/license.html
* @link http://www.dedecms.com
*/
require_once(dirname(__FILE__). "/config.php");
CheckPurview('story_Del');
require_once(DEDEINC. "/oxwindow.class.php");
if(empty($action))
{
ShowMsg("你没指定任何参数!","-1");
exit();
}
/*--------------------
function DelBook()
删除整本图书
-------------------*/
if($action=='delbook')
{
$bids = explode(',', $bid);
foreach($bids as $i => $bid)
{
if(intval($bid)<=0)
{
continue;
}
$row = $dsql->GetOne("SELECT booktype FROM #@__story_books WHERE bid='$bid' ");
$dsql->ExecuteNoneQuery("DELETE FROM #@__story_books WHERE bid='$bid' ");
$dsql->ExecuteNoneQuery("DELETE FROM #@__story_chapter WHERE bookid='$bid' ");
//删除图片
if(empty($row['booktype']))
{
$row['booktype'] = '';
}
if($row['booktype']==1)
{
$dsql->SetQuery("SELECT bigpic FROM #@__story_content WHERE bookid='$bid' ");
$dsql->Execute();
while($row = $dsql->GetArray())
{
$bigpic = $row['bigpic'];
if( $bigpic!="" && !eregi('^http://',$bigpic) )
{
@unlink($cfg_basedir.$bigpic);
}
}
}
$dsql->ExecuteNoneQuery("DELETE FROM #@__story_content WHERE bookid='$bid' ");
}
$i = $i+1;
if(empty($ENV_GOBACK_URL))
{
$ENV_GOBACK_URL = 'story_books.php';
}
ShowMsg("成功删除 {$i} 本图书!",$ENV_GOBACK_URL);
exit();
}
/*--------------------
function DelStoryContent()
删除图书内容
-------------------*/
else if($action=='delcontent')
{
$row = $dsql->GetOne("SELECT bigpic,chapterid,bookid FROM #@__story_content WHERE id='$cid' ");
$chapterid = $row['chapterid'];
$bookid = $row['bookid'];
//如果图片不为空,先删除图片
if( $row['bigpic']!="" && !eregi('^http://',$row['bigpic']) )
{
@unlink($cfg_basedir.$row['bigpic']);
}
$dsql->ExecuteNoneQuery(" DELETE FROM #@__story_content WHERE id='$cid' ");
//更新图书记录
$row = $dsql->GetOne("SELECT count(id) AS dd FROM #@__story_content WHERE bookid='$bookid' ");
$dsql->ExecuteNoneQuery("Update #@__story_books SET postnum='{$row['dd']}' WHERE bid='$bookid' ");
//更新章节记录
$row = $dsql->GetOne("SELECT count(id) AS dd FROM #@__story_content WHERE chapterid='$chapterid' ");
$dsql->ExecuteNoneQuery("Update #@__story_chapter SET postnum='{$row['dd']}' WHERE id='$chapterid' ");
ShowMsg("成功删除指定内容!",$ENV_GOBACK_URL);
exit();
}
/*--------------------
function EditChapter()
保存章节信息
-------------------*/
else if($action=='editChapter')
{
require_once(DEDEINC."/charSET.func.php");
//$chaptername = gb2utf8($chaptername);
$dsql->ExecuteNoneQuery("Update #@__story_chapter SET chaptername='$chaptername',chapnum='$chapnum' WHERE id='$cid' ");
AjaxHead();
echo "<font color='red'>成功更新章节:{$chaptername} ! [<a href=\"javascript:CloseLayer('editchapter')\">关闭提示</a>]</font> <br /><br /> 提示:修改章节名称或章节序号直接在左边修改,然后点击右边的 [更新] 会保存。 ";
exit();
}
/*--------------------
function DelChapter()
删除章节信息
-------------------*/
else if($action=='delChapter')
{
$row = $dsql->GetOne("SELECT c.bookid,b.booktype FROM #@__story_chapter c LEFT JOIN #@__story_books b ON b.bid=c.bookid WHERE c.id='$cid' ");
$bookid = $row['bookid'];
$booktype = $row['booktype'];
$dsql->ExecuteNoneQuery("DELETE FROM #@__story_chapter WHERE id='$cid' ");
//删除图片
if($booktype==1)
{
$dsql->SetQuery("SELECT bigpic FROM #@__story_content WHERE bookid='$bookid' ");
$dsql->Execute();
while($row = $dsql->GetArray())
{
$bigpic = $row['bigpic'];
if( $bigpic!="" && !eregi('^http://',$bigpic) )
{
@unlink($cfg_basedir.$bigpic);
}
}
}
$dsql->ExecuteNoneQuery("DELETE FROM #@__story_content WHERE chapterid='$cid' ");
//更新图书记录
$row = $dsql->GetOne("SELECT count(id) AS dd FROM #@__story_content WHERE bookid='$bookid' ");
$dsql->ExecuteNoneQuery("UPDATE #@__story_books SET postnum='{$row['dd']}' WHERE bid='$bookid' ");
ShowMsg("成功删除指定章节!",$ENV_GOBACK_URL);
exit();
}
/*---------------
function EditChapterAll()
批量修改章节
-------------------*/
else if($action=='upChapterSort')
{
if(isSET($ids) && is_array($ids))
{
foreach($ids as $cid)
{
$chaptername = ${'chaptername_'.$cid};
$chapnum= ${'chapnum_'.$cid};
$dsql->ExecuteNoneQuery("UPDATE #@__story_chapter SET chaptername='$chaptername',chapnum='$chapnum' WHERE id='$cid' ");
}
}
ShowMsg("成功更新指定章节信息!", $ENV_GOBACK_URL);
exit();
}

+ 0
- 37
src/dede/story_edit.php View File

@@ -1,37 +0,0 @@
<?php
/**
* @version $Id: story_edit.php 1 9:02 2010年9月25日Z 蓝色随想 $
* @package DedeCMS.Module.Book
* @copyright Copyright (c) 2007 - 2020, DesDev, Inc.
* @license http://help.dedecms.com/usersguide/license.html
* @link http://www.dedecms.com
*/
require_once(dirname(__FILE__). "/config.php");
CheckPurview('story_Edit');
if(!isset($action)) $action = '';
//读取所有栏目
$dsql->SetQuery("SELECT id,classname,pid,rank FROM #@__story_catalog ORDER BY rank ASC");
$dsql->Execute();
$ranks = Array();
$btypes = Array();
$stypes = Array();
while($row = $dsql->GetArray())
{
if($row['pid']==0)
{
$btypes[$row['id']] = $row['classname'];
}
else
{
$stypes[$row['pid']][$row['id']] = $row['classname'];
}
$ranks[$row['id']] = $row['rank'];
}
$lastid = $row['id'];
$msg = '';
$books = $dsql->GetOne("SELECT S.*,A.membername FROM #@__arcrank AS A LEFT JOIN #@__story_books AS S ON A.rank=S.arcrank WHERE S.bid='$bookid' ");
require_once(DEDEADMIN. '/templets/story_edit.htm');
?>

+ 0
- 98
src/dede/story_edit_action.php View File

@@ -1,98 +0,0 @@
<?php
/**
* @version $Id: story_edit_action.php 1 9:02 2010年9月25日Z 蓝色随想 $
* @package DedeCMS.Module.Book
* @copyright Copyright (c) 2007 - 2020, DesDev, Inc.
* @license http://help.dedecms.com/usersguide/license.html
* @link http://www.dedecms.com
*/
require_once(dirname(__FILE__). "/config.php");
CheckPurview('story_New');
require_once(DEDEINC. "/image.func.php");
require_once(DEDEINC. "/oxwindow.class.php");
require_once(DEDEADMIN. "/inc/inc_archives_functions.php");
if(!isset($iscommend)) $iscommend = 0;
if($catid==0)
{
ShowMsg("请指定图书所属栏目!","-1");
exit();
}
//获得父栏目
$nrow = $dsql->GetOne("SELECT * FROM #@__story_catalog WHERE id='$catid' ");
$bcatid = $nrow['pid'];
$booktype = $nrow['booktype'];
$pubdate = GetMkTime($pubdate);
$lastpost=time();
$bookname = cn_substr($bookname,50);
if($keywords!="") $keywords = trim(cn_substr($keywords, 60));
//处理上传的缩略图
if($litpic !="") $litpic = GetDDImage('litpic', $litpic, 0);
if($litpicname !="" && $litpic == "") $litpic = GetDDImage('litpic', $litpicname, 0);
$adminID = $cuserLogin->getUserID();
//自动摘要
if($description=="" && $cfg_auot_description>0)
{
$description = stripslashes(cn_substr(html2text($body), $cfg_auot_description));
$description = addslashes($description);
}
$upQuery = "
Update `#@__story_books`
set catid='$catid',
bcatid='$bcatid',
iscommend='$iscommend',
click='$click',
freenum='$freenum',
arcrank='$arcrank',
bookname='$bookname',
author='$author',
litpic='$litpic',
pubdate='$pubdate',
lastpost='$lastpost',
description='$description',
body='$body',
keywords='$keywords',
status='$status',
ischeck='$ischeck'
where bid='$bookid' ";
if(!$dsql->ExecuteNoneQuery($upQuery))
{
ShowMsg("更新数据库时出错,请检查!".$dsql->GetError(),"-1");
$dsql->Close();
exit();
}
//生成HTML
require_once(DEDEROOT. '/book/include/story.view.class.php');
$bv = new BookView($bookid, 'book');
$artUrl = $bv->MakeHtml();
$bv->Close();
//返回成功信息
$msg = "
  请选择你的后续操作:
<a href='story_edit.php?bookid={$bookid}'><u>继续修改</u></a>
&nbsp;&nbsp;
<a href='story_add.php?catid={$catid}'><u>发布新图书</u></a>
&nbsp;&nbsp;
<a href='$artUrl' target='_blank'><u>预览图书</u></a>
&nbsp;&nbsp;
<a href='story_add_content.php?bookid={$bookid}'><u>增加图书内容</u></a>
&nbsp;&nbsp;
<a href='story_books.php'><u>管理图书</u></a>
";
$wintitle = "成功修改图书!";
$wecome_info = "连载管理::修改图书";
$win = new OxWindow();
$win->AddTitle("成功修改一本图书:");
$win->AddMsgItem($msg);
$winform = $win->GetWindow("hand", "&nbsp;", false);
$win->Display();

+ 0
- 94
src/dede/story_edit_content_action.php View File

@@ -1,94 +0,0 @@
<?php
/**
* @version $Id: story_edit_content_action.php 1 9:02 2010年9月25日Z 蓝色随想 $
* @package DedeCMS.Module.Book
* @copyright Copyright (c) 2007 - 2020, DesDev, Inc.
* @license http://help.dedecms.com/usersguide/license.html
* @link http://www.dedecms.com
*/
require_once(dirname(__FILE__). "/config.php");
CheckPurview('story_Edit');
require_once(DEDEINC. "/oxwindow.class.php");
require_once(DEDEROOT. "/book/include/story.func.php");
if( empty($chapterid)
|| (!empty($addchapter) && !empty($chapternew)) )
{
if(empty($chapternew))
{
ShowMsg("由于你发布的内容没选择章节,系统拒绝发布!", "-1");
exit();
}
$row = $dsql->GetOne("SELECT * From #@__story_chapter WHERE bookid='$bookid' ORDER BY chapnum DESC");
if(is_array($row)) $nchapnum = $row['chapnum']+1;
else $nchapnum = 1;
$query = "INSERT INTO `#@__story_chapter`(`bookid`,`catid`,`chapnum`,`mid`,`chaptername`,`bookname`)
VALUES ('$bookid', '$catid', '$nchapnum', '0', '$chapternew','$bookname');";
$rs = $dsql->ExecuteNoneQuery($query);
if($rs){
$chapterid = $dsql->GetLastID();
}
else
{
ShowMsg("增加章节失败,请检查原因!", "-1");
exit();
}
}
//获得父栏目
$nrow = $dsql->GetOne("SELECT * FROM #@__story_catalog WHERE id='$catid' ");
$bcatid = $nrow['pid'];
$booktype = $nrow['booktype'];
if(empty($bcatid)) $bcatid = 0;
if(empty($booktype)) $booktype = 0;
$addtime = time();
$inQuery = "
UPDATE `#@__story_content` SET `title`='$title',`bookname`='$bookname',
`chapterid`='$chapterid',`sortid`='$sortid',`body`=''
WHERE id='$cid'
";
if(!$dsql->ExecuteNoneQuery($inQuery)){
ShowMsg("更新数据时出错,请检查!".str_repolace("'","`",$dsql->GetError().$inQuery),"-1");
$dsql->Close();
exit();
}
WriteBookText($cid,$body);
if(empty($artcontentUrl))$artcontentUrl="";
if($artcontentUrl=="") $artcontentUrl = $cfg_mainsite.$cfg_cmspath."/book/story.php?id={$cid}";
require_once(DEDEROOT. "/book/include/story.view.class.php");
$bv = new BookView($bookid,'book');
$artUrl = $bv->MakeHtml();
$bv->Close();
//---------------------------------
//返回成功信息
//----------------------------------
$msg = "
  请选择你的后续操作:
<a href='story_content_edit.php?cid={$cid}'><u>继续编辑</u></a>
&nbsp;&nbsp;
<a href='$artUrl' target='_blank'><u>预览小说</u></a>
&nbsp;&nbsp;
<a href='$artcontentUrl' target='_blank'><u>预览内容</u></a>
&nbsp;&nbsp;
<a href='story_list_content.php?bookid={$bookid}'><u>本书所有内容</u></a>
&nbsp;&nbsp;
<a href='story_books.php'><u>管理所有图书</u></a>
";
$wintitle = "成功修改文章!";
$wecome_info = "连载管理::发布文章";
$win = new OxWindow();
$win->AddTitle("成功修改文章:");
$win->AddMsgItem($msg);
$winform = $win->GetWindow("hand", "&nbsp;", false);
$win->Display();
//ClearAllLink();

+ 0
- 112
src/dede/story_edit_photo_action.php View File

@@ -1,112 +0,0 @@
<?php
/**
* @version $Id: story_edit_photo_action.php 1 9:02 2010年9月25日Z 蓝色随想 $
* @package DedeCMS.Module.Book
* @copyright Copyright (c) 2007 - 2020, DesDev, Inc.
* @license http://help.dedecms.com/usersguide/license.html
* @link http://www.dedecms.com
*/
require_once(dirname(__FILE__). "/config.php");
CheckPurview('story_Edit');
include_once(DEDEINC. "/image.func.php");
include_once(DEDEINC. "/oxwindow.class.php");
require_once(DEDEADMIN. "/inc/inc_archives_functions.php");
if( empty($chapterid)
|| (!empty($addchapter) && !empty($chapternew)) )
{
if(empty($chapternew))
{
ShowMsg("由于你发布的内容没选择章节,系统拒绝发布!", "-1");
exit();
}
$dsql = new DedeSql();
$row = $dsql->GetOne("SELECT * FROM #@__story_chapter WHERE bookid='$bookid' ORDER BY chapnum DESC");
if(is_array($row)) $nchapnum = $row['chapnum']+1;
else $nchapnum = 1;
$query = "INSERT INTO `#@__story_chapter`(`bookid`,`catid`,`chapnum`,`mid`,`chaptername`,`bookname`)
VALUES ('$bookid', '$catid', '$nchapnum', '0', '$chapternew','$bookname');";
$rs = $dsql->ExecuteNoneQuery($query);
if($rs){
$chapterid = $dsql->GetLastID();
}
else
{
ShowMsg("增加章节失败,请检查原因!","-1");
exit();
}
}else
{
$dsql = new DedeSql();
}
//获得父栏目
$nrow = $dsql->GetOne("SELECT * FROM #@__story_catalog WHERE id='$catid' ");
$bcatid = $nrow['pid'];
$booktype = $nrow['booktype'];
if(empty($bcatid)) $bcatid = 0;
if(empty($booktype)) $booktype = 0;
$addtime = time();
//处理上传的缩略图
if(!isset($isremote)) $isremote = 0;
$bigpic = UploadOneImage('imgfile',$imgurl,$isremote);
$adminID = $cuserLogin->getUserID();
//----------------------------------
$inQuery = "
UPDATE `#@__story_content` SET `title`='$title',`bookname`='$bookname',
`chapterid`='$chapterid',`sortid`='$sortid',`bigpic`='$bigpic'
WHERE id='$cid'
";
if(!$dsql->ExecuteNoneQuery($inQuery)){
ShowMsg("把数据保存到数据库时出错,请检查!".str_repolace("'","`", $dsql->GetError().$inQuery), "-1");
$dsql->Close();
exit();
}
$arcID = $cid;
//生成HTML
//---------------------------------
//$artUrl = MakeArt($arcID,true);
if(empty($artcontentUrl))$artcontentUrl="";
if($artcontentUrl=="") $artcontentUrl = $cfg_mainsite.$cfg_cmspath."/book/show-photo.php?id=$arcID&bookid=$bookid&chapterid=$chapterid";
require_once(DEDEROOT. '/book/include/story.view.class.php');
$bv = new BookView($bookid, 'book');
$artUrl = $bv->MakeHtml();
$bv->Close();
//---------------------------------
//返回成功信息
//----------------------------------
$msg = "
  请选择你的后续操作:
<a href='story_photo_edit.php?cid={$cid}'><u>继续修改</u></a>
&nbsp;&nbsp;
<a href='$artUrl' target='_blank'><u>预览漫画</u></a>
&nbsp;&nbsp;
<a href='$artcontentUrl' target='_blank'><u>预览内容</u></a>
&nbsp;&nbsp;
<a href='story_list_content.php?bookid={$bookid}'><u>管理所有内容</u></a>
&nbsp;&nbsp;
<a href='story_books.php'><u>管理所有图书</u></a>
";
$wintitle = "成功修改内容!";
$wecome_info = "连载管理::修改漫画内容";
$win = new OxWindow();
$win->AddTitle("成功发布漫画:");
$win->AddMsgItem($msg);
$winform = $win->GetWindow("hand", "&nbsp;", false);
$win->Display();
//ClearAllLink();

+ 0
- 30
src/dede/story_feedback_edit.php View File

@@ -1,30 +0,0 @@
<?php
require_once(dirname(__FILE__). "/config.php");
CheckPurview('sys_Feedback');
$id = isset($id) && is_numeric($id) ? $id : 0;
$ENV_GOBACK_URL = empty($_COOKIE['ENV_GOBACK_URL'])? "story_feedback_main.php" : $_COOKIE['ENV_GOBACK_URL'];
if(empty($dopost))
{
$dopost = "";
}
if($dopost=='edit')
{
$msg = cn_substrR($msg,2500);
$adminmsg = trim($adminmsg);
if($adminmsg!="")
{
$adminmsg = cn_substrR($adminmsg,1500);
$adminmsg = str_replace("<","&lt;",$adminmsg);
$adminmsg = str_replace(">","&gt;",$adminmsg);
$adminmsg = str_replace(" ","&nbsp;&nbsp;",$adminmsg);
$adminmsg = str_replace("\r\n","<br/>\n",$adminmsg);
$msg = $msg."<br/>\n"."<font color=red>管理员回复: $adminmsg</font>\n";
}
$query = "UPDATE `#@__bookfeedback` SET username='$username',msg='$msg',ischeck=1 WHERE id=$id";
$dsql->ExecuteNoneQuery($query);
ShowMsg("成功回复一则留言!",$ENV_GOBACK_URL);
exit();
}
$query = "SELECT * FROM `#@__bookfeedback` WHERE id=$id";
$row = $dsql->GetOne($query);
include DedeInclude('templets/story_feedback_edit.htm');

+ 0
- 87
src/dede/story_feedback_main.php View File

@@ -1,87 +0,0 @@
<?php
require_once(dirname(__FILE__). "/config.php");
//权限检查
CheckPurview('sys_Feedback');
require_once(DEDEINC. "/datalistcp.class.php");
require_once(DEDEINC. "/typelink.class.php");
setcookie("ENV_GOBACK_URL", $dedeNowurl, time()+3600,"/");
function IsCheck($st){ return $st==1? "[已审核]" : "<font color='red'>[未审核]</font>";}
if(!empty($job))
{
$ids = preg_replace("#[^0-9,]#", '', $fid);
if(empty($ids))
{
ShowMsg("你没选中任何选项!", $_COOKIE['ENV_GOBACK_URL'], 0, 500);
exit;
}
}
else
{
$job = '';
}
//删除评论
if( $job == 'del' )
{
$query = "DELETE From `#@__bookfeedback` WHERE id in($ids) ";
$dsql->ExecuteNoneQuery($query);
ShowMsg("成功删除指定的评论!",$_COOKIE['ENV_GOBACK_URL'],0,500);
exit();
}
//删除相同IP的所有评论
else if( $job == 'delall' )
{
$dsql->SetQuery("SELECT ip FROM `#@__bookfeedback` WHERE id in ($ids) ");
$dsql->Execute();
$ips = '';
while($row = $dsql->GetArray())
{
$ips .= ($ips=='' ? " ip = '{$row['ip']}' " : " OR ip = '{$row['ip']}' ");
}
if($ips!='')
{
$query = "DELETE FROM `#@__bookfeedback` WHERE $ips ";
$dsql->ExecuteNoneQuery($query);
}
ShowMsg("成功删除指定相同IP的所有评论!", $_COOKIE['ENV_GOBACK_URL'], 0, 500);
exit();
}
//审核评论
else if($job=='check')
{
$query = "UPDATE `#@__bookfeedback` SET ischeck=1 WHERE id in($ids) ";
$dsql->ExecuteNoneQuery($query);
ShowMsg("成功审核指定评论!", $_COOKIE['ENV_GOBACK_URL'], 0, 500);
exit();
}
//浏览评论
else
{
$bgcolor = '';
$typeid = isset($typeid) && is_numeric($typeid) ? $typeid : 0;
$aid = isset($aid) && is_numeric($aid) ? $aid : 0;
$keyword = !isset($keyword) ? '' : $keyword;
$ip = !isset($ip) ? '' : $ip;
$tl = new TypeLink($typeid);
$openarray = $tl->GetOptionArray($typeid,$admin_catalogs,0);
$addsql = ($typeid != 0 ? " And typeid in (".GetSonIds($typeid).")" : '');
$addsql .= ($aid != 0 ? " And aid=$aid " : '');
$addsql .= ($ip != '' ? " And ip like '$ip' " : '');
$querystring = "SELECT * FROM `#@__bookfeedback` WHERE msg like '%$keyword%' $addsql ORDER BY dtime DESC";
$dlist = new DataListCP();
$dlist->pageSize = 15;
$dlist->SetParameter('aid', $aid);
$dlist->SetParameter('ip', $ip);
$dlist->SetParameter('typeid', $typeid);
$dlist->SetParameter('keyword', $keyword);
$dlist->SetTemplate(DEDEADMIN. '/templets/story_feedback_main.htm');
$dlist->SetSource($querystring);
$dlist->Display();
}

+ 0
- 39
src/dede/story_list_chapter.php View File

@@ -1,39 +0,0 @@
<?php
/**
* @version $Id: story_list_chapter.php 1 9:02 2010年9月25日Z 蓝色随想 $
* @package DedeCMS.Module.Book
* @copyright Copyright (c) 2007 - 2020, DesDev, Inc.
* @license http://help.dedecms.com/usersguide/license.html
* @link http://www.dedecms.com
*/
require_once(dirname(__FILE__). "/config.php");
require_once DEDEINC. '/datalistcp.class.php';
setcookie("ENV_GOBACK_URL", $dedeNowurl, time()+3600,"/");
CheckPurview('story_books');
if(!isset($action)) $action = '';
if(!isset($keyword)) $keyword = "";
if(!isset($bid)) $bid = 0;
if(!empty($bookid)) $bid = $bookid;
$addquery = " id>0 ";
$orderby = " ORDER BY id DESC ";
if($keyword!="") $addquery .= " And (bookname LIKE '%$keyword%' OR chaptername LIKE '%$keyword%') ";
if($bid!=0) $addquery .= " And bookid='$bid' ";
$query = "
SELECT * FROM #@__story_chapter WHERE $addquery $orderby
";
$dlist = new DataListCP();
$dlist->pageSize = 20;
$dlist->SetParameter("keyword", $keyword);
$dlist->SetParameter("bid", $bid);
$dlist->SetTemplate(DEDEADMIN. '/templets/story_list_chapter.htm');
$dlist->SetSource($query);
$dlist->Display();

+ 0
- 49
src/dede/story_list_content.php View File

@@ -1,49 +0,0 @@
<?php
/**
* @version $Id: story_list_content.php 1 9:02 2010年9月25日Z 蓝色随想 $
* @package DedeCMS.Module.Book
* @copyright Copyright (c) 2007 - 2020, DesDev, Inc.
* @license http://help.dedecms.com/usersguide/license.html
* @link http://www.dedecms.com
*/
require_once(dirname(__FILE__). "/config.php");
require_once DEDEINC. '/datalistcp.class.php';
setcookie("ENV_GOBACK_URL", $dedeNowurl, time()+3600,"/");
CheckPurview('story_books');
if(!isset($action)) $action = '';
if(!isset($booktype)) $booktype = '-1';
if(!isset($keyword)) $keyword = "";
if(!isset($orderby)) $orderby = 0;
if(!isset($bookid)) $bookid = 0;
if(!isset($chapid)) $chapid = 0;
$addquery = "";
$orderby = " ORDER BY ct.id DESC ";
if($booktype!='-1') $addquery .= " And ct.booktype='$booktype' ";
if($keyword!="") $addquery .= " And (ct.bookname like '%$keyword%' Or ct.title like '%$keyword%') ";
if($bookid!=0) $addquery .= " And ct.bookid='$bookid' ";
if($chapid!=0) $addquery .= " And ct.chapterid='$chapid' ";
$query = "
SELECT ct.id,ct.title,ct.bookid,ct.chapterid,ct.sortid,ct.bookname,ct.addtime,ct.booktype,c.chaptername,c.chapnum FROM #@__story_content ct
LEFT JOIN #@__story_chapter c ON c.id = ct.chapterid WHERE ct.id>0 $addquery $orderby
";
$dlist = new DataListCP();
$dlist->pageSize = 20;
$dlist->SetParameter("keyword", $keyword);
$dlist->SetParameter("booktype", $booktype);
$dlist->SetParameter("bookit", $bookid);
$dlist->SetParameter("chapid", $chapid);
$dlist->SetTemplate(DEDEADMIN. '/templets/story_list_content.htm');
$dlist->SetSource($query);
$dlist->Display();
//ClearAllLink();

+ 0
- 54
src/dede/story_photo_edit.php View File

@@ -1,54 +0,0 @@
<?php
/**
* @version $Id: story_photo_edit.php 1 9:02 2010年9月25日Z 蓝色随想 $
* @package DedeCMS.Module.Book
* @copyright Copyright (c) 2007 - 2020, DesDev, Inc.
* @license http://help.dedecms.com/usersguide/license.html
* @link http://www.dedecms.com
*/
require_once(dirname(__FILE__). "/config.php");
CheckPurview('story_Edit');
if(!isset($action)) $action = '';
if(empty($cid))
{
ShowMsg("参数错误!", "-1");
exit();
}
//读取所有栏目
$dsql->SetQuery("SELECT id,classname,pid,rank FROM #@__story_catalog ORDER BY rank ASC");
$dsql->Execute();
$ranks = Array();
$btypes = Array();
$stypes = Array();
while($row = $dsql->GetArray())
{
if($row['pid']==0)
{
$btypes[$row['id']] = $row['classname'];
}
else
{
$stypes[$row['pid']][$row['id']] = $row['classname'];
}
$ranks[$row['id']] = $row['rank'];
}
$lastid = $row['id'];
$contents = $dsql->GetOne("SELECT * FROM #@__story_content WHERE id='$cid' ");
$bookinfos = $dsql->GetOne("SELECT catid,bcatid,bookname,booktype FROM #@__story_books WHERE bid='{$contents['bookid']}' ");
$catid = $bookinfos['catid'];
$bcatid = $bookinfos['bcatid'];
$bookname = $bookinfos['bookname'];
$booktype = $bookinfos['booktype'];
$bookid = $contents['bookid'];
$dsql->SetQuery("SELECT id,chapnum,chaptername FROM #@__story_chapter WHERE bookid='{$contents['bookid']}' order by chapnum DESC");
$dsql->Execute();
$chapters = Array();
$chapnums = Array();
while($row = $dsql->GetArray())
{
$chapters[$row['id']] = $row['chaptername'];
$chapnums[$row['id']] = $row['chapnum'];
}
require_once DedeInclude('/templets/story_photo_edit.htm');

+ 0
- 94
src/dede/templets/makehtml_story.htm View File

@@ -1,94 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title>生成HTML</title>
<script language="javascript" src="js/main.js"></script>
<script language="javascript" src="../static/js/dedeajax2.js"></script>
<script language="javascript" src="js/story.js"></script>
<link href='css/base.css' rel='stylesheet' type='text/css'>
</head>
<body background='images/allbg.gif' leftmargin='8' topmargin='8'>
<div class="bodytitle">
<div class="bodytitleleft"></div>
<div class="bodytitletxt" style="padding-left:10px;">连载管理</div>
</div>
<table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" style="background:#CFCFCF;">
<tr>
<td height="25" bgcolor="#EDF9D5" background="images/tbg.gif" class="tbtitletxt">
<table width='96%' border="0" cellpadding='0' cellspacing='0' style="padding-left:10px;">
<tr>
<td width='30%' class="tbtitletxt"><strong>更新连载图书HTML</strong></td>
<td align='right'>[<a href="story_books.php"><u>连载内容列表</u></a>]</td>
</tr>
</table>
</td>
</tr>
</table>
<form name="form1" action="makehtml_story.php" method="get" target='stafrm'>
<input type="hidden" name="action" value="make">
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" style=" border:1px solid #CFCFCF;line-height:31px;margin:auto;border-top:none;">
<tr>
<td height="20" valign="top" bgcolor="#FFFFFF"> 说明:默认的情况下,本程序只更新图书内容封面的HTML。</td>
</tr>
<tr>
<td height="42" bgcolor="#FFFFFF"> 图书开始ID:
<input name="startid" type="text" id="startid" value="1" size="5" class='alltxt' />
结束ID:
<input name="endid" type="text" id="endid" value="0" size="5" class='alltxt' />
(0表示从开始到全部)
每批数量:
<input name="makenum" type="text" id="makenum" value="50" size="5" class='alltxt' />
栏目:
<select name="catid" id="catid" style="width:150px">
<option value='0'>请选择栏目</option>
<?php
if(!isset($catid)) $catid = 0;
foreach($btypes as $k=>$v)
{
if($catid!=$k) echo "<option value='$k'>[{$booktypes[$k]}]$v</option>\r\n";
else echo "<option value='$k' selected>[{$booktypes[$k]}]$v</option>\r\n";
foreach($stypes[$k] as $kk=>$vv)
{
if($catid!=$kk) echo "<option value='$kk'> --[{$booktypes[$k]}]$vv</option>\r\n";
else echo "<option value='$kk' selected> --[{$booktypes[$k]}]$vv</option>\r\n";
}
}
?>
</select>
</td>
</tr>
<tr>
<td height="42" align="center" bgcolor="#FFFFFF">
<input name="b112" type="button" value="开始生成HTML" onClick="document.form1.submit();" class='np coolbg' />
</td>
</tr>
<tr bgcolor="#F9FCEF">
<td height="20" bgcolor="#F9FCEF">
<table width="100%">
<tr>
<td width="74%">进行状态: </td>
<td width="26%" align="right">
<script language='JavaScript' type="text/javascript">
function ResizeDiv(obj,ty)
{
if(ty=="+") document.all[obj].style.pixelHeight += 50;
else if(document.all[obj].style.pixelHeight>80) document.all[obj].style.pixelHeight = document.all[obj].style.pixelHeight - 50;
}
</script>
[<a href='#' onclick="ResizeDiv('mdv','+');">增大</a>] [<a href='#' onclick="ResizeDiv('mdv','-');">缩小</a>] </td>
</tr>
</table>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td id="mtd">
<div id='mdv' style='width:100%;height:100;'>
<iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="250"></iframe>
</div>
</td>
</tr>
</table>
</form>
</body>
</html>

+ 0
- 131
src/dede/templets/plus_bshare.htm View File

@@ -1,131 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title>BShare分享插件</title>
<?php
if(is_file(DEDEINC.'/js/jquery/jquery.js'))
{
?>
<script language="javascript" src="../static/js/jquery/jquery.js"></script>
<?php
} else {
?>
<script language="javascript" src="../static/js/jquery.min.js"></script>
<?php
}
?>
<?php
if(is_file(dirname(__file__).'/../img/base.css'))
{
?>
<link href="img/base.css" rel="stylesheet" type="text/css" />
<?php
} else {
?>
<link href="css/base.css" rel="stylesheet" type="text/css" />
<?php
}
?>
</head>
<body background="images/allbg.gif" leftmargin="8" topmargin="8">
<div class="bodytitle">
<div class="bodytitleleft"></div>
<div class="bodytitletxt" style="padding-left:10px;">辅助插件</div>
</div>
<table width="98%" border="0" align="center" cellpadding="4" cellspacing="1" class="tbtitle" style="background:#CFCFCF;">
<tr>
<td bgcolor="#EDF9D5" colspan="2" background='images/tbg.gif' style="padding-left:10px;"><strong>bShare分享插件</strong></td>
</tr>
<tr>
<td bgcolor="#FFFFFF" colspan="2"><p> bShare不止是一个分享按钮。bShare是全球中文互联网最强大的社交分享引擎!
只需一个按钮,就能为您的网站注入社交化功能! </p>
<p>bShare智能分享引擎让您的用户可以轻松地将最喜欢的内容分享到社交网站、微博上与好友分享。用户无须离开您的网站,就能快速地进行分享,继续浏览您的网站!</p></td>
</tr>
<form id="form2" name="form2" method="post" action="?do=open" target="_self" onsubmit="return CheckSubmit();">
<input name="submode" type="hidden" value="0" id="submode"/>
<tr>
<td colspan="2" bgcolor="#F9FCEF">&nbsp;<font color='red'>您尚未开通bShare,请先开通bShare服务:</font></td>
</tr>
<tr>
<td width="20%" align="right" bgcolor="#FFFFFF">&nbsp;<b>网站域名:</b></td>
<td width="80%" bgcolor="#FFFFFF"> &nbsp;&nbsp;<?php echo $_SERVER['HTTP_HOST'];?></td>
</tr>
<tr>
<td align="right" bgcolor="#FFFFFF">&nbsp;<b>账号类型:</b></td>
<td bgcolor="#FFFFFF"> <input name="bindtype" type="radio" id="bindtype0" value="0" checked="checked" class="bindtype"/>
新注册
<input name="bindtype" type="radio" value="1" class="bindtype"/>
已经有账号</td>
</tr>
<tr>
<td width="20%" align="right" bgcolor="#FFFFFF">&nbsp;<b>用户名:</b></td>
<td width="80%" bgcolor="#FFFFFF">&nbsp;
<input name="user" type="text" id="user" size="30" class='alltxt' />
(E-Mail地址)</td>
</tr>
<tr>
<td align="right" bgcolor="#FFFFFF">&nbsp;<b>密&nbsp;&nbsp;码:</b></td>
<td bgcolor="#FFFFFF">&nbsp;
<input name="pwd" type="password" id="pwd" size="30" class='alltxt' /></td>
</tr>
<tr id="repwdShow">
<td align="right" bgcolor="#FFFFFF">&nbsp;<b>确认密码:</b></td>
<td bgcolor="#FFFFFF">&nbsp;
<input name="repwd" type="password" id="repwd" size="30" class='alltxt' /></td>
</tr>
<tr>
<td colspan="2" align="center" bgcolor="#FFFFFF"><input name="button" type="submit" class="np coolbg" id="button" value="开通bShare服务" /></td>
</tr>
</form>
<tr>
<td bgcolor="#F9FCEF" colspan="2">&nbsp;</td>
</tr>
</table>
<script type="text/javascript">
(function($)
{
var regular = /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i;
function checkShow(doc)
{
$("#submode").val(doc.val());
if(doc.val() ==1)
{
$("#repwdShow").hide();
} else {
$("#repwdShow").show();
}
}
checkShow($(".bindtype"));
$("#form2").submit(function(){
if(!regular.test($("#user").val()))
{
alert('请输入正确的邮箱地址!');
$("#user").focus();
return false;
}
if($("#pwd").val() == '')
{
alert('请输入密码!');
$("#pwd").focus();
return false;
}
if($("#submode").val() == 0 &&
$("#pwd").val() != $("#repwd").val())
{
alert('密码需要保持一致!');
$("#repwd").focus();
return false;
}
return true;
});
$("input:radio").change(function()
{
checkShow($(this));
});
})(jQuery);
</script>
</body>
</html>

+ 0
- 186
src/dede/templets/plus_bshare_state.htm View File

@@ -1,186 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title>BShare分享插件</title>
<?php
if(is_file(dirname(__file__).'/../img/base.css'))
{
?>
<link href="img/base.css" rel="stylesheet" type="text/css" />
<?php
} else {
?>
<link href="css/base.css" rel="stylesheet" type="text/css" />
<?php
}
?>
<link href='css/boxy.css' rel='stylesheet' type='text/css' />
<?php
if(is_file(DEDEINC.'/js/jquery/jquery.js'))
{
?>
<script language="javascript" src="../static/js/jquery/jquery.js"></script>
<?php
} else {
?>
<script language="javascript" src="../static/js/jquery.min.js"></script>
<?php
}
?>
<script language="javascript" src="js/main.js"></script>
<script language="javascript" src="js/boxy.js"></script>
<script type="text/javascript" src="js/calendar/calendar.js"></script>
</head>
<body background="images/allbg.gif" leftmargin="8" topmargin="8">
<div class="bodytitle">
<div class="bodytitleleft"></div>
<div class="bodytitletxt" style="padding-left:10px;">辅助插件</div>
</div>
<table width="98%" border="0" align="center" cellpadding="4" cellspacing="1" class="tbtitle" style="background:#CFCFCF;">
<tr>
<td bgcolor="#EDF9D5" colspan="2" background='images/tbg.gif' style="padding-left:10px;"><strong>bShare分享插件</strong></td>
</tr>
<tr>
<td colspan="2" bgcolor="#F9FCEF">&nbsp;您已经开通bShare服务:</td>
</tr>
<tr>
<td width="20%" align="right" bgcolor="#FFFFFF">&nbsp;<b>用户名:</b></td>
<td width="80%" bgcolor="#FFFFFF">&nbsp;&nbsp;<?php echo isset($cfg_bshare['user'])? $cfg_bshare['user'] : '';?></td>
</tr>
<tr>
<td align="right" bgcolor="#FFFFFF">&nbsp;<b>UUID:</b></td>
<td bgcolor="#FFFFFF">&nbsp; <?php echo isset($cfg_bshare['uuid'])? $cfg_bshare['uuid'] : '';?></td>
</tr>
<tr>
<td colspan="2" align="right" bgcolor="#FFFFFF">&nbsp;</td>
</tr>
<tr>
<td colspan="2" align="left" bgcolor="#F9FCEF">前台调用样式/代码:</td>
</tr>
<tr>
<td colspan="2" align="left" bgcolor="#FFFFFF">
<form action="plus_bshare.php?do=setcode" method="post" id="form1">
<p>内容页面中直接加入<span style="color:red">{dede:bshare/}</span>,或者使用:<br />
<span style="color:red">&lt;script src='<?php echo $cfg_phpurl;?>/bshare.php' type='text/javascript'&gt;&lt;/script&gt;</span><br />
即可调用分享插件。</p>
<p>
<textarea name="bscode" id="bscode" cols="60" rows="3"><?php echo $bshareCode;?>
</textarea>
<input type="button" name="selectStyle" id="selectStyle" value="选择样式" />
</a> <input type="submit" name="button" id="button" value="设定样式" /></p>
</form>
<div id="bshareCode" style="display:none">
<iframe src="<?php echo $cfg_phpurl;?>/bshare.php?dopost=getcode&uuid=<?php echo isset($cfg_bshare['uuid'])? $cfg_bshare['uuid'] : '';?>" name="bshare" width="780px" height="300px" scrolling="no">
</iframe>
</div></td>
</tr>
<tr>
<td colspan="2" align="left" bgcolor="#FFFFFF">样式预览:</td>
</tr>
<tr>
<td colspan="2" align="left" bgcolor="#FFFFFF"><?php echo $bshareCode;?></td>
</tr>
<tr>
<td bgcolor="#EDF9D5" colspan="2" background='images/tbg.gif' style="padding-left:10px;"><strong>统计信息</strong></td>
</tr>
<tr>
<td colspan="2" align="left" bgcolor="#F9FCEF">选择查询条件:</td>
</tr>
<tr>
<td colspan="2" align="left" bgcolor="#FFFFFF">开始:
<form id="form2" name="form1" method="get" action="" target="_self">
<input name="starttime" type="text" id="starttime" style="width:100px" value="<?php echo $starttime;?>" size="60" />
<script language="javascript" type="text/javascript">
Calendar.setup({
inputField : "starttime",
ifFormat : "%Y-%m-%d",
showsTime : false,
timeFormat : "24"
});
</script>到 结束
<input name="endtime" type="text" id="endtime" style="width:100px" value="<?php echo $endtime;?>" size="60" />
<script language="javascript" type="text/javascript">
Calendar.setup({
inputField : "endtime",
ifFormat : "%Y-%m-%d",
showsTime : false,
timeFormat : "24"
});
</script>
<input type="submit" name="search" id="searchBtn" value="查询"/>
</form></td>
</tr>
<tr>
<td colspan="2" align="center" bgcolor="#FFFFFF"><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" id="head1">
<tr>
<td colspan="2" align="left"><table border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="84" align="center" background="images/itemnote1.gif">&nbsp;平台统计&nbsp;</td>
<td width="84" align="center" background="images/itemnote2.gif"><a href="#" onClick="ShowItem2()"><u>分享统计</u></a></td>
</tr>
</table></td>
</tr>
</table>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" id="head2" style="display:none">
<tr>
<td colspan="2" align="left"><table height="24" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="84" align="center" background="images/itemnote2.gif"><a href="#" onClick="ShowItem1()"><u>平台统计</u></a>&nbsp;</td>
<td width="84" align="center" background="images/itemnote1.gif">分享统计</td>
</tr>
</table></td>
</tr>
</table>
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="2" id="needset" style="border:1px solid #cfcfcf;background:#ffffff;margin-top:-5px;">
<tr>
<td width="400%" height="24" align="left" class="bline"><table width="498" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="152">&nbsp;bURL社交影响力分析:</td>
<td width='346'>&nbsp;</td>
</tr>
<tr>
<td colspan="2"> 说明:数据格式“平台.(访问占用百分比)-访问次数”。 <br />
<img src="<?php echo $platformUrl;?>" alt="bURL社交影响力分析" name="platformimg" id="platformimg" /></td>
</tr>
</table></td>
</tr>
</table>
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="2" id="adset" style="border:1px solid #cfcfcf;background:#ffffff; margin-top:-5px;display:none">
<tr>
<td height="24" class="bline" align="left" ><table width="498" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="22"><strong>分享统计信息:</strong></td>
</tr>
<tr>
<td height="22"><p>分享量统计表:</p>
<p><img src="<?php echo $shareUrl;?>" alt="bURL社交影响力分析" /></p>
<p>点击统计表</p>
<p><img src="<?php echo $clickUrl;?>" alt="bURL社交影响力分析" /></p></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td bgcolor="#F9FCEF" colspan="2">&nbsp;</td>
</tr>
</table>
<script type="text/javascript">
(function($){
$("#selectStyle").click(function()
{
if($.browser.msie)
{
if($Nav()=='IE'){ var posLeft = window.event.clientX-100; var posTop = window.event.clientY; }
else{ var posLeft = 100; var posTop = 100; }
window.open('<?php echo $cfg_phpurl;?>/bshare.php?dopost=getcode&uuid=<?php echo isset($cfg_bshare['uuid'])? $cfg_bshare['uuid'] : '';?>','getCode','scrollbars=no,width=780px,height=300px,top='+posTop+',left='+posLeft)
}else {
new Boxy($("#bshareCode"),{title:'获取bShare代码',draggable: true,closeText:'关闭'});
}
// new Boxy($("#bshareCode"),{title:'获取bShare代码',draggable: true,closeText:'关闭'});
});
})(jQuery);
</script>
</body>
</html>

+ 0
- 181
src/dede/templets/story_add.htm View File

@@ -1,181 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title>新增连载图书</title>
<link href='css/base.css' rel='stylesheet' type='text/css'>
<script language="javascript" src="js/main.js"></script>
<script language="javascript" src="../static/js/dedeajax2.js"></script>
<script language="javascript" src="js/story.js"></script>
<style type="text/css">
<!--
#addCatalog {
position:absolute;
left:455px;
top:64px;
width:325px;
height:238px;
z-index:2;
background-color: #F2FDDB;
border:1px solid #889D8F;
padding:6px;
display:none
}
#editCatalog {
position:absolute;
left:455px;
top:64px;
width:325px;
height:238px;
z-index:1;
background-color: #F2FDDB;
border:1px solid #889D8F;
padding:6px;
display:none
}
-->
</style>
</head>
<body background='images/allbg.gif' leftmargin='8' topmargin='8'>
<table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style=" background:#CFCFCF;">
<tr>
<td bgcolor="#EDF9D5" background="images/tbg.gif" class="tbtitletxt">
<table width='96%' border="0" cellpadding='0' cellspacing='0'>
<tr>
<td width='30%' class="tbtitletxt"><strong>新增图书</strong></td>
<td align='right'>
[<a href="story_books.php"><u>图书列表</u></a>]
&nbsp;
[<a href="story_catalog.php"><u>栏目管理</u></a>]
</td>
</tr>
</table>
</td>
</tr>
</table>
<form name='form1' action='story_add_action.php' enctype="multipart/form-data" method='post' onSubmit="return checkSubmitAdd();">
<table width="98%" border="0" cellpadding="5" cellspacing="1" align="center" style=" border:1px solid #CFCFCF;line-height:31px;margin:auto;border-top:none;">
<tr>
<td style="background:#ffffff;padding:7px 6px 6px 10px;" >
<font color='red'><?php echo $msg; ?></font>
</td>
</tr>
<tr>
<td height="116" bgcolor="#FFFFFF" style="padding:7px 6px 6px 10px;" >
<table width="98%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100" class="bline" style="width:100px">图书隶属栏目:</td>
<td class="bline">
<select name="catid" id="catid" style="width:200px">
<option value='0'>请选择栏目</option>
<?php
if(!isset($catid)) $catid = 0;
foreach($btypes as $k=>$v){
if($catid!=$k) echo "<option value='$k'>[{$booktypes[$k]}]$v</option>\r\n";
else echo "<option value='$k' selected>[{$booktypes[$k]}]$v</option>\r\n";
foreach($stypes[$k] as $kk=>$vv){
if($catid!=$kk) echo "<option value='$kk'> --[{$booktypes[$k]}]$vv</option>\r\n";
else echo "<option value='$kk' selected> --[{$booktypes[$k]}]$vv</option>\r\n";
}
}
?>
</select> </td>
</tr>
<tr>
<td height="32" class="bline">图书名称:</td>
<td class="bline"><input name="bookname" type="text" id="bookname" size="35" class='alltxt' />
 
<input name="iscommend" type="checkbox" id="iscommend" value="1" class='np' />
推荐</td>
</tr>
<tr>
<td height="32" class="bline">免费章节数:</td>
<td class="bline">
<input name="freenum" type="text" id="freenum" size="5" value="<?php echo $cfg_book_freenum; ?>" class='alltxt' />
(-1 表示全部免费,0 表示全部收费)
</td>
</tr>
<tr>
<td style="width:100px" class="bline">免费阅读所有<br/>内容会员级别:</td>
<td class="bline">
<select name="arcrank" id="arcrank" style="width:150px">
<?php
$urank = $cuserLogin->getUserRank();
$dsql->SetQuery("Select * from `#@__arcrank` where adminrank<='$urank'");
$dsql->Execute();
while($row = $dsql->GetObject())
{
echo "<option value='".$row->rank."'>".$row->membername."</option>\r\n";
}
?>
</select>
</td>
</tr>
<tr>
<td height="114" class="bline">图书封面图片:</td>
<td class="bline"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="75%" height="81"><table width="100%" border="0" cellspacing="1" cellpadding="1">
<tr>
<td height="30"> 本地直接上传请点击“浏览”按钮
<input name="litpic" type="file" id="litpic" style="width:200px" onchange="SeePic($Obj('picview'),$Obj('litpic'));" /></td>
</tr>
<tr>
<td height="30"><input name="litpicname" type="text" id="litpicname" style="width:250px" class='alltxt' />
<input type="button" name="Submit22" value="在网站内选择" style="width:120px" class='np coolbg' onclick="SelectImage('form1.litpicname','small');" /></td>
</tr>
</table></td>
<td align="center"><img src="images/pview.gif" width="150" id="picview" name="picview" /></td>
</tr>
</table></td>
</tr>
<tr>
<td height="32" class="bline">初始化数据:</td>
<td class="bline"><table width="85%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>作者:
<input name="author" type="text" id="author" style="width:120px" class='alltxt' value="<?php echo $writer; ?>"/>
<input name="selwriter" type="button" id="selwriter" value="选择"/></td>
<td>上架时间:
<input name="pubdate" type="text" id="pubdate" value="<?php echo GetDateTimeMk(time()); ?>" class='alltxt'/></td>
<td>点击量:
<input name="click" type="text" id="click" size="5" value="0" class='alltxt' /></td>
</tr>
</table></td>
</tr>
<tr height="32">
<td class="bline">关键字:</td>
<td class="bline"><input name="keywords" type="text" id="keywords" value="<?php echo $keywords; ?>" size="40" /> 手动填写用","分开
<input type="button" name="Submit" value="浏览..." style="width:56;height:20" onClick="SelectKeywords('form1.keywords');" /></td>
</tr>
<tr height="80">
<td class="bline">摘 要:</td>
<td class="bline"><textarea name="description" cols="80" rows="3" id="description"></textarea></td>
</tr>
<tr>
<td height="32" class="bline">具体介绍:</td>
<td class="bline">&nbsp;</td>
</tr>
<tr>
<td height="82" colspan="2">
<?php
GetEditor("body","",300);
?>
</td>
</tr>
<tr>
<td height="70">&nbsp;</td>
<td>
<input type="submit" name="Submit" value="保 存" class='np coolbg' />  
<input type="reset" name="Submit2" value="重 置" class='np coolbg' />
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</div>
<script language='javascript'>InitPage();</script>
</body>
</html>

+ 0
- 134
src/dede/templets/story_add_content.htm View File

@@ -1,134 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title>新增连载内容</title>
<link href='css/base.css' rel='stylesheet' type='text/css'>
<script language="javascript" src="js/main.js"></script>
<script language="javascript" src="../static/js/dedeajax2.js"></script>
<script language="javascript" src="js/story.js"></script>
<style type="text/css">
<!--
#addCatalog {
position:absolute;
left:455px;
top:64px;
width:325px;
height:238px;
z-index:2;
background-color: #F2FDDB;
border:1px solid #889D8F;
padding:6px;
display:none
}
#editCatalog {
position:absolute;
left:455px;
top:64px;
width:325px;
height:238px;
z-index:1;
background-color: #F2FDDB;
border:1px solid #889D8F;
padding:6px;
display:none
}
-->
</style>
</head>
<body background='images/allbg.gif' leftmargin='8' topmargin='8'>
<div class="bodytitle">
<div class="bodytitleleft"></div>
<div class="bodytitletxt">小说管理</div>
</div>
<table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style="background:#CFCFCF;">
<tr>
<td bgcolor="#EDF9D5" class="tbtitletxt">
<table width='96%' border="0" cellpadding='0' cellspacing='0'>
<tr>
<td width='30%' class="tbtitletxt"><strong>内容(小说类)&gt;&gt;增加章节内容</strong></td>
<td align='right'>
[<a href="story_list_content.php?bookid=<?php echo $bookid; ?>"><u>本图书内容列表</u></a>]
&nbsp;
[<a href="story_books.php"><u>所有图书</u></a>]
</td>
</tr>
</table>
</td>
</tr>
</table>
<form name='form1' action='story_add_content_action.php' method='post' onSubmit="return checkSubmitAddCt();">
<input type='hidden' name='bookid' value='<?php echo $bookid; ?>' />
<input type='hidden' name='catid' value='<?php echo $catid; ?>' />
<input type='hidden' name='bookname' value='<?php echo str_replace("'","`",$bookname); ?>' />
<input type='hidden' name='booktype' value='<?php echo $booktype; ?>' />
<table width="98%" border="0" cellpadding="5" cellspacing="1" align="center" style=" border:1px solid #CFCFCF;line-height:31px;margin:auto;">
<tr>
<td style="background:#F9FFE6;padding:7px 6px 6px 10px;" >
<font color='red'><?php echo $msg; ?></font>
</td>
</tr>
<tr>
<td height="116" bgcolor="#FFFFFF" style="padding:0px 6px 6px 10px;">
<table width="98%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="32" class="bline">小节标题:</td>
<td class="bline"><input name="title" type="text" id="title" size="35" class='alltxt' /></td>
</tr>
<tr>
<td style="width:120px" class="bline">隶属图书名称:</td>
<td class="bline">
<?php echo $bookname; ?>
</td>
</tr>
<tr>
<td height="32" class="bline">
隶属章节:<br />
<input name="addchapter" type="checkbox" onClick="ShowHideSelChapter('selchap','newchap')" id="addchapter" value="1"
<?php echo(count($chapters)>0 ? "" : " checked='1'"); ?> class='np' />
添加新章节
</td>
<td class="bline" style="padding-top:5px;padding-bottom:5px">
<span id='selchap' style="<?php echo(count($chapters)>0 ? "display:block" : "display:none"); ?>">
<select name="chapterid" size="5" id="chapterid" style="width:250px">
<?php
$ok = false;
foreach($chapters as $k=>$v){
if(!$ok){ $ok=true; echo " <option value='$k' selected>第{$chapnums[$k]}章 $v</option>\r\n"; }
else echo " <option value='$k'>第{$chapnums[$k]}章 $v</option>\r\n";
}
?>
</select>
</span>
<span id="newchap" style="<?php echo(count($chapters)>0 ? "display:none" : "display:block"); ?>">
新章节名称:
<input name="chapternew" type="text" id="chapternew" size="30" value="默认章节" class='alltxt' />
<br />
(如果没有可选章节或已有章节已经结束,请填写新章节名称,名称上不需加“第X章”这样的字样)
</span>
</td>
</tr>
<tr>
<td height="32" class="bline">章节内容:</td>
<td class="bline">&nbsp;</td>
</tr>
<tr>
<td height="82" colspan="2">
<?php
GetEditor("body","",300,"Diy");
?>
</td>
</tr>
<tr>
<td height="70">&nbsp;</td>
<td><input type="submit" name="Submit" value="保 存" class='np coolbg' />  
<input type="reset" name="Submit2" value="重 置" class='np coolbg' /></td>
</tr>
</table></td>
</tr>
</table>
</form>
</div>
</body>
</html>

+ 0
- 193
src/dede/templets/story_add_photo.htm View File

@@ -1,193 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title>新增连载内容</title>
<link href='css/base.css' rel='stylesheet' type='text/css'>
<script language="javascript" src="js/main.js"></script>
<script language="javascript" src="../static/js/dedeajax2.js"></script>
<script language="javascript" src="js/story.js"></script>
<style type="text/css">
<!--
#addCatalog {
position:absolute;
left:455px;
top:64px;
width:325px;
height:238px;
z-index:2;
background-color: #F2FDDB;
border:1px solid #889D8F;
padding:6px;
display:none
}
#editCatalog {
position:absolute;
left:455px;
top:64px;
width:325px;
height:238px;
z-index:1;
background-color: #F2FDDB;
border:1px solid #889D8F;
padding:6px;
display:none
}
-->
</style>
<script language="javascript">
function CheckSelTable(nnum){
var cbox = $Obj('isokcheck'+nnum);
var seltb = $Obj('seltb'+nnum);
if(cbox.checked) seltb.style.display = 'none';
else seltb.style.display = 'block';
}
var startNum = 1;
function MakeUpload(mnum)
{
var endNum = 0;
var upfield = document.getElementById("uploadfield");
var pnumObj = document.getElementById("picnum");
var fhtml = "";
if(mnum==0) endNum = startNum + Number(pnumObj.value);
else endNum = mnum;
if(endNum>120) endNum = 120;
for(startNum;startNum < endNum;startNum++){
fhtml = "";
fhtml += "<table width='90%'><tr><td><input type='checkbox' name='isokcheck"+startNum+"' id='isokcheck"+startNum+"' value='1' class='np' onClick='CheckSelTable("+startNum+")'>显示/隐藏图片["+startNum+"]的选框</td></tr></table>";
fhtml += "<table width=\"90%\" border=\"0\" id=\"seltb"+startNum+"\" cellpadding=\"1\" cellspacing=\"1\" bgcolor=\"#E8F5D6\" style=\"margin-bottom:6px;margin-left:10px\"><tobdy>";
fhtml += "<tr bgcolor=\"#F4F9DD\">\r\n";
fhtml += "<td height=\"25\" colspan=\"2\"> <strong>图片"+startNum+":</strong></td>";
fhtml += "</tr>";
fhtml += "<tr bgcolor=\"#FFFFFF\"> ";
fhtml += "<td width=\"70%\" height=\"25\">  本地上传: ";
fhtml += "<input type=\"file\" name='imgfile"+startNum+"' style=\"width:330px\" onChange=\"SeePic(document.picview"+startNum+",document.form1.imgfile"+startNum+");\"></td>";
fhtml += "<td rowspan=\"3\" align=\"center\"><img src=\"images/pview.gif\" width=\"150\" id=\"picview"+startNum+"\" name=\"picview"+startNum+"\"></td>";
fhtml += "</tr>";
fhtml += "<tr bgcolor=\"#FFFFFF\"> ";
fhtml += "<td height=\"25\">  指定网址: ";
fhtml += "<input type=\"text\" name='imgurl"+startNum+"' style=\"width:260px\"> ";
fhtml += "<input type=\"button\" name='selpic"+startNum+"' value=\"选取\" style=\"width:65px\" onClick=\"SelectImageN('form1.imgurl"+startNum+"','big','picview"+startNum+"')\">";
fhtml += "</td></tr>";
fhtml += "<tr bgcolor=\"#FFFFFF\"> ";
fhtml += "<td height=\"25\"> 漫画标题: ";
fhtml += "<input type='text' name='title"+startNum+"' style=\"width:300px\"/> </td>";
fhtml += "</tr></tobdy></table>\r\n";
upfield.innerHTML += fhtml;
}
}
</script>
</head>
<body background='images/allbg.gif' leftmargin='8' topmargin='8'>
<div class="bodytitle">
<div class="bodytitleleft"></div>
<div class="bodytitletxt">连载管理</div>
</div>
<table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style=" background:#CFCFCF;">
<tr>
<td bgcolor="#EDF9D5" class="tbtitletxt" background='images/tbg.gif'>
<table width='96%' border="0" cellpadding='0' cellspacing='0'>
<tr>
<td width='30%' class="tbtitletxt"><strong>连载内容(漫画类)&gt;&gt;增加内容</strong></td>
<td align='right'>
[<a href="story_list_content.php?bookid=<?php echo $bookid; ?>"><u>本图书内容列表</u></a>]
&nbsp;
[<a href="story_books.php"><u>所有连载图书</u></a>]
</td>
</tr>
</table>
</td>
</tr>
</table>
<form name='form1' action='story_add_photo_action.php' enctype="multipart/form-data" method='post' onSubmit="return checkSubmitAddPhoto();">
<input type='hidden' name='bookid' value='<?php echo $bookid; ?>' />
<input type='hidden' name='catid' value='<?php echo $catid; ?>' />
<input type='hidden' name='bookname' value='<?php echo str_replace("'","`",$bookname); ?>' />
<input type='hidden' name='booktype' value='<?php echo $booktype; ?>' />
<input type='hidden' name='photonum' value='5' />
<table width="98%" border="0" cellpadding="5" cellspacing="1" align="center" style=" border:1px solid #CFCFCF;line-height:31px;margin:auto;">
<tr>
<td style="background:#F9FFE6;padding:7px 6px 6px 10px;" >
<font color='red'><?php echo $msg; ?></font>
</td>
</tr>
<tr>
<td height="116" bgcolor="#FFFFFF" style="padding:0px 6px 6px 10px;">
<table width="98%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="32" class="bline">默认标题:</td>
<td class="bline"><input name="title" type="text" id="title" size="35" /></td>
</tr>
<tr>
<td style="width:120px" class="bline">隶属图书名称:</td>
<td class="bline">
<?php echo $bookname; ?> </td>
</tr>
<tr>
<td height="32" class="bline">
隶属章节:<br />
<input name="addchapter" type="checkbox" onClick="ShowHideSelChapter('selchap','newchap')" id="addchapter" value="1"
<?php echo(count($chapters)>0 ? "" : " checked"); ?> />
添加新章节 </td>
<td class="bline" style="padding-top:5px;padding-bottom:5px">
<span id='selchap' style="<?php echo(count($chapters)>0 ? "display:block" : "display:none"); ?>">
<select name="chapterid" size="5" id="chapterid" style="width:250px">
<?php
$ok = false;
foreach($chapters as $k=>$v){
if(!$ok){ $ok=true; echo " <option value='$k' selected>第{$chapnums[$k]}章 $v</option>\r\n"; }
else echo " <option value='$k'>第{$chapnums[$k]}章 $v</option>\r\n";
}
?>
</select>
</span>
<span id="newchap" style="<?php echo(count($chapters)>0 ? "display:none" : "display:block"); ?>">
新章节名称:
<input name="chapternew" type="text" id="chapternew" size="30" value="默认章节" />
<br />
(如果没有可选章节或已有章节已经结束,请填写新章节名称,名称上不需加“第X章”这样的字样) </span> </td>
</tr>
<tr>
<td height="32" colspan="2" class="bline">  为了方便您的多篇漫画或其它连载图片发布,您可以在此同时上传多个图片,系统会自动将其分割成多篇文档,如果您的内容主题是不需要单独设定的,可不指定每个图片的标题,系统将自动采用默认标题加数字进行标识。</td>
</tr>
<tr>
<td colspan="2"><table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>&nbsp;远程图片:</td>
<td colspan="3"><input name="isremote" type="checkbox" id="isremote" value="1" />
下载到本地 </td>
</tr>
<tr>
<td width="80">&nbsp;图片:</td>
<td width="74"><input name="picnum" type="text" id="picnum" size="8" value="10" /></td>
<td width="117"><input name='kkkup' type='button' id='kkkup2' value='增加表单' onclick="MakeUpload(0);" class="inputbut" /></td>
<td width="529"> ( 注:最大60幅,手工指定的图片链接允许填写远程网址) </td>
</tr>
</table></td>
</tr>
<tr>
<td height="82" colspan="2">
<span id="uploadfield"></span>
<script language="JavaScript">
MakeUpload(6);
</script>
</td>
</tr>
<tr>
<td height="70">&nbsp;</td>
<td><input type="submit" name="Submit" value="保 存" class='np coolbg' />  
<input type="reset" name="Submit2" value="重 置" class='np coolbg' /></td>
</tr>
</table></td>
</tr>
</table>
</form>
</div>
</body>
</html>

+ 0
- 165
src/dede/templets/story_books.htm View File

@@ -1,165 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title>连载图书列表</title>
<link href="css/base.css" rel="stylesheet" type="text/css">
<script language="javascript" src="js/main.js"></script>
<script language="javascript" src="../static/js/dedeajax2.js"></script>
<script language="javascript" src="js/story.js"></script>
<style type="text/css">
<!--
#addCatalog {
position:absolute;
left:455px;
top:64px;
width:325px;
height:238px;
z-index:2;
background-color: #F2FDDB;
border:1px solid #889D8F;
padding:6px;
display:none
}
#editCatalog {
position:absolute;
left:455px;
top:64px;
width:325px;
height:238px;
z-index:1;
background-color: #F2FDDB;
border:1px solid #889D8F;
padding:6px;
display:none
}
-->
</style>
</head>
<body background='images/allbg.gif' leftmargin='8' topmargin='8'>
<div class="bodytitle">
<div class="bodytitleleft"></div>
<div class="bodytitletxt">小说书目管理 <a href="../book" target="_blank">[查看首页]</a></div>
</div>
<table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style=" background:#CFCFCF;">
<tr>
<td bgcolor="#EDF9D5" background='images/tbg.gif'>
<table width='96%' cellpadding='0' cellspacing='0'>
<tr>
<td width='30%' height="13"><strong>图书列表</strong></td>
<td align='right'>
[<a href="story_books.php?ischeck=1"><u>未审核的图书</u></a>]
&nbsp;
[<a href="story_add.php"><u>新增图书</u></a>]
&nbsp;
[<a href="story_catalog.php"><u>栏目管理</u></a>]
</td>
</tr>
</table>
</td>
</tr>
</table>
<table width="98%" border="0" cellpadding="5" cellspacing="1" align="center" style=" border:1px solid #CFCFCF;border-top:none;line-height:31px;margin:auto;">
<tr>
<td style="background:#ffffff;padding:2px 2px 2px 2px;" >
<form name='form1' action='story_books.php' method='get'>
<table width="96%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="13%" align="center">关键字:</td>
<td width="27%"><input name="keyword" type="text" id="keyword" value="<?php echo $keyword; ?>" size="30" class='alltxt' /></td>
<td width="18%">
<select name="catid" id="catid">
<option value='0'>请选择栏目</option>
<?php
foreach($btypes as $k=>$v){
echo "<option value='$k'>$v</option>\r\n";
if(isset($stypes[$k]))
{
foreach($stypes[$k] as $kk=>$vv)
{
echo "<option value='$kk'> --$vv</option>\r\n";
}
}
}
?>
</select>
</td>
<td width="42%"><input type="submit" name="Submit" value="搜 索" class='np coolbg'/></td>
</tr>
</table>
</form>
</td>
</tr>
</table>
<form name='form2'>
<table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" style=" margin-top:3px; margin-bottom:3px; line-height:31px;background:#cfcfcf;">
<tr align="center" height="28" bgcolor="#FBFCE2">
<td>选择</td>
<td>图书封面</td>
<td>图书名称</td>
<td>隶属栏目</td>
<td>创建时间</td>
<td>审核</td>
<td>管理项目</td>
</tr>
{dede:datalist}
<?php
if($fields['ischeck'] == 1){
$fields['ischeck']='已审核';
}else{
$fields['ischeck']='<font color="red">未审核</font> <a href="story_books.php?action=checked&id='.$fields['bid'].'">审核</a>';
}
?>
<tr bgcolor="#FFFFFF" height="26" align="center" onMouseMove="javascript:this.bgColor='#FCFDEE';" onMouseOut="javascript:this.bgColor='#FFFFFF';"align="center">
<td width="8%"> <input type='checkbox' name='ids' value='{dede:field.bid/}' class='np' /> </td>
<td width="8%">
<?php
if($fields['litpic']!=''){
echo "<img src='{$fields['litpic']}' style='padding:2px' height='50'>";
}else{
echo "<img src='images/booknopic.gif' style='padding:2px' height='50'>";
}
?>
</td>
<td width="28%">
<?php
echo "<a href='../book/book.php?bid={$fields['bid']}' target='_blank'>".$fields['bookname']."</a>";
if($fields['booktype']!=1) echo "(<font color='#558A20'>小说</font>内容:{$fields['postnum']})";
else echo "(<font color='#AB8110'>漫画</font>内容:{$fields['postnum']})";
?>
</td>
<td width="12%"> {dede:field.classname/}</td>
<td width="12%">{dede:field.senddate function=GetDateMK(@me)/}</td>
<td width="12%"> <?php echo $fields['ischeck']; ?> </td>
<td align="left">
<?php if($fields['booktype']!=1){ ?>
<a href='story_add_content.php?bookid=<?php echo $fields['bid']; ?>'>添加</a> |
<?php }else{ ?>
<a href='story_add_photo.php?bookid=<?php echo $fields['bid']; ?>'>添加</a> |
<?php } ?>
<a href='story_edit.php?bookid=<?php echo $fields['bid']; ?>'>修改</a> |
<a href='story_list_content.php?bookid=<?php echo $fields['bid']; ?>'>内容</a> <br />
<a href='story_list_chapter.php?bookid=<?php echo $fields['bid']; ?>'>章节</a> |
<a href='javascript:DelStory(<?php echo $fields['bid']; ?>)'>删除</a>
</td>
</tr>
{/dede:datalist}
<tr>
<td colspan='7' bgcolor="#ffffff" height='30'>
&nbsp;
<a href="javascript:selAll()" class="coolbg">全选</a>
<a href="javascript:noSelAll()" class="coolbg">取消</a>
<a href="javascript:DelAllBooks()" class="coolbg">删除</a>
</td>
</tr>
</table>
</form>
<table width="98%" border="0" cellpadding="5" cellspacing="1" align="center" style=" border:1px solid #CFCFCF;line-height:31px;margin:auto;">
<tr>
<td bgcolor="#F9FCEF" align="center">{dede:pagelist listsize=5 /}</td>
</tr>
</table>
</div>
</body>
</html>

+ 0
- 155
src/dede/templets/story_catalog.htm View File

@@ -1,155 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title>连载栏目管理</title>
<link href="css/base.css" rel="stylesheet" type="text/css">
<script language="javascript" src="js/main.js"></script>
<script language="javascript" src="../static/js/dedeajax2.js"></script>
<script language="javascript" src="js/story.js"></script>
<style type="text/css">
<!--
#addCatalog {
position:absolute;
left:455px;
top:64px;
width:325px;
height:238px;
z-index:1;
background-color: #F9FCEF;
border:1px solid #889D8F;
padding:6px;
display:none
}
#editCatalog {
position:absolute;
left:455px;
top:64px;
width:325px;
height:238px;
z-index:1;
background-color: #F9FCEF;
border:1px solid #889D8F;
padding:6px;
display:none
}
-->
</style>
</head>
<body background='images/allbg.gif' leftmargin='8' topmargin='8'>
<table width="98%" align="center" border="0" cellpadding="0" cellspacing="1" bgcolor="#D6D6D6">
<tr>
<td bgcolor="#EDF9D5" height="28" background='images/tbg.gif'>
<table width='96%' border="0" cellpadding='0' cellspacing='0'>
<tr background='images/tbg.gif'>
<td width='30%' class="tbtitletxt" style="padding-left:10px;"><strong>小说栏目管理</strong> <a href="../book" target="_blank">[查看首页]</a></td>
<td align='right'>
[<a href="javascript:ShowAddCatalog();"><u>增加新栏目</u></a>]
&nbsp;
[<a href="story_add.php"><u>增加新图书</u></a>]
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td style="background:#ffffff;padding:7px 6px 6px 10px;" >
<font color='red'><?php echo $msg; ?></font>
</td>
</tr>
<tr>
<td height="116" bgcolor="#FFFFFF" style="padding:7px 6px 6px 10px;" >
<?php
//栏目递归列表
echo "<form name='frank' action='story_catalog.php' method='post'>\r\n";
echo "<input type='hidden' name='action' value='uprank' />";
echo "<table width='98%' border='0' cellpadding='0' cellspacing='3'>\r\n";
echo "<tr>\r\n<td width='1%' height='1'></td><td width='60%'></td><td></td></tr>\r\n";
$options = "";
foreach($btypes as $k=>$v)
{
echo "<tr height='24' bgcolor='#FDFEF1'>\r\n";
echo "<td><input type='text' size='2' name='rank_{$k}' value='{$ranks[$k]}'></td>\r\n";
echo "<td style='padding-left:3px'>·{$v} (ID:{$k} ,图书:".TjBookNum($k,$dsql).")</td>\r\n";
echo "<td align='right' style='padding-right:8px;'>\r\n";
echo "<a href='javascript:EditCatalog({$k});'>修改</a> | ";
echo "<a href='javascript:DelCatalog({$k});'>删除</a> | ";
echo "<a href='story_add.php?catid={$k}'>添加图书</a> | ";
echo "<a href='story_books.php?catid={$k}'>图书列表</a> ";
echo "</td>\r\n</tr>\r\n";
$options .= "<option value='{$k}'>{$v}</option>\r\n";
//获取下级栏目
if(!empty($stypes[$k]) && is_array($stypes[$k])){
foreach($stypes[$k] as $kk=>$vv)
{
echo "<tr height='24'>\r\n";
echo "<td><input type='text' size='2' name='rank_{$kk}' value='{$ranks[$kk]}'></td>\r\n";
echo "<td style='padding-left:18px'>·{$vv} (ID:{$kk},图书:".TjBookNum($kk,$dsql).")</td>\r\n";
echo "<td align='right' style='padding-right:8px;'>\r\n";
echo "<a href='javascript:EditCatalog({$kk});'>修改</a> | ";
echo "<a href='javascript:DelCatalog({$kk});'>删除</a> | ";
echo "<a href='story_add.php?catid={$kk}'>添加图书</a> | ";
echo "<a href='story_books.php?catid={$kk}'>图书列表</a>";
echo "</td>\r\n</tr>\r\n";;
}
}
}
echo "</table>\r\n";
echo "<div style='padding-top:10px;margin-top:10px;border-top:1px solid #cccccc'><input type='submit' name='Submit' value='更新排序' style='width:80px' class='np coolbg'/></div>";
echo "</form>\r\n";
?>
</td>
</tr>
</table>
<!-- 下面是隐藏的栏目增加/修改表单 -->
<div id="editCatalog">
<span id='editCatalogBody'>请稍候,正在载入...</span>
</div>
<div id="addCatalog">
<form name='addform' action='story_catalog.php' method='get'>
<input type='hidden' name='action' value='add' />
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="90" height="28">栏目名称:</td>
<td width="101"><input name="classname" type="text" id="classname" /></td>
<td width="20" align="right" valign="top"><a href="javascript:CloseAddCatalog()"><img src="images/close.gif" width="12" height="12" border="0" /></a></td>
</tr>
<tr>
<td height="28">隶属栏目:</td>
<td colspan="2">
<select name="pid" id="pid">
<option value="0">新建顶级栏目</option>
<?php echo $options; ?>
</select>
</td>
</tr>
<tr>
<td height="28">排序级别:</td>
<td colspan="2"><input name="rank" type="text" id="rank" size="5" value="0" />
(数值小靠前)</td>
</tr>
<tr>
<td height="28">连载类型:</td>
<td colspan="2"><input name="booktype" type="radio" value="0" checked="checked" />
小说
<input type="radio" name="booktype" value="1" />
漫画</td>
</tr>
<tr>
<td height="28">关键字:</td>
<td colspan="2"><input name="keywords" type="text" id="keywords" /></td>
</tr>
<tr>
<td>摘 要:</td>
<td colspan="2"><textarea name="description" id="description" style="width:180px;height:45px"></textarea></td>
</tr>
<tr>
<td height="43">&nbsp;</td>
<td colspan="2"><input type="submit" name="Submit" value="增加栏目" style="width:80px"/></td>
</tr>
</table>
</form>
</div>
</body>
</html>

+ 0
- 135
src/dede/templets/story_content_edit.htm View File

@@ -1,135 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title>修改连载内容</title>
<link href='css/base.css' rel='stylesheet' type='text/css'>
<script language="javascript" src="js/main.js"></script>
<script language="javascript" src="../static/js/dedeajax2.js"></script>
<script language="javascript" src="js/story.js"></script>
<style type="text/css">
<!--
#addCatalog {
position:absolute;
left:455px;
top:64px;
width:325px;
height:238px;
z-index:2;
background-color: #F2FDDB;
border:1px solid #889D8F;
padding:6px;
display:none
}
#editCatalog {
position:absolute;
left:455px;
top:64px;
width:325px;
height:238px;
z-index:1;
background-color: #F2FDDB;
border:1px solid #889D8F;
padding:6px;
display:none
}
-->
</style>
</head>
<body leftmargin='8' topmargin='8'>
<div class="bodytitle">
<div class="bodytitleleft"></div>
<div class="bodytitletxt">小说管理</div>
</div>
<table width="96%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style=" background:#CFCFCF;">
<tr>
<td bgcolor="#EDF9D5" class="tbtitletxt">
<table width='96%' border="0" cellpadding='0' cellspacing='0'>
<tr>
<td width='30%' class="tbtitletxt"><strong>内容(小说类)&gt;&gt;修改内容</strong></td>
<td align='right'>
[<a href="story_list_content.php"><u>本图书内容列表</u></a>]
&nbsp;
[<a href="story_books.php"><u>所有图书</u></a>]
</td>
</tr>
</table>
</td>
</tr>
</table>
<form name='form1' action='story_edit_content_action.php' method='post'>
<input type='hidden' name='cid' value='<?php echo $cid; ?>' />
<input type='hidden' name='bookid' value='<?php echo $bookid; ?>' />
<input type='hidden' name='catid' value='<?php echo $catid; ?>' />
<input type='hidden' name='bookname' value='<?php echo str_replace("'","`",$bookname); ?>' />
<input type='hidden' name='booktype' value='<?php echo $booktype; ?>' />
<table width="96%" border="0" cellpadding="5" cellspacing="1" align="center" style=" border:1px solid #CFCFCF;line-height:31px;margin:auto;">
<tr>
<td height="116" bgcolor="#FFFFFF" style="padding:0px 6px 6px 10px;">
<table width="98%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="32" class="bline">章节标题:</td>
<td class="bline"><input name="title" type="text" id="title" size="35" value="<?php echo $contents['title']; ?>" /></td>
</tr>
<tr>
<td style="width:120px" class="bline">隶属图书名称:</td>
<td class="bline">
<?php echo $bookname; ?>
</td>
</tr>
<tr>
<td style="width:120px" class="bline">在章节中的顺序:</td>
<td class="bline">
<input name="sortid" type="text" id="sortid" size="5" value="<?php echo $contents['sortid']; ?>" />
</td>
</tr>
<tr>
<td height="32" class="bline">
隶属章节:<br />
<input name="addchapter" type="checkbox" onClick="ShowHideSelChapter('selchap','newchap')" id="addchapter" value="1" />
添加新章节
</td>
<td class="bline" style="padding-top:5px;padding-bottom:5px">
<span id='selchap' style="display:block">
<select name="chapterid" size="5" id="chapterid" style="width:250px">
<?php
foreach($chapters as $k=>$v){
if($k==$contents['chapterid']){ echo " <option value='$k' selected>第{$chapnums[$k]}章 $v</option>\r\n"; }
else echo " <option value='$k'>第{$chapnums[$k]}章 $v</option>\r\n";
}
?>
</select>
</span>
<span id="newchap" style="display:none">
新章节名称:
<input name="chapternew" type="text" id="chapternew" size="30" />
<br />
(如果没有可选章节或已有章节已经结束,请填写新章节名称,名称上不需加“第X章”这样的字样)
</span>
</td>
</tr>
<tr>
<td height="32" class="bline">章节内容:</td>
<td class="bline">&nbsp;</td>
</tr>
<tr>
<td height="82" colspan="2"><?php
GetEditor("body",GetBookText($contents['id']),300,"Small");
?></td>
</tr>
<tr>
<td height="70">&nbsp;</td>
<td><input type="submit" name="Submit" value="保 存" />  
<input type="reset" name="Submit2" value="重 置" /></td>
</tr>
</table></td>
</tr>
</table>
</form>
</div>
</body>
</html>

+ 0
- 191
src/dede/templets/story_edit.htm View File

@@ -1,191 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title>修改连载图书</title>
<link href='css/base.css' rel='stylesheet' type='text/css'>
<script language="javascript" src="js/main.js"></script>
<script language="javascript" src="../static/js/dedeajax2.js"></script>
<script language="javascript" src="js/story.js"></script>
<style type="text/css">
<!--
#addCatalog {
position:absolute;
left:455px;
top:64px;
width:325px;
height:238px;
z-index:2;
background-color: #F2FDDB;
border:1px solid #889D8F;
padding:6px;
display:none
}
#editCatalog {
position:absolute;
left:455px;
top:64px;
width:325px;
height:238px;
z-index:1;
background-color: #F2FDDB;
border:1px solid #889D8F;
padding:6px;
display:none
}
-->
</style>
</head>
<body background='images/allbg.gif' leftmargin='8' topmargin='8'>
<div class="bodytitle">
<div class="bodytitleleft"></div>
<div class="bodytitletxt">连载管理</div>
</div>
<table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style="background:#CFCFCF;">
<tr>
<td bgcolor="#EDF9D5" background='images/tbg.gif'>
<table width='96%' border="0" cellpadding='0' cellspacing='0'>
<tr>
<td width='30%' class="tbtitletxt"><strong>修改连载图书</strong></td>
<td align='right'>
[<a href="story_books.php"><u>连载内容列表</u></a>]
&nbsp;
[<a href="story_catalog.php"><u>连载栏目管理</u></a>]
</td>
</tr>
</table>
</td>
</tr>
</table>
<form name='form1' action='story_edit_action.php' enctype="multipart/form-data" method='post' onSubmit="return checkSubmitEdit();">
<input type='hidden' name='bookid' value='<?php echo $bookid; ?>' />
<table width="98%" border="0" cellpadding="5" cellspacing="1" align="center" style=" border:1px solid #CFCFCF;line-height:31px;margin:auto;">
<tr>
<td height="116" bgcolor="#FFFFFF" style="padding:7px 6px 6px 10px;" >
<table width="98%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="120" class="bline" style="width:120px">图书隶属栏目:</td>
<td colspan="3" class="bline">
<select name="catid" id="catid">
<option value='0'>请选择栏目</option>
<?php
foreach($btypes as $k=>$v){
if($books['catid']==$k) echo "<option value='$k' selected>$v</option>\r\n";
else echo "<option value='$k'>$v</option>\r\n";
foreach($stypes[$k] as $kk=>$vv){
if($books['catid']==$kk) echo "<option value='$kk' selected> --$vv</option>\r\n";
else echo "<option value='$kk'> --$vv</option>\r\n";
}
}
?>
</select> </td>
</tr>
<tr>
<td height="32" class="bline">连载图书名称:</td>
<td colspan="3" class="bline">
<input name="bookname" type="text" id="bookname" size="35" value="<?php echo $books['bookname']; ?>" class='alltxt' />
<input name="iscommend" type="checkbox" id="iscommend" value="1"<?php if($books['iscommend']==1) echo ' checked'; ?> class='np' />
推荐
</td>
</tr>
<tr>
<td height="32" class="bline">免费章节数:</td>
<td colspan="3" class="bline">
<input name="freenum" type="text" id="freenum" size="5" value="<?php echo $books['freenum']; ?>" class='alltxt' />
(-1 表示全部免费,0 表示全部收费)
</td>
</tr>
<tr>
<td style="width:120px" class="bline">免费阅读所有<br />内容会员级别:</td>
<td colspan="3" class="bline">
<select name="arcrank" id="arcrank" style="width:150">
<option value='<?php echo $books["arcrank"]?>'><?php echo $books["membername"]?></option>
<?php
$urank = $cuserLogin->getUserRank();
$dsql->SetQuery("Select * from #@__arcrank where adminrank<='$urank'");
$dsql->Execute();
while($row = $dsql->GetObject()){
echo "<option value='".$row->rank."'>".$row->membername."</option>\r\n";
}
?>
</select>
</td>
</tr>
<tr>
<td height="32" class="bline">图书状态:</td>
<td colspan="3" class="bline">
<input type='radio' name='status' value='0'<?php if($books['status']==0) echo ' checked'; ?> class='np' />连载中
<input type='radio' name='status' value='1'<?php if($books['status']==1) echo ' checked'; ?> class='np' />已完成连载
<input type='radio' name='ischeck' value='0'<?php if($books['ischeck']==0) echo ' checked'; ?> class='np' />未审核
<input type='radio' name='ischeck' value='1'<?php if($books['ischeck']==1) echo ' checked'; ?> class='np' />已审核
</td>
</tr>
<tr>
<td height="114" class="bline">图书封面图片:</td>
<td colspan="3" class="bline">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="75%" height="81">
<table width="100%" border="0" cellspacing="1" cellpadding="1">
<tr>
<td height="30"> 本地直接上传请点击“浏览”按钮
<input name="litpic" type="file" id="litpic" style="width:200px" onchange="SeePic($Obj('picview'),$Obj('litpic'));" /> </td>
</tr>
<tr>
<td height="30">
<input name="litpicname" type="text" id="litpicname" style="width:250px" value="<?php echo $books['litpic']; ?>" class='alltxt' />
<input type="button" name="Submit22" value="在网站内选择" style="width:120" onclick="SelectImage('form1.litpicname','small');" class='np coolbg' />
</td>
</tr>
</table></td>
<td align="center">
<img src="<?php if($books['litpic']=='') echo 'images/pview.gif'; else echo $books['litpic']; ?>" width="150" id="picview" name="picview" />
</td>
</tr>
</table></td>
</tr>
<tr>
<td height="32" class="bline">初始化数据:</td>
<td width="238" class="bline">作者:
<input name="author" type="text" id="author" style="width:120px" class='alltxt' value="<?php echo $books['author']; ?>"/>
<input name="selwriter" type="button" id="selwriter" value="选择"/>
</td>
<td width="224" class="bline">上架时间:
<input name="pubdate" type="text" id="pubdate" value="<?php echo GetDateMk($books['pubdate']); ?>" class='alltxt' /></td>
<td width="510" class="bline">点击量:
<input name="click" type="text" id="click" size="5" value="<?php echo $books['click']; ?>" class='alltxt' /></td>
</tr>
<tr height="32">
<td class="bline">关键字:</td>
<td colspan="5" class="bline"><input name="keywords" type="text" id="keywords" value="<?php echo $books['keywords']; ?>" size="40" />
手动填写用","分开
<input type="button" name="Submit" value="浏览..." style="width:56;height:20" onClick="SelectKeywords('form1.keywords');" /></td>
</tr>
<td class="bline">摘 要:</td>
<td colspan="5" class="bline"><textarea name="description" cols="80" rows="3" id="description"><?php echo $books['description']; ?></textarea></td>
<tr>
<td height="32" class="bline">具体介绍:</td>
<td colspan="3" class="bline">&nbsp;</td>
</tr>
<tr>
<td height="82" colspan="4">
<?php
GetEditor("body",$books['body'],300);
?>
</td>
</tr>
<tr>
<td height="70">&nbsp;</td>
<td colspan="3">
<input type="submit" name="Submit" value="保 存" class='np coolbg'/>  
<input type="reset" name="Submit2" value="重 置" class='np coolbg' />
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</div>
</body>
</html>

+ 0
- 83
src/dede/templets/story_feedback_edit.htm View File

@@ -1,83 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title>编辑评论</title>
<style type="text/css">
<!--
body {
background-image: url(images/allbg.gif);
}
-->
</style>
<link href='css/base.css' rel='stylesheet' type='text/css'>
</head>
<body>
<table width="98%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#D6D6D6">
<tr>
<td width="100%" height="24" colspan="2" background="images/tbg.gif">
&nbsp;<strong><a href="<?php echo $ENV_GOBACK_URL; ?>"><u>评论管理</u></a> &gt;&gt; 编辑评论:</strong>
</td>
</tr>
<tr>
<td height="187" colspan="2" align="center" bgcolor="#FFFFFF">
<form name="form1" method="post" action="story_feedback_edit.php">
<input type="hidden" name="dopost" value="edit" />
<input type="hidden" name="id" value="<?php echo $row['id']; ?>" />
<table width="100%" border="0" cellpadding="3" cellspacing="1">
<tr bgcolor="#FFFFFF">
<td width="18%" height="24">评论所属文章:</td>
<td width="82%">
<?php echo $row['arctitle']; ?>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="24">评论人:</td>
<td>
<input name="username" type="text" id="username" size="20" value="<?php echo $row['username']; ?>" />
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="24">评论发布时间:</td>
<td>
<?php echo GetDateTimeMK($row['dtime']); ?>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="24">IP地址:</td>
<td>
<?php echo $row['ip']; ?>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="24">评论内容:</td>
<td>更改的评论内容HTML代码不会被屏蔽,可用HTML语法编辑。</td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="62" align="center">&nbsp; </td>
<td height="62">
<textarea name="msg" cols="60" rows="5" id="msg"><?php echo cn_substr(Text2Html($row['msg']), 500); ?></textarea></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="24">管理员回复:</td>
<td>回复内容的HTML代码会被屏蔽。</td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="24" align="center">&nbsp; </td>
<td height="24">
<textarea name="adminmsg" cols="60" rows="5" id="adminmsg"></textarea></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="40" width='600' colspan="2" align="center">
<input type="submit" name="Submit1" class='coolbg np' value="保存更改" />
&nbsp;
<input type="button" name="Submit2" class='coolbg np' value="不理返回" onClick="location='<?php echo $ENV_GOBACK_URL; ?>';" />
</td>
</tr>
</table>
</form>
</td>
</tr>
</table>
</body>
</html>

+ 0
- 172
src/dede/templets/story_feedback_main.htm View File

@@ -1,172 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title>小说评论管理</title>
<script language='javascript'>
//获得选中文件的文件名
function getCheckboxItem()
{
var allSel="";
if(document.feedback.fid.value) return document.feedback.fid.value;
for(i=0;i<document.feedback.fid.length;i++)
{
if(document.feedback.fid[i].checked)
{
if(allSel=="")
allSel=document.feedback.fid[i].value;
else
allSel=allSel+","+document.feedback.fid[i].value;
}
}
return allSel;
}
function selAll()
{
for(i=0;i<document.feedback.fid.length;i++)
{
document.feedback.fid[i].checked=true;
}
}
function selNone()
{
for(i=0;i<document.feedback.fid.length;i++)
{
document.feedback.fid[i].checked=false;
}
}
function selNor()
{
for(i=0;i<document.feedback.fid.length;i++)
{
if(document.feedback.fid[i].checked==false)
document.feedback.fid[i].checked=true;
else
document.feedback.fid[i].checked=false;
}
}
function delFeedback()
{
var qstr=getCheckboxItem();
if(qstr=="") alert("你没选中任何内容!");
else if(window.confirm('你确定要删除这些评论吗?')) location.href="story_feedback_main.php?job=del&fid="+qstr;
}
function delFeedbackIP()
{
var qstr=getCheckboxItem();
if(qstr=="") alert("你没选中任何内容!");
else if(window.confirm('你确定要删除这些评论吗?')) location.href="story_feedback_main.php?job=delall&fid="+qstr;
}
function checkFeedback()
{
var qstr=getCheckboxItem();
if(qstr=="") alert("你没选中任何内容!");
else location.href="story_feedback_main.php?job=check&fid="+qstr;
}
function editFeedback()
{
var qstr=getCheckboxItem();
if(qstr=="") alert("你没选中任何内容!");
else location.href="story_feedback_edit.php?job=edit&fid="+qstr;
}
</script>
<link href='css/base.css' rel='stylesheet' type='text/css'>
</head>
<body background='images/allbg.gif' leftmargin='8' topmargin='8'>
<table width="98%" border="0" cellpadding="3" align="center" cellspacing="1" bgcolor="#D6D6D6">
<tr>
<td height="28" background='images/tbg.gif'>
<div style="float:left;">
<a href='story_feedback_main.php' style="padding-left:10px;"><u><b>评论管理</b></u></a>
</div>
<div style="float:right;padding-right:10px">
<form name='form1'>
关键字:
<input type='text' size='15' name='keyword' style='width:150'>
<select name="typeid" style="width:180">
<option value="0">--请选择--</option>
{dede:global.openarray /}
</select>
<input type='submit' name='sb' value=' 搜索 ' class='coolbt' />
</form>
</div>
</td>
</tr>
<form name='feedback'>
<tr>
<td height="215" bgcolor="#FFFFFF" valign="top">
<table width='100%' border='0' cellpadding='0' cellspacing='0'>
{dede:datalist}
<tr height='25'>
<td>
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#cfcfcf">
<tr height="25" bgcolor="#FBFCE2">
<td width="9%">
&nbsp;选择 <input name="fid" type="checkbox" class="np" id="fid" value="{dede:field.id/}">
</td>
<td width="12%" style="padding-left:8px;">
用户:{dede:field.username/}
</td>
<td width="30%" style="padding-left:8px;">
文档:<a href='story_feedback_main.php?aid={dede:field.aid/}'><u>{dede:field.arctitle/}</u></a> (<a href="/book/book.php?bid={dede:field.aid/}" target="_blank"><u>浏览</u></a>)
</td>
<td width="18%" align="center">
IP地址:<a href='feedback_main.php?ip={dede:field.ip/}'><u>{dede:field.ip/}</u></a>
</td>
<td width="21% style="padding-left:8px;"">
时间:{dede:field.dtime function="GetDateTimeMK(@me)" /}
</td>
<td width="10%" align="center">
<a href='story_feedback_edit.php?id={dede:field.id/}'><img src="images/feedback-edit.gif" border="0" width="45" height="18"></a>
</td>
</tr>
<tr align="center" bgcolor="#FFFFFF">
<td height="28" colspan="6">
<table width="98%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
{dede:field.ischeck function="IsCheck(@me)" /}
{dede:field.msg function='cn_substr(Text2Html(@me), 50)'/}
</td>
</tr>
</table></td>
</tr>
</table>
<table width="98%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="3"></td>
</tr>
</table></td>
</tr>
{/dede:datalist}
<tr>
<td height='20' align='center' bgcolor="#F9FCEF">
{dede:pagelist listsize='5' /}
</td>
</tr>
<tr>
<td height='30'>
<table width="98%">
<tr>
<td width="30%">
<input type='button' name='kk1' value='全选' onClick="selAll()" class="coolbg np" />
<input type='button' name='kk2' value='取消' onClick="selNone()" class="coolbg np" />
<input type='button' name='kk3' value='反选' onClick="selNor()" class="coolbg np" />
</td>
<td align="right">
<input type='button' name='db' value=' 删除相同IP的所有评论 ' onClick="delFeedbackIP()" class="coolbg np" />
<input type='button' name='db' value=' 删除评论 ' onClick="delFeedback()" class="coolbg np" />
<input type='button' name='db2' value=' 审核评论 ' onClick="checkFeedback()" class="coolbg np" />
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</form>
</table>
</body>
</html>

+ 0
- 152
src/dede/templets/story_list_chapter.htm View File

@@ -1,152 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title>连载章节列表</title>
<link href='css/base.css' rel='stylesheet' type='text/css'>
<script language="javascript" src="js/main.js"></script>
<script language="javascript" src="../static/js/dedeajax2.js"></script>
<script language="javascript" src="js/story.js"></script>
<script language="javascript">
function EditChapter(cid){
$Obj('editchapter').style.display='block';
var chapterid = cid;
var chaptername = $Obj('chaptername_'+cid).value;
var chapnum = $Obj('chapnum_'+cid).value;
var myajax = new DedeAjax($Obj('editchapter'),false,true,"","","请稍候,正在处理...");
<?php if(strtolower(substr($cfg_soft_lang, 0, 3)) == 'utf') { ?>
//utf8
myajax.AddKeyUtf8('cid',cid);
myajax.AddKeyUtf8('chaptername',chaptername);
myajax.AddKeyUtf8('chapnum',chapnum);
myajax.AddKeyUtf8('action','editChapter');
myajax.SendPost2('story_do.php');
<?php } elseif (strtolower(substr($cfg_soft_lang, 0, 2)) == 'gb') { ?>
//gbk
myajax.SendGet2("story_do.php?cid="+cid+"&chaptername="+chaptername+"&chapnum="+chapnum+"&action=editChapter");
<?php }?>
DedeXHTTP = null;
}
</script>
<style type="text/css">
<!--
#editchapter {
position:absolute;
left:455px;
top:64px;
width:250px;
height:150px;
z-index:1;
background-color: #F2FDDB;
border:1px solid #889D8F;
padding:8px;
display:none
}
-->
</style>
</head>
<body background='images/allbg.gif' leftmargin='8' topmargin='8'>
<div class="bodytitle">
<div class="bodytitleleft"></div>
<div class="bodytitletxt" style="padding-left:10px;">小说管理 <a href="../book" target="_blank">[查看首页]</a></div>
</div>
<table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style=" background:#CFCFCF;">
<tr>
<td bgcolor="#EDF9D5" background="images/tbg.gif" class="tbtitletxt">
<table width='96%' border="0" cellpadding='0' cellspacing='0'>
<tr>
<td width='30%' class="tbtitletxt" style="padding-left:10px;"><strong>连载章节列表</strong></td>
<td align='right'>
[<a href="story_books.php"><u>图书管理</u></a>]
&nbsp;
[<a href="story_list_content.php"><u>连载内容管理</u></a>]
</td>
</tr>
</table>
</td>
</tr>
</table>
<table width="98%" border="0" cellpadding="5" cellspacing="1" align="center" style=" border:1px solid #CFCFCF;line-height:31px;margin:auto;border-top:none;">
<tr>
<td style="background:#ffffff;padding:3px;" >
<table border="0" cellspacing="0" cellpadding="0" width="98%">
<tr>
<td width='50%'>
<form name='form1' action='story_list_chapter.php' method='get'>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td style='padding-left:10px;padding-right:10px;'>关键字:</td>
<td style='padding-right:10px;'>
<input name="keyword" type="text" id="keyword" value="<?php echo $keyword; ?>" size="30" class='alltxt' />
</td>
<td><input type="submit" name="Submit" value="搜 索" class='np coolbg' /></td>
</tr>
</table>
</form>
</td>
<td align='right'>
<?php
if(!empty($bookid)){
echo "<a href='story_add_content.php?bookid={$bookid}'>添加内容</a> | ";
echo "<a href='story_list_content.php?bookid={$bookid}'>本书内容</a> | ";
echo "<a href='story_list_chapter.php'>所有章节</a>";
}
?>
</td>
</tr>
</table>
</td>
</tr>
</table>
<form name='form2' action='story_do.php' method='post'>
<input type='hidden' name='action' value='upChapterSort' />
<table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" style=" margin-top:3px; margin-bottom:3px; border:1px solid #CFCFCF;line-height:31px;background:#F9FFE6;">
<tr align="center" style="background:#FBFCE2;height:26px">
<td width="10%">选择</td>
<td width="10%">章节序号</td>
<td width="28%">章节名称</td>
<td width="28%">隶属图书</td>
<td>管理项目</td>
</tr>
{dede:datalist}
<tr style="background:#ffffff;" align="center" height="24">
<td>
<input type='checkbox' name='ids[]' id='ids{dede:field.id/}' value='{dede:field.id/}' class='np'/>
</td>
<td style="padding:5px 0;">
第<input type='text' id="chapnum_{dede:field.id/}" name='chapnum_{dede:field.id/}' value='{dede:field.chapnum/}' size='3' class='alltxt' />章
</td>
<td><input type='text' id="chaptername_{dede:field.id/}" name='chaptername_{dede:field.id/}' value='{dede:field.chaptername/}' style='width:96%' class='alltxt' /></td>
<td>
<a href='story_list_content.php?bookid={dede:field.id/}'>{dede:field.bookname/}</a>
</td>
<td>
<a href='story_list_content.php?chapid={dede:field.id/}&bookid={dede:field.bookid/}'>内容({dede:field.postnum/})</a> |
<a href="javascript:EditChapter('{dede:field.id/}');">更新</a> |
<a href="javascript:DelStoryChapter('{dede:field.id/}')">删除</a>
</td>
</tr>
{/dede:datalist}
</table>
<table width="98%" border="0" cellpadding="0" cellspacing="0" align="center" style="border:1px solid #CFCFCF;line-height:35px;height:35px;margin-bottom:3px;">
<tr>
<td bgcolor="#ffffff" style="padding-left:10px;" >
<input type='button' name='sbt102' value='反选' onClick='ReSelChapter()' class='np coolbg' />
&nbsp;
<input type='submit' name='sbt1' value='批量修改' class='np coolbg' />
(批量修改选中项)
</td>
</tr>
</table>
</form>
<table width="98%" border="0" cellpadding="5" cellspacing="1" align="center" style=" border:1px solid #CFCFCF;line-height:30px;margin:auto;">
<tr>
<td style="background:#F9FCEF;" >
{dede:pagelist listsize=5 /}
</td>
</tr>
</table>
</div>
<div id='editchapter'></div>
</body>
</html>

+ 0
- 135
src/dede/templets/story_list_content.htm View File

@@ -1,135 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title>连载内容列表</title>
<link href='css/base.css' rel='stylesheet' type='text/css'>
<script language="javascript" src="js/main.js"></script>
<script language="javascript" src="../static/js/dedeajax2.js"></script>
<script language="javascript" src="js/story.js"></script>
<style type="text/css">
<!--
#addCatalog {
position:absolute;
left:455px;
top:64px;
width:325px;
height:238px;
z-index:2;
background-color: #F2FDDB;
border:1px solid #889D8F;
padding:6px;
display:none
}
#editCatalog {
position:absolute;
left:455px;
top:64px;
width:325px;
height:238px;
z-index:1;
background-color: #F2FDDB;
border:1px solid #889D8F;
padding:6px;
display:none
}
-->
</style>
</head>
<body background='images/allbg.gif' leftmargin='8' topmargin='8'>
<div class="bodytitle">
<div class="bodytitleleft"></div>
<div class="bodytitletxt" style="padding-left:10px;">小说管理 <a href="../book" target="_blank">[查看首页]</a></div>
</div>
<table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style="background:#CFCFCF;">
<tr>
<td bgcolor="#EDF9D5" background='images/tbg.gif'>
<table width='96%' border="0" cellpadding='0' cellspacing='0'>
<tr>
<td width='30%' class="tbtitletxt" style="padding-left:10px;"><strong>连载内容列表</strong></td>
<td align='right'>
[<a href="story_books.php"><u>图书管理</u></a>]
&nbsp;
[<a href="story_add.php"><u>新增图书</u></a>]
&nbsp;
[<a href="story_catalog.php"><u>栏目管理</u></a>]
</td>
</tr>
</table>
</td>
</tr>
</table>
<table width="98%" border="0" cellpadding="5" cellspacing="1" align="center" style=" border:1px solid #CFCFCF;line-height:31px;margin:auto;border-top:none;">
<tr>
<td style="background:#ffffff;padding:3px;" >
<table border="0" cellspacing="0" cellpadding="0" width="98%">
<tr>
<td width='50%'>
<form name='form1' action='story_list_content.php' method='get'>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td style='padding-left:10px;padding-right:10px;'>关键字:</td>
<td style='padding-right:10px;'>
<input name="keyword" type="text" id="keyword" value="<?php echo $keyword; ?>" size="30" class='alltxt' />
</td>
<td style='padding-right:10px;'>
<select name='booktype'>
<option value='-1'>类型</option>
<option value='0'>小说</option>
<option value='1'>漫画</option>
</select>
</td>
<td><input type="submit" name="Submit" value="搜 索" class='np coolbg' /></td>
</tr>
</table>
</form>
</td>
<td align='right'>
<?php
if(!empty($bookid)){
echo "<a href='story_add_content.php?bookid={$bookid}'>添加内容</a> | ";
echo "<a href='story_list_chapter.php?bookid={$bookid}'>本书章节</a> | ";
echo "<a href='story_list_content.php'>所有内容</a>";
}
?>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" style=" margin-top:3px; margin-bottom:3px; line-height:31px;background:#CFCFCF;">
<tr align="center" style="background:#FBFCE2;height:26px">
<td width="24%">文章标题</td>
<td width="32%" align='left' style="padding-left:8px;">图书名称/章节名称/章节内序号</td>
<td width="12%">添加时间</td>
<td>管理项目</td>
</tr>
{dede:datalist}
<tr align="center" height='26' bgcolor="#FFFFFF" height="26" align="center" onMouseMove="javascript:this.bgColor='#FCFDEE';" onMouseOut="javascript:this.bgColor='#FFFFFF';">
<td align="center">{dede:field.title/}</td>
<td align='left' style="padding-left:8px;">
<a href='story_list_content.php?bookid={dede:field.bookid/}'>{dede:field.bookname/}</a>
<a href='story_list_content.php?bookid={dede:field.bookid/}&chapid={dede:field.chapterid/}'>{dede:field.chaptername/}</a>{dede:field.sortid/} </td>
<td> {dede:field.addtime function=GetDateMK(@me)/}</td>
<td>
<a href='javascript:PreViewCt({dede:field.id/},{dede:field.booktype/});'>预览</a> |
<?php
if($fields['booktype']==1) $editfile = 'story_photo_edit.php?cid=';
else $editfile = 'story_content_edit.php?cid=';
?>
<a href='<?php echo $editfile.$fields['id']; ?>'>修改</a> |
<a href='javascript:DelStoryContent({dede:field.id/})'>删除</a> </td>
</tr>
{/dede:datalist}
</table>
<table width="98%" border="0" cellpadding="5" cellspacing="1" align="center" style=" border:1px solid #CFCFCF;line-height:31px;margin:auto;">
<tr>
<td style="background:#F9FCEF;" >
{dede:pagelist listsize=5 /}
</td>
</tr>
</table>
</div>
</body>
</html>

+ 0
- 163
src/dede/templets/story_photo_edit.htm View File

@@ -1,163 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title>修改连载内容</title>
<link href='css/base.css' rel='stylesheet' type='text/css'>
<script language="javascript" src="js/main.js"></script>
<script language="javascript" src="../static/js/dedeajax2.js"></script>
<script language="javascript" src="js/story.js"></script>
<style type="text/css">
<!--
#addCatalog {
position:absolute;
left:455px;
top:64px;
width:325px;
height:238px;
z-index:2;
background-color: #F2FDDB;
border:1px solid #889D8F;
padding:6px;
display:none
}
#editCatalog {
position:absolute;
left:455px;
top:64px;
width:325px;
height:238px;
z-index:1;
background-color: #F2FDDB;
border:1px solid #889D8F;
padding:6px;
display:none
}
-->
</style>
</head>
<body background='images/allbg.gif' leftmargin='8' topmargin='8'>
<div class="bodytitle">
<div class="bodytitleleft"></div>
<div class="bodytitletxt">小说管理</div>
</div>
<table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style=" background:#CFCFCF;">
<tr>
<td bgcolor="#EDF9D5" class="tbtitletxt">
<table width='96%' border="0" cellpadding='0' cellspacing='0'>
<tr>
<td width='30%' class="tbtitletxt"><strong>内容(漫画类)&gt;&gt;修改内容</strong></td>
<td align='right'>
[<a href="story_list_content.php?bookid=<?php echo $bookid; ?>"><u>本图书内容列表</u></a>]
&nbsp;
[<a href="story_books.php"><u>所有图书</u></a>]
</td>
</tr>
</table>
</td>
</tr>
</table>
<form name='form1' action='story_edit_photo_action.php' enctype="multipart/form-data" method='post'>
<input type='hidden' name='cid' value='<?php echo $cid; ?>' />
<input type='hidden' name='bookid' value='<?php echo $bookid; ?>' />
<input type='hidden' name='catid' value='<?php echo $catid; ?>' />
<input type='hidden' name='bookname' value='<?php echo str_replace("'","`",$bookname); ?>' />
<input type='hidden' name='booktype' value='<?php echo $booktype; ?>' />
<table width="98%" border="0" cellpadding="5" cellspacing="1" align="center" style=" border:1px solid #CFCFCF;line-height:31px;margin:auto;">
<tr>
<td style="background:#F9FFE6;padding:7px 6px 6px 10px;" >
<font color='red'><?php if(isset($msg))echo $msg; ?></font>
</td>
</tr>
<tr>
<td height="116" bgcolor="#FFFFFF" style="padding:0px 6px 6px 10px;">
<table width="98%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="32" class="bline">默认标题:</td>
<td class="bline"><input name="title" type="text" id="title" size="35" value="<?php echo $contents['title']; ?>" /></td>
</tr>
<tr>
<td style="width:120px" class="bline">隶属图书名称:</td>
<td class="bline">
<?php echo $bookname; ?> </td>
</tr>
<tr>
<td style="width:120px" class="bline">在章节中的顺序:</td>
<td class="bline">
<input name="sortid" type="text" id="sortid" size="5" value="<?php echo $contents['sortid']; ?>" />
</td>
</tr>
<tr>
<td height="32" class="bline">
隶属章节:<br />
<input name="addchapter" type="checkbox" onClick="ShowHideSelChapter('selchap','newchap')" id="addchapter" value="1" />
添加新章节 </td>
<td class="bline" style="padding-top:5px;padding-bottom:5px">
<span id='selchap' style="display:block">
<select name="chapterid" size="5" id="chapterid" style="width:250px">
<?php
foreach($chapters as $k=>$v){
if($k==$contents['chapterid']){ echo " <option value='$k' selected>第{$chapnums[$k]}章 $v</option>\r\n"; }
else echo " <option value='$k'>第{$chapnums[$k]}章 $v</option>\r\n";
}
?>
</select>
</span>
<span id="newchap" style="display:none">
新章节名称:
<input name="chapternew" type="text" id="chapternew" size="30" />
<br />
(如果没有可选章节或已有章节已经结束,请填写新章节名称,名称上不需加“第X章”这样的字样)
</span>
</td>
</tr>
<tr>
<td height="32" colspan="2" class="bline">  为了方便您的多篇漫画或其它连载图片发布,您可以在此同时上传多个图片,系统会自动将其分割成多篇文档,如果您的内容主题是不需要单独设定的,可不指定每个图片的标题,系统将自动采用默认标题加数字进行标识。</td>
</tr>
<tr>
<td colspan="2"><table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="80">&nbsp;远程图片:</td>
<td colspan="3"><input name="isremote" type="checkbox" id="isremote" value="1" />
下载到本地 </td>
</tr>
</table></td>
</tr>
<tr>
<td height="82" colspan="2" style="padding-top:10px;padding-bottom:10px">
<table width="90%" border="0" id="seltb" cellpadding="1" cellspacing="1" bgcolor="#E8F5D6" style="margin-bottom:6px;margin-left:10px">
<tobdy>
<tr bgcolor="#F4F9DD">
<td height="25" colspan="2">
&nbsp;<strong>图片:</strong></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="70%" height="25">
 本地上传:
<input type="file" name='imgfile' style="width:330px" onChange="SeePic(document.picview,document.form1.imgfile);" /></td>
<td rowspan="2" align="center" style="padding-top:10px;padding-bottom:10px">
<img src="<?php if($contents['bigpic']=='') echo 'images/pview.gif'; else echo $contents['bigpic']; ?>" width="150" id="picview" name="picview" /></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="25">  指定网址:
<input type="text" name='imgurl' style="width:260px" value="<?php echo $contents['bigpic']; ?>" />
<input type="button" name='selpic' value="选取" style="width:65px" onClick="SelectImageN('form1.imgurl','big','picview')" /></td>
</tr>
</tobdy>
</table>
</td>
</tr>
<tr>
<td height="70">&nbsp;</td>
<td><input type="submit" name="Submit" value="保 存" class='np coolbg' />  
<input type="reset" name="Submit2" value="重 置" class='np coolbg' /></td>
</tr>
</table></td>
</tr>
</table>
</form>
</div>
</body>
</html>

Loading…
Cancel
Save