Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //Step1
- $file_name = base64_decode($_GET['id']);
- $SurahID = explode("|",$file_name)[0];
- $SurahName = explode("|",$file_name)[1];
- $SurahType = explode("|",$file_name)[2];
- $SurahNumberAyat = explode("|",$file_name)[3];
- $db = mysqli_connect('localhost','root','07806845731','alsobhalmustanir_quran')
- or die('Error connecting to MySQL server.');
- ?>
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <?php
- echo "<title>برنامج القرآن الكريم - {$SurahName}</title>"
- ?>
- <link rel="stylesheet" href="css/audioplayer1.css" />
- <link rel="stylesheet" href="css/float.css" />
- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
- <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
- <style type="text/css">
- #default {
- border-radius: 3px;
- background: #777777;
- color: white;
- margin: auto;
- width: 20%;
- padding: 5px;
- text-align: center;
- }
- body {
- color: #566787;
- background: #f5f5f5;
- font-family: 'Droid Sans', sans-serif;
- text-align: right;
- }
- .table-wrapper {
- width: 850px;
- background: #fff;
- padding: 20px 30px 5px;
- margin: 30px auto;
- box-shadow: 0 0 1px 0 rgba(0,0,0,.25);
- font-size: 30px;
- }
- .table-title .btn-group {
- float: right;
- }
- .table-title .btn {
- min-width: 50px;
- border-radius: 2px;
- border: none;
- padding: 6px 12px;
- font-size: 95%;
- outline: none !important;
- height: 30px;
- }
- .table-title {
- border-bottom: 1px solid #e9e9e9;
- padding-bottom: 15px;
- margin-bottom: 5px;
- background: rgb(0, 50, 74);
- margin: -20px -31px 10px;
- padding: 15px 30px;
- color: #fff;
- }
- .table-title h2 {
- margin: 2px 0 0;
- font-size: 24px;
- }
- table.table tr th, table.table tr td {
- border-color: #e9e9e9;
- padding: 12px 15px;
- vertical-align: middle;
- text-align: right;
- }
- table.table tr th:first-child {
- width: 0px;
- }
- table.table-striped tbody tr:nth-of-type(odd) {
- background-color: #fcfcfc;
- }
- table.table-striped.table-hover tbody tr:hover {
- background: #f5f5f5;
- }
- table.table td a {
- color: #2196f3;
- }
- table.table td .btn.manage {
- padding: 2px 10px;
- background: #37BC9B;
- color: #fff;
- border-radius: 2px;
- }
- table.table td .btn.manage:hover {
- background: #2e9c81;
- }
- @font-face {
- font-family: Droid;
- src:url('Fonts/droid.ttf');
- }
- @font-face {
- font-family: Uthmanic;
- src:url('Fonts/uthmanic.otf');
- }
- }
- </style>
- </head>
- <body>
- <?php
- $hostname = "localhost";
- $username = "root";
- $password = "07806845731";
- $db = "alsobhalmustanir_quran";
- $dbconnect=mysqli_connect($hostname,$username,$password,$db);
- if ($dbconnect->connect_error) {
- die("Database connection failed: " . $dbconnect->connect_error);
- }
- ?>
- <div class="table-wrapper">
- <div class="table-title">
- <div class="row-12">
- <?php
- echo "<p style = 'font-family: Droid;font-size:32px;'>{$SurahName}</p>
- <p style = 'font-family: Droid;font-size:16px; align: right;'>{$SurahType} / عدد آياتها {$SurahNumberAyat}</p>";
- ?>
- </div>
- </div>
- <table class="table table-striped table-hover">
- <tbody>
- <?php
- $audio_name;
- $query = mysqli_query($dbconnect, "SELECT * FROM ayah_info where ConnectIdSurah = {$SurahID}")
- or die (mysqli_error($dbconnect));
- echo
- "<tr>
- <img style='display: block; margin-left: auto; margin-right: auto;' src='Images/Header.png'>
- <span class='float'>
- <audio preload='auto' controls><source src='{$audio_name}.mp3'></audio>
- </span>
- </tr>\n";
- while ($row = mysqli_fetch_array($query)) {
- echo
- "<tr>
- <td><span class='label label-info'>{$row['NumberAyah']}</span></td>
- <td><div class='dropdown'>
- <a style = 'font-family: Uthmanic; text-decoration:none; color: #566787;' href='#' data-toggle='dropdown'>{$row['Ayah']}
- <span class='caret'></span></a>
- <ul class='dropdown-menu'>
- <li><a style = 'font-family: Droid;font-size:16px; text-align: right' href='#' onClick='gotoNode(\'' + result.name + '\')'>إستماع للآية</a></li>
- <li><a style = 'font-family: Droid;font-size:16px; text-align: right' href='#' onclick=Alert7.alert('{$row['Tafseer']}')>تفسير</a></li>
- <li><a style = 'font-family: Droid;font-size:16px; text-align: right' href='#' onclick=Alert7.alert('{$row['Aarab']}')>إعراب</a></li>
- </ul>
- </div></td>
- </tr>\n";
- }
- ?>
- </tbody>
- </table>
- <?php
- echo
- "<tr>
- <br>
- <img style='display: block; margin-left: auto; margin-right: auto;' src='Images/Footer.png'>
- </tr>\n";
- ?>
- </div>
- </body>
- <script src="js/alert7.min.js"></script>
- <script src="js/audioplayer.js"></script>
- <script>
- $(function() {
- $('audio').audioPlayer();
- });
- </script>
- </html>
Add Comment
Please, Sign In to add comment