Changeset 18155
- Timestamp:
- 2009/07/01 20:08:16 (14 years ago)
- Location:
- branches/version-2_4/data
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_4/data/Smarty/templates/default/shopping/payment.tpl
r17789 r18155 43 43 <tr> 44 44 <th>選択</th> 45 <th colspan="<!--{if $ arrPayment[cnt].payment_image == ""}-->2<!--{else}-->3<!--{/if}-->">お支払方法</th>45 <th colspan="<!--{if $img_show == false}-->2<!--{else}-->3<!--{/if}-->">お支払方法</th> 46 46 </tr> 47 47 <!--{section name=cnt loop=$arrPayment}--> … … 53 53 </td> 54 54 <!--{if $arrPayment[cnt].payment_image != ""}--> 55 <td> 56 <img src="<!--{$smarty.const.IMAGE_SAVE_URL}--><!--{$arrPayment[cnt].payment_image}-->" /> 57 </td> 55 <td> 56 <img src="<!--{$smarty.const.IMAGE_SAVE_URL}--><!--{$arrPayment[cnt].payment_image}-->" /> 57 </td> 58 <!--{elseif $img_show == true}--> 59 <td></td> 58 60 <!--{/if}--> 59 61 </tr> -
branches/version-2_4/data/class/pages/shopping/LC_Page_Shopping_Payment.php
r18104 r18155 155 155 // 支払い方法の取得 156 156 $this->arrPayment = $this->lfGetPayment($total_pretax); 157 // 支払い方法の画像があるなしを取得($img_show true:ある false:なし) 158 $this->img_show = $this->lfGetImgShow($this->arrPayment); 157 159 // 配送時間の取得 158 160 $arrRet = $objDb->sfGetDelivTime($this->objFormParam->getValue('payment_id')); … … 561 563 return $this->objFormParam; 562 564 } 565 566 /* 支払い方法の画像があるなしを取得($img_show true:ある false:なし) */ 567 function lfGetImgShow($arrPayment) { 568 $img_show = false; 569 foreach ($this->arrPayment as $payment) { 570 if (strlen($payment["payment_image"]) > 0 ){ 571 $img_show = true; 572 break; 573 } 574 } 575 return $img_show; 576 } 563 577 } 564 578 ?>
Note: See TracChangeset
for help on using the changeset viewer.