Example #1
0
 function view($str = NULL)
 {
     if (isset($str)) {
         $data = $this->_get($str);
         if (!empty($data)) {
             foreach ($data as $get) {
                 redirect('category/' . uri_encode($get->category_name));
             }
         } else {
             show_404();
             return FALSE;
         }
     } else {
         show_404();
         return FALSE;
     }
 }
Example #2
0
                    <br>
                    <br>
                </div>
            </div>
        </div>
        <div class="container">
            <div class="align-center" style="padding-top: 40px; padding-bottom: 10px;">
                <div class="grid">
                    <div class="row cells2">
                    <?php 
foreach ($tags as $tag) {
    ?>
                        <div class="cell no-overflow" style="margin: 0;">
                            <div class="bg-random fg-white block-shadow" style="height: 85px; padding-top: 20px; margin-top: 10px;">
                                <h2 class="text-light"><a class="fg-white" href="<?php 
    echo base_url($this->uri->segment(1) . '/' . uri_encode($tag->tag_name));
    ?>
"><?php 
    echo $tag->tag_name;
    ?>
</a></h2>
                            </div>
                        </div>
                    <?php 
}
?>
                    </div>
                </div>
            </div>
        </div>
    </div>
Example #3
0
                            <p>
                                <?php 
        echo qa_remove_html_limit($lq->description_question, 100);
        ?>
                            </p>
                        </div>
                        <div class="fl">
                            <span class="mif-tags"></span>
                            <?php 
        foreach ($question_tag as $qt) {
            ?>
                                <?php 
            if ($qt->question_id === $lq->id_question) {
                ?>
                                    <a href="<?php 
                echo base_url('tag/' . uri_encode($qt->tag_name));
                ?>
"><span class="tag success"><?php 
                echo $qt->tag_name;
                ?>
</span></a>
                                <?php 
            }
            ?>
                            <?php 
        }
        ?>
                        </div>
                    </section>
                    <?php 
    }
Example #4
0
                                            <?php 
    } else {
        ?>
                                                <?php 
        echo $count_question;
        ?>
                                            <?php 
    }
    ?>
                                        </b>
                                    </p>
                                </div>
                            </div>
                            <div class="fc">
                                <a href="<?php 
    echo base_url('category/' . uri_encode($data->category_name));
    ?>
" target="_blank" class="btn btn-primary btn-lg">See <?php 
    echo $this->uri->segment(2);
    ?>
</a>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<?php 
}
Example #5
0
                    <br>
                    <br>
                </div>
            </div>
        </div>
        <div class="container">
            <div class="align-center" style="padding-top: 40px; padding-bottom: 10px;">
                <div class="grid">
                    <div class="row cells2">
                    <?php 
foreach ($categories as $cat) {
    ?>
                        <div class="cell no-overflow" style="margin: 0;">
                            <div class="bg-random fg-white block-shadow" style="height: 85px; padding-top: 20px; margin-top: 10px;">
                                <h2 class="text-light"><a class="fg-white" href="<?php 
    echo base_url($this->uri->segment(1) . '/' . uri_encode($cat->category_name));
    ?>
"><?php 
    echo $cat->category_name;
    ?>
</a></h2>
                            </div>
                        </div>
                    <?php 
}
?>
                    </div>
                </div>
            </div>
        </div>
    </div>
Example #6
0
File: get.php Project: gaiius/SunQA
                            <h3 class="QuestionList-title"><a href="<?php 
            echo base_url('question/' . $answer->url_question);
            ?>
"><?php 
            echo $answer->subject;
            ?>
</a></h3>
                            <p class="QuestionList-meta">
                                By <a class="QuestionList-author" href="<?php 
            echo base_url('user/' . $answer->username);
            ?>
"><?php 
            echo $answer->nama;
            ?>
</a> under <a class="QuestionList-category QuestionList-category-js" href="<?php 
            echo base_url('category/' . uri_encode($answer->category_name));
            ?>
"><?php 
            echo $answer->category_name;
            ?>
</a> <?php 
            echo dateHourIcon($answer->answer_date);
            ?>
 <span class="mif-bubble icon"></span> <?php 
            echo $this->qa_model->count_where('comment', array('answer_id' => $answer->id_answer));
            ?>
 Comments
                            </p>
                        </header>
                    </section>
                <?php