Пример #1
0
	}
	//без связей
	$result = $order_class->alreadyByeCoins2();
	foreach($result as $rows) {
		$tpl['orderdetails']['alreadyBye'][] = $rows;
	}
}

$tpl['user']['fio'] = $user_data['fio'];
$tpl['user']['phone'] = $user_data['phone'];
$tpl['user']['phone'] = $user_data['phone'];
$userstatus = $user_data['userstatus'];
$sumlimit = $user_data['sumlimit'];
$timelimit = $user_data['timelimit'];

$tpl['myOrders'] = $order_class->getCurrentOrders();
$tpl['Otheinfo'] = '';

if ($tpl['myOrders']) {
	foreach ($tpl['myOrders'] as $rows) {
		$tpl['Otheinfo'] .= $rows['order']." - ".$rows['ReminderComment']."   ";
	}
}

$tpl['orderdetails']['coupons'] = array();

if (!$tpl['user']['vip_discoint']) {

	$iscoup1 = $user_class->getUserCoupon(array('`check`'=>1, 'type'=>1),true);

	if($iscoup1){