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.6.0
 - * @ Author : DeZender
 - * @ Release on : 02.06.2013
 - * @ Official site : http://DeZender.Net
 - *
 - */
 - function getareaselect($cdggdeicd = '', $cehifijiea = '', $djaicbjaa = '', $dicceafhif = '') {
 - $baibhebhhf = new TableClass( 'area', 'aid' );
 - $jbaejjhid = $baibhebhhf->getdata( '', '', 'aid asc' );
 - foreach ($jbaejjhid as $cbffhifjfh) {
 - $dddhhcjhaa[$cbffhifjfh['aid']] = $cbffhifjfh['name_cn'];
 - }
 - return getselectstr( $cdggdeicd, $dddhhcjhaa, $cehifijiea, $djaicbjaa, $dicceafhif );
 - }
 - include( '../lib/common.inc.php' );
 - include( 'function_common.php' );
 - initgp( array( 'page', 'action', 'state', 'value', 'payid', 'ids', 'did', 'delids' ) );
 - $Table = new TableClass( 'delivery', 'did' );
 - if (empty( $action )) {
 - initgp( array( 'state', 'orderby', 'orderway', 'keywords' ) );
 - if (!empty( $state )) {
 - $wherestr[] = ( . 'state=\'' . $state . '\'' );
 - }
 - if (!empty( $keywords )) {
 - $wherestr[] = . ' CONCAT(areaname) like \'%' . $keywords . '%\' ';
 - }
 - if (!empty( $wherestr )) {
 - $wheresql = implode( ' AND ', $wherestr );
 - }
 - $orderway = ($orderway == 'desc' ? 'desc' : 'asc');
 - if (!empty( $orderby )) {
 - $orderstr = ( . $orderby . ' ' ) . $orderway;
 - }
 - $total = $Table->getcount( $wheresql );
 - $pagesize = 15;
 - $page = (empty( $page ) ? max( 1, intval( $page ) ) : 1);
 - $offset = ( $page - 1 ) * $pagesize;
 - $dataarray = $Table->getdata( ( . $offset . ',' ) . $pagesize, $wheresql, $orderstr );
 - include( 'tpl/delivery_list.htm' );
 - } else {
 - if ($action == 'add') {
 - initgp( array( 'did', 'areaid', 'def', 'state', 'max_weight', 'days', 'remark', 'deliveryname', 'com', 'logo', 'queryurl', 'first_weight', 'second_weight', 'continue_weight', 'first_fee', 'second_fee', 'continue_fee', 'fuel_fee', 'listorder', 'customs_fee' ) );
 - if (( !empty( $_POST ) && !empty( $deliveryname ) )) {
 - if (empty( $areaid )) {
 - alertmsg( '地区必须选择!', '-1' );
 - }
 - if (empty( $deliveryname )) {
 - alertmsg( '快递名不能为空!', '-1' );
 - }
 - $areaname = DB::result_first( 'select name_en from ' . DB::table( 'area' ) . ( . ' where aid = \'' . $areaid . '\'' ) );
 - if ($def == 1) {
 - editstate( $Table->table, 'def', '1', 0 );
 - }
 - $arrayadd = array( 'areaid' => getnum( $areaid ), 'areaname' => char_cv( $areaname ), 'def' => getnum( $def ), 'state' => getnum( $state ), 'deliveryname' => char_cv( $deliveryname ), 'com' => char_cv( $com ), 'logo' => char_cv( $logo ), 'queryurl' => $queryurl, 'first_weight' => getnum( $first_weight ), 'continue_weight' => getnum( $continue_weight ), 'max_weight' => getnum( $max_weight ), 'first_fee' => getnum( $first_fee ), 'continue_fee' => getnum( $continue_fee ), 'fuel_fee' => getnum( $fuel_fee ), 'customs_fee' => getnum( $customs_fee ), 'days' => char_cv( $days ), 'listorder' => getnum( $listorder ), 'remark' => $remark );
 - $info = $Table->add( $arrayadd );
 - if (getnum( $info )) {
 - ................................................................................
 - ........................................
 - .................
 
Advertisement
 
                    Add Comment                
                
                        Please, Sign In to add comment