开发工具:eclipse/idea/myeclipse/sts等均可配置运行
适用
课程设计,大作业,毕业设计,项目练习,学习演示等

if ( FCKListsLib.BlockElements[tag] || tag == 'br' )
crossed = true ;
}
this._textNode = curNode ;
this._offset = curNode.length - 1 ;
return crossed ;
},
Clone : function()
{
return new CharacterCursor( this._textNode, this._offset ) ;
}
} ;
CharacterRange = function( initCursor, maxLength )
{
this._cursors = initCursor.push ? initCursor : [initCursor] ;
this._maxLength = maxLength ;
this._highlightRange = null ;
}
<input id="chkPopupDependent" name="chkFeature" value="dependent" type="checkbox" /><label for="chkPopupDependent" fckLang="DlgLnkPopDependent">Dependent
(Netscape)</label>
</td>
</tr>
<tr>
<td valign="top" nowrap="nowrap" width="50%"> </td>
<td></td>
<td valign="top" nowrap="nowrap" width="50%"></td>
</tr>
<tr>
<td valign="top">
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td nowrap="nowrap"><span fckLang="DlgLnkPopWidth">Width</span></td>
<td> <input id="txtPopupWidth" type="text" maxlength="4" size="4" /></td>
</tr>
<tr>
<td nowrap="nowrap"><span fckLang="DlgLnkPopHeight">Height</span></td>
<td> <input id="txtPopupHeight" type="text" maxlength="4" size="4" /></td>
</tr>
</table>
FCKTools.AddEventListener( registeredWindows[i].document, 'mousemove', dragMouseMoveHandler ) ;
FCKTools.AddEventListener( registeredWindows[i].document, 'mouseup', dragMouseUpHandler ) ;
}
if ( evt.preventDefault )
evt.preventDefault() ;
else
evt.returnValue = false ;
},
RegisterHandlers : function( w )
{
registeredWindows.push( w ) ;
}
}
}() ;
// Selection related functions.
//(Became simple shortcuts after the fix for #1990)
var Selection =
{
/**
<p><em><a href="#"> </a></em></p>
</div>
<hr/>
<!-- 头部 -->
<div id="header">
<jsp:include flush="true" page="/site/inc/daohang.jsp"></jsp:include>
</div>
<!-- 头部 -->
<div id="page">
<div id="page-bgtop">
<!-- 右侧 -->
<div id="content">
<div class="post">
<h2 class="title"><a href="#">我的购物车</a></h2>
<div class="entry">
<table width="98%" border="0" cellpadding="2" cellspacing="1" align="center" style="margin-top:8px">
<tr align="center" bgcolor="#FAFAF1" height="22">
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2042">#2042</a>] The FitWindow
command was throwing an error if executed in an editor where its relative button
is not present in the toolbar.</li>
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/922">#922</a>] Implemented
a generic document processor for <OBJECT> and <EMBED> tags.</li>
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1831">#1831</a>] Fixed
the issue where the placeholder icon for <EMBED> tags does not always show
up in IE7.</li>
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2049">#2049</a>] Fixed
a deleted cursor CSS attribute in the minified CSS inside fck_dialog_common.js.</li>
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1806">#1806</a>] In IE,
the caret will not any more move to the previous line when selecting a Format style
inside an empty paragraph.</li>
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1990">#1990</a>] In IE,
</ul>
<p>
* This version has been partially sponsored by <a href="http://www.footsteps.nl/">Footsteps</a>
and <a href="http://www.kentico.com/">Kentico</a>.</p>
<h3>
Version 2.3 Beta</h3>
<p>
New Features and Improvements:</p>
<ul>
<li><span><strong>Extremely Fast Loading!</strong> The editor now loads more than 3
times faster than before, with no impact on its advanced features.</span> </li>
<li><span><strong>New toolbar system</strong>:</span>
<ul>
<li>[<a target="_blank" href="https://sourceforge.net/tracker/index.php?func=detail&aid=1454850&group_id=75348&atid=543656">SF
Feature-1454850</a>] The toolbar will now <strong>load much faster</strong>. All
img have being merged in a single image file using a unique system available
only with FCKeditor. </li>
<li>The "Text Color" and "Background Color" commands buttons have
enhancements on the interface.</li>
<li><strong><span style="color: #ff0000">Attention</span></strong>: As a completely
new system has being developed. Skins created for versions prior this one will not
"<strong>BrowserContextMenuOnCtrl</strong>" setting is being introduced, to enable/disable
the ability of displaying the default browser's context menu when right-clicking
with the CTRL key pressed.</li>
</ul>
<p>
Fixed Bugs:</p>
<ul>
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/300">#300</a>] The fck_internal.css
file was not validating with the W3C CSS Validation Service.</li>
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/336">#336</a>] Ordered
list didn't keep the Type attribute properly (it was converted to lowercase when
the properties dialog was opened again).</li>
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/318">#318</a>] Multiple
linked img are merged in a single link in IE.</li>
Version 2.5.1</h3>
<p>
New Features and Improvements:</p>
<ul>
<li><strong>FCKeditor.Net 2.5</strong> compatibility.</li>
<li>JavaScript integration file:
<ul>
<li>The new "<strong>FCKeditor.ReplaceAllTextareas</strong>" function is being introduced,
making it possible to replace many (or unknown) <textarea> elements in a single
call. The replacement can be also filtered by CSS class name, or by a custom function
evaluator. </li>
<li>It is now possible to set the default BasePath for all editor instances by setting
<strong>FCKeditor.BasePath</strong>. This is extremely useful when working with
the ReplaceAllTextareas function. </li>
</ul>
</li>
window.onresize = function()
{
retval.RefreshContainerSize() ;
}
window.SetAutoSize = FCKTools.Bind( retval, retval.SetAutoSize ) ;
return retval ;
}() ;
// Manages the throbber image that appears if the inner part of dialog is taking too long to load.
var Throbber = function()
{
var timer ;
window.LoadInnerDialog = function()
{
if ( window.onresize )
window.onresize() ;
// First of all, translate the dialog box contents.
E.FCKLanguageManager.TranslatePage( document ) ;
// Create the IFRAME that holds the dialog contents.
$( 'innerContents' ).innerHTML = '<iframe id="frmMain" src="' + Args().Page + '" name="frmMain" frameborder="0" width="100%" height="100%" scrolling="auto" style="visibility: hidden;" allowtransparency="true"><\/iframe>' ;
GetSelectedElement : function()
{
return FCK.Selection.GetSelectedElement() ;
}
}
// Tab related functions.
var Tabs = function()
{
// Only element ids should be stored here instead of element references since setSelectedTab and TabDiv_OnClick
// would build circular references with the element references inside and cause memory leaks in IE6.
var oTabs = new Object() ;
return null ;
},
Reset : function()
{
this._State = 0 ;
}
};
// Place a range at the start of document.
function OnLoad()
{
// First of all, translate the dialog box texts.
oEditor.FCKLanguageManager.TranslatePage( document ) ;
// Show the appropriate tab at startup.
if ( dialogArguments.CustomValue == 'Find' )
{
dialog.SetSelectedTab( 'Find' ) ;
dialog.SetAutoSize( true ) ;
}
else
//得到购物车集
{
List orderitemList=new ArrayList();
String sql="select * from t_orderitem where order_id=?";
Object[] params={order_id};
DB mydb=new DB();
try
{
mydb.doPstm(sql, params);
ResultSet rs=mydb.getRs();
while(rs.next())
{
TorderItem orderItem=new TorderItem();
orderItem.setId(rs.getString("id"));
orderItem.setGoods(getGoods(rs.getString("goods_id")));
orderItem.setGoods_quantity(rs.getInt("goods_quantity"));
orderitemList.add(orderItem);
}
rs.close();
}
catch(Exception e)
var prev = this._cursors[0].Clone() ;
var retval = prev.MoveBack() ;
if ( retval )
this._cursors = [] ;
this._cursors.unshift( prev ) ;
if ( this._cursors.length > this._maxLength )
this._cursors.pop() ;
return retval ;
},
GetEndCharacter : function()
{
if ( this._cursors.length < 1 )
return null ;
var retval = this._cursors[ this._cursors.length - 1 ].GetCharacter() ;
FCKConfig.DocType setting points to a HTML DocType then the output won't generate
self-closing tags (it will output <img > instead of <img />).</li>
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2173">#2173</a>] A throbber
will be shown in the Quick Uploads.</li>
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2142">#2142</a>] HTML
samples will now use sampleposteddata.php in action parameter inside a form.</li>
</ul>
<p>
Fixed Bugs:</p>
<ul>
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/768">#768</a>] It is no
longer possible for an image to have its width and height defined with both HTML
attributes and inline CSS styles in IE.</li>
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1426">#1426</a>] Fixed
the error loading fckstyles.xml in servers which cannot return the correct content
type header for .xml files.</li>
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2102">#2102</a>] Fixed
FCKConfig.DocType which stopped working in FCKeditor 2.6.</li>
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2039">#2039</a>] Fixed
the locking up issue in the Find/Replace dialog.</li>
<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2124">#2124</a>] PHP File
String id=req.getParameter("id");
String sql="update t_order set zhuangtai='yes' where id=?";
Object[] params={id};
DB mydb=new DB();
mydb.doPstm(sql, params);
mydb.closed();
req.setAttribute("msg", "订单受理完毕");
String targetURL = "/common/msg.jsp";
dispatch(targetURL, req, res);
}
public void huifuAdd(HttpServletRequest req,HttpServletResponse res) throws ServletException, IOException
{
String id=req.getParameter("id");
BUG-1576488</a>] [<a target="_blank" href="https://sourceforge.net/tracker/?func=detail&aid=1334305&group_id=75348&atid=543653">SF
BUG-1334305</a>] [<a target="_blank" href="https://sourceforge.net/tracker/?func=detail&aid=1578312&group_id=75348&atid=543653">SF
BUG-1578312</a>] The Paste from Word clean up function can be configured
with FCKConfig.CleanWordKeepsStructure to preserve the markup as much as possible.
Thanks Jean-Charles ROGEZ. </li>
<li>[<a target="_blank" href="https://sourceforge.net/tracker/?func=detail&aid=1472654&group_id=75348&atid=543655">SF
Patch-1472654</a>] The server side script location for SpellerPages can now be set
in the configuration file, by using the SpellerPagesServerScript setting.</li>
<li><span style="color: #ff0000">Attention:</span> All connectors are now pointing by
default to the "/userfiles/" folder instead of "/UserFiles/" (case change). Also,
the inner folders for each type (file, image, flash and media) are all lower-cased
too.</li>
<li><span style="color: #ff0000">Attention:</span> The UseBROnCarriageReturn configuration
is not anymore valid. The EnterMode setting can now be used to precisely set the
enter key behavior.</li>
</ul>
<p>
Fixed Bugs:</p>
//我的订单
{
HttpSession session=req.getSession();
Tuser user=(Tuser)session.getAttribute("user");
req.setAttribute("orderList", liuService.orderList(user.getId()));//设置orderList的属性
req.getRequestDispatcher("site/order/myorder.jsp").forward(req, res);
}
public void orderDetail(HttpServletRequest req,HttpServletResponse res) throws ServletException, IOException
//订单明细
{
String order_id=req.getParameter("order_id");
System.out.println(order_id+"DD");//输出order_idDD
req.setAttribute("orderItemList", liuService.orderItemList(order_id));
req.getRequestDispatcher("site/order/orderDetail.jsp").forward(req, res);
}
public void dispatch(String targetURI,HttpServletRequest request,HttpServletResponse response)
//跳转到下一界面
{
RequestDispatcher dispatch = getServletContext().getRequestDispatcher(targetURI);
try
{
goodsDetailHou(req, res);//菜品后台详细信息
}
if(type.endsWith("goodsPre"))
{
goodsPre(req, res);//菜品信息添加
}
if(type.endsWith("goodsEdit"))
{
goodsEdit(req, res);//菜品信息编辑
}
if(type.endsWith("goodsNew"))
{
goodsNew(req, res);//菜品最新信息
}
if(type.endsWith("goodsByCatelog"))
{
goodsByCatelog(req, res);//菜品类别
*
* == END LICENSE ==
*
* "Find" and "Replace" dialog box window.
-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta content="noindex, nofollow" name="robots" />
<script src="common/fck_dialog_common.js" type="text/javascript"></script>
<script type="text/javascript">
var dialog = window.parent ;
var oEditor = dialog.InnerDialogLoaded() ;
var dialogArguments = dialog.Args() ;
var FCKLang = oEditor.FCKLang ;
var FCKDomTools = oEditor.FCKDomTools ;
var FCKDomRange = oEditor.FCKDomRange ;
var FCKListsLib = oEditor.FCKListsLib ;
</tr>
<tr>
<td nowrap="nowrap"><span fckLang="DlgLnkPopHeight">Height</span></td>
<td> <input id="txtPopupHeight" type="text" maxlength="4" size="4" /></td>
</tr>
</table>
</td>
<td> </td>
<td valign="top">
<table cellspacing="0" cellpadding="0" border="0">
<tr>
{
goodsDetailHou(req, res);//菜品后台详细信息
}
if(type.endsWith("goodsPre"))
{
goodsPre(req, res);//菜品信息添加
}
if(type.endsWith("goodsEdit"))
{
goodsEdit(req, res);//菜品信息编辑
}
if(type.endsWith("goodsNew"))
{
var innerWidth = isStrict ? innerDoc.documentElement.scrollWidth : innerDoc.body.scrollWidth ;
var innerHeight = isStrict ? innerDoc.documentElement.scrollHeight : innerDoc.body.scrollHeight ;
// Get the current frame size.
var frameSize = FCKTools.GetViewPaneSize( frmMain.contentWindow ) ;
var deltaWidth = innerWidth - frameSize.Width ;
var deltaHeight = innerHeight - frameSize.Height ;
// If the contents fits the current size.
if ( deltaWidth <= 0 && deltaHeight <= 0 )
return ;
var dialogWidth = frameElement.offsetWidth + Math.max( deltaWidth, 0 ) ;
var dialogHeight = frameElement.offsetHeight + Math.max( deltaHeight, 0 ) ;
this.ResizeDialog( dialogWidth, dialogHeight ) ;
}
// Center the throbber.
var frm = $( 'contents' ) ;
var frmCoords = FCKTools.GetDocumentPosition( window, frm ) ;
var x = frmCoords.x + ( frm.offsetWidth - throbberParent.offsetWidth ) / 2 ;
var y = frmCoords.y + ( frm.offsetHeight - throbberParent.offsetHeight ) / 2 ;
throbberParent.style.left = parseInt( x, 10 ) + 'px' ;
throbberParent.style.top = parseInt( y, 10 ) + 'px' ;
// Show it.
throbberParent.style.visibility = '' ;
LoadScript( '_source/classes/fcktoolbar.js' ) ;
LoadScript( '_source/classes/fcktoolbarbreak_' + sSuffix + '.js' ) ;
LoadScript( '_source/internals/fcktoolbarset.js' ) ;
LoadScript( '_source/internals/fckdialog.js' ) ;
LoadScript( '_source/classes/fckmenuitem.js' ) ;
LoadScript( '_source/classes/fckmenublock.js' ) ;
LoadScript( '_source/classes/fckmenublockpanel.js' ) ;
LoadScript( '_source/classes/fckcontextmenu.js' ) ;
LoadScript( '_source/internals/fck_contextmenu.js' ) ;
LoadScript( '_source/classes/fckhtmliterator.js' ) ;
LoadScript( '_source/classes/fckplugin.js' ) ;
LoadScript( '_source/internals/fckplugins.js' ) ;
// @Packager.Remove.End
// Base configuration file.
LoadScript( '../fckconfig.js' ) ;
</script>
<script type="text/javascript">
适用
课程设计,大作业,毕业设计,项目练习,学习演示等

运行环境
Java≥8、Tomcat≥8.0、MySQL≥5.7
开发工具
eclipse/idea/myeclipse/sts等均可配置运行
技术框架
JSP Servlet MySQL DBUtil Tomcat JavaScript CSS jstl
适用
课程设计,大作业,毕业设计,项目练习,学习演示等
功能说明
后台:登录、类别管理、菜品管理、会员管理、订单管理、留言管理等
前台:登录、注册、查看菜品、购买、留言
前台
后台
