function m_displayAyat($id = 0) { $cariKata = $this->input->post('cariKata') == '' ? '' : $this->input->post('cariKata'); $query = $this->db->select('*')->from('quran_indo a')->join('surah b', 'a.SuraID=b.id')->where(array('a.ID' => $id))->get(); foreach ($query->result() as $key) { $hasil = $key->AyahText; if ($cariKata != '') { $arrKata = explode(" ", $cariKata); foreach ($arrKata as $v) { $hasil = str_replace($v, '<font color="blue"><u>' . $v . '</u></font>', $hasil); } } $text = '<div align="right">' . quran_img($key->img) . '</div> <hr noshade size=1> ' . quran_mp3($key->mp3) . ' <hr noshade size=1> <font size=4>"' . $hasil . '"</font> <hr noshade size=1> MP3 : <a href="' . path_asset("quran_" . $key->mp3) . '">DOWNLOAD</a><br> IMG : <a href="http://www.everyayah.com/data/quranpngs/' . $key->SuraID . '_' . $key->VerseID . '.png" target="_blank">DOWNLOAD</a><br> LINK : <a href="' . base_url() . 'quran/viewAyat/' . $key->ID . '" target="_blank">' . base_url() . 'quran/viewAyat/' . $key->ID . '</a>'; } return $text; }
?> ")} .menu_root {background-image:url("<?php echo path_asset('images/ico/tag_red.png'); ?> ")} .menu_child {background-image:url("<?php echo path_asset('images/ico/tag_blue.png'); ?> ")} .download {background-image:url("<?php echo path_asset('images/ico/world_go.png'); ?> ")} .clear {background-image:url("<?php echo path_asset('images/ico/cancel.png'); ?> ")} div.eg { background-color: #E1E1E1; width: 70%; padding: 10px; margin-right: 20px; margin-top: 10px; white-space: normal; border-radius: 5px; -moz-border-radius: 5px; font-family: Verdana, Helvetica, sans-serif; } </style> <script type="text/javascript">
<script type="text/javascript"> var base_url = '<?php echo base_url(); ?> '; </script> </head> <body> <div id="loading-mask"></div> <div id="loading"> <span id="loading-message">Sedang Memuat. Mohon Tunggu...</span> </div> <script type="text/javascript">document.getElementById('loading-message').innerHTML = '<font face="tahoma" color="white">Memuat Style...</font>';</script> <script type="text/javascript">document.getElementById('loading-message').innerHTML = '<font face="tahoma" color="white">Memuat System..</font>';</script> <script type="text/javascript" src="<?php echo path_asset('extjs/ext-all.js'); ?> "></script> <script type="text/javascript">document.getElementById('loading-message').innerHTML = '<font face="tahoma" color="white">Memuat Aplikasi...</font>';</script> <script type="text/javascript">document.getElementById('loading-message').innerHTML = '<font face="tahoma" color="white">Inisialisasi...</font>';</script> <!-- aplikasi js --> <?php echo js_asset('initVar.js'); ?> <?php echo js_asset('funcVar.js'); ?> <?php echo js_asset('quran.js'); ?> <div style="display:none;">
<html> <head> <title>Test</title> <link rel="stylesheet" type="text/css" href="<?php echo path_asset('extjs/resources/css/ext-all.css'); ?> " /> <script type="text/javascript" src="<?php echo path_asset('extjs/bootstrap.js'); ?> "></script> <script type="text/javascript"> var base_url = '<?php echo base_url(); ?> '; </script> <?php echo js_asset('test.js'); ?> </head> <body> </body> </html>