There you see, we use 1 Custom field. To CCK Custom field you may add HTML, CSS, PHP ....
There we select PHP - 2
And in box with value we add PHP code:
Code: |
if({|text_single_checkbox_onoff_89|}[0]->data == 1){
echo '<span class="img_new"></span>';
}
if({|text_single_checkbox_onoff_90|}[0]->data == 1){
echo '<span class="img_sale"></span>';
}
|
where "text_single_checkbox_onoff_90" and "text_single_checkbox_onoff_89" - real field name for check boxes "Sales" and "New"
You may see these and all other fields if Press "+fields" in attachment image.
And self image we attachment to view with help CSS in style files: