<%@ page language="java"
import="java.util.*,javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpSession;"
pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
网上购物后台管理
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link rel="stylesheet" type="text/css" href="../css/managment.css" />
<script type="text/javascript" src="./dojoroot/dojo/dojo.js" djConfig="parseOnLoad: true" />
<script type="text/javascript">
dojo.require("dijit.form.DateTextBox");
dojo.require("dijit.form.Button");
</script>
<style type="text/css">
@import "./dojoroot/dojo/resources/dojo.css";
@import "./dojoroot/dijit/themes/dijit.css";
@import "./dojoroot/dijit/themes/tundra/tundra.css";
</style>
<script type="text/javascript">
function helloCallback(data,ioArgs) {
var showHolder = document.getElementById('show');
var str=data.split('"');
var sBook ="<label>你输入的时间:"+str[3]+"</label>";
showHolder.innerHTML = sBook;
}
function helloError(data, ioArgs) {
alert('Error when retrieving data from the server!');
}
</script>
<script language="javascript">
function selcheck()
{
var objs = document.getElementsByTagName("input");
for(var i=0; i<objs.length; i++)
{
if(objs[i].type.toLowerCase() == "checkbox" )
objs[i].checked = true;
}
}
</script>
</head>
<body>
<div id="wrap">
<div id="header">
<h1>
网上购物管理员后台管理
</h1>
<h2>
shopping management
</h2>
</div>
<div id="menu">
<ul>
<li>
<a href="#">Home</a>
</li>
<li>
<a href="#">About</a>
</li>
<li>
<a href="#">Links</a>
</li>
<li>
<a href="#">Links</a>
</li>
<li>
<a href="#">Links</a>
</li>
<li>
<a href="#">Links</a>
</li>
<li>
<a href="logout.action">Logout</a>
</li>
</ul>
</div>
<div id="content">
<div class="left">
<div>
<ul>
<li>
<h2>
<a href="#">添加用户</a>
</h2>
</li>
<li>
<h2>
<a href="#">添加商品</a>
</h2>
</li>
<li>
<h2>
<a href="#">发送站内短信</a>
</h2>
</li>
<li>
<h2>
<a href="#">日结清算</a>
</h2>
</li>
</ul>
</div>
</div>
<div class="right">
<div class="userlist">
<form action="add_user.action" name="adduserform" method="post">
<input id="startDate" type="text" name="showtime"
class="medium" value="2004-09-05"
dojoType="dijit.form.DateTextBox"
constraints={min:'2004-09-05',max:'2008-07-01'}
required="true"
promptMessage="mm/dd/yyyy"
invalidMessage="无效时间. 格式为:yyyy-mm-dd "/>
<div class="forum_content_title">
<table class="forum_content_table">
<col class="forum_content_table_col1" />
<col class="forum_content_table_col2" />
<thead>
<tr>
<th>
用户名
</th>
</tr>
</thead>
<tbody>
<s:iterator value="#request.counter" status="stuts">
<tr>
<s:if test="#stuts.odd == true">
<td style="background: c3d9ff">
<input type="checkbox" name="userlist" id="userlist" />
<s:property />
</td>
</s:if>
<s:else>
<td>
<input type="checkbox" name="userlist" id="userlist" />
<s:property />
</td>
</s:else>
</tr>
</s:iterator>
</tbody>
</table>
<input type="checkbox" name="checkboxall" id="checkboxall"
onClick="selcheck()" />
全选
</div>
</form>
<button dojoType="dijit.form.Button" id="helloButton">
显示
<script type="dojo/method" event="onClick">
dojo.xhrGet({
url: 'show.action',
load: helloCallback,
error: helloError,
form: 'myForm'
});
</script>
</button>
<div id="show">
</div>
</div>
<div class="detail">
<img src="./Images/crutch.gif" width="110" height="120" />
<span>
<textarea id="userinfo" cols="35" rows="15"></textarea>
</span>
<div id="addUser">
<input type="submit" name="addUser" value="添加用户" />
</div>
</div>
</div>
<div style="clear: both;"></div>
</div>
<div id="bottom">
</div>
<div id="footer">
Designed by
<a href="#">信管工作室</a>
</div>
</div>
</body>
运行后没有出现相应的dojo组件