本文整理汇总了PHP中professions::GetAllProfessionsPortfWithoutMirrored方法的典型用法代码示例。如果您正苦于以下问题:PHP professions::GetAllProfessionsPortfWithoutMirrored方法的具体用法?PHP professions::GetAllProfessionsPortfWithoutMirrored怎么用?PHP professions::GetAllProfessionsPortfWithoutMirrored使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类professions
的用法示例。
在下文中一共展示了professions::GetAllProfessionsPortfWithoutMirrored方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: header
<?php
if (!$_in_setup) {
header("HTTP/1.0 403 Forbidden");
exit;
}
require_once $_SERVER['DOCUMENT_ROOT'] . "/xajax/users.common.php";
$xajax->printJavascript('/xajax/');
require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/professions.php";
$prfs = new professions();
$profs = $prfs->GetAllProfessionsPortfWithoutMirrored(get_uid());
$mirrors = $prfs->GetAllMirroredProfsId();
?>
<script type="text/javascript">
var mirrors = [];
<?php
for ($i = 0, $m = count($mirrors); $i < $m; $i++) {
?>
mirrors[<?php
echo $i;
?>
] = {main: <?php
echo $mirrors[$i]['main_prof'];
?>
, mirror: <?php
echo $mirrors[$i]['mirror_prof'];
?>
};
<?php
}
示例2: header
<?php
if (!defined('IN_STDF')) {
header("HTTP/1.0 404 Not Found");
exit;
}
require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/professions.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/portfolio.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/kwords.php";
setlocale(LC_ALL, 'ru_RU.CP1251');
$portf = new portfolio();
$prjs = $portf->GetPortf($user->uid, 'NULL', true);
$prfs = new professions();
$profs = $prfs->GetAllProfessionsPortfWithoutMirrored($user->uid, "AND t.user_id IS NOT NULL");
$is_not_spec = sizeof($profs) <= 0;
$first_profs = current($profs);
$html_keyword_js = '<a href="/freelancers/?word=$1" class="inherit">$2</a>';
$html_keyword = preg_replace('/\\$\\d/', '%s', $html_keyword_js);
if ($user->uid == $_SESSION['uid']) {
$spec_modified = professions::getLastModifiedSpec($user->uid);
}
?>
<?php
if ((int) $user->spec == 0 && $user->uid == $_SESSION['uid']) {
?>
<div class="b-fon b-fon_pad_20">
<div class="b-fon__body b-fon__body_pad_10 b-fon__body_padleft_30 b-fon__body_fontsize_13 b-fon__body_bg_ffeeeb">
<span class="b-icon b-icon_sbr_rattent b-icon_margleft_-25"></span><a class="b-layout__link" href="/users/<?php
echo $user->login;
?>