当前位置: 首页>>代码示例>>PHP>>正文


PHP professions::GetSelProf方法代码示例

本文整理汇总了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";
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:31,代码来源:portfolio_inner1.php

示例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) {
开发者ID:kapai69,项目名称:fl-ru-damp,代码行数:31,代码来源:portfolio_inner1.php


注:本文中的professions::GetSelProf方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。