Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

update the home.jsp and the product 部分的操作

  • Loading branch information...
commit d378df09fd3bb5d3bf3cafde62bb7fb02df6af0a 1 parent 8f6150a
@xiangyuan authored
View
611 WebRoot/home.jsp
@@ -0,0 +1,611 @@
+<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
+<%@ page import="org.iblogger.model.*"%>
+<%
+ String path = request.getContextPath();
+ String basePath = request.getScheme() + "://"
+ + request.getServerName() + ":" + request.getServerPort()
+ + path + "/";
+
+ //String currentUser = session.getAttribute("UserId").toString();
+%>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+<title>系统主页</title>
+<link rel="stylesheet" href="css/screen.css" type="text/css"
+ media="screen" title="default" />
+<!--[if IE]>
+<link rel="stylesheet" media="all" type="text/css" href="css/pro_dropline_ie.css" />
+<![endif]-->
+
+<!-- jquery core -->
+<script src="js/jquery/jquery-1.4.1.min.js" type="text/javascript"></script>
+
+<!-- checkbox styling script -->
+<script src="js/jquery/ui.core.js" type="text/javascript"></script>
+<script src="js/jquery/ui.checkbox.js" type="text/javascript"></script>
+<script src="js/jquery/jquery.bind.js" type="text/javascript"></script>
+<script type="text/javascript">
+ $(function() {
+ $('input').checkBox();
+ $('#toggle-all').click(function() {
+ $('#toggle-all').toggleClass('toggle-checked');
+ $('#mainform input[type=checkbox]').checkBox('toggle');
+ return false;
+ });
+ });
+</script>
+
+<![if !IE 7]>
+
+<!-- styled select box script version 1 -->
+<script src="js/jquery/jquery.selectbox-0.5.js" type="text/javascript"></script>
+<script type="text/javascript">
+ $(document).ready(function() {
+ $('.styledselect').selectbox({
+ inputClass : "selectbox_styled"
+ });
+ });
+</script>
+
+
+<![endif]>
+
+<!-- styled select box script version 2 -->
+<script src="js/jquery/jquery.selectbox-0.5_style_2.js"
+ type="text/javascript"></script>
+<script type="text/javascript">
+ $(document).ready(function() {
+ $('.styledselect_form_1').selectbox({
+ inputClass : "styledselect_form_1"
+ });
+ $('.styledselect_form_2').selectbox({
+ inputClass : "styledselect_form_2"
+ });
+ });
+</script>
+
+<!-- styled select box script version 3 -->
+<script src="js/jquery/jquery.selectbox-0.5_style_2.js"
+ type="text/javascript"></script>
+<script type="text/javascript">
+ $(document).ready(function() {
+ $('.styledselect_pages').selectbox({
+ inputClass : "styledselect_pages"
+ });
+ });
+</script>
+
+<!-- styled file upload script -->
+<script src="js/jquery/jquery.filestyle.js" type="text/javascript"></script>
+<script type="text/javascript" charset="utf-8">
+ $(function() {
+ $("input.file_1").filestyle({
+ image : "images/forms/choose-file.gif",
+ imageheight : 21,
+ imagewidth : 78,
+ width : 310
+ });
+ });
+</script>
+
+<!-- Custom jquery scripts -->
+<script src="js/jquery/custom_jquery.js" type="text/javascript"></script>
+
+<!-- Tooltips -->
+<script src="js/jquery/jquery.tooltip.js" type="text/javascript"></script>
+<script src="js/jquery/jquery.dimensions.js" type="text/javascript"></script>
+<script type="text/javascript">
+ $(function() {
+ $('a.info-tooltip ').tooltip({
+ track : true,
+ delay : 0,
+ fixPNG : true,
+ showURL : false,
+ showBody : " - ",
+ top : -35,
+ left : 5
+ });
+ });
+</script>
+
+
+<!-- date picker script -->
+<link rel="stylesheet" href="css/datePicker.css" type="text/css" />
+<script src="js/jquery/date.js" type="text/javascript"></script>
+<script src="js/jquery/jquery.datePicker.js" type="text/javascript"></script>
+<script type="text/javascript" charset="utf-8">
+ $(function() {
+
+ // initialise the "Select date" link
+ $('#date-pick').datePicker(
+ // associate the link with a date picker
+ {
+ createButton : false,
+ startDate : '01/01/2005',
+ endDate : '31/12/2020'
+ }).bind(
+ // when the link is clicked display the date picker
+ 'click', function() {
+ updateSelects($(this).dpGetSelected()[0]);
+ $(this).dpDisplay();
+ return false;
+ }).bind(
+ // when a date is selected update the SELECTs
+ 'dateSelected', function(e, selectedDate, $td, state) {
+ updateSelects(selectedDate);
+ }).bind('dpClosed', function(e, selected) {
+ updateSelects(selected[0]);
+ });
+
+ var updateSelects = function(selectedDate) {
+ var selectedDate = new Date(selectedDate);
+ $('#d option[value=' + selectedDate.getDate() + ']').attr(
+ 'selected', 'selected');
+ $('#m option[value=' + (selectedDate.getMonth() + 1) + ']').attr(
+ 'selected', 'selected');
+ $('#y option[value=' + (selectedDate.getFullYear()) + ']').attr(
+ 'selected', 'selected');
+ }
+ // listen for when the selects are changed and update the picker
+ $('#d, #m, #y').bind('change', function() {
+ var d = new Date($('#y').val(), $('#m').val() - 1, $('#d').val());
+ $('#date-pick').dpSetSelected(d.asString());
+ });
+
+ // default the position of the selects to today
+ var today = new Date();
+ updateSelects(today.getTime());
+
+ // and update the datePicker to reflect it...
+ $('#d').trigger('change');
+ });
+</script>
+
+<!-- MUST BE THE LAST SCRIPT IN <HEAD></HEAD></HEAD> png fix -->
+<script src="js/jquery/jquery.pngFix.pack.js" type="text/javascript"></script>
+<script type="text/javascript">
+ $(document).ready(function() {
+ $(document).pngFix();
+ });
+</script>
+</head>
+<body>
+ <!-- Start: page-top-outer -->
+ <div id="page-top-outer">
+
+ <!-- Start: page-top -->
+ <div id="page-top">
+
+ <!-- start logo -->
+ <div id="logo">
+ <a href=""><img src="images/shared/logo.png" width="156"
+ height="40" alt="" />
+ </a>
+ </div>
+ <!-- end logo -->
+
+ <!-- start top-search -->
+ <!-- <div id="top-search">
+ <table border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td><input type="text" value="Search" onblur="if (this.value=='') { this.value='Search'; }" onfocus="if (this.value=='Search') { this.value=''; }" class="top-search-inp" /></td>
+ <td>
+ <select class="styledselect">
+ <option value=""> All</option>
+ <option value=""> Products</option>
+ <option value=""> Categories</option>
+ <option value="">Clients</option>
+ <option value="">News</option>
+ </select>
+ </td>
+ <td>
+ <input type="image" src="images/shared/top_search_btn.gif" />
+ </td>
+ </tr>
+ </table>
+ </div> -->
+ <!-- end top-search -->
+ <div class="clear"></div>
+
+ </div>
+ <!-- End: page-top -->
+
+ </div>
+ <!-- End: page-top-outer -->
+
+ <div class="clear">&nbsp;</div>
+
+ <!-- start nav-outer-repeat................................................................................................. START -->
+ <div class="nav-outer-repeat">
+ <!-- start nav-outer -->
+ <div class="nav-outer">
+
+ <!-- start nav-right -->
+ <div id="nav-right">
+
+ <div class="nav-divider">&nbsp;</div>
+ <a href="" id="logout"><img
+ src="images/shared/nav/nav_logout.gif" width="64" height="14"
+ alt="" />
+ </a>
+ <div class="clear">&nbsp;</div>
+
+ <!-- start account-content -->
+ <div class="account-content">
+ <div class="account-drop-inner">
+ <a href="" id="acc-settings">Settings</a>
+ <div class="clear">&nbsp;</div>
+ <div class="acc-line">&nbsp;</div>
+ <a href="" id="acc-details">Personal details </a>
+ <div class="clear">&nbsp;</div>
+ <div class="acc-line">&nbsp;</div>
+ <a href="" id="acc-project">Project details</a>
+ <div class="clear">&nbsp;</div>
+ <div class="acc-line">&nbsp;</div>
+ <a href="" id="acc-inbox">Inbox</a>
+ <div class="clear">&nbsp;</div>
+ <div class="acc-line">&nbsp;</div>
+ <a href="" id="acc-stats">Statistics</a>
+ </div>
+ </div>
+ <!-- end account-content -->
+
+ </div>
+ <!-- end nav-right -->
+
+
+ <!-- start nav -->
+ <div class="nav">
+ <div class="table">
+
+ <!--
+ <ul class="select"><li><a href="#nogo"><b>Dashboard</b>[if IE 7]><!</a><![endif]
+ [if lte IE 6]><table><tr><td><![endif]
+ <div class="select_sub">
+ <ul class="sub">
+ <li><a href="#nogo">Dashboard Details 1</a></li>
+ <li><a href="#nogo">Dashboard Details 2</a></li>
+ <li><a href="#nogo">Dashboard Details 3</a></li>
+ </ul>
+ </div> -->
+ <!-- <!--[if lte IE 6]></td></tr></table></a><![endif]-->
+
+ <!-- </li>
+ <div class="nav-divider">&nbsp;</div>
+ </ul>
+ -->
+
+ <ul class="current">
+ <li><a href="#nogo"><b>产品</b>
+ <!--[if IE 7]><!-->
+ </a>
+ <!--<![endif]--> <!--[if lte IE 6]><table><tr><td><![endif]-->
+ <div class="select_sub show">
+ <ul class="sub">
+ <li class="sub_show"><a href="#nogo">查看所有产品</a>
+ </li>
+ <li><a href="#nogo">添加产品</a>
+ </li>
+ <li><a href="#nogo">删除产品</a>
+ </li>
+ </ul>
+ </div> <!--[if lte IE 6]></td></tr></table></a><![endif]--></li>
+ </ul>
+
+ <div class="nav-divider">&nbsp;</div>
+
+ <ul class="select">
+ <li><a href="#nogo"><b>评价任务</b>
+ <!--[if IE 7]><!-->
+ </a>
+ <!--<![endif]--> <!--[if lte IE 6]><table><tr><td><![endif]-->
+ <div class="select_sub">
+ <ul class="sub">
+ <li><a href="#nogo">评价任务</a>
+ </li>
+ <li><a href="#nogo">创建评价任务</a>
+ </li>
+ <li><a href="#nogo">删除评价任务</a>
+ </li>
+ </ul>
+ </div> <!--[if lte IE 6]></td></tr></table></a><![endif]--></li>
+ </ul>
+
+ <div class="nav-divider">&nbsp;</div>
+
+ <ul class="select">
+ <li><a href="#nogo"><b>综合评测</b>
+ <!--[if IE 7]><!-->
+ </a>
+ <!--<![endif]--> <!--[if lte IE 6]><table><tr><td><![endif]-->
+ <div class="select_sub">
+ <ul class="sub">
+ <li><a href="#nogo">Clients Details 1</a>
+ </li>
+ <li><a href="#nogo">Clients Details 2</a>
+ </li>
+ <li><a href="#nogo">Clients Details 3</a>
+ </li>
+
+ </ul>
+ </div> <!--[if lte IE 6]></td></tr></table></a><![endif]--></li>
+ </ul>
+
+ <div class="nav-divider">&nbsp;</div>
+
+ <ul class="select">
+ <li><a href="#nogo"><b>报告<b>
+ <!--[if IE 7]><!-->
+ </a>
+ <!--<![endif]--> <!--[if lte IE 6]><table><tr><td><![endif]-->
+ <div class="select_sub">
+ <ul class="sub">
+ <li><a href="#nogo">News details 1</a>
+ </li>
+ <li><a href="#nogo">News details 2</a>
+ </li>
+ <li><a href="#nogo">News details 3</a>
+ </li>
+ </ul>
+ </div> <!--[if lte IE 6]></td></tr></table></a><![endif]--></li>
+ </ul>
+ <div class="nav-divider">&nbsp;</div>
+ <%
+ User user = (User) request.getSession().getAttribute("user");
+ String t = user == null ? "" : user.getUserName();
+ %>
+ <ul class="select">
+ <li><a href="#nogo"><b>用户:<%=t%><b>
+ <!--[if IE 7]><!-->
+ </a>
+ <!--<![endif]--> <!--[if lte IE 6]><table><tr><td><![endif]--></li>
+ </ul>
+
+ <div class="clear"></div>
+ </div>
+ <div class="clear"></div>
+ </div>
+ <!-- start nav -->
+
+ </div>
+ <div class="clear"></div>
+ <!-- start nav-outer -->
+ </div>
+ <!-- start nav-outer-repeat................................................... END -->
+
+ <div class="clear"></div>
+
+ <!-- start content-outer ........................................................................................................................START -->
+ <div id="content-outer">
+ <!-- start content -->
+ <div id="content">
+
+ <!-- start page-heading -->
+ <div id="page-heading">
+ <h1>所有产品</h1>
+ </div>
+ <!-- end page-heading -->
+
+ <table border="0" width="100%" cellpadding="0" cellspacing="0"
+ id="content-table">
+ <tr>
+ <th rowspan="3" class="sized"><img
+ src="images/shared/side_shadowleft.jpg" width="20" height="300"
+ alt="" />
+ </th>
+ <th class="topleft"></th>
+ <td id="tbl-border-top">&nbsp;</td>
+ <th class="topright"></th>
+ <th rowspan="3" class="sized"><img
+ src="images/shared/side_shadowright.jpg" width="20" height="300"
+ alt="" />
+ </th>
+ </tr>
+ <tr>
+ <td id="tbl-border-left"></td>
+ <td>
+ <!-- start content-table-inner ...................................................................... START -->
+ <div id="content-table-inner">
+
+ <!-- start table-content -->
+ <div id="table-content">
+
+ <!-- start product-table ..................................................................................... -->
+ <form id="mainform" action="">
+ <table border="0" width="100%" cellpadding="0" cellspacing="0"
+ id="product-table">
+ <tr>
+ <th class="table-header-check"><a id="toggle-all"></a>
+ </th>
+ <th class="table-header-repeat line-left minwidth-1"><a
+ href="">Last Name</a></th>
+ <th class="table-header-repeat line-left minwidth-1"><a
+ href="">First Name</a>
+ </th>
+ <th class="table-header-repeat line-left"><a href="">Email</a>
+ </th>
+ <th class="table-header-repeat line-left"><a href="">Due</a>
+ </th>
+ <th class="table-header-repeat line-left"><a href="">Website</a>
+ </th>
+ <th class="table-header-options line-left"><a href="">Options</a>
+ </th>
+ </tr>
+ <tr>
+ <td><input type="checkbox" />
+ </td>
+ <td>Sabev</td>
+ <td>George</td>
+ <td><a href="">george@mainevent.co.za</a>
+ </td>
+ <td>R250</td>
+ <td><a href="">www.mainevent.co.za</a>
+ </td>
+ <td class="options-width"><a href="" title="Edit"
+ class="icon-1 info-tooltip"></a> <a href="" title="Edit"
+ class="icon-2 info-tooltip"></a> <a href="" title="Edit"
+ class="icon-3 info-tooltip"></a> <a href="" title="Edit"
+ class="icon-4 info-tooltip"></a> <a href="" title="Edit"
+ class="icon-5 info-tooltip"></a></td>
+ </tr>
+ <tr class="alternate-row">
+ <td><input type="checkbox" />
+ </td>
+ <td>Sabev</td>
+ <td>George</td>
+ <td><a href="">george@mainevent.co.za</a>
+ </td>
+ <td>R250</td>
+ <td><a href="">www.mainevent.co.za</a>
+ </td>
+ <td class="options-width"><a href="" title="Edit"
+ class="icon-1 info-tooltip"></a> <a href="" title="Edit"
+ class="icon-2 info-tooltip"></a> <a href="" title="Edit"
+ class="icon-3 info-tooltip"></a> <a href="" title="Edit"
+ class="icon-4 info-tooltip"></a> <a href="" title="Edit"
+ class="icon-5 info-tooltip"></a></td>
+ </tr>
+ <tr>
+ <td><input type="checkbox" />
+ </td>
+ <td>Sabev</td>
+ <td>George</td>
+ <td><a href="">george@mainevent.co.za</a>
+ </td>
+ <td>R250</td>
+ <td><a href="">www.mainevent.co.za</a>
+ </td>
+ <td class="options-width"><a href="" title="Edit"
+ class="icon-1 info-tooltip"></a> <a href="" title="Edit"
+ class="icon-2 info-tooltip"></a> <a href="" title="Edit"
+ class="icon-3 info-tooltip"></a> <a href="" title="Edit"
+ class="icon-4 info-tooltip"></a> <a href="" title="Edit"
+ class="icon-5 info-tooltip"></a></td>
+ </tr>
+ <tr class="alternate-row">
+ <td><input type="checkbox" />
+ </td>
+ <td>Sabev</td>
+ <td>George</td>
+ <td><a href="">george@mainevent.co.za</a>
+ </td>
+ <td>R250</td>
+ <td><a href="">www.mainevent.co.za</a>
+ </td>
+ <td class="options-width"><a href="" title="Edit"
+ class="icon-1 info-tooltip"></a> <a href="" title="Edit"
+ class="icon-2 info-tooltip"></a> <a href="" title="Edit"
+ class="icon-3 info-tooltip"></a> <a href="" title="Edit"
+ class="icon-4 info-tooltip"></a> <a href="" title="Edit"
+ class="icon-5 info-tooltip"></a></td>
+ </tr>
+ <tr>
+ <td><input type="checkbox" />
+ </td>
+ <td>Sabev</td>
+ <td>George</td>
+ <td><a href="">george@mainevent.co.za</a>
+ </td>
+ <td>R250</td>
+ <td><a href="">www.mainevent.co.za</a>
+ </td>
+ <td class="options-width"><a href="" title="Edit"
+ class="icon-1 info-tooltip"></a> <a href="" title="Edit"
+ class="icon-2 info-tooltip"></a> <a href="" title="Edit"
+ class="icon-3 info-tooltip"></a> <a href="" title="Edit"
+ class="icon-4 info-tooltip"></a> <a href="" title="Edit"
+ class="icon-5 info-tooltip"></a></td>
+ </tr>
+ <tr class="alternate-row">
+ <td><input type="checkbox" />
+ </td>
+ <td>Sabev</td>
+ <td>George</td>
+ <td><a href="">george@mainevent.co.za</a>
+ </td>
+ <td>R250</td>
+ <td><a href="">www.mainevent.co.za</a>
+ </td>
+ <td class="options-width"><a href="" title="Edit"
+ class="icon-1 info-tooltip"></a> <a href="" title="Edit"
+ class="icon-2 info-tooltip"></a> <a href="" title="Edit"
+ class="icon-3 info-tooltip"></a> <a href="" title="Edit"
+ class="icon-4 info-tooltip"></a> <a href="" title="Edit"
+ class="icon-5 info-tooltip"></a></td>
+ </tr>
+ </table>
+ <!-- end product-table................................... -->
+ </form>
+ </div>
+ <!-- end content-table -->
+
+ <!-- start actions-box ............................................... -->
+ <div id="actions-box">
+ <a href="" class="action-slider"></a>
+ <div id="actions-box-slider">
+ <a href="" class="action-edit">Edit</a> <a href=""
+ class="action-delete">Delete</a>
+ </div>
+ <div class="clear"></div>
+ </div>
+ <!-- end actions-box........... -->
+
+ <!-- start paging..................................................... -->
+ <table border="0" cellpadding="0" cellspacing="0"
+ id="paging-table">
+ <tr>
+ <td><a href="" class="page-far-left"></a> <a href=""
+ class="page-left"></a>
+ <div id="page-info">
+ Page <strong>1</strong> / 15
+ </div> <a href="" class="page-right"></a> <a href=""
+ class="page-far-right"></a></td>
+ <td><select class="styledselect_pages">
+ <option value="">Number of rows</option>
+ <option value="">1</option>
+ <option value="">2</option>
+ <option value="">3</option>
+ </select></td>
+ </tr>
+ </table>
+ <!-- end paging................ -->
+
+ <div class="clear"></div>
+
+ </div> <!-- end content-table-inner ............................................END -->
+ </td>
+ <td id="tbl-border-right"></td>
+ </tr>
+ <tr>
+ <th class="sized bottomleft"></th>
+ <td id="tbl-border-bottom">&nbsp;</td>
+ <th class="sized bottomright"></th>
+ </tr>
+ </table>
+ <div class="clear">&nbsp;</div>
+
+ </div>
+ <!-- end content -->
+ <div class="clear">&nbsp;</div>
+ </div>
+ <!-- end content-outer........................................................END -->
+
+ <div class="clear">&nbsp;</div>
+
+ <!-- start footer -->
+ <div id="footer">
+ <!-- start footer-left -->
+ <div id="footer-left">
+
+ Love &copy; For YY. <span id="spanYear"></span> <a href="#">System</a>.
+ 版权保护.
+ </div>
+ <!-- end footer-left -->
+ <div class="clear">&nbsp;</div>
+ </div>
+ <!-- end footer -->
+
+</body>
+</html>
View
BIN  WebRoot/images/.DS_Store
Binary file not shown
View
BIN  WebRoot/images/forms/.DS_Store
Binary file not shown
View
BIN  WebRoot/images/shared/.DS_Store
Binary file not shown
View
BIN  WebRoot/images/shared/nav/.DS_Store
Binary file not shown
View
BIN  WebRoot/images/shared/nav/nav_myaccount.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  WebRoot/images/table/.DS_Store
Binary file not shown
View
2  WebRoot/login.jsp
@@ -11,7 +11,7 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
-<title>Internet Dreams</title>
+<title>登录</title>
<link rel="stylesheet"
href="<%=request.getContextPath()%>/css/screen.css" type="text/css"
media="screen" title="default" />
View
620 WebRoot/postproduct.jsp
@@ -0,0 +1,620 @@
+<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
+<%@ page import="org.iblogger.model.*"%>
+<%
+ String path = request.getContextPath();
+ String basePath = request.getScheme() + "://"
+ + request.getServerName() + ":" + request.getServerPort()
+ + path + "/";
+
+ //String currentUser = session.getAttribute("UserId").toString();
+%>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+<title>添加产品</title>
+<link rel="stylesheet" href="css/screen.css" type="text/css"
+ media="screen" title="default" />
+<!--[if IE]>
+<link rel="stylesheet" media="all" type="text/css" href="css/pro_dropline_ie.css" />
+<![endif]-->
+
+<!-- jquery core -->
+<script src="js/jquery/jquery-1.4.1.min.js" type="text/javascript"></script>
+
+<!-- checkbox styling script -->
+<script src="js/jquery/ui.core.js" type="text/javascript"></script>
+<script src="js/jquery/ui.checkbox.js" type="text/javascript"></script>
+<script src="js/jquery/jquery.bind.js" type="text/javascript"></script>
+<script type="text/javascript">
+ $(function() {
+ $('input').checkBox();
+ $('#toggle-all').click(function() {
+ $('#toggle-all').toggleClass('toggle-checked');
+ $('#mainform input[type=checkbox]').checkBox('toggle');
+ return false;
+ });
+ });
+</script>
+
+
+<![if !IE 7]>
+
+<!-- styled select box script version 1 -->
+<script src="js/jquery/jquery.selectbox-0.5.js" type="text/javascript"></script>
+<script type="text/javascript">
+ $(document).ready(function() {
+ $('.styledselect').selectbox({
+ inputClass : "selectbox_styled"
+ });
+ });
+</script>
+
+
+<![endif]>
+
+
+<!-- styled select box script version 2 -->
+<script src="js/jquery/jquery.selectbox-0.5_style_2.js"
+ type="text/javascript"></script>
+<script type="text/javascript">
+ $(document).ready(function() {
+ $('.styledselect_form_1').selectbox({
+ inputClass : "styledselect_form_1"
+ });
+ $('.styledselect_form_2').selectbox({
+ inputClass : "styledselect_form_2"
+ });
+ });
+</script>
+
+<!-- styled select box script version 3 -->
+<script src="js/jquery/jquery.selectbox-0.5_style_2.js"
+ type="text/javascript"></script>
+<script type="text/javascript">
+ $(document).ready(function() {
+ $('.styledselect_pages').selectbox({
+ inputClass : "styledselect_pages"
+ });
+ });
+</script>
+
+<!-- styled file upload script -->
+<script src="js/jquery/jquery.filestyle.js" type="text/javascript"></script>
+<script type="text/javascript" charset="utf-8">
+ $(function() {
+ $("input.file_1").filestyle({
+ image : "images/forms/upload_file.gif",
+ imageheight : 29,
+ imagewidth : 78,
+ width : 300
+ });
+ });
+</script>
+
+<!-- Custom jquery scripts -->
+<script src="js/jquery/custom_jquery.js" type="text/javascript"></script>
+
+<!-- Tooltips -->
+<script src="js/jquery/jquery.tooltip.js" type="text/javascript"></script>
+<script src="js/jquery/jquery.dimensions.js" type="text/javascript"></script>
+<script type="text/javascript">
+ $(function() {
+ $('a.info-tooltip ').tooltip({
+ track : true,
+ delay : 0,
+ fixPNG : true,
+ showURL : false,
+ showBody : " - ",
+ top : -35,
+ left : 5
+ });
+ });
+</script>
+
+<!-- date picker script -->
+<link rel="stylesheet" href="css/datePicker.css" type="text/css" />
+<script src="js/jquery/date.js" type="text/javascript"></script>
+<script src="js/jquery/jquery.datePicker.js" type="text/javascript"></script>
+<script type="text/javascript" charset="utf-8">
+ $(function() {
+
+ // initialise the "Select date" link
+ $('#date-pick').datePicker(
+ // associate the link with a date picker
+ {
+ createButton : false,
+ startDate : '01/01/2005',
+ endDate : '31/12/2020'
+ }).bind(
+ // when the link is clicked display the date picker
+ 'click', function() {
+ updateSelects($(this).dpGetSelected()[0]);
+ $(this).dpDisplay();
+ return false;
+ }).bind(
+ // when a date is selected update the SELECTs
+ 'dateSelected', function(e, selectedDate, $td, state) {
+ updateSelects(selectedDate);
+ }).bind('dpClosed', function(e, selected) {
+ updateSelects(selected[0]);
+ });
+
+ var updateSelects = function(selectedDate) {
+ var selectedDate = new Date(selectedDate);
+ $('#d option[value=' + selectedDate.getDate() + ']').attr(
+ 'selected', 'selected');
+ $('#m option[value=' + (selectedDate.getMonth() + 1) + ']').attr(
+ 'selected', 'selected');
+ $('#y option[value=' + (selectedDate.getFullYear()) + ']').attr(
+ 'selected', 'selected');
+ }
+ // listen for when the selects are changed and update the picker
+ $('#d, #m, #y').bind('change', function() {
+ var d = new Date($('#y').val(), $('#m').val() - 1, $('#d').val());
+ $('#date-pick').dpSetSelected(d.asString());
+ });
+
+ // default the position of the selects to today
+ var today = new Date();
+ updateSelects(today.getTime());
+
+ // and update the datePicker to reflect it...
+ $('#d').trigger('change');
+ });
+</script>
+
+<!-- MUST BE THE LAST SCRIPT IN <HEAD></HEAD></HEAD> png fix -->
+<script src="js/jquery/jquery.pngFix.pack.js" type="text/javascript"></script>
+<script type="text/javascript">
+ $(document).ready(function() {
+ $(document).pngFix();
+ });
+</script>
+</head>
+<body>
+ <!-- Start: page-top-outer -->
+ <div id="page-top-outer">
+
+ <!-- Start: page-top -->
+ <div id="page-top">
+
+ <!-- start logo -->
+ <div id="logo">
+ <a href=""><img src="images/shared/logo.png" width="156"
+ height="40" alt="" /> </a>
+ </div>
+ <!-- end logo -->
+
+ <div class="clear"></div>
+
+ </div>
+ <!-- End: page-top -->
+
+ </div>
+ <!-- End: page-top-outer -->
+
+ <div class="clear">&nbsp;</div>
+
+ <!-- start nav-outer-repeat................................................................................................. START -->
+ <div class="nav-outer-repeat">
+ <!-- start nav-outer -->
+ <div class="nav-outer">
+
+ <!-- start nav-right -->
+ <div id="nav-right">
+
+ <div class="nav-divider">&nbsp;</div>
+ <a href="" id="logout"><img
+ src="images/shared/nav/nav_logout.gif" width="64" height="14"
+ alt="" /> </a>
+ <div class="clear">&nbsp;</div>
+
+ <!-- start account-content -->
+ <div class="account-content">
+ <div class="account-drop-inner">
+ <a href="" id="acc-settings">Settings</a>
+ <div class="clear">&nbsp;</div>
+ <div class="acc-line">&nbsp;</div>
+ <a href="" id="acc-details">Personal details </a>
+ <div class="clear">&nbsp;</div>
+ <div class="acc-line">&nbsp;</div>
+ <a href="" id="acc-project">Project details</a>
+ <div class="clear">&nbsp;</div>
+ <div class="acc-line">&nbsp;</div>
+ <a href="" id="acc-inbox">Inbox</a>
+ <div class="clear">&nbsp;</div>
+ <div class="acc-line">&nbsp;</div>
+ <a href="" id="acc-stats">Statistics</a>
+ </div>
+ </div>
+ <!-- end account-content -->
+
+ </div>
+ <!-- end nav-right -->
+
+
+ <!-- start nav -->
+ <div class="nav">
+ <div class="table">
+
+ <!--
+ <ul class="select"><li><a href="#nogo"><b>Dashboard</b>[if IE 7]><!</a><![endif]
+ [if lte IE 6]><table><tr><td><![endif]
+ <div class="select_sub">
+ <ul class="sub">
+ <li><a href="#nogo">Dashboard Details 1</a></li>
+ <li><a href="#nogo">Dashboard Details 2</a></li>
+ <li><a href="#nogo">Dashboard Details 3</a></li>
+ </ul>
+ </div> -->
+ <!-- <!--[if lte IE 6]></td></tr></table></a><![endif]-->
+
+ <!-- </li>
+ <div class="nav-divider">&nbsp;</div>
+ </ul>
+ -->
+
+ <ul class="current">
+ <li><a href="#nogo"><b>产品</b> <!--[if IE 7]><!--> </a> <!--<![endif]-->
+ <!--[if lte IE 6]><table><tr><td><![endif]-->
+ <div class="select_sub show">
+ <ul class="sub">
+ <li><a href="#nogo">查看所有产品</a>
+ </li>
+ <li class="sub_show"><a href="#nogo">添加产品</a>
+ </li>
+ <li><a href="#nogo">删除产品</a>
+ </li>
+ </ul>
+ </div> <!--[if lte IE 6]></td></tr></table></a><![endif]--></li>
+ </ul>
+
+ <div class="nav-divider">&nbsp;</div>
+
+ <ul class="select">
+ <li><a href="#nogo"><b>评价任务</b> <!--[if IE 7]><!--> </a> <!--<![endif]-->
+ <!--[if lte IE 6]><table><tr><td><![endif]-->
+ <div class="select_sub">
+ <ul class="sub">
+ <li><a href="#nogo">评价任务</a>
+ </li>
+ <li><a href="#nogo">创建评价任务</a>
+ </li>
+ <li><a href="#nogo">删除评价任务</a>
+ </li>
+ </ul>
+ </div> <!--[if lte IE 6]></td></tr></table></a><![endif]--></li>
+ </ul>
+
+ <div class="nav-divider">&nbsp;</div>
+
+ <ul class="select">
+ <li><a href="#nogo"><b>综合评测</b> <!--[if IE 7]><!--> </a> <!--<![endif]-->
+ <!--[if lte IE 6]><table><tr><td><![endif]-->
+ <div class="select_sub">
+ <ul class="sub">
+ <li><a href="#nogo">Clients Details 1</a>
+ </li>
+ <li><a href="#nogo">Clients Details 2</a>
+ </li>
+ <li><a href="#nogo">Clients Details 3</a>
+ </li>
+
+ </ul>
+ </div> <!--[if lte IE 6]></td></tr></table></a><![endif]--></li>
+ </ul>
+
+ <div class="nav-divider">&nbsp;</div>
+
+ <ul class="select">
+ <li><a href="#nogo"><b>报告<b> <!--[if IE 7]><!-->
+ </a> <!--<![endif]--> <!--[if lte IE 6]><table><tr><td><![endif]-->
+ <div class="select_sub">
+ <ul class="sub">
+ <li><a href="#nogo">News details 1</a>
+ </li>
+ <li><a href="#nogo">News details 2</a>
+ </li>
+ <li><a href="#nogo">News details 3</a>
+ </li>
+ </ul>
+ </div> <!--[if lte IE 6]></td></tr></table></a><![endif]--></li>
+ </ul>
+ <div class="nav-divider">&nbsp;</div>
+ <%
+ User user = (User) request.getSession().getAttribute("user");
+ String t = user == null ? "" : user.getUserName();
+ %>
+ <ul class="select">
+ <li><a href="#nogo"><b>用户:<%=t%><b> <!--[if IE 7]><!-->
+ </a> <!--<![endif]--> <!--[if lte IE 6]><table><tr><td><![endif]--></li>
+ </ul>
+
+ <div class="clear"></div>
+ </div>
+ <div class="clear"></div>
+ </div>
+ <!-- start nav -->
+
+ </div>
+ <div class="clear"></div>
+ <!-- start nav-outer -->
+ </div>
+ <!-- start nav-outer-repeat................................................... END -->
+
+ <div class="clear"></div>
+
+ <!-- start content-outer -->
+ <div id="content-outer">
+ <!-- start content -->
+ <div id="content">
+
+
+ <div id="page-heading">
+ <h1>添加产品</h1>
+ </div>
+
+
+ <table border="0" width="100%" cellpadding="0" cellspacing="0"
+ id="content-table">
+ <tr>
+ <th rowspan="3" class="sized"><img
+ src="images/shared/side_shadowleft.jpg" width="20" height="300"
+ alt="" /></th>
+ <th class="topleft"></th>
+ <td id="tbl-border-top">&nbsp;</td>
+ <th class="topright"></th>
+ <th rowspan="3" class="sized"><img
+ src="images/shared/side_shadowright.jpg" width="20" height="300"
+ alt="" /></th>
+ </tr>
+ <tr>
+ <td id="tbl-border-left"></td>
+ <td>
+ <!-- start content-table-inner -->
+ <div id="content-table-inner">
+
+ <table border="0" width="100%" cellpadding="0" cellspacing="0">
+ <tr valign="top">
+ <td>
+ <!-- start step-holder -->
+ <div id="step-holder">
+ <div class="step-no">1</div>
+ <div class="step-dark-left">
+ <a href="">Add product details</a>
+ </div>
+ <div class="step-dark-right">&nbsp;</div>
+ <div class="step-no-off">2</div>
+ <div class="step-light-left">Select related products</div>
+ <div class="step-light-right">&nbsp;</div>
+ <div class="step-no-off">3</div>
+ <div class="step-light-left">Preview</div>
+ <div class="step-light-round">&nbsp;</div>
+ <div class="clear"></div>
+ </div> <!-- end step-holder --> <!-- start id-form -->
+ <table border="0" cellpadding="0" cellspacing="0" id="id-form">
+ <tr>
+ <th valign="top">Product name:</th>
+ <td><input type="text" class="inp-form" /></td>
+ <td></td>
+ </tr>
+ <tr>
+ <th valign="top">Product name:</th>
+ <td><input type="text" class="inp-form-error" /></td>
+ <td>
+ <div class="error-left"></div>
+ <div class="error-inner">This field is required.</div>
+ </td>
+ </tr>
+ <tr>
+ <th valign="top">Category:</th>
+ <td><select class="styledselect_form_1">
+ <option value="">All</option>
+ <option value="">Products</option>
+ <option value="">Categories</option>
+ <option value="">Clients</option>
+ <option value="">News</option>
+ </select>
+ </td>
+ <td></td>
+ </tr>
+ <tr>
+ <th valign="top">Sub Category:</th>
+ <td><select class="styledselect_form_1">
+ <option value="">All</option>
+ <option value="">Products</option>
+ <option value="">Categories</option>
+ <option value="">Clients</option>
+ <option value="">News</option>
+ </select>
+ </td>
+ <td></td>
+ </tr>
+ <tr>
+ <th valign="top">Price:</th>
+ <td><input type="text" class="inp-form" /></td>
+ <td></td>
+ </tr>
+ <tr>
+ <th valign="top">Select a date:</th>
+ <td class="noheight">
+
+ <table border="0" cellpadding="0" cellspacing="0">
+ <tr valign="top">
+ <td>
+ <form id="chooseDateForm" action="#">
+
+ <select id="d" class="styledselect-day">
+ <option value="">dd</option>
+ <option value="1">1</option>
+ <option value="2">2</option>
+ <option value="3">3</option>
+ <option value="4">4</option>
+ <option value="5">5</option>
+ <option value="6">6</option>
+ <option value="7">7</option>
+ <option value="8">8</option>
+ <option value="9">9</option>
+ <option value="10">10</option>
+ <option value="11">11</option>
+ <option value="12">12</option>
+ <option value="13">13</option>
+ <option value="14">14</option>
+ <option value="15">15</option>
+ <option value="16">16</option>
+ <option value="17">17</option>
+ <option value="18">18</option>
+ <option value="19">19</option>
+ <option value="20">20</option>
+ <option value="21">21</option>
+ <option value="22">22</option>
+ <option value="23">23</option>
+ <option value="24">24</option>
+ <option value="25">25</option>
+ <option value="26">26</option>
+ <option value="27">27</option>
+ <option value="28">28</option>
+ <option value="29">29</option>
+ <option value="30">30</option>
+ <option value="31">31</option>
+ </select>
+ </td>
+ <td><select id="m" class="styledselect-month">
+ <option value="">mmm</option>
+ <option value="1">Jan</option>
+ <option value="2">Feb</option>
+ <option value="3">Mar</option>
+ <option value="4">Apr</option>
+ <option value="5">May</option>
+ <option value="6">Jun</option>
+ <option value="7">Jul</option>
+ <option value="8">Aug</option>
+ <option value="9">Sep</option>
+ <option value="10">Oct</option>
+ <option value="11">Nov</option>
+ <option value="12">Dec</option>
+ </select>
+ </td>
+ <td><select id="y" class="styledselect-year">
+ <option value="">yyyy</option>
+ <option value="2005">2005</option>
+ <option value="2006">2006</option>
+ <option value="2007">2007</option>
+ <option value="2008">2008</option>
+ <option value="2009">2009</option>
+ <option value="2010">2010</option>
+ </select>
+ </form>
+ </td>
+ <td><a href="" id="date-pick"><img
+ src="images/forms/icon_calendar.jpg" alt="" /> </a></td>
+ </tr>
+ </table>
+ </td>
+ <td></td>
+ </tr>
+ <tr>
+ <th valign="top">Description:</th>
+ <td><textarea rows="" cols="" class="form-textarea"></textarea>
+ </td>
+ <td></td>
+ </tr>
+ <tr>
+ <th>Image 1:</th>
+ <td><input type="file" class="file_1" /></td>
+ <td>
+ <div class="bubble-left"></div>
+ <div class="bubble-inner">JPEG, GIF 5MB max per image</div>
+ <div class="bubble-right"></div>
+ </td>
+ </tr>
+ <tr>
+ <th>Image 2:</th>
+ <td><input type="file" class="file_1" /></td>
+ <td><div class="bubble-left"></div>
+ <div class="bubble-inner">JPEG, GIF 5MB max per image</div>
+ <div class="bubble-right"></div></td>
+ </tr>
+ <tr>
+ <th>Image 3:</th>
+ <td><input type="file" class="file_1" /></td>
+ <td><div class="bubble-left"></div>
+ <div class="bubble-inner">JPEG, GIF 5MB max per image</div>
+ <div class="bubble-right"></div></td>
+ </tr>
+ <tr>
+ <th>&nbsp;</th>
+ <td valign="top"><input type="button" value=""
+ class="form-submit" /> <input type="reset" value=""
+ class="form-reset" />
+ </td>
+ <td></td>
+ </tr>
+ </table> <!-- end id-form -->
+ </td>
+ <td>
+
+ </td>
+ </tr>
+ <tr>
+ <td><img src="images/shared/blank.gif" width="695"
+ height="1" alt="blank" /></td>
+ <td></td>
+ </tr>
+ </table>
+
+ <div class="clear"></div>
+
+
+ </div> <!-- end content-table-inner -->
+ </td>
+ <td id="tbl-border-right"></td>
+ </tr>
+ <tr>
+ <th class="sized bottomleft"></th>
+ <td id="tbl-border-bottom">&nbsp;</td>
+ <th class="sized bottomright"></th>
+ </tr>
+ </table>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <div class="clear">&nbsp;</div>
+
+ </div>
+ <!-- end content -->
+ <div class="clear">&nbsp;</div>
+ </div>
+ <!-- end content-outer -->
+
+
+
+ <div class="clear">&nbsp;</div>
+
+ <!-- start footer -->
+ <div id="footer">
+ <!-- start footer-left -->
+ <div id="footer-left">
+ Admin Skin &copy; Copyright Internet Dreams Ltd. <a href="">www.netdreams.co.uk</a>.
+ All rights reserved.
+ </div>
+ <!-- end footer-left -->
+ <div class="clear">&nbsp;</div>
+ </div>
+ <!-- end footer -->
+
+</body>
+</html>
View
3  src/org/iblogger/utils/DateFormatUtils.java
@@ -14,6 +14,9 @@
* @return
*/
public static final String formatDate(Date d) {
+ if (d == null) {
+ d = new Date();
+ }
return sdf.format(d);
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.