具有div位置的Issuet - HTML PHP

时间:2014-01-13 13:23:51

标签: php css html icons

我有一个客户列表,可以标记每个像“Emprendedor”,“Creativo”和/或“Detallista”。我想为没有经验的客户插入以下图标:

http://imagizer.imageshack.us/v2/800x600q90/824/6h1d.png

问题是图标的位置。我希望它贴在标签旁边。代码是:

<?php
    foreach($customers as $customerKey => $customer){ ?>
    <? $selectedCount = "0"; ?>
      <div class="row customer customer-<?=$customer?>">
        <div class="col-xs-6 col-md-4 customer-name customer-<?=$customer?>"><a href="http://example.com/admin/xyz.php?dtfr=2013-01-01&dtt=2099-12-31&st=0&Submit=Show%20Report&userid=<?=$customer?>"><?=utf8_encode($customerNames[$customer])?></a></div>
        <div class="col-xs-6 col-md-4"><?  
    foreach($tags as $tagKey => $tag){
      $selected=false;
            foreach($customerTags as $customerTagKey => $cTags)
                if($customerTagKey == $customer)
                    foreach($cTags as $cKey => $cTag)
                        if($cTag == $tag){
              $selected=true;
              $selectedCount = $selectedCount + 1;
            }
?><span class="label label-<?=$tag?><?=$selected?" selected":" hidden-print"?> customer-<?=$customer?>" onclick="connect('customer-<?=$customer?>', '<?=$customer?>', '<?=$tag?>');"><?=$tag?></span> <?      
    }?></div>
      </div> <!-- customer-<?=$customer?> row -->
<?
  echo "<div class=\"";
  if($selectedCount == 0){
    echo "glyphicon glyphicon-exclamation-sign glyphicon-red";
  }
  if($selectedCount > 1){
    echo "glyphicon glyphicon-retweet glyphicon-blue";
  }
  echo " \"></div>";
    }
  ?>

0 个答案:

没有答案