@@ -57,7 +57,7 @@ public function get_list($opt = array()) {
5757 $ this ->load ->model ('location_model ' );
5858 $ results = array ();
5959
60- $ this ->db ->select ('id, hash, price, vendor_hash, currency, hidden, category, name, description, main_image ' )
60+ $ this ->db ->select ('id, hash, price, vendor_hash, currency, hidden, category, name, add_time, update_time, description, main_image ' )
6161 ->where ('hidden != ' , '1 ' )
6262 ->order_by ('add_time ASC ' );
6363
@@ -105,6 +105,9 @@ public function get_list($opt = array()) {
105105 $ row ['main_image ' ] = $ this ->images_model ->get ($ row ['main_image ' ]);
106106 $ row ['currency ' ] = $ this ->currencies_model ->get ($ row ['currency ' ]);
107107 $ row ['price_b ' ] = round (($ row ['price ' ]/$ row ['currency ' ]['rate ' ]), '8 ' , PHP_ROUND_HALF_UP );
108+ $ row ['add_time_f ' ] = $ this ->general ->format_time ($ row ['add_time ' ]);
109+
110+ $ row ['update_time_f ' ] = $ this ->general ->format_time ($ row ['update_time ' ]);
108111 $ local_currency = $ this ->currencies_model ->get ($ this ->current_user ->currency ['id ' ]);
109112 $ price_l = (float )($ row ['price_b ' ]*$ local_currency ['rate ' ]);
110113 $ price_l = ($ this ->current_user ->currency ['id ' ] !== '0 ' ) ? round ($ price_l , '2 ' , PHP_ROUND_HALF_UP ) : round ($ price_l , '8 ' , PHP_ROUND_HALF_UP );
@@ -153,7 +156,8 @@ public function get($hash) {
153156 $ price_l = ($ this ->current_user ->currency ['id ' ] !== '0 ' ) ? round ($ price_l , '2 ' , PHP_ROUND_HALF_UP ) : round ($ price_l , '8 ' , PHP_ROUND_HALF_UP );
154157 $ row ['price_l ' ] = $ price_l ;
155158 $ row ['price_f ' ] = $ local_currency ['symbol ' ].'' .$ row ['price_l ' ];
156-
159+ $ row ['add_time_f ' ] = $ this ->general ->format_time ($ row ['add_time ' ]);
160+ $ row ['update_time_f ' ] = $ this ->general ->format_time ($ row ['update_time ' ]);
157161 $ row ['main_image ' ] = $ this ->images_model ->get ($ row ['main_image ' ]);
158162 $ row ['ship_from_f ' ] = $ this ->location_model ->location_by_id ($ row ['ship_from ' ]);
159163 $ row ['images ' ] = $ this ->images_model ->by_item ($ hash );
0 commit comments