Beispiel #1
0
                          
<?php 
if (is_array($users_collection) && !empty($users_collection)) {
    foreach ($users_collection as $key => $collection_landing) {
        ?>
                    <!-- Collection list -->
                  
       <section class="landing-page-css common-new common-section divider-list" >
                        <div class="container">
                            <div class="row">
                                <div class="main-collection-list">
                                    <div class="today-date col-lg-12 col-md-12 col-sm-12"><?php 
        echo get_dates_day($key, date("Y-m-d"));
        ?>
                                    </div>

                                    <div class="collection-item-list">
                                       <?php 
        if (is_array($collection_landing) && !empty($collection_landing)) {
            foreach ($collection_landing as $users_collection_val) {
                ?>
                              <div class="list-common common-new" >
                                      
                                  
                                     <div class="col-lg-1 col-md-1 col-sm-1 col-xs-2">
                                       <div class="list-vote">
                                          <a href="javascript:;" 
                                           <?php 
                if ($this->session->userdata('user_logged') != '') {
                    ?>
                             onclick="increase('0','<?php 
 
                <div class="products-view-list <?php 
        echo $ds == 1 ? '' : 'divider-list';
        ?>
 common-new" >



                  <div class="col-lg-12 col-md-12 col-sm-12">
                   <div class="searcbar-section">
                        
                        
                        <div class="date-css col-lg-12 col-md-12 col-sm-12">
                         
                  <?php 
        echo get_dates_day($product_val['publishdate'], date("Y-m-d"));
        ?>
                         
                         </div>
                        
                      </div>  
                  </div>
<?php 
        //$this->load->model(array('Products'));
        $where = "date_format(p.updated_at,'%Y-%m-%d') ='" . $product_val['publishdate'] . "'";
        $param = array('id' => '', 'orderby' => 'updated_at desc', 'where' => $where);
        $product_val_result = $this->Products->get_product($param);
        $key = $product_val['publishdate'];
        //echo $sql = $this->db->last_query();
        // trace($product_val);
        ?>