โค้ด: เลือกทั้งหมด
<?php if($aCtyDataList['rtCode'] == 1 ):?>
<?php foreach($aCtyDataList['raItems'] AS $nKey => $aValue):?>
<tr class="text-center xCNTextDetail2 otrCardType" id="otrCardType<?=$nKey?>" data-code="<?=$aValue['rtCtyCode']?>" data-name="<?=$aValue['rtCtyName']?>">
<td class="text-center">
<label class="fancy-checkbox">
<input id="ocbListItem<?=$nKey?>" type="checkbox" class="ocbListItem" name="ocbListItem[]">
<span> </span>
</label>
</td>
<td><?=$aValue['rtCtyCode']?></td>
<td class="text-center"><?=$aValue['rtCtyName']?></td>
<td class="text-center"><?=$aValue['rtCtyDeposit']?></td>
<td class="text-center"><?=$aValue['rtCtyExpirePeriod']?></td>
[b]
<?php
switch($aValue['rtCtyExpiredType']){
case "1":
$aValue['rtCtyExpiredType'] == "ชั่วโมง";
break;
case "2":
$aValue['rtCtyExpiredType'] == "วัน";
break;
case "3":
$aValue['rtCtyExpiredType'] == "เดือน";
break;
case "4":
$aValue['rtCtyExpiredType'] == "ปี";
break;
}
?>[/b]
<td class="text-center"><?=$aValue['rtCtyStaAlwRet']?></td>
<td>
<!-- เปลี่ยน -->
<img class="xCNIconTable" src="<?php echo base_url().'/application/assets/icons/delete.png'?>" onClick="JSoCardTypeDel('<?php echo $aValue['rtCtyCode']?>')">
</td>
<td>
<!-- เปลี่ยน -->
<img class="xCNIconTable" src="<?php echo base_url().'/application/assets/icons/edit.png'?>" onClick="JSvCallPageCardTypeEdit('<?php echo $aValue['rtCtyCode']?>')">
</td>
</tr>
<?php endforeach;?>
<?php else:?>
<tr><td class='text-center xCNTextDetail2' colspan='9'><?= language('pos5/cardtype','tCTYNoData')?></td></tr>
<?php endif;?>
ให้ข้อมูลโชว์เป็น ข้อความ