Your IP : 216.73.216.79


Current Path : /var/www/html/ekursusv2/frontend/runtime/frontendpage/
Upload File :
Current File : /var/www/html/ekursusv2/frontend/runtime/frontendpage/156_1742950630094198400-content-407.php

<?php 
/*** CONTENT_ID-407***/
use yii\helpers\ArrayHelper;

$article_code = Yii::$app->getRequest()->getQueryParam('id');
$article_title = '';
$article_content = '';

$query = new \yii\db\Query(); 
$model = $query->select(['article_translation_title AS title','article_translation_content AS content','content_article.article_id','article_image'])
    ->from('content_article')
    ->innerJoin('content_article_translation','content_article.article_id=content_article_translation.article_translation_parent_id')
    ->andwhere(['=','article_code',$article_code])
    ->andwhere(['=','article_translation_main','1'])
    ->all();
if(!empty($model)){
    foreach($model as $row){
        $article_title = $row['title'];
        $article_content = $row['content']; 
    }
}


echo '<style>
    .content-wrapper{
        /*background-image:url(/assets/img/background/aipa-bg2.png);
        background-size : 100% auto;
        background-position : top center;
        background-repeat:no-repeat;*/
        padding:3em 0;
        background-color:white;
    }
    .content-title{
        line-height:1.5;
        color:#0057ad;
        font-weight:600;
        letter-spacing:1px;
        font-family:poppins;
        padding-bottom : 0px;
        text-shadow : 1px 1px white;
    }
    #article-wrapper p, #article-wrapper ol li, #article-wrapper ul li  {
        line-height : 2 !important;
    }
    #article-wrapper ul{
        padding-left:2em;
    }
    #article-wrapper ol li, #article-wrapper ul li {
        margin-bottom : 10px;
    }
    #article-wrapper{
        font-size:16px;
    }
    #article-wrapper h1, #article-wrapper h2, #article-wrapper h3,
    #article-wrapper h4, #article-wrapper h5, #article-wrapper h6{
        font-family:poppins;
        font-weight:600;
    }
    
    #article-wrapper a{color:#0057ad}
    
    .button-print{
        background:transparent;
        border:0;
        padding:0;
        color :black;
    }
</style>
<section class="content-wrapper">
    <div class="container">
        <!--<h1 class="content-title">'.$article_title.'</h1>-->
        <button class="button-print" style="float:right;" onclick="printDiv(\'article-wrapper\')"><i class="fa fa-print fa-2x" aria-hidden="true"></i></button>
        <div class="text-justify" id="article-wrapper">
            '.$article_content.'
        </div>
    </div>
</section>
<script>
    function printDiv(divName) {
         var printContents = document.getElementById(divName).innerHTML;
         var originalContents = document.body.innerHTML;
         document.body.innerHTML = printContents;
         window.print();
         document.body.innerHTML = originalContents;
}
</script>';
?>