Beispiel #1
0
" <?php 
        if ($x == 1) {
            ?>
class="active"<?php 
        }
        ?>
></li>
			<?php 
    }
    ?>
		</ol>

		<!-- Wrapper for slides -->
		<div class="carousel-inner" role="listbox">
			<?php 
    $sliders = $tableslider->findAllLimitByAnd(id_post, active, headline, 'Y', 'Y', DESC, '3');
    $no = 1;
    foreach ($sliders as $slider) {
        $tablecatsl = new PoTable('category');
        $currentCatsl = $tablecatsl->findBy(id_category, $slider->id_category);
        $currentCatsl = $currentCatsl->current();
        ?>
			<div class="item <?php 
        if ($no == 1) {
            ?>
active<?php 
        }
        ?>
">
				<img width="100%" style="height:487px;" src="<?php 
        echo $website_url;
Beispiel #2
0
						<p>&nbsp;</p>
					</div>
					<div class="col-md-6">
						<div class="portfolio-info">
							<h3><a href="<?php 
    echo $website_url;
    ?>
/category/sukses">Sukses</a></h3>
							<div class="clearfix hidden-xs""><br /></div>
						</div>
						<div class="row">
							<div class="col-sm-12">
								<div class="row">
									<?php 
    $tablecond = new PoTable('post');
    $conds = $tablecond->findAllLimitByAnd(id_post, id_category, active, '4', 'Y', DESC, '2');
    foreach ($conds as $cond) {
        ?>
									<div class="col-sm-6">
										<!-- Portfolio Item in Widget -->
										<div class="portfolio-item">
											<a href="<?php 
        echo "{$website_url}/detailpost/{$cond->seotitle}";
        ?>
" class="image">
												<img src="<?php 
        echo $website_url;
        ?>
/po-content/po-upload/medium/medium_<?php 
        echo $cond->picture;
        ?>
Beispiel #3
0
    $currentDetail = $currentDetail->current();
    $idpost = $currentDetail->id_post;
    if ($currentDetail > 0) {
        $tabledpost = new PoTable('post');
        $currentDpost = $tabledpost->findByPost(id_post, $idpost);
        $currentDpost = $currentDpost->current();
        $contentdet = html_entity_decode($currentDetail->content);
        $biodet = html_entity_decode($currentDetail->bio);
        $tabledcat = new PoTable('category');
        $currentDcat = $tabledcat->findBy(id_category, $currentDetail->id_category);
        $currentDcat = $currentDcat->current();
        $p = new Paging();
        $batas = 5;
        $posisi = $p->cariPosisi($batas);
        $tabledcom = new PoTable('comment');
        $composts = $tabledcom->findAllLimitByAnd(id_comment, id_post, active, "{$idpost}", "Y", "ASC", "{$posisi},{$batas}");
        $totaldcom = $tabledcom->numRowByAnd(id_post, $idpost, active, 'Y');
        mysql_query("UPDATE post SET hits = {$currentDetail->hits}+1 WHERE id_post = '" . $idpost . "'");
        ?>
        <div class="page">
            <div class="row page_margin_top">
				<div class="column column_2_3">
				    <div class="row">
                        <div class="post single">
                            <h1 class="post_title"><?php 
        echo $currentDpost->title;
        ?>
</h1>
                            <ul class="post_details clearfix">
                                <li class="detail category">Di <a href="<?php 
        echo "{$website_url}/category/{$currentDcat->seotitle}";
Beispiel #4
0
        ?>
</strong></li>
					</ol>
				</div>
			</div>
		</div>
	</section>
	<section class="portfolio-container">
		<div class="container">
			<div class="row" id="portfolio-items">
			<?php 
        $p = new Paging();
        $batas = 5;
        $posisi = $p->cariPosisi($batas);
        $tabledcpost = new PoTable('post');
        $dcposts = $tabledcpost->findAllLimitByAnd(id_post, id_category, active, "{$iddcat}", "Y", "DESC", "{$posisi},{$batas}");
        foreach ($dcposts as $dcpost) {
            $tabledccom = new PoTable('comment');
            $totaldccom = $tabledccom->numRowByAnd(id_post, $dcpost->id_post, active, 'Y');
            $tableuser = new PoTable('users');
            $currentUser = $tableuser->findBy(id_user, $dcpost->editor);
            $currentUser = $currentUser->current();
            ?>
				<div class="item col-sm-4">
					<div class="portfolio-item">
						<a href="<?php 
            echo "{$website_url}/detailpost/{$dcpost->seotitle}";
            ?>
" class="image">
							<img src="<?php 
            echo $website_url;
Beispiel #5
0
<!--
*******************************************************
	Main Content Template
*******************************************************
-->

<!-- banner-bottom -->
	<div class="banner-bottom">
		<div class="container">
			<div class="col-md-6 banner-bottom-left">
				<h2>Tutorial terbaru</h2>
				<ul>
					<?php 
    $tablenewpost = new PoTable('post');
    $items = $tablenewpost->findAllLimitByAnd(id_post, active, headline, 'Y', 'Y', DESC, '5');
    foreach ($items as $item) {
        ?>
					<li><a href="<?php 
        echo "{$website_url}/detailpost/{$item->seotitle}";
        ?>
"><?php 
        echo $item->title;
        ?>
</a></li>
					<?php 
    }
    ?>
				</ul>
				<div class="more">
					<a href="single.html">More Info</a>
Beispiel #6
0
              </div>
            </div>
            <hr>
          </div>
          <!-- Scince & Travel end --> 
          <!-- lifestyle start-->
          <div class="col-sm-16 wow fadeInUp animated " data-wow-delay="0.5s" data-wow-offset="100">
            <div class="main-title-outer pull-left">
              <div class="main-title">lifestyle</div>
              <div class="span-outer"><span class="pull-right text-danger last-update"><span class="ion-android-data icon"></span>Last update: 3 days ago</span> </div>
            </div>
            <div class="row">
            <div id="owl-lifestyle" class="owl-carousel owl-theme lifestyle pull-left">
                   <?php 
    $tablecon1j = new PoTable('post');
    $con1js = $tablecon1j->findAllLimitByAnd(id_post, id_category, active, '4', 'Y', DESC, '10');
    foreach ($con1js as $con1j) {
        ?>
               <div class="item topic">          
               <a href="<?php 
        echo "{$website_url}/detailpost/{$con1j->seotitle}";
        ?>
"> <img class="img-thumbnail" src="<?php 
        echo $website_url;
        ?>
/content/upload/<?php 
        echo $con1j->picture;
        ?>
" width="300" height="132" alt=""/>
                  <h4><?php 
        echo cuthighlight('post', $con1j->title, '50');
Beispiel #7
0
	<script src="https://www.google.com/recaptcha/api.js"></script>
    <style type="text/css" media="screen">
        .logo-pic a img{
            z-index:9999;
            margin-left:155px;
            list-style:none;
        }        
    </style>
</head>
<body>
    <!-- <div style="width:90px;" class="site_container">
        <div class="clearfix">
            <nav class="logo-pic">
                <?php 
    $tableconc = new PoTable('post');
    $concs = $tableconc->findAllLimitByAnd(id_post, id_category, active, '1', 'Y', DESC, '1');
    foreach ($concs as $conc) {
        ?>
                    <a href="<?php 
        echo "{$website_url}/detailpost/{$conc->seotitle}";
        ?>
" title="<?php 
        echo $conc->title;
        ?>
">
                        <img src="<?php 
        echo $website_url;
        ?>
/po-content/po-thumbs/<?php 
        echo $conc->picture;
        ?>
Beispiel #8
0
	  </div>
</div>

<!--Komite CSR end  here-->

<!--Badan Kompetensi CSR Officer-->
<div class="team-mem" id="bakom">
		<div class="container">
			   <div class="team-main">
					<div class="team-top">
							<h3>Badan Kompetensi CSR Officer</h3>
					</div>
						<ul class="ch-grid">
							<?php 
    $tablebakom = new PoTable('users');
    $bakom = $tablebakom->findAllLimitByAnd(id_user, blokir, level, 'N', '6', DESC, '4');
    foreach ($bakom as $bakom) {
        ?>
							<li>
								<a href="#"><div style="background-image: url(
							<?php 
        echo !empty($bakom->userpicture) ? $website_url . "/po-content/po-upload/user-" . $bakom->userpicture : $website_url . "/po-content/po-upload/user-editor.jpg";
        ?>
							); background-size:cover;" class="ch-item ch-img-1">
									<div class="ch-info">
										<h3><?php 
        echo $bakom->nama_lengkap;
        ?>
</h3>
										<p>Jabatan</p>
									</div>