本文整理汇总了PHP中Planning::showSelectionForm方法的典型用法代码示例。如果您正苦于以下问题:PHP Planning::showSelectionForm方法的具体用法?PHP Planning::showSelectionForm怎么用?PHP Planning::showSelectionForm使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Planning
的用法示例。
在下文中一共展示了Planning::showSelectionForm方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: displayTabContentForItem
static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0)
{
if ($item->getType() == __CLASS__) {
switch ($tabnum) {
case 1:
// all
Planning::showSelectionForm($_POST['type'], $_POST['date'], 'my', 0, $_POST["limititemtype"]);
Planning::showPlanning($_SESSION['glpiID'], $_POST["gID"], $_POST["date"], $_POST["type"], $_POST["limititemtype"]);
break;
case 2:
Planning::showSelectionForm($_POST['type'], $_POST['date'], 'mygroups', 0, $_POST["limititemtype"]);
Planning::showPlanning($_SESSION['glpiID'], 'mine', $_POST["date"], $_POST["type"], $_POST["limititemtype"]);
break;
case 3:
Planning::showSelectionForm($_POST['type'], $_POST['date'], 'users', $_POST["uID"], $_POST["limititemtype"]);
Planning::showPlanning($_POST['uID'], 0, $_POST["date"], $_POST["type"], $_POST["limititemtype"]);
break;
case 4:
Planning::showSelectionForm($_POST['type'], $_POST['date'], 'groups', $_POST["gID"], $_POST["limititemtype"]);
Planning::showPlanning(0, $_POST['gID'], $_POST["date"], $_POST["type"], $_POST["limititemtype"]);
break;
}
}
return true;
}
示例2: switch
$_GET["gID"] = 0;
}
if (!isset($_GET["usertype"])) {
$_GET["usertype"] = "user";
}
switch ($_GET["usertype"]) {
case "user":
$_GET['gID'] = 0;
break;
case "group":
$_GET['uID'] = 0;
break;
case "user_group":
$_GET['gID'] = "mine";
break;
}
if (isset($_GET['genical'])) {
Planning::generateIcal($_GET["uID"], $_GET["gID"]);
} else {
commonHeader($LANG['Menu'][29], $_SERVER['PHP_SELF'], "maintain", "planning");
checkSeveralRightsOr(array('show_all_planning' => '1', 'show_planning' => '1'));
if (!isset($_GET["date"]) || empty($_GET["date"])) {
$_GET["date"] = strftime("%Y-%m-%d");
}
if (!isset($_GET["type"])) {
$_GET["type"] = "week";
}
Planning::showSelectionForm($_GET['type'], $_GET['date'], $_GET["usertype"], $_GET["uID"], $_GET["gID"]);
Planning::show($_GET['uID'], $_GET['gID'], $_GET["date"], $_GET["type"]);
commonFooter();
}