public function run() { $user = $this->order[$this->is_emp ? 'freelancer' : 'employer']; //получаем общее кол-во отзывов $oplinks = NULL; $opcount = opinions::GetCounts($user['uid'], array('total')); if (array_sum($opcount['total']) > 0) { $oplinks = array('p' => getSortOpinionLinkEx('frl', "total", 1, $user['login'], zin($opcount['total']['p']), null, 0), 'n' => getSortOpinionLinkEx('frl', "total", 2, $user['login'], zin($opcount['total']['n']), null, 0), 'm' => getSortOpinionLinkEx('frl', "total", 3, $user['login'], zin($opcount['total']['m']), null, 0)); } //город юзера $city_id = $this->order['is_meet'] == 't' && $this->order['city'] > 0 ? $this->order['city'] : $user['city']; $user['place_title'] = ''; if ($city_id > 0) { $user['place_title'] = city::getCountryName($city_id) . ', ' . city::getCityName($city_id); } //собираем шаблон $this->render('t-service-order-user-profile', array('user' => $user, 'oplinks' => $oplinks)); }
$uploader_field_element = array(); if (count($tservice->images)) { foreach ($tservice->images as $key => $image) { $uploader_field_element[] = array('hash' => md5($solt . $image['id'] . $tuid . $uid), 'qquuid' => $image['id'], 'src' => WDCPREFIX . '/' . $image['path'] . $image['fname']); } } $sess = __paramInit('string', NULL, 'uploader_sess', NULL); if ($sess) { $files = uploader::sgetFiles($sess); if (count($files)) { foreach ($files as $file) { if (strpos($file['fname'], 'tiny_') === FALSE) { continue; } $uploader_field_element[] = array('qquuid' => $file['id'], 'src' => WDCPREFIX . '/' . $file['path'] . $file['fname']); } } } else { $sess = uploader::createResource('tservices'); } //------------------------------------------------------------------------------ $city = new city(); if (!$tservice->city) { $tservice->city = $user_obj->city > 0 ? $user_obj->city : 1; } $location_value = $city->getCountryName($tservice->city) . ": " . $city->getCityName($tservice->city); //------------------------------------------------------------------------------ $user_phone_tservice = user_phone::getInstance()->render(user_phone::PLACE_TSERVICE); $is_bg = true; $inner = 'tpl.form.php'; include "../template3.php";