本文整理汇总了PHP中professions::GetAllProfessionsSpec方法的典型用法代码示例。如果您正苦于以下问题:PHP professions::GetAllProfessionsSpec方法的具体用法?PHP professions::GetAllProfessionsSpec怎么用?PHP professions::GetAllProfessionsSpec使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类professions
的用法示例。
在下文中一共展示了professions::GetAllProfessionsSpec方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: header
<?php
if (!$_in_setup) {
header("HTTP/1.0 403 Forbidden");
exit;
}
require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/professions.php";
$prfs = new professions();
$profs = $prfs->GetAllProfessionsSpec($user->uid);
$main_spec = null;
foreach ($profs as $p) {
if ($p['checked']) {
$main_spec = $p['id'];
}
}
$specs_add = array();
if (is_pro()) {
$specs_add = $prfs->GetProfsAddSpec($uid);
}
$mirr_specs = array();
$all_checked = $specs_add;
if (count($all_checked)) {
$mirr_specs = $prfs->GetMirroredProfs(implode(",", $all_checked));
if (count($mirr_specs)) {
$mirr_specs = array_diff($mirr_specs, $all_checked);
}
}
require_once $_SERVER['DOCUMENT_ROOT'] . "/xajax/quickpro.common.php";
$xajax->printJavascript('/xajax/');
?>
<div class="b-layout b-layout_padtop_20">
示例2: getspec
<?php
require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/professions.php";
$prfs = new professions();
$profs = $prfs->GetAllProfessionsSpec(0);
?>
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td align="left"><strong>Статистика</strong></td>
<td align="right"><a href="/siteadmin/stats/index.php">Таблица</a></td>
</tr>
</table>
<br><br>
<script>
function getspec(RXGroup) {
var radioRXGroup = document.getElementsByName(RXGroup);
for (var RowR = 0; RowR < radioRXGroup.length; RowR++)
{
if(radioRXGroup[RowR].checked)
{
return radioRXGroup[RowR].value;
break;
}
}
}
</script>