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


PHP projects::CountMyProjects方法代码示例

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


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

示例1: hasPermissions

        //Корзина доступна только владельцу или админу
        $trash = 0;
    }
}
$prjs = $projects->GetCurPrjs($uid, $closed, $uid == get_uid(), hasPermissions('projects'), $kind, $trash, $page);
/*
 * @todo: Функционал не используетсяю. Пока скрываю.
$proj_groups = professions::GetAllGroupsLite();
$proj_groups_by_id = array();
foreach($proj_groups as $key => $wrk_prjgroup)
{
    $proj_groups_by_id[$wrk_prjgroup['id']] = $wrk_prjgroup['name'];
}
*/
$daysOfWeek = array(1 => 'Понедельник', 'Вторник', 'Среда', 'Четверг', 'Пятница', 'Суббота', 'Воскресенье');
$conted_prj = $projects->CountMyProjects($uid, $uid == get_uid() || hasPermissions('projects'), false, $kind);
?>
<style type="text/css">
.lnk-feedback, .lnk-feedback:visited{
	display: inline-block;
	padding: 0 0 0 13px;
	background: #FF6B3D url(/images/icons-sprite.png) no-repeat -710px -232px;
	color: #fff;
	font-weight:900;
}
.lnk-feedback:hover{
	color: #fff;
	text-decoration: none;
}
.br-moderation-options .lnk-feedback {
    float: right;
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:31,代码来源:projects_inner.php

示例2: header_location_exit

     }
     if ($action == 'edit') {
         if ($_POST['cancel'] || $sbr->edit($_POST, $_FILES)) {
             $ok = true;
             if ($_POST['send'] && ($sbr->status == sbr::STATUS_CANCELED || $sbr->status == sbr::STATUS_REFUSED)) {
                 $ok = $sbr->resendCanceled($sbr->id);
             }
             if ($ok) {
                 header_location_exit($sbr->isDraft() ? '/norisk2/?site=drafts' : "/norisk2/?id={$sbr->id}");
             }
         }
     }
     break;
 case 'new':
     $inner = $fpath . 'new.php';
     $projects_cnt = projects::CountMyProjects($sbr->uid, false, true);
     break;
 case 'Stage':
     $inner = 'stage.php';
     $stage_id = __paramInit('int', 'id', 'id');
     if (!($stage = $sbr->initFromStage($stage_id))) {
         break;
     }
     $feedback_sent = isset($_SESSION["thnx_block{$stage_id}"]);
     if ($feedback_sent) {
         unset($_SESSION["thnx_block{$stage_id}"]);
     }
     if ($action == 'resolve_changes') {
         $resend = __paramInit('bool', NULL, 'resend');
         $cancel = __paramInit('bool', NULL, 'cancel');
         $version = __paramInit('int', NULL, 'version');
开发者ID:kapai69,项目名称:fl-ru-damp,代码行数:31,代码来源:index.php

示例3: closeprj

    $_GET["closed"] = 0;
    $_GET["open"] = 0;
}
$account = new account();
$ok = $account->GetInfo(get_uid(), true);
$transaction_id = $account->start_transaction(get_uid());
$is_emp = is_emp();
//print_r($_POST);
$closed = $_GET["closed"] ? "true" : ($_GET["open"] ? "false" : "");
$prjs = $projects->GetCurPrjs(get_uid(), $closed);
$proj_groups = professions::GetAllGroupsLite();
$proj_groups_by_id = array();
foreach ($proj_groups as $key => $wrk_prjgroup) {
    $proj_groups_by_id[$wrk_prjgroup['id']] = $wrk_prjgroup['name'];
}
$conted_prj = $projects->CountMyProjects(get_uid());
?>
<script type="text/javascript">

function closeprj(num){
    document.getElementById('frm').prjid.value = num;
    document.getElementById('frm').action.value = 'prj_close';
    document.getElementById('frm').submit();
}
function upprj(num){
    document.getElementById('frm').prjid.value = num;
    document.getElementById('frm').action.value = 'prj_up';
    document.getElementById('frm').submit();
}

</script>
开发者ID:Nikitian,项目名称:fl-ru-damp,代码行数:31,代码来源:projects_inner_setup.php


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