本文整理汇总了PHP中event::raid_event_list方法的典型用法代码示例。如果您正苦于以下问题:PHP event::raid_event_list方法的具体用法?PHP event::raid_event_list怎么用?PHP event::raid_event_list使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类event
的用法示例。
在下文中一共展示了event::raid_event_list方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: newEvent
function newEvent()
{
echo '
<div id="newEvent" class="wbox" data-height="417px" data-width="100%" data-max-width="265px">
<div class="wbox-title">New Event</div>
<div class="wbox-content">
<form method="post" action="">
<input type="text" name="newEventTitle" id="newEventTitle" class="lot lot-N aniObj" placeholder="Event title" maxlength="25">
<label>Location:</label><br/>
<select id="newEventLoc" id="newEventLoc" class="lot lot-N aniObj">
<option value="blank">-- Set location --</option>';
foreach (event::raid_event_list() as $raid) {
echo '<option value="' . $raid['short'] . '">' . $raid['fullname'] . '</option>';
}
echo '
</select>
<label>Description:</label><br/>
<textarea rows="4" cols="40" name="newEventDesc" id="newEventDesc" class="lot lot-N aniObj" maxlength="150"></textarea>
<label>Date:</label><br/>
<select name="eventDate" id="newEventSetDate" class="lot lot-N aniObj">';
for ($i = 0; $i < 14; $i++) {
$a = date('d-m-Y', strtotime("+" . $i . "days"));
if ($i == 0) {
echo '<option value="' . $a . '">' . $a . ' (Today)</option>';
} else {
echo '<option value="' . $a . '">' . $a . '</option>';
}
}
echo '
</select>
<label>Time:</label><br/>
<select name="eventSetHr" id="newEventHour" class="lot lot-N aniObj">
<option value="00">00hr / 12am</option>
<option value="01">01hr / 1am</option>
<option value="02">02hr / 2am</option>
<option value="03">03hr / 3am</option>
<option value="04">04hr / 4am</option>
<option value="05">05hr / 5am</option>
<option value="06">06hr / 6am</option>
<option value="07">07hr / 7am</option>
<option value="08">08hr / 8am</option>
<option value="09">09hr / 9am</option>
<option value="10">10hr / 10am</option>
<option value="11">11hr / 11am</option>
<option value="12">12hr / 12pm</option>
<option value="13">13hr / 1pm</option>
<option value="14">14hr / 2pm</option>
<option value="15">15hr / 3pm</option>
<option value="16">16hr / 4pm</option>
<option value="17">17hr / 5pm</option>
<option value="18">18hr / 6pm</option>
<option value="19">19hr / 7pm</option>
<option value="20">20hr / 8pm</option>
<option value="21">21hr / 9pm</option>
<option value="22">22hr / 10pm</option>
<option value="23">23hr / 11pm</option>
</select>
<select name="eventSetMin" id="newEventMin" class="lot lot-N aniObj">
<option value="00">00 Mins past the hr</option>
<option value="15">15 Mins past the hr</option>
<option value="30">30 Mins past the hr</option>
<option value="45">45 Mins past the hr</option>
</select>
</div>
<div class="WBoxBtns">
<input type="button" id="newEventCreate" class="WBox-btn btn-green" value="Create Event" onclick="events.evnt.create();">
</form>
</div>
</div>';
}