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


PHP projects::GetPrjHistory方法代码示例

本文整理汇总了PHP中projects::GetPrjHistory方法的典型用法代码示例。如果您正苦于以下问题:PHP projects::GetPrjHistory方法的具体用法?PHP projects::GetPrjHistory怎么用?PHP projects::GetPrjHistory使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在projects的用法示例。


在下文中一共展示了projects::GetPrjHistory方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: quickprjedit_save_prj


//.........这里部分代码省略.........
                        $row['friendly_url'] = getFriendlyURL('project', $row['id']);
                        ob_start();
                        if ($type == 1) {
                            $project = projects::initData($row);
                            require_once $_SERVER['DOCUMENT_ROOT'] . '/projects/tpl.lenta-item.php';
                        } else {
                            require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/employer.php';
                            $user = new employer();
                            $user->GetUserByUID($this_project['user_id']);
                            require_once $_SERVER['DOCUMENT_ROOT'] . '/projects/tpl.employer-project-item.php';
                        }
                        $html_data = ob_get_contents();
                        ob_end_clean();
                        $objResponse->assign("project-item{$prj_id}", 'innerHTML', $html_data);
                        if ($row['is_color'] == 't') {
                            $objResponse->script("\$('project-item{$prj_id}').addClass('b-post_bg_fffded')");
                        } else {
                            $objResponse->script("\$('project-item{$prj_id}').removeClass('b-post_bg_fffded')");
                        }
                        //$objResponse->script('alert("Лента");');
                        //$objResponse->script('window.location.reload();');
                        break;
                    case 2:
                        // Конкурс
                        //$objResponse->script('alert("Конкурс");');
                        $project_exRates = project_exrates::GetAll();
                        $translate_exRates = array(0 => 2, 1 => 3, 2 => 4, 3 => 1);
                        global $session;
                        require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/contest.php';
                        $prj_id = $project['id'];
                        $obj_project = new projects();
                        $project = $obj_project->GetPrjCust($prj_id);
                        if (hasPermissions('projects')) {
                            $project_history = $obj_project->GetPrjHistory($prj_id);
                        }
                        $project_attach = $obj_project->GetAllAttach($prj_id);
                        $contest = new contest($project['id'], $uid, is_emp(), $project['user_id'] == $uid, hasPermissions('projects'), is_pro());
                        $contest->GetOffers((string) $_GET['filter']);
                        $project['contest_end'] = mktime() > strtotime($project['end_date']);
                        $project['contest_win'] = mktime() > strtotime($project['win_date']);
                        if (trim($project['contacts']) != '') {
                            $contacts_employer = unserialize($project['contacts']);
                            $empty_contacts_employer = 0;
                            foreach ($contacts_employer as $name => $contact) {
                                if (trim($contact['value']) == '') {
                                    $empty_contacts_employer++;
                                }
                            }
                            $is_contacts_employer_empty = count($contacts_employer) == $empty_contacts_employer;
                        }
                        ob_start();
                        require_once $_SERVER['DOCUMENT_ROOT'] . '/projects/contest_item.php';
                        $html_data = ob_get_contents();
                        ob_end_clean();
                        $objResponse->assign("contest_info_{$prj_id}", 'innerHTML', $html_data);
                        break;
                    case 3:
                        // Проект
                        $project_exRates = project_exrates::GetAll();
                        $translate_exRates = array(0 => 2, 1 => 3, 2 => 4, 3 => 1);
                        $prj_id = $project['id'];
                        $obj_project = new projects();
                        $project = $obj_project->GetPrjCust($prj_id);
                        if (trim($project['contacts']) != '') {
                            $contacts_employer = unserialize($project['contacts']);
                            $empty_contacts_employer = 0;
开发者ID:kapai69,项目名称:fl-ru-damp,代码行数:67,代码来源:projects-quick-edit.server.php

示例2: projects

}
require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/professions.php';
require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/projects.php';
$sPrjId = __paramInit('string', 'pid');
$aReasons = admin_log::getAdminReasons(9);
$js_file[] = 'banned.js';
if ($sPrjId) {
    if (!preg_match('/^[\\d]+$/', $sPrjId)) {
        header_location_exit('/404.php');
    }
    require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/projects.php";
    $log = $admin_log->getLogProjById($nCount, $sPrjId);
    $obj_project = new projects();
    $project = $obj_project->GetPrjCust($sPrjId);
    $project_attach = $obj_project->GetAllAttach($sPrjId);
    $project_history = $obj_project->GetPrjHistory($sPrjId);
} else {
    $_SESSION['admin_log_proj'] = $_SERVER['REQUEST_URI'];
    $actions = $admin_log->getAdminActions(admin_log::OBJ_CODE_PROJ);
    $admins = $admin_log->getAdminsInLog(admin_log::OBJ_CODE_PROJ);
    $all_specs = professions::GetAllProfessions('', 0, 1);
    $categories = professions::GetAllGroupsLite(true);
    $filter_specs = '';
    $spec_now = 0;
    for ($i = 0; $i < sizeof($all_specs); $i++) {
        if ($all_specs[$i]['groupid'] != $spec_now) {
            $spec_now = $all_specs[$i]['groupid'];
            $filter_specs .= "filter_specs[" . $all_specs[$i]['groupid'] . "]=[";
        }
        $filter_specs .= "[" . $all_specs[$i]['id'] . ",'" . $all_specs[$i]['profname'] . "']";
        if ($all_specs[$i + 1]['groupid'] != $spec_now) {
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:31,代码来源:proj.php

示例3: unserialize

 }
 if (trim($project['contacts']) != '') {
     $contacts_employer = unserialize($project['contacts']);
     $empty_contacts_employer = 0;
     foreach ($contacts_employer as $name => $contact) {
         if (trim($contact['value']) == '') {
             $empty_contacts_employer++;
         }
     }
     $is_contacts_employer_empty = count($contacts_employer) == $empty_contacts_employer;
 }
 if ($project['sbr_frl_id'] && $project['sbr_status'] >= sbr::STATUS_CHANGED) {
     $project['exec_id'] = $project['sbr_frl_id'];
 }
 if (hasPermissions('projects')) {
     $project_history = $obj_project->GetPrjHistory($prj_id);
 }
 // Новые конкурсы
 if ($project['kind'] == 7) {
     require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/contest.php';
     $contest = new contest($project['id'], $uid, is_emp(), $project['user_id'] == $uid, hasPermissions('projects'), is_pro());
     $contest->GetOffers((string) $_GET['filter']);
     $project['contest_end'] = mktime() > strtotime($project['end_date']);
     $project['contest_win'] = mktime() > strtotime($project['win_date']);
     if ($_GET['offer-edit']) {
         $edit = $contest->GetOffer($_GET['offer-edit'], true);
     }
 }
 if ($project['pro_only'] == 't' && !$is_pro && !is_emp() && !hasPermissions('projects')) {
     if ($project['kind'] == 7) {
         if (contest::IsContestOfferExists($project['id'], get_uid(false))) {
开发者ID:kapai69,项目名称:fl-ru-damp,代码行数:31,代码来源:index.php


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