<style type="text/css"> .fotoresponsive { // padding : 10 px; // background-color : white; } </style> <div class="col-md-<?php echo $nrRow; ?> col-lg-<?php echo $nrRow; ?> col-sm-4 col-xs-6" onclick="openProfile('<?php echo $murid->admin_id; ?> ');"> <?php Account::makeFotoIterator($murid->admin_foto, "responsive"); ?> <div style="text-align: center; margin-bottom: 15px; margin-top: 5px; font-weight: bold;"> <?php echo getNamaPendek($murid->getName()); ?> </div> </div>
public function myCollagues() { $targetID = isset($_GET['kelasid']) ? addslashes($_GET['kelasid']) : die("No Target ID"); $acc = new AccountMeta(); $arrM = $acc->getWhere("meta_key = 'RoleOrganization' AND meta_value = '{$targetID}'"); $arrAcc = array(); foreach ($arrM as $mt) { $ac = new Account(); $ac->getByID($mt->account_id); $arrAcc[$mt->account_id]['acc'] = $ac; $arrAcc[$mt->account_id]['meta'] = $mt; } ?> <h3 style="background-color: #dedede; padding: 5px; font-size: 18px;"><?php echo Lang::t('My Colleagues'); ?> </h3> <?php //pr($arrAcc); $nrRow = 4; foreach ($arrAcc as $a) { $murid = $a['acc']; ?> <style type="text/css"> .fotoresponsive { // padding : 10 px; // background-color : white; height: 91px; overflow: hidden; } .foto50{ height: 50px; overflow: hidden; } </style> <div style="cursor:pointer; float: left; width: 70px; height:120px; overflow:hidden; padding: 10px;" onclick="openProfile('<?php echo $murid->admin_id; ?> ');"> <?php Account::makeFotoIterator($murid->admin_foto, 50); ?> <div style="text-align: center; margin-bottom: 15px; margin-top: 5px; font-size: 11px;"> <?php echo getNamaPendek($murid->getName()); ?> </div> </div> <?php } }