Пример #1
0
  <div class="panel-heading">
    <h3 class="panel-title">Top Liked Poems</h3>
  </div>
    <div class="panel-body" style="padding:0px;">
    
      <table  class="table table-striped" style="margin-bottom:0px;">
          <tr><th>#</th><th>Poems Title</th><th>Likes</th><th>Dislikes</th></tr>
       <?php 
$count = 1;
foreach ($this->get_more_liked as $get_more_liked) {
    ?>
          <tr><th><?php 
    echo $count;
    ?>
</th><th><?php 
    echo text_limit(ucfirst($get_more_liked['poem_title']), 50);
    ?>
</th><th><?php 
    echo ucfirst($get_more_liked['like']);
    ?>
</th><th><?php 
    echo ucfirst($get_more_liked['dislike']);
    ?>
</th></tr>
    <?php 
    $count++;
}
?>
      </table>
      
  </div>
Пример #2
0
<?php

include getcwd() . "/modules/site/common.php";
if (isset($params[0]) && $params[0] == "sitemap") {
    //Get all Poems
    $array_record = array();
    $get_all_poem = $database->select("poems", "*", array("ORDER" => "id DESC"));
    foreach ($get_all_poem as $poem) {
        $array_sub = array();
        $array_sub['title'] = text_limit($poem['poem_title'], 100);
        $array_sub['url'] = main_url . "/poem/" . $poem['id'] . "/" . $poem['poem_slug'];
        $array_record[] = $array_sub;
    }
    $tpl->poem_urls = $array_record;
    // Get all Authors
    $array_record = array();
    $get_all_author = $database->select("authors", "*", array("ORDER" => "id DESC"));
    foreach ($get_all_author as $author) {
        $array_sub = array();
        $array_sub['title'] = $author['Author_name'];
        $array_sub['url'] = main_url . "/poet/" . $author['id'] . "/" . $author['Author_slug'];
        $array_record[] = $array_sub;
    }
    $tpl->author_urls = $array_record;
    // Get all Topics
    $array_record = array();
    $get_all_topic = $database->select("topics", "*", array("ORDER" => "topic_id DESC"));
    foreach ($get_all_topic as $topic) {
        $array_sub = array();
        $array_sub['title'] = $topic['topic_name'];
        $array_sub['url'] = main_url . "/topic/" . $topic['topic_id'] . "/" . $topic['topic_slug'];
Пример #3
0
                        <div style="width:22%;float:left">
                            <a href="<?php 
        echo get_url($this->database, "poet", $all_poets['id'], $all_poets['Author_slug']);
        ?>
">  <img class="img img-thumbnail img-responsive" src="<?php 
        echo $src;
        ?>
"  /></a>
                        </div>
                        
                        <div class="pull-left">
                            <a href="<?php 
        echo get_url($this->database, "poet", $all_poets['id'], $all_poets['Author_slug']);
        ?>
"><?php 
        echo text_limit($all_poets['Author_name'], 20);
        ?>
</a> <br>
                            <small>(<?php 
        echo get_author_poems($this->database, $all_poets['id'], array("ONLYCOUNT" => true));
        ?>
 <?php 
        echo POEMS;
        ?>
) </small>
                        </div>
                    </div>
                </div>
                <?php 
        $count++;
        ?>
Пример #4
0
                        <div style="width:22%;float:left">
                            <a href="<?php 
        echo get_url($this->database, "user", $all_user['id'], $all_user['Author_slug']);
        ?>
">  <img class="img img-thumbnail img-responsive" src="<?php 
        echo $src;
        ?>
"  /></a>
                        </div>
                        
                        <div class="pull-left">
                            <a href="<?php 
        echo get_url($this->database, "user", $all_user['id'], $all_user['Author_slug']);
        ?>
"><?php 
        echo text_limit($all_user['firstname'], 20);
        ?>
</a> <br>
                            <small>(<?php 
        echo get_user_poems($this->database, $all_user['id'], array("ONLYCOUNT" => true));
        ?>
 <?php 
        echo POEMS;
        ?>
) </small>
                        </div>
                    </div>
                </div>
                <?php 
        $count++;
        ?>
Пример #5
0
    $count = 1;
    foreach ($this->search_results as $page_poems) {
        //pr($page_poems);
        ?>
 
		 <tr>
                 <td><?php 
        echo $count;
        $count++;
        ?>
</td>
                 <td><a href="<?php 
        echo get_url($this->database, "poem", $page_poems['id'] . "/" . $page_poems['poem_slug']);
        ?>
"><?php 
        echo text_limit($page_poems['poem_title'], 35);
        ?>
...</a></td>
                 <td style="font-size:18px;text-align:left;margin-left:-10px">
                      <div class="rating"  data-toggle="tooltip" data-placement="bottom" title="<?php 
        echo get_ratings_text("poems", $page_poems['id'], $this->database);
        ?>
"  style="font-size:16px; color: #e48a07;">
                     <?php 
        show_ratings_html("poems", $page_poems['id'], $this->database, false, false);
        ?>
                      </div>
                     </td>
         	 </tr>
                   <?php 
    }
Пример #6
0
    $count = 1;
    foreach ($this->search_results as $users) {
        //pr($page_poems);
        ?>
 
		 <tr>
                 <td><?php 
        echo $count;
        $count++;
        ?>
</td>
                 <td><a href="<?php 
        echo get_url($this->database, "user", $users['id'] . "/" . $users['poem_slug']);
        ?>
"><?php 
        echo text_limit($users['firstname'], 35);
        ?>
...</a></td>
                 <td style="font-size:18px;text-align:left;margin-left:-10px">
                      <div class="rating"  data-toggle="tooltip" data-placement="bottom" title="<?php 
        echo get_ratings_text("author", $users['id'], $this->database);
        ?>
"  style="font-size:16px; color: #e48a07;">
                     <?php 
        show_ratings_html("author", $users['id'], $this->database, false, false);
        ?>
                      </div>
                     </td>
         	 </tr>
                   <?php 
    }
Пример #7
0
;border-left:10px solid <?php 
        echo $degradasi2['navbar'];
        ?>
;padding-left:5px;">
<a href="redir.php?art=<?php 
        echo $row[id];
        ?>
"><h3><b><?php 
        echo $row['nama'];
        ?>
</b></h3></a>
<?php 
        $sinopsis = mysql_query("select*from isibuku where id_buat='{$row['id']}' and hal='sinopsis'");
        $rowsin = mysql_fetch_array($sinopsis);
        echo "<a style='color:{$degradasi2['navbar']}' href=index.php?rpl=bukupenulis&hal=baca&det={$row['id']}>" . $row['judul'] . "</a>" . "<br>";
        echo text_limit($rowsin['isi'], 100) . "<br><br>";
        echo " <div style=" . "color:{$degradasi2['navbar']};" . "><b>Ditulis pada {$row['jam']} {$row['tanggal']} </b><div class=place-right><a style='color:{$degradasi2['navbar']}' href=index.php?rpl=bukupenulis&hal=baca&det={$row['id']}>Selengkapnya</a></div></div></div>";
    }
    $rojml = mysql_query("select*from bukuonline order by id desc");
    $jml = mysql_num_rows($rojml);
    if ($jml > $limitan) {
        ?>
<div class="place-right" style="padding-top:20px;">
	<a href="index.php?rpl=bukuonline&src_a=<?php 
        echo $awal;
        ?>
&src_b=<?php 
        echo $limitan;
        ?>
&back="><i type="submit" name="lanjut" style="color:<?php 
        echo $degradasi2['navbar'];
Пример #8
0
                    <?php 
        if ($popular_poems['submitter_id']) {
            $data = get_user_info($this->database, $popular_poems['submitter_id']);
            $popular_poems['submitter_id'] = $data[0];
        }
        ?>
                    <tr>
                    <td width="30" class="number text-center"><?php 
        echo $count;
        ?>
</td>
                    <td width="450"><b><a href="<?php 
        echo get_url($this->database, "phpfunction", $popular_poems['id'], $popular_poems['poem_slug']);
        ?>
"><?php 
        echo text_limit($popular_poems['poem_title'], 10);
        ?>
 </a></b>
                       <p><small><a href="<?php 
        echo get_url($this->database, "user", $popular_poems['submitter_id']['id'], $popular_poems['submitter_id']['poem_slug']);
        ?>
"style="color:#333"><?php 
        echo $popular_poems['submitter_id']['firstname'];
        ?>
</a> </p></small></td>
                    <td width="400">
                        <div class="rating"  data-toggle="tooltip" data-placement="bottom" title="<?php 
        echo get_ratings_text("poems", $popular_poems['id'], $this->database);
        ?>
"  style="font-size:16px; color: #e48a07;">
                      <?php 
Пример #9
0
<div id="" style="border-bottom:1px solid <?php 
        echo $degradasi2['navbar'];
        ?>
;border-left:10px solid <?php 
        echo $degradasi2['navbar'];
        ?>
;padding-left:5px;">
<a href="redir.php?art=<?php 
        echo $row[id];
        ?>
"><h3><?php 
        echo $row['nama'];
        ?>
</h3></a>
<?php 
        echo text_limit($row[isi], 100) . "<br><br>";
        $wwwwww = mysql_query("select id from komenartikel where id_artikel={$row['id']}");
        $num = mysql_num_rows($wwwwww);
        $asdf = mysql_query("select id,id_akun,id_tl from sukastatus where id_tl={$row['id']} and id_akun={$_SESSION['id']}");
        $asd = mysql_query("select id,id_akun,id_tl from sukastatus where id_tl={$row['id']}");
        $mm = mysql_num_rows($asd);
        $like = mysql_fetch_array($asdf);
        ?>
<a style="font-size:20pt;" href="redir.php?art=<?php 
        echo $row[id];
        ?>
"><i title="<?php 
        echo $num;
        ?>
 Komentar" class=icon-comments-4 alt="hai"></i></a>
<?php 
Пример #10
0
    $count = 1;
    foreach ($this->search_results as $poets) {
        //pr($page_poems);
        ?>
 
		 <tr>
                 <td><?php 
        echo $count;
        $count++;
        ?>
</td>
                 <td><a href="<?php 
        echo get_url($this->database, "poet", $poets['id'] . "/" . $poets['poem_slug']);
        ?>
"><?php 
        echo text_limit($poets['Author_name'], 35);
        ?>
...</a></td>
                 <td style="font-size:18px;text-align:left;margin-left:-10px">
                      <div class="rating"  data-toggle="tooltip" data-placement="bottom" title="<?php 
        echo get_ratings_text("author", $poets['id'], $this->database);
        ?>
"  style="font-size:16px; color: #e48a07;">
                     <?php 
        show_ratings_html("author", $poets['id'], $this->database, false, false);
        ?>
                      </div>
                     </td>
         	 </tr>
                   <?php 
    }
Пример #11
0
        ?>
">
<?php 
        if ($a == 1) {
            ?>
<a href="redir.php?art=<?php 
            echo $row[id];
            ?>
"><h2><?php 
            echo $row['nama'];
            ?>
</h2></a>
<?php 
            echo text_limit($row[isi], 100) . "..." . " <a href=redir.php?art={$row['id']}" . ">" . "Selengkapnya</a>";
        } else {
            if ($a > 1 and $a < 11) {
                echo "<a href=redir.php?art={$row['id']}>" . $row['nama'] . "</a><br>";
                echo text_limit($row[isi], 30) . "..." . " <a href=redir.php?art={$row['id']}>" . "Selengkapnya</a>";
            } else {
                if ($a == 11) {
                    echo "<h3>Artikel Lainnya</h3>";
                }
                echo "&nbsp;> <a href=redir.php?art={$row['id']}>" . $row['nama'] . "</a>";
            }
        }
        ?>
</div>
<?php 
        $a++;
    }
}