svnno****@sourc*****
svnno****@sourc*****
2007年 11月 9日 (金) 17:58:41 JST
Revision: 697 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=pal&view=rev&rev=697 Author: shinsuke Date: 2007-11-09 17:58:41 +0900 (Fri, 09 Nov 2007) Log Message: ----------- changed stock display. Modified Paths: -------------- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/user/product/ProductDetailsPage.java pompei/portlets/pompei-core/trunk/src/main/webapp/view/user/product/productDetails.html -------------- next part -------------- Modified: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/user/product/ProductDetailsPage.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/user/product/ProductDetailsPage.java 2007-11-08 23:27:03 UTC (rev 696) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/user/product/ProductDetailsPage.java 2007-11-09 08:58:41 UTC (rev 697) @@ -259,4 +259,14 @@ public void setJumpToCart(String cartUrl) { this.jumpToCart = cartUrl; } + + public boolean isAvailable() { + if (getQuantity() == null) { + return true; + } + if (getQuantity().compareTo(BigDecimal.valueOf(0)) > 0) { + return true; + } + return false; + } } Modified: pompei/portlets/pompei-core/trunk/src/main/webapp/view/user/product/productDetails.html =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/webapp/view/user/product/productDetails.html 2007-11-08 23:27:03 UTC (rev 696) +++ pompei/portlets/pompei-core/trunk/src/main/webapp/view/user/product/productDetails.html 2007-11-09 08:58:41 UTC (rev 697) @@ -39,14 +39,22 @@ <td><b style="color: #990000;"><span id="price">100</span> 円 (税込)</b></td> </tr> <tr> + <th align="right"><label>在庫</label></th> + <td><span id="isAvailable">あり</span><span id="isNotAvailable">なし</span></td> + </tr> +<!-- + <tr> <th align="right"><label>在庫数</label></th> <td><span id="quantity">1</span></td> </tr> +--> </table> <hr style="border-top: 1px dashed #999999;height: 1px;color: #ffffff;" size="1" noshade="noshade"/> <div id="isLogin"> <div id="isUser"> - <input type="submit" id="doAddCart" value="カートに追加" /> + <span id="isAvailable-cartbutton"> + <input type="submit" id="doAddCart" value="カートに追加" /> + </span> </div> <div id="isNotUser"> <label>商品をカートに入れるには、本サービスにユーザー登録が必要になります。</label> @@ -57,7 +65,7 @@ <div id="isNotLogin"> <label>商品をカートに入れるには、本サービスにログインしてください。</label> <br/> - <a id="signupLink" href="">ログインへ進む</a> + <a id="signupLink" href="">会員登録はこちら</a> </div> </td> </tr>