本文整理汇总了PHP中professions::GetProfNameWP方法的典型用法代码示例。如果您正苦于以下问题:PHP professions::GetProfNameWP方法的具体用法?PHP professions::GetProfNameWP怎么用?PHP professions::GetProfNameWP使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类professions
的用法示例。
在下文中一共展示了professions::GetProfNameWP方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: addHHSpecProf
/**
* @see hh::addHHSpecProf()
*/
function addHHSpecProf($hh_field, $hh_spec_id, $prof_id) {
require_once($_SERVER['DOCUMENT_ROOT'] . "/classes/professions.php");
$objResponse = new xajaxResponse();
$hh = new hh();
$hh_field = intval($hh_field);
$hh_spec_id = intval($hh_spec_id);
$prof_id = intval($prof_id);
ob_start();
$pname = professions::GetProfNameWP($prof_id, '::');
if(!$hh->addHHSpecProf($hh_field, $hh_spec_id, $prof_id))
$err = "Специализация '{$pname}' уже привязана к данному разделу.";
ob_end_clean();
$objResponse->call("addHHSpecProf", $pname, $err);
return $objResponse;
}
示例2: array
'</script>
<table cellspacing="0" cellpadding="0" style="width:100%;" class="cpt-info">
<tr>
<td style="width:45%;vertical-align:top;padding:16px 16px 32px 19px;">
<div style="padding-bottom:15px;vertical-align:top;white-space:nowrap;">Специализация: <?php
echo professions::GetProfNameWP($user->spec, ' / ', 'Нет специализации');
?>
</div>
<?php
$specs_add = professions::GetProfsAddSpec($user->uid);
$specs_add_string = null;
if ($specs_add) {
$specs_add_array = array();
for ($si = 0; $si < sizeof($specs_add); $si++) {
$specs_add_array[$si] = professions::GetProfNameWP($specs_add[$si], ' / ');
}
$specs_add_string = join(", ", $specs_add_array);
} else {
$specs_add_string = "Нет";
}
?>
<?php
if ($specs_add_string) {
?>
<div style="padding-bottom:15px;vertical-align:top;width:280px;">Дополнительные специализации: <?php
echo $specs_add_string;
?>
</div>
<?php
示例3:
?>
selected='selected'<?php
}
?>
>Услуги</option>
</select>
</div>
<div class="b-layout__txt b-layout__txt_padbot_20 b-page__ipad b-page__iphone"><img src="/images/ico_setup.gif" alt="" width="6" height="9" /> <a class="b-layout__link b-layout__link_fontsize_11" href="/users/<?php
echo $user->login;
?>
/setup/portfsetup/">Изменить разделы</a></div>
<div class="b-layout__txt b-layout__txt_padbot_15 b-layout__txt_fontsize_11"><a class="b-layout__link b-layout__link_fontsize_11 b-layout__link_color_0f71c8" href="/users/<?php
echo $user->login;
?>
/setup/specsetup/" id="ap11">Специализация</a>: <?php
echo professions::GetProfNameWP($user->spec, ' / ', 'Нет специализации');
?>
</div>
<?php
if (!is_pro()) {
?>
<div class="b-layout__txt b-layout__txt_padbot_15 b-layout__txt_fontsize_11">Чтобы увеличить количество специализаций и получить дополнительные возможности, рекомендуем приобрести аккаунт <?php
echo view_pro(false, false, true, 'владельцев платного аккаунта');
?>
</div>
<?php
} else {
?>
<div class="b-layout__txt b-layout__txt_padbot_15 b-layout__txt_fontsize_11"><a class="b-layout__link b-layout__link_fontsize_11 b-layout__link_color_0f71c8" href="/users/<?php
echo $user->login;
?>
示例4: date
"><?php
echo $sStageName;
?>
</a></p>
<?php
} else {
?>
<p>Этап: <?php
echo $sStageName;
?>
</p>
<?php
}
?>
<p><span>Категория: <?php
echo professions::GetProfNameWP($theme['sub_category']);
?>
</span></p>
<p><span><?php
echo date('d.m.Y H:i', strtotime($theme['stage_closed']));
?>
</span></p>
</div>
<b class="b2"></b>
<b class="b1"></b>
</div>
<?php
/* !!! классы sbrmsgblock, editsbrblock, editFromSbr не существуют, необходимы для точной обработки логики вызывания через XAJAX функции редактирования нескольких отзывов*/
?>
<div id="op_message_<?php
echo $theme['id'];
示例5: new_projects
default:
$kindStr = 'Все проекты';
$kind = 5;
break;
}
if (!$subcategory) {
$subcategory = 0;
}
$mbkey = $subcategory ? ($category ? $category . '_' : '') . 'sub_' . $subcategory : $category;
$projects = new new_projects();
$projects->setPageSize(new_projects::PAGE_SIZE_RSS);
$getcnt = 'nenado';
$additional = $subcategory ? array('active' => 't', 'categories' => array(array(), array($subcategory => 1))) : ($category ? array('active' => 't', 'categories' => array(array($category => 1))) : null);
$prjs = $projects->getProjects($getcnt, (int) $kind, 1, false, $additional);
if ($subcategory) {
$kindStr .= ': ' . professions::GetProfNameWP($subcategory, ' - ', 'Все разделы', false);
} elseif ($category) {
$name_cat = professions::GetGroup($category, $error);
$kindStr .= ': ' . $name_cat['name'];
}
header('Content-Type: application/rss+xml');
print '<?xml version="1.0" encoding="windows-1251"?>';
?>
<!-- RSS generated by FL.ru RSS Generator on <?php
echo gmdate('D, d M Y H:i:s');
?>
GMT -->
<rss version="2.0">
<channel>
<title>Проекты на FL.ru (<?php
echo $kindStr;
示例6: actionPortfolio
/**
* Обработка информации по шагу портфолио
*/
public function actionPortfolio()
{
require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/professions.php";
$category = intval($_COOKIE['your_categories']);
$spec = intval($_COOKIE['your_subcategories']);
if ($category > 0) {
$category_name = professions::GetGroupName($category);
} else {
$category = 0;
}
if ($spec > 0) {
$subcategory_name = professions::GetProfName($spec);
} else {
$spec = 0;
}
$action = __paramInit('string', null, 'action');
if ($action == 'upd_portf') {
$error = $this->actionProcessingPortfolio();
if ($error) {
$data = $this->request;
$portf_insert = $this->portf_insert;
/*if($data['resume'] > 0) {
$resume = new CFile($data['resume']);
}*/
}
} else {
// запись в базе для текущего портфолио
$field = $this->parent->getFieldsUser();
// все данные портфолио
$data = unserialize($field['portfolio']);
// сохраненные работы для текущего портфолио
$portf_insert = $this->getWorks();
}
if ($data['resume'] > 0) {
$resume = new CFile($data['resume']);
}
$curr_hour_name = $this->CURRENCY_TYPE[$data['cost_type_hour']];
$curr_month_name = $this->CURRENCY_TYPE[$data['cost_type_month']];
// подготовка специализации для вывода в шаблон
$spec = $data['spec'];
$specString = professions::GetProfNameWP($spec, '/', null, false);
list($category_name, $subcategory_name) = explode('/', $specString);
$count_portf = $this->getCountWorks();
$answersExists = $this->_getCountAnswers();
include $_SERVER['DOCUMENT_ROOT'] . "/wizard/registration/steps/tpl.step.portfolio.php";
}
示例7: view_mark_user
?>
name11" title="<?php
echo $rec['login'];
?>
"><?php
echo $rec['login'];
?>
</a>]</span> <?php
echo view_mark_user($rec);
?>
</span>
<?php
if (!is_emp($rec['role'])) {
?>
Специализация: <?php
echo professions::GetProfNameWP($rec['spec'], ' / ', "не указано", "lnk-666", true);
?>
<?php
}
//if
?>
<?php
if ($_SESSION['uid'] && $_SESSION['uid'] != $rec['uid']) {
?>
<div class="userFav_<?php
echo $rec['uid'];
?>
">
<?php
if ($note === false) {
?>
示例8: GetPrjHistory
/**
* Взять все данные по проекту из истории
*
* @param integer $prj_id Ид проекта
* @return array
*/
function GetPrjHistory($prj_id)
{
global $DB;
$sql = "SELECT p.*, city.city_name, country.country_name \n FROM projects_history AS p \n LEFT JOIN city ON city.id = p.city\n LEFT JOIN country ON country.id = p.country\n WHERE p.id=?i";
$project = $DB->row($sql, $prj_id);
if ($project) {
$project['spec_txt'] = '';
if ($project['specs']) {
$sp = array();
$spec_t = preg_split("/,/", $project['specs']);
foreach ($spec_t as $spec_t_item) {
$spec_t_i = preg_split("/\\|/", $spec_t_item);
array_push($sp, array('category_id' => $spec_t_i[0], 'subcategory_id' => $spec_t_i[1]));
}
$parts = array();
foreach ($sp as $item) {
$name = '';
if ($item['subcategory_id']) {
$name = professions::GetProfNameWP($item['subcategory_id'], ' / ');
} elseif ($item['category_id']) {
$name = professions::GetGroupName($item['category_id']);
} else {
continue;
}
$parts[] = $name;
}
$project['spec_txt'] = implode(' ', $parts);
}
if ($project['files']) {
$files = preg_split("/,/", $project['files']);
$project['attach'] = array();
$month = date('Ym');
foreach ($files as $file) {
array_push($project['attach'], array('name' => $file, 'path' => 'projects/upload/' . $month));
}
}
}
return $project;
}
示例9: elseif
?>
<div class="b-layout__txt b-layout__txt_fontsize_11 b-layout__txt_color_000">Автоответ виден только заказчику (автору проекта).</div>
<?php
}
?>
<?php
if ($response->data['filter_subcategory_id'] || $response->data['filter_category_id']) {
?>
<div class="b-layout__txt b-layout__txt_fontsize_11 b-layout__txt_color_000">
Размещение в специализации:
<?php
if ($response->data['filter_subcategory_id']) {
?>
<?php
echo professions::GetProfNameWP($response->data['filter_subcategory_id'], ' / ');
?>
<?php
} elseif ($response->data['filter_category_id']) {
?>
<?php
echo professions::GetProfGroupTitle($response->data['filter_category_id']);
?>
<?php
}
?>
</div>
<?php
}
?>
示例10: retrieveProfession
/**
* достает профессии из sbr_to_spec и помещает их в $this->data['professions'].
*/
public function retrieveProfession()
{
require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/professions.php';
global $DB;
if (!$this->data['id']) {
return;
}
$sql = 'SELECT category_id, subcategory_id FROM sbr_to_spec WHERE sbr_id = ?i ORDER BY id DESC';
$res = $DB->rows($sql, $this->data['id']);
$this->data['professions'] = array();
if (is_array($res)) {
foreach ($res as $prof) {
$prof['prof_name'] = $prof['subcategory_id'] ? professions::GetProfNameWP($prof['subcategory_id'], ': ', '', false) : professions::GetGroupName($prof['category_id']);
if ($prof['subcategory_id']) {
$prof['default'] = $prof['subcategory_id'];
$prof['default_column'] = 1;
} else {
$prof['default'] = $prof['category_id'];
$prof['default_column'] = 0;
}
$this->data['professions'][] = $prof;
}
} else {
$this->data['professions'] = array();
}
}
示例11: view_mark_user
name11" title="<?php
echo $rec['login'];
?>
"><?php
echo $rec['login'];
?>
</a>]</span> <?php
echo view_mark_user($rec);
?>
</span>
<?php
if (!is_emp($rec['role'])) {
?>
Специализация: <?php
echo professions::GetProfNameWP($rec['spec'], ' / ', 'не указано', 'lnk-666', true);
?>
<?php
}
//if
?>
<?php
if ($_SESSION['uid'] && $_SESSION['uid'] != $rec['uid']) {
?>
<?php
/* userFav_* псевдо класс для корректной обработки сценария выполнения скрипта */
?>
<div class="userFav_<?php
echo $rec['uid'];
?>
">
示例12: unserialize
// Все изменения $tmpPrj->_project переносим в переменную.
$project = $tmpPrj->getProject();
if (trim($project['contacts']) != '') {
$contacts = unserialize($project['contacts']) ? unserialize($project['contacts']) : $contacts;
}
if ($project['country']) {
$location = country::GetCountryName($project['country']);
if ($project['city']) {
$location .= ': ' . city::GetCityName($project['city']);
}
$project['location'] = $location;
}
$prj_categories = $tmpPrj->getCategories();
if ($prj_categories) {
foreach ($prj_categories as $ind => $category) {
$prj_categories[$ind]['prof_name'] = $category['subcategory_id'] ? professions::GetProfNameWP($category['subcategory_id'], ': ', '', false) : professions::GetGroupName($category['category_id']);
}
}
if ($step > 0) {
$tmpPrj->fix();
}
if (!$additional_header) {
$additional_header = '';
}
//$additional_header .= '<script type="text/javascript" src="/scripts/tawl_bem.js"></script>';
$js_file[] = 'tawl_bem.js';
if ($content == 'content2.php') {
//$additional_header .= '<script type="text/javascript" src="/css/block/b-shadow/b-shadow.js"></script>';
$js_file[] = '/css/block/b-shadow/b-shadow.js';
} else {
if ($content == 'new/tpl.step_1.php') {
示例13: GetOrderInfo
/**
* Информация о заказе в HTML по id в account_operations: логин, имя пользователя, где размещено, время действия.
* @param integer $bill_id id операции в account_operations
* @param integer $uid uid пользователя
* @return string данные о заказе в виде HTML
*/
function GetOrderInfo($bill_id, $uid)
{
global $DB;
$sql = "SELECT uname, usurname, login, ammount, op_code, acc, bill\n FROM (SELECT ammount,op_code, \n CASE WHEN ammount < 0 THEN to_uid ELSE from_uid END as acc,\n billing_to_id as bill\n\t\t\t\tFROM account_operations, present \n\t\t\t\tWHERE account_operations.id=?i AND (billing_to_id = account_operations.id AND to_uid = ?i OR\n\t\t\t\tbilling_from_id = account_operations.id AND from_uid = ?i)) as a LEFT JOIN users ON a.acc = uid";
$row = $DB->row($sql, $bill_id, $uid, $uid);
// list($uname, $usurname, $login, $ammount, $op_code) = $row; //так чего-то не работает
$uname = $row['uname'];
$usurname = $row['usurname'];
$login = $row['login'];
$ammount = $row['ammount'];
$op_code = $row['op_code'];
$acc = $row['acc'];
$bill = $row['bill'];
$direction = (int) $ammount == 0 ? 'от' : 'для';
if (($op_code == 17 || $op_code == 18) && $ammount < 0) {
$out = "Первая страница {$direction} <a href=\"/users/" . $login . "\" class=\"blue\">" . $uname . " " . $usurname . " [" . $login . "]</a>";
} elseif ($op_code == 84 || $op_code == 85) {
// размещение в каталоге в подарок
$out = "Размещение в каталоге {$direction} <a href=\"/users/" . $login . "\" class=\"blue\">" . $uname . " " . $usurname . " [" . $login . "]</a>";
$sql = "\n SELECT from_date, (from_date+to_date) as to_date, profession FROM users_first_page\n\t\t\tWHERE billing_id=?i AND user_id=?i";
$row = $ammount < 0 ? $DB->row($sql, $bill, $acc) : $DB->row($sql, $bill_id, $uid);
if ($row) {
include_once $_SERVER['DOCUMENT_ROOT'] . '/classes/professions.php';
$prof = professions::GetProfNameWP($row['profession']);
$out .= " c " . date("d.m.Y | H:i", strtotimeEx($row['from_date'])) . " по " . date("d.m.Y | H:i", strtotimeEx($row['to_date']));
$out .= $op_code == 85 ? ' в разделе «' . $prof . '»' : '';
}
} else {
$sql = "\n SELECT from_date, (from_date+to_date) as to_date, professions.id, name FROM users_first_page LEFT JOIN professions ON profession=professions.id\n\t\t\tWHERE billing_id=?i AND user_id=?i";
$row = $DB->row($sql, $bill_id, $uid);
if ($row) {
$out = "С " . date("d.m.Y | H:i", strtotimeEx($row['from_date'])) . " по " . date("d.m.Y | H:i", strtotimeEx($row['to_date']));
if ($row['id'] > 0) {
$out .= " в разделе «" . $row['name'] . "»";
}
}
}
return $out;
}
示例14: date
echo $theme['stage_status'] == 7 ? '<span class="b-post__txt b-post__txt_color_c10601 b-post__txt_fontsize_11">завершенный арбитражем</span>' : 'сданный';
?>
<?php
echo date("d.m.Y в H:i", strtotime($theme['stage_closed']));
?>
<?php
}
//if
?>
</div>
<div class="b-post__foot <?php
echo $is_next ? "b-post__foot_padbot_5" : "";
?>
"><?php
echo professions::GetProfNameWP($theme['sub_category'], ' > ', 'Все разделы', 'b-post__link b-post__link_color_4e');
?>
</div>
<?php
}
//else
?>
<?php
if ($is_next) {
?>
<div class="b-post__foot">Этап «<?php
echo reformat($theme['stage_name'], 40, 0, 1);
?>
», <?php
echo $theme['stage_status'] == 7 ? '<span class="b-post__txt b-post__txt_color_c10601 b-post__txt_fontsize_11">завершенный арбитражем</span>' : 'сданный';
echo date("d.m.Y в H:i", strtotime($theme['stage_closed']));
示例15:
" style="color:#000000" target="_blank"><?php
echo $user['uname'] . " " . $user['usurname'];
?>
</a></font><br>
<font color="#fd6c30" size="2" face="arial,sans-serif">[<a href="<?php
echo $this->host;
?>
/users/<?php
echo $user['login'];
?>
" style="color:#fd6c30" target="_blank"><?php
echo $user['login'];
?>
</a>]</font><br>
<font color="#444444" size="1" face="arial,sans-serif"><?php
echo professions::GetProfNameWP($user['spec'], ' / ', 'Нет специализации', false);
?>
</font>
</td>
<?php
echo $i % 2 != 0 ? '<td width="20"> </td>' : "";
?>
<?php
if ($i % 2 == 0) {
$end = true;
?>
<td width="20"></td>
<td bgcolor="#ffffff" width="20"></td>
</tr>
<tr>