📄 menu.jsp
字号:
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0051)http://192.168.3.23/ecshop/admin/goods.php?act=list -->
<!-- $Id: menu.jsp,v 1.1 2008/04/29 08:02:06 Administrator Exp $ --><HTML
xmlns="http://www.w3.org/1999/xhtml"><HEAD><TITLE>ECSHOP 管理中心 - 商品列表</TITLE>
<META content="noindex, nofollow" name=robots>
<META http-equiv=Content-Type content="text/html; charset=gbk"><LINK
href="../css/general.css" type=text/css rel=stylesheet><LINK
href="../css/main.css" type=text/css rel=stylesheet>
<LINK
href="../css/menu.css" type=text/css rel=stylesheet>
<SCRIPT src="../js/transport.js" type=text/javascript></SCRIPT>
<SCRIPT src="../js/common.js" type=text/javascript></SCRIPT>
<SCRIPT language=JavaScript>
<!--
// 这里把JS用到的所有语言都赋值到这里
var process_request = "正在处理您的请求...";
var goods_name_not_null = "商品名称不能为空。";
var goods_cat_not_null = "商品分类不能不选。";
var goods_cat_not_leaf = "您选择的商品分类不是底级分类,请选择底级分类。";
var shop_price_not_null = "本店售价不能为空。";
var shop_price_not_number = "本店售价不是数值。";
var select_please = "请选择...";
var button_add = "添加";
var button_del = "删除";
var spec_value_not_null = "规格不能为空";
var spec_price_not_number = "加价不是数字";
var market_price_not_number = "市场价格不是数字";
var goods_number_not_int = "商品库存不是整数";
var warn_number_not_int = "库存警告不是整数";
var drop_img_confirm = "您确实要删除该图片吗?";
var batch_no_on_sale = "您确实要将选定的商品下架吗?";
var batch_trash_confirm = "您确实要把选中的商品放入回收站吗?";
//-->
</SCRIPT>
<META content="MSHTML 6.00.2900.3243" name=GENERATOR>
</HEAD>
<BODY>
<H1><SPAN><A href="http://192.168.3.23/ecshop/admin/index.php?act=main">银河
管理中心</A> - 菜单管理 </SPAN></H1>
<SCRIPT src="../js/utils.js" type=text/javascript></SCRIPT>
<SCRIPT src="../js/listtable.js" type=text/javascript></SCRIPT>
<!-- 商品搜索 --><!-- $Id: menu.jsp,v 1.1 2008/04/29 08:02:06 Administrator Exp $ -->
<DIV class=form-div>
<FORM name=searchForm action=javascript:searchGoods()>
<!-- 分类 -->
<!-- 品牌 --><!-- 推荐 --><!-- 关键字 -->
<label></label>
<table width="94%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="5%"><img height=22 alt=SEARCH
src="../images/icon_search.gif" width=26 border=0></td>
<td width="8%">编号:</td>
<td width="14%"><input size=10
name=keyword></td>
<td width="9%">菜单名:</td>
<td width="14%"><input size=10
name=keyword2></td>
<td width="9%">编码:</td>
<td width="10%"><input size=10
name=keyword22></td>
<td width="4%"> </td>
<td width="27%"><input name="submit" type=submit class=button value=" 搜索 "></td>
</tr>
</table>
</FORM>
</DIV>
<SCRIPT language=JavaScript>
function searchGoods()
{
listTable.filter['cat_id'] = document.forms['searchForm'].elements['cat_id'].value;
listTable.filter['brand_id'] = document.forms['searchForm'].elements['brand_id'].value;
listTable.filter['intro_type'] = document.forms['searchForm'].elements['intro_type'].value;
listTable.filter['keyword'] = Utils.trim(document.forms['searchForm'].elements['keyword'].value);
listTable.filter['page'] = 1;
listTable.loadList();
}
</SCRIPT>
<!-- 商品列表 -->
<FORM name=listForm onSubmit="return confirmSubmit(this)" action="" method=post><!-- start goods list -->
<DIV class=list-div id=listDiv>
<TABLE cellSpacing=1 cellPadding=3>
<TBODY>
<TR>
<TH width="16%"><INPUT name="checkbox"
type=checkbox onclick='listTable.selectAll(this, "checkboxes")'>
<A href="javascript:listTable.sort('goods_id');">ID号</A><IMG
src="http://localhost:6002/yhsoft/admins/images/sort_desc.gif"></TH>
<TH width="19%"><A href="javascript:listTable.sort('goods_name');">父ID号</A></TH>
<TH width="19%"><A href="javascript:listTable.sort('goods_name');">菜单名称</A></TH>
<TH width="28%"><A href="javascript:listTable.sort('goods_sn');">备注</A></TH>
<logic:iterate id="ml" name="menuList">
<TR>
<TD align="center"><INPUT type=checkbox value=17 name=checkboxes[]>
<bean:write name="ml" property="id" /></TD>
<TD align="center"><bean:write name="ml" property="fid" /></TD>
<TD align="center"><bean:write name="ml" property="name" /></TD>
<TD align="center"><bean:write name="ml" property="remark1" /></TD>
</TR>
</logic:iterate>
<TR>
<TD colspan="4"> </TD>
</TR></TBODY></TABLE>
<!-- end goods list -->
<!-- 分页 -->
</DIV>
</FORM>
<SCRIPT type=text/javascript>
listTable.recordCount = 13;
listTable.pageCount = 1;
listTable.filter.cat_id = '0';
listTable.filter.intro_type = '';
listTable.filter.is_promote = '0';
listTable.filter.stock_warning = '0';
listTable.filter.brand_id = '0';
listTable.filter.keyword = '';
listTable.filter.sort_by = 'goods_id';
listTable.filter.sort_order = 'DESC';
listTable.filter.is_delete = '0';
listTable.filter.real_goods = '1';
listTable.filter.record_count = '13';
listTable.filter.page_size = '15';
listTable.filter.page = '1';
listTable.filter.page_count = '1';
listTable.filter.start = '0';
onload = function()
{
startCheckOrder(); // 开始检查订单
document.forms['listForm'].reset();
}
/**
* @param: bool ext 其他条件:用于转移分类
*/
function confirmSubmit(frm, ext)
{
if (frm.elements['type'].value == 'trash')
{
return confirm(batch_trash_confirm);
}
else if (frm.elements['type'].value == 'not_on_sale')
{
return confirm(batch_no_on_sale);
}
else if (frm.elements['type'].value == 'move_to')
{
ext = (ext == undefined) ? true : ext;
return ext && frm.elements['target_cat'].value != 0;
}
else if (frm.elements['type'].value == '')
{
return false;
}
else
{
return true;
}
}
function changeAction()
{
var frm = document.forms['listForm'];
// 切换分类列表的显示
frm.elements['target_cat'].style.display = frm.elements['type'].value == 'move_to' ? '' : 'none';
if (!document.getElementById('btnSubmit').disabled &&
confirmSubmit(frm, false))
{
frm.submit();
}
}
/**
* 检查是否底级
*/
function checkIsLeaf(selObj)
{
if (selObj.options[selObj.options.selectedIndex].className != 'leafCat')
{
alert(goods_cat_not_leaf);
selObj.options.selectedIndex = 0;
}
}
function createInput()
{
if(document.getElementById("option1").selected==selected)
{
alert("1");
}
}
</SCRIPT>
<DIV class=list-div id=listDiv>
<TABLE cellSpacing=1 cellPadding=3>
<TBODY>
<TR>
<TH colspan="3"><A href="javascript:listTable.sort('goods_name');"></A><A href="javascript:listTable.sort('goods_sn');"></A><A href="javascript:listTable.sort('shop_price');">添加菜单</A></TH>
<TR>
<TD width="49%" align="right">请选择菜单级别:</TD>
<TD colspan="2" align=left>
<select id="slt" onchange="createInput();">
<option id="option1" selected="selected">一级菜单
<option id="option2">二级菜单
<option id="option3" >三级菜单
</select>
</TD>
</TR>
<TR>
<TD width="49%" align="right">菜单名称:</TD>
<TD colspan="2" align=left><input type="text" name="textfield"></TD>
</TR>
<TR>
<TD align="right" valign="top">备注:</TD>
<TD colspan="2" align=left><textarea name="textfield2" rows="5"></textarea></TD>
</TR>
<TR>
<TD colspan="3" align="right"> </TD>
</TR>
<TR>
<TD align="right"><input type="submit" name="Submit" value="添加"></TD>
<TD width="1%" align=left> </TD>
<TD width="50%" align=left><input type="reset" name="Submit2" value="重置"></TD>
</TR></TBODY></TABLE>
<!-- end goods list -->
<!-- 分页 -->
</DIV>
<DIV id=footer>共执行 4 个查询,用时 0.026334 秒,Gzip 已禁用<BR>版权所有 ? 2005-2007
北京亿商互动科技发展有限公司,并保留所有权利。 </DIV><!-- 新订单提示信息 -->
<DIV id=popMsg>
<TABLE cellSpacing=0 cellPadding=0 width="100%" bgColor=#cfdef4 border=0>
<TBODY>
<TR>
<TD style="COLOR: #0f2c8c" width=30 height=24></TD>
<TD
style="PADDING-LEFT: 4px; FONT-WEIGHT: normal; COLOR: #1f336b; PADDING-TOP: 4px"
vAlign=center width="100%">新订单通知</TD>
<TD style="PADDING-RIGHT: 2px; PADDING-TOP: 2px" vAlign=center align=right
width=19><SPAN title=关闭
style="FONT-WEIGHT: bold; FONT-SIZE: 12px; CURSOR: pointer; COLOR: red; MARGIN-RIGHT: 4px"
onclick=Message.close()>×</SPAN><!-- <img title=关闭 style="cursor: hand" onclick=closediv() hspace=3 src="msgclose.jpg"> --></TD></TR>
<TR>
<TD style="PADDING-RIGHT: 1px; PADDING-BOTTOM: 1px" colSpan=3 height=70>
<DIV id=popMsgContent>
<P>您有 <STRONG id=spanNewOrder style="COLOR: #ff0000">1</STRONG> 个新订单以及
<STRONG id=spanNewPaid style="COLOR: #ff0000">0</STRONG> 个新付款的订单</P>
<P style="WORD-BREAK: break-all" align=center><A
href="http://192.168.3.23/ecshop/admin/order.php?act=list"><SPAN
style="COLOR: #ff0000">点击查看新订单</SPAN></A></P></DIV></TD></TR></TBODY></TABLE></DIV><!--
<embed src="images/online.wav" width="0" height="0" autostart="false" name="msgBeep" id="msgBeep" enablejavascript="true"/>
-->
<OBJECT id=msgBeep
codeBase=http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0
height=1 width=1 classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000><PARAM NAME="movie" VALUE="images/online.swf"><PARAM NAME="quality" VALUE="high">
<embed src="images/online.swf" name="msgBeep" id="msgBeep" quality="high"
width="0" height="0" type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?p1_prod_version=shockwaveflash">
</embed></OBJECT>
<SCRIPT language=JavaScript>
<!--
if (Browser.isIE)
{
onscroll = function()
{
//document.getElementById('calculator').style.top = document.body.scrollTop;
document.getElementById('popMsg').style.top = (document.body.scrollTop + document.body.clientHeight - document.getElementById('popMsg').offsetHeight) + "px";
}
}
if (document.getElementById("listDiv"))
{
document.getElementById("listDiv").onmouseover = function(e)
{
obj = Utils.srcElement(e);
if (obj)
{
if (obj.parentNode.tagName.toLowerCase() == "tr") row = obj.parentNode;
else if (obj.parentNode.parentNode.tagName.toLowerCase() == "tr") row = obj.parentNode.parentNode;
else return;
for (i = 0; i < row.cells.length; i++)
{
if (row.cells[i].tagName != "TH") row.cells[i].style.backgroundColor = '#F4FAFB';
}
}
}
document.getElementById("listDiv").onmouseout = function(e)
{
obj = Utils.srcElement(e);
if (obj)
{
if (obj.parentNode.tagName.toLowerCase() == "tr") row = obj.parentNode;
else if (obj.parentNode.parentNode.tagName.toLowerCase() == "tr") row = obj.parentNode.parentNode;
else return;
for (i = 0; i < row.cells.length; i++)
{
if (row.cells[i].tagName != "TH") row.cells[i].style.backgroundColor = '#FFF';
}
}
}
document.getElementById("listDiv").onclick = function(e)
{
var obj = Utils.srcElement(e);
if (obj.tagName == "INPUT" && obj.type == "checkbox")
{
if (!document.forms['listForm'])
{
return;
}
var nodes = document.forms['listForm'].elements;
var checked = false;
for (i = 0; i < nodes.length; i++)
{
if (nodes[i].checked)
{
checked = true;
break;
}
}
document.getElementById("btnSubmit").disabled = !checked;
for (i = 1; i <= 10; i++)
{
if (document.getElementById("btnSubmit" + i))
{
document.getElementById("btnSubmit" + i).disabled = !checked;
}
}
}
}
}
//-->
</SCRIPT>
</BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -