예제 #1
0
<?php

$t = time();
?>
    <h1><?php 
echo $acc->getName();
?>
</h1>
    <div class="col-md-4">
        <?php 
Account::makeFotoIterator($acc->admin_foto, "responsive");
?>
        <div style="padding-top: 10px;">
            <button id="inboxComposeProfile<?php 
echo $acc->admin_id;
?>
" data-toggle="modal" data-target="#myModal"
                    type="button" class="btn btn-primary btn-block"><?php 
echo Lang::t('Send Message');
?>
</button>
            <script type="text/javascript">
                $('#inboxComposeProfile<?php 
echo $acc->admin_id;
?>
').click(function (event) {
                    event.preventDefault();
                    $('#myModalLabel').empty().append('<?php 
echo Lang::t('Compose Message');
?>
');
<div class="row widgethead">
    <div class="col-md-12">
        <h3><?php 
echo Lang::t('Homeroom');
?>
</h3>
    </div>
</div>
<hr/>
<div class="row" style="margin-top: 10px;">
    <div onclick="openProfile('<?php 
echo $guru->account_id;
?>
');" class="col-lg-3 col-md-3 col-sm-5 col-xs-5">
        <?php 
Account::makeFotoIterator($guru->foto, "responsive");
?>
    </div>
    <div class="col-md-8 col-lg-8 col-sm-7 col-xs-7" style="margin-left: 0; padding-left: 0;">
        <div onclick="openProfile('<?php 
echo $guru->account_id;
?>
');" class="namahomeroom"
             style="font-size: 17px; font-weight: bold;"><?php 
echo $guru->getName();
?>
</div>
        <small><?php 
echo Lang::t('Homeroom');
?>
 <?php 
예제 #3
0
<h1><?php 
echo $roleObj->getName();
?>
</h1>
<div class="col-md-4">
    <?php 
Account::makeFotoIterator($roleObj->foto, "responsive");
?>

    <h3><?php 
echo Lang::t('Gallery');
?>
</h3>
    <?php 
$roleObj->getGallery($roleObj->account_id);
?>

</div>
<div class="col-md-8">
    <div class="table-responsive">
        <h3 style="padding-left: 10px;"><?php 
echo Lang::t('Account Details');
?>
</h3>
        <table class="table table-striped">
            <tr>
                <td>
                    <?php 
echo Lang::t('Username');
?>
 :
<div class="col-md-2 col-lg-2 col-sm-4 col-xs-6" onclick="openProfile('<?php 
echo $murid->account_id;
?>
');">
    <?php 
Account::makeFotoIterator($murid->foto, "responsive");
?>
    <div
        style="text-align: center; margin-bottom: 20px; margin-top: 5px; font-weight: bold;"><?php 
echo $murid->getName();
?>
</div>
</div>
<?php 
//pr($murid);
    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 
        }
    }