跳转到主要内容
静雨丝婷 提交于 16 May 2014

<div class="label">卖家信用:</div> <?php $items =field_get_items('node', $node, 'field_xy', $node->language); //通过获取当前node的值来获取字段卖家信誉的值,来判断是属于哪个淘宝店的等级      $field_xy=$items[0]['value'];      //var_dump($node->field_field_xy); if($field_xy>4 && $field_xy<10){ ?> <div class='huangguan'><img src='/ymwdrupal/sites/all/themes/bartik/images/l1.jpg' /></div> <?php }elseif($field_xy>20001 && $field_xy<50000){ ?> <div class='huangguan'><img src='/ymwdrupal/sites/all/themes/bartik/images/l12.jpg' /></div> <?php }elseif($field_xy>11 && $field_xy<40){ ?> <div class='huangguan'><img src='/ymwdrupal/sites/all/themes/bartik/images/l2.jpg' /></div> <?php }elseif($field_xy>41 && $field_xy<90){ ?> <div class='huangguan'><img src='/ymwdrupal/sites/all/themes/bartik/images/l3.jpg' /></div> <?php }elseif($field_xy>91 && $field_xy<150){ ?> <div class='huangguan'><img src='/ymwdrupal/sites/all/themes/bartik/images/l4.jpg' /></div> <?php }elseif($field_xy>151 && $field_xy<250){ ?> <div class='huangguan'><img src='/ymwdrupal/sites/all/themes/bartik/images/l5.jpg' /></div> <?php }elseif($field_xy>251 && $field_xy<500){ ?> <div class='huangguan'><img src='/ymwdrupal/sites/all/themes/bartik/images/l6.jpg' /></div> <?php }elseif($field_xy>501 && $field_xy<1000){ ?> <div class='huangguan'><img src='/ymwdrupal/sites/all/themes/bartik/images/l7.jpg' /></div> <?php }elseif($field_xy>1001 && $field_xy<2000){ ?> <div class='huangguan'><img src='/ymwdrupal/sites/all/themes/bartik/images/l8.jpg' /></div> <?php }elseif($field_xy>2001 && $field_xy<5000){ ?> <div class='huangguan'><img src='/ymwdrupal/sites/all/themes/bartik/images/l9.jpg' /></div> <?php }elseif($field_xy>5001 && $field_xy<10000){ ?> <div class='huangguan'><img src='/ymwdrupal/sites/all/themes/bartik/images/l10.jpg' /></div> <?php }elseif($field_xy>10001 && $field_xy<20000){ ?> <div class='huangguan'><img src='/ymwdrupal/sites/all/themes/bartik/images/l11.jpg' /></div> <?php }elseif($field_xy>50001 && $field_xy<100000){ ?> <div class='huangguan'><img src='/ymwdrupal/sites/all/themes/bartik/images/l13.jpg' /></div> <?php }elseif($field_xy>100001 && $field_xy<200000){ ?> <div class='huangguan'><img src='/ymwdrupal/sites/all/themes/bartik/images/l14.jpg' /></div> <?php }elseif($field_xy>200001 && $field_xy<500000){ ?> <div class='huangguan'><img src='/ymwdrupal/sites/all/themes/bartik/images/l15.jpg' /></div> <?php }elseif($field_xy>500001 && $field_xy<1000000){ ?> <div class='huangguan'><img src='/ymwdrupal/sites/all/themes/bartik/images/l16.jpg' /></div> <?php }elseif($field_xy>1000001 && $field_xy<2000000){ ?> <div class='huangguan'><img src='/ymwdrupal/sites/all/themes/bartik/images/l17.jpg' /></div> <?php }elseif($field_xy>2000001 && $field_xy<5000000){ ?> <div class='huangguan'><img src='/ymwdrupal/sites/all/themes/bartik/images/l18.jpg' /></div> <?php }elseif($field_xy>5000001 && $field_xy<10000000){ ?> <div class='huangguan'><img src='/ymwdrupal/sites/all/themes/bartik/images/l19.jpg' /></div> <?php }elseif($field_xy>10000001){ ?> <div class='huangguan'><img src='/ymwdrupal/sites/all/themes/bartik/images/l20.jpg' /></div> <?php } ?>