本文整理汇总了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;
示例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');
示例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>