本文整理汇总了PHP中professions::GetSelProf方法的典型用法代码示例。如果您正苦于以下问题:PHP professions::GetSelProf方法的具体用法?PHP professions::GetSelProf怎么用?PHP professions::GetSelProf使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类professions
的用法示例。
在下文中一共展示了professions::GetSelProf方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: 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";
$prfs = new professions();
$uid = $user->GetUid($err);
$error .= $err;
$profs = $prfs->GetSelProf($uid);
$portf = new portfolio();
$prjs = $portf->GetPortf($uid);
?>
<script language="JavaScript1.2" type="text/javascript">
<!--
prjprof_id = new Array();
prjname = new Array();
prjlink = new Array();
prjdescr = new Array();
prjid = new Array();
prof_ids = new Array();
profnames = new Array();
<?php
$i = 0;
if ($prjs) {
foreach ($prjs as $prj) {
print "prjprof_id[{$i}] = '" . $prj['prof_id'] . "';\nprjid[{$i}] = '" . $prj['id'] . "';\nprjname[{$i}] = '" . $prj['name'] . "';\nprjlink[{$i}] = '" . $prj['link'] . "';\nprjdescr[{$i}] = '" . $prj['descr'] . "';\n\n";
示例2: header
<?php
if (!$_in_setup) {
header('HTTP/1.0 403 Forbidden');
exit;
}
require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/professions.php';
require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/portfolio.php';
$prfs = new professions();
$profs = $prfs->GetSelProf(get_uid());
if (!$profs) {
include 'portfolio_in_setup.php';
} else {
$portf = new portfolio();
$prjs = $portf->GetPortf(get_uid());
?>
<script language="JavaScript1.2" type="text/javascript">
<!--
prjprof_id = new Array();
prjname = new Array();
prjlink = new Array();
prjdescr = new Array();
prjid = new Array();
prof_ids = new Array();
profnames = new Array();
<?php
$i = 0;
if ($prjs) {
foreach ($prjs as $prj) {