Skip to content

Instantly share code, notes, and snippets.

@virbo
Last active April 19, 2016 14:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save virbo/b0791fe6eb0a2781596e22d1c1771c3b to your computer and use it in GitHub Desktop.
Save virbo/b0791fe6eb0a2781596e22d1c1771c3b to your computer and use it in GitHub Desktop.
Fungsi tambahan untuk file Welcome.php
public function modal($id)
{
$this->load->model('alumni_model','alumni');
$temp_result = $this->alumni->get_location_by_id($id)->result();
$temp_place = $this->alumni->get_location_by_id($id)->row();
$temp_jml = count($temp_result);
echo "<div class=\"panel panel-primary\">
<div class=\"panel-heading\">
<div class=\"row\">
<div class=\"col-xs-3\">
<i class=\"fa fa-map-o fa-5x\"></i>
</div>
<div class=\"col-xs-9 text-right\">
<div style=\"font-size: 40px;\">".$temp_jml."</div>
<div>Data Alumni</div>
</div>
<div class=\"col-xs-12\">
<hr style=\"margin-bottom: 5px;\" />
<small>".$temp_place->lokasi."</small>
</div>
</div>
</div>
<div class=\"panel-footer\">";
foreach ($temp_result as $value) {
echo "<div><i class=\"fa fa-user\"></i> ".$value->nm_alumni."</div><hr />";
}
echo "</div>
</div>";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment