Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by deZender.Net
- * @ deZender (PHP5 Decoder for Zend Encoder/SafeGuard & PhpExpress)
- *
- * @ Version : 1.1.4.0
- * @ Author : DeZender
- * @ Release on : 30.03.2012
- * @ Official site : http://DeZender.Net
- *
- */
- function _version_key() {
- $str = file_get_contents( ROOT_PATH . '/include/license.cert' );
- return $str;
- }
- function __autoload($class_name) {
- $file = ROOT_PATH . 'include/model/' . $class_name . '.class.php';
- if (!file_exists( $file )) {
- $file = ROOT_PATH . 'include/class/' . $class_name . '.class.php';
- }
- include_once( $file );
- }
- function upfiles_is($type, $key, $name) {
- $class_form = new form( );
- $show = $class_form->images( $name, 'imgurl', $key, $type, '', 50, 'input-text', '', '', '', 0 );
- return $show;
- }
- function price_rate($id) {
- $class = new brand_car( );
- $class->wheres = 'brandid=' . $id;
- $str2 = $class->getList( );
- foreach ($str2 as $val) {
- $mins = price_car_min( $val['id'] );
- if ($mins != 0) {
- $str[$val['id']] = $val['price'] - $mins;
- }
- }
- $maxid = array_search( next( $str ), $str );
- $class2 = new brand_car( );
- $str3 = $class2->getInfo( $maxid );
- $min = price_car_min( $maxid );
- $max = $str3['price'];
- $str = round( ( $max - $min ) / $max * 100, 2 );
- return $str;
- }
- function price_car_min($id) {
- global $tblprefix;
- global $webdb;
- $sql = 'select min(oprice) as min from ' . $tblprefix . 'dealer_price where carid=\'' . $id . '\';';
- $price = $webdb->getValue( $sql );
- return $price['min'];
- }
- function photo_enddete($id) {
- global $tblprefix;
- global $webdb;
- $sql = 'SELECT createdate FROM ' . $tblprefix . 'brand_photo where brandid=299 ORDER BY createdate DESC limit 0,1';
- $str = $webdb->getValue( $sql );
- return $str['createdate'];
- }
- function oprice_car($id, $url = false) {
- global $tblprefix;
- global $webdb;
- $sql = 'select max(oprice) as maxp,min(oprice) as minp from ' . $tblprefix . 'dealer_price where carid=\'' . $id . '\';';
- $price = $webdb->getValue( $sql );
- $str = ($url == false ? $price['minp'] . '-' . $price['maxp'] . 'ÍòÔª' : '<a href="' . $url . '" target="_blank" title="¾ÏúÉ̱¨¼Û£º' . $price['minp'] . '-' . $price['maxp'] . 'ÍòÔª">' . $price['minp'] . '-' . $price['maxp'] . 'ÍòÔª</a>');
- $oprice = (( $price['maxp'] == 0 && $price['minp'] == 0 ) ? 'ÔÝÎÞ±¨¼Û' : $str);
- return $oprice;
- }
- function brand0_all2($id) {
- global $tblprefix;
- global $webdb;
- $sql = 'SELECT id FROM ' . $tblprefix . 'brand WHERE pid in(SELECT id FROM ' . $tblprefix . 'brand WHERE pid=' . $id . ') order by clicks DESC';
- $str = $webdb->getList( $sql );
- foreach ($str as $key => $val) {
- $nstr[] = $val['id'];
- }
- $str = implode( ',', $nstr );
- return $str;
- }
- function brand1_all2($id) {
- global $tblprefix;
- global $webdb;
- $sql = 'SELECT id FROM ' . $tblprefix . 'brand WHERE pid=' . $id . ' and level=2 order by clicks DESC';
- $str = $webdb->getList( $sql );
- foreach ($str as $key => $val) {
- $nstr[] = $val['id'];
- }
- $str = implode( ',', $nstr );
- return $str;
- }
- function oprice_brand($id, $url = false) {
- global $tblprefix;
- global $webdb;
- $sql = 'SELECT max(oprice) as maxp,min(oprice) as minp FROM ' . $tblprefix . 'dealer_price WHERE brandid2=' . $id . ' and oprice!=0';
- $price = $webdb->getValue( $sql );
- $str = ($url == false ? $price['minp'] . '-' . $price['maxp'] . 'ÍòÔª' : '<a href="' . $url . '" target="_blank" title="¾ÏúÉ̱¨¼Û£º' . $price['minp'] . '-' . $price['maxp'] . 'ÍòÔª">' . $price['minp'] . '-' . $price['maxp'] . 'ÍòÔª</a>');
- $oprice = (( $price['maxp'] == 0 && $price['minp'] == 0 ) ? 'ÔÝÎÞ±¨¼Û' : $str);
- return $oprice;
- }
- function dealer_oprice_brand($bid, $did, $url = false) {
- global $tblprefix;
- global $webdb;
- $sql = 'SELECT max(oprice) as maxp,min(oprice) as minp FROM ' . $tblprefix . 'dealer_price WHERE brandid=' . $bid . ' and dealerid=' . $did;
- $price = $webdb->getValue( $sql );
- $str = ($url == false ? $price['minp'] . '-' . $price['maxp'] . 'ÍòÔª' : '<a href="' . $url . '" target="_blank" title="¾ÏúÉ̱¨¼Û£º' . $price['minp'] . '-' . $price['maxp'] . 'ÍòÔª">' . $price['minp'] . '-' . $price['maxp'] . 'ÍòÔª</a>');
- $oprice = (( $price['maxp'] == 0 && $price['minp'] == 0 ) ? 'ÔÝÎÞ±¨¼Û' : $str);
- return $oprice;
- }
- function price_brand($id, $url = false) {
- global $tblprefix;
- global $webdb;
- $sql = 'select max(price) as maxp,min(price) as minp from ' . $tblprefix . 'brand_car where brandid2=\'' . $id . '\';';
- $price = $webdb->getValue( $sql );
- $str = ($url == false ? $price['minp'] . '-' . $price['maxp'] . 'Íò' : '<a href="' . $url . '" target="_blank" title="³§ÉÌÖ¸µ¼¼Û£º' . $price['minp'] . '-' . $price['maxp'] . 'Íò">' . $price['minp'] . '-' . $price['maxp'] . 'Íò</a>');
- $bprice = (( $price['maxp'] == 0 && $price['minp'] == 0 ) ? 'ÔÝÎÞÖ¸µ¼¼Û' : $str);
- return $bprice;
- }
- function pailiang_brand($id) {
- global $tblprefix;
- global $webdb;
- $sql = 'select distinct pailiang from ' . $tblprefix . 'brand_car where brandid2=' . $id . ' order by pailiang asc;';
- $pailiang = $webdb->getList( $sql );
- return $pailiang;
- }
- ...............................................
- ..............................
- .................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement