本文整理汇总了PHP中Head::getId方法的典型用法代码示例。如果您正苦于以下问题:PHP Head::getId方法的具体用法?PHP Head::getId怎么用?PHP Head::getId使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Head
的用法示例。
在下文中一共展示了Head::getId方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Event
// name of all event organisers from the DB
echo '<option>', $head['username'], '</option>';
}
// we set a hidden input eventorg to eventorg, so that we know we want to assign an event to organiser
echo '</select><br><input type="hidden" name="eventorg" value="eventorg"/><input type="submit" value="Assign" /></form>';
}
break;
case 'eventvol':
// case -> assign event volunteer
if (isset($_POST['eventvol'])) {
if (isset($_POST['eventname']) and isset($_POST['headname'])) {
$e = new Event();
$h = new Head();
if ($e->select($_POST['eventname'])) {
if ($h->select($_POST['headname'])) {
echo $e->addHead($h->getId(), 'vol');
// assigning the event to head
} else {
echo 'Username Does Not Exist';
}
} else {
echo 'Event Does Not Exist';
}
} else {
echo 'Please check your entries';
}
} else {
// displaying the list of all events and heads
$e = new Event();
$h = new Head();
echo '<form method="POST">Select an Event and Head<br><select name="eventname">';