- Timestamp:
- 2012/03/26 21:06:10 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/Smarty/templates/sphone/products/detail.tpl
r21545 r21682 55 55 $(imgEl).attr("src", "<!--{$TPL_URLPATH}-->img/button/btn_minus.png"); 56 56 stateSub = 0 57 } 58 } 59 //この商品に対するお客様の声エリアの表示/非表示 60 var stateReview = 0; 61 function fnReviewToggle(areaEl, imgEl) { 62 areaEl.slideToggle(speed); 63 if (stateReview == 0) { 64 $(imgEl).attr("src", "<!--{$TPL_URLPATH}-->img/button/btn_plus.png"); 65 stateReview = 1; 66 } else { 67 $(imgEl).attr("src", "<!--{$TPL_URLPATH}-->img/button/btn_minus.png"); 68 stateReview = 0 57 69 } 58 70 } … … 336 348 <!--サブエリアここまで--> 337 349 350 <!--この商品に対するお客様の声--> 351 <div class="title_box_sub clearfix"> 352 <h2>この商品に対するお客様の声</h2> 353 <span class="b_expand"><img src="<!--{$TPL_URLPATH}-->img/button/btn_minus.png" onclick="fnReviewToggle($('#review_bloc_area'), this);" alt=""></span> 354 </div> 355 356 <div id="review_bloc_area"> 357 <div class="review_bloc clearfix"> 358 <p>この商品に対するご感想をぜひお寄せください。</p> 359 <div class="review_btn"> 360 <!--{if count($arrReview) < $smarty.const.REVIEW_REGIST_MAX}--> 361 <!--★新規コメントを書き込む★--> 362 <a href="./review.php?product_id=<!--{$arrProduct.product_id}-->" target="_blank" class="btn_sub" />新規コメントを書き込む</a> 363 <!--{/if}--> 364 </div> 365 </div> 366 367 <!--{if count($arrReview) > 0}--> 368 <ul> 369 <!--{section name=cnt loop=$arrReview}--> 370 <li> 371 <p class="voicetitle"><!--{$arrReview[cnt].title|h}--></p> 372 <p class="voicedate"><!--{$arrReview[cnt].create_date|sfDispDBDate:false}--> 投稿者:<!--{if $arrReview[cnt].reviewer_url}--><a href="<!--{$arrReview[cnt].reviewer_url}-->" target="_blank"><!--{$arrReview[cnt].reviewer_name|h}--></a><!--{else}--><!--{$arrReview[cnt].reviewer_name|h}--><!--{/if}--><br />おすすめレベル:<span class="recommend_level"><!--{assign var=level value=$arrReview[cnt].recommend_level}--><!--{$arrRECOMMEND[$level]|h}--></span></p> 373 <p class="voicecomment"><!--{$arrReview[cnt].comment|h|nl2br}--></p> 374 </li> 375 <!--{/section}--> 376 </ul> 377 <!--{/if}--> 378 </div> 379 </div> 380 <!--お客様の声ここまで--> 381 338 382 339 383 <!--▼その他おすすめ商品-->
Note: See TracChangeset
for help on using the changeset viewer.