本文整理汇总了PHP中professions::GetProfList方法的典型用法代码示例。如果您正苦于以下问题:PHP professions::GetProfList方法的具体用法?PHP professions::GetProfList怎么用?PHP professions::GetProfList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类professions
的用法示例。
在下文中一共展示了professions::GetProfList方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: time
<?php
$pdrd_disabled = $sbr->scheme_type != sbr::SCHEME_PDRD && time() < strtotime('2011-01-01');
$categories = professions::GetAllGroupsLite(true, true);
$sub_categories = professions::GetProfList();
$frl_ftype = sbr::FT_PHYS;
if ($sbr->frl_id) {
$frl = new freelancer();
$frl->GetUserByUID($sbr->frl_id);
if (!$sbr->frl_login) {
$sbr->data['frl_login'] = $frl->login;
}
if ($frl_reqvs = sbr_meta::getUserReqvs($frl->uid)) {
$frl_ftype = (int) $frl_reqvs['form_type'];
$frl_rtype = $frl_reqvs['rez_type'];
}
}
?>
<script type="text/javascript">
Sbr.prototype.DEBUG=0;
var SBR = new Sbr('createFrm');
window.addEvent('domready', function() { SBR = new Sbr('createFrm'); } );
Sbr.prototype.CATEGORIES={<?php
// категории/подкатегории: {ид_кат:{имя_кат:{ид_подкат:имя_подкат,ид_подкат:...}},ид_кат:...}
foreach ($sub_categories as $sc) {
$cc = $sc['prof_group'];
$ccname = str_replace("'", "\\'", $categories[$cc]['name']);
$scname = str_replace("'", "\\'", $sc['name']);
if ($lcc != $cc) {
echo ($lcc ? '}},' : '') . "{$cc}:{'{$ccname}':{";
$lcc = $cc;
示例2: session_start
require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/stdf.php';
require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/masssending.php';
require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/country.php';
require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/city.php';
require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/professions.php';
require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/project_exrates.php';
session_start();
if (!($uid = get_uid())) {
header('Location: /fbd.php');
exit;
}
$masssending = new masssending();
$countries = country::GetCountries(true);
$prof_groups = professions::GetAllGroupsLite(true);
$professions = professions::GetProfList();
$exrates = project_exrates::GetAll();
if (!empty($_POST)) {
$frm = $_POST;
//$params['msg'] = stripslashes($frm['msg']);
$params['msg'] = "Здравствуйте!\n\nПриглашаю ознакомиться с проектом '" . change_q_x(stripslashes($frm['title']), false, false, 'b|i|p|ul|li|s|h[1-6]{1}', false, false) . "' " . str_replace('www.n.fl.ru', 'n.fl.ru', $host) . $frm['link'] . " \n\n\n" . LenghtFormatEx(change_q_x(stripslashes($frm['msg']), false, false, 'b|i|p|ul|li|s|h[1-6]{1}', false, false), 300);
$params['max_users'] = intval($_POST['max_users']);
$params['max_cost'] = intval($_POST['max_cost']);
$params['is_pro'] = stripslashes($frm['pro']);
$params['favorites'] = stripslashes($frm['favorites']);
$params['free'] = stripslashes($frm['free']);
$params['sbr'] = stripslashes($frm['bs']);
$params['portfolio'] = stripslashes($frm['withworks']);
$params['inoffice'] = stripslashes($frm['office']);
$params['opi_is_verify'] = stripslashes($frm['ver']);
$tmp = array();