The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
Meeting room booking
I'm trying to make a meeting room mini-hack which works using the vbindex blank template and a modified calendar event entry. I can get it working well enough, but I can't make it automatically select the correct month in the date fields.
It does this in the calendar event entries and I know that I'm missing something because I'm a n00b. Can any one point me in the correct direction? So far it's only a template hack. Code:
<table cellpadding="0" cellspacing="0" border="0" width="100%" bgcolor="#000000"> <tr> <td> <table cellpadding="5" cellspacing="1" border="0" width="100%"> <tr> <td class="tcat"> <b>Book a meeting room</b> </td> </tr> <tr> <td class="alt1"> <div><!--Start--><form action="calendar.php" method="post" name="vbform" onsubmit="return validatePost(this, this.title.value, 0, 0);" onreset="vB_RESET(this);"><table width="100%" border="0" cellspacing="0" cellpadding="1"> <tr> <td>$bbuserinfo[username]</td> </tr> <tr> <td><!-- start / end date / time --> <fieldset class="fieldset"> <legend>Event Date</legend> <table cellpadding="0" cellspacing="3" border="0"> <tr> <td>Room: </td> <td colspan="2"><select name="title" size="1" id="title"> <option value="Meeting Room Booking" selected>Meeting Room</option> <option value="Training Room Booking">Training Room</option> <option value="Board Room Booking">Board Room</option> </select></td> </tr> <tr> <td>Start</td> <td><input type="text" class="bginput" style="font-size:11px" name="from_day" value="$from_day" size="3" maxlength="2" title="$vbphrase[day]" tabindex="1" /> <select name="from_month" title="$vbphrase[month]" tabindex="1"> <option value="1" $from_monthselected[1]>$vbphrase[january]</option> <option value="2" $from_monthselected[2]>$vbphrase[february]</option> <option value="3" $from_monthselected[3]>$vbphrase[march]</option> <option value="4" $from_monthselected[4]>$vbphrase[april]</option> <option value="5" $from_monthselected[5]>$vbphrase[may]</option> <option value="6" $from_monthselected[6]>$vbphrase[june]</option> <option value="7" $from_monthselected[7]>$vbphrase[july]</option> <option value="8" $from_monthselected[8]>$vbphrase[august]</option> <option value="9" $from_monthselected[9]>$vbphrase[september]</option> <option value="10" $from_monthselected[10]>$vbphrase[october]</option> <option value="11" $from_monthselected[11]>$vbphrase[november]</option> <option value="12" $from_monthselected[12]>$vbphrase[december]</option> </select> <select name="from_year" title="Year" tabindex="1"> <option value="2000">2000</option> <option value="2001">2001</option> <option value="2002">2002</option> <option value="2003">2003</option> <option value="2004">2004</option> <option value="2005" selected="selected">2005</option> <option value="2006">2006</option></select> </td> <td align="right">Time <select name="from_time" title="Time" tabindex="1"><option value="12_00_AM" class="">Midnight</option> <option value="12_30_AM" class="">12:30 am</option> <option value="1_00_AM" class="">01:00 am</option> <option value="1_30_AM" class="">01:30 am</option> <option value="2_00_AM" class="">02:00 am</option> <option value="2_30_AM" class="">02:30 am</option> <option value="3_00_AM" class="">03:00 am</option> <option value="3_30_AM" class="">03:30 am</option> <option value="4_00_AM" class="">04:00 am</option> <option value="4_30_AM" class="">04:30 am</option> <option value="5_00_AM" class="">05:00 am</option> <option value="5_30_AM" class="">05:30 am</option> <option value="6_00_AM" class="">06:00 am</option> <option value="6_30_AM" class="">06:30 am</option> <option value="7_00_AM" class="">07:00 am</option> <option value="7_30_AM" class="">07:30 am</option> <option value="8_00_AM" class="">08:00 am</option> <option value="8_30_AM" class="">08:30 am</option> <option value="9_00_AM" class="" selected>09:00 am</option> <option value="9_30_AM" class="">09:30 am</option> <option value="10_00_AM" class="">10:00 am</option> <option value="10_30_AM" class="">10:30 am</option> <option value="11_00_AM" class="">11:00 am</option> <option value="11_30_AM" class="">11:30 am</option> <option value="12_00_PM" class="">Midday</option> <option value="12_30_PM" class="">12:30 pm</option> <option value="1_00_PM" class="">01:00 pm</option> <option value="1_30_PM" class="">01:30 pm</option> <option value="2_00_PM" class="">02:00 pm</option> <option value="2_30_PM" class="">02:30 pm</option> <option value="3_00_PM" class="">03:00 pm</option> <option value="3_30_PM" class="">03:30 pm</option> <option value="4_00_PM" class="">04:00 pm</option> <option value="4_30_PM" class="">04:30 pm</option> <option value="5_00_PM" class="">05:00 pm</option> <option value="5_30_PM" class="">05:30 pm</option> <option value="6_00_PM" class="">06:00 pm</option> <option value="6_30_PM" class="">06:30 pm</option> <option value="7_00_PM" class="">07:00 pm</option> <option value="7_30_PM" class="">07:30 pm</option> <option value="8_00_PM" class="">08:00 pm</option> <option value="8_30_PM" class="">08:30 pm</option> <option value="9_00_PM" class="">09:00 pm</option> <option value="9_30_PM" class="">09:30 pm</option> <option value="10_00_PM" class="">10:00 pm</option> <option value="10_30_PM" class="">10:30 pm</option> <option value="11_00_PM" class="">11:00 pm</option> <option value="11_30_PM" class="">11:30 pm</option> </select></td> </tr> <tr> <td>End</td> <td> <input type="text" class="bginput" style="font-size:11px" name="to_day" value="$to_day" size="3" maxlength="2" title="$vbphrase[day]" tabindex="1" /> <select name="to_month" title="$vbphrase[month]" tabindex="1"> <option value="1" $to_monthselected[1]>$vbphrase[january]</option> <option value="2" $to_monthselected[2]>$vbphrase[february]</option> <option value="3" $to_monthselected[3]>$vbphrase[march]</option> <option value="4" $to_monthselected[4]>$vbphrase[april]</option> <option value="5" $to_monthselected[5]>$vbphrase[may]</option> <option value="6" $to_monthselected[6]>$vbphrase[june]</option> <option value="7" $to_monthselected[7]>$vbphrase[july]</option> <option value="8" $to_monthselected[8]>$vbphrase[august]</option> <option value="9" $to_monthselected[9]>$vbphrase[september]</option> <option value="10" $to_monthselected[10]>$vbphrase[october]</option> <option value="11" $to_monthselected[11]>$vbphrase[november]</option> <option value="12" $to_monthselected[12]>$vbphrase[december]</option> </select> <select name="to_year" title="Year" tabindex="1"> <option value="2000">2000</option> <option value="2001">2001</option> <option value="2002">2002</option> <option value="2003">2003</option> <option value="2004">2004</option> <option value="2005" selected="selected">2005</option> <option value="2006">2006</option></select> </td> <td align="right"> Time <select name="to_time" title="Time" tabindex="1"><option value="12_00_AM" class="">Midnight</option> <option value="12_30_AM" class="">12:30 am</option> <option value="1_00_AM" class="">01:00 am</option> <option value="1_30_AM" class="">01:30 am</option> <option value="2_00_AM" class="">02:00 am</option> <option value="2_30_AM" class="">02:30 am</option> <option value="3_00_AM" class="">03:00 am</option> <option value="3_30_AM" class="">03:30 am</option> <option value="4_00_AM" class="">04:00 am</option> <option value="4_30_AM" class="">04:30 am</option> <option value="5_00_AM" class="">05:00 am</option> <option value="5_30_AM" class="">05:30 am</option> <option value="6_00_AM" class="">06:00 am</option> <option value="6_30_AM" class="">06:30 am</option> <option value="7_00_AM" class="">07:00 am</option> <option value="7_30_AM" class="">07:30 am</option> <option value="8_00_AM" class="">08:00 am</option> <option value="8_30_AM" class="">08:30 am</option> <option value="9_00_AM" class="">09:00 am</option> <option value="9_30_AM" class="">09:30 am</option> <option value="10_00_AM" class="" selected>10:00 am</option> <option value="10_30_AM" class="">10:30 am</option> <option value="11_00_AM" class="">11:00 am</option> <option value="11_30_AM" class="">11:30 am</option> <option value="12_00_PM" class="">Midday</option> <option value="12_30_PM" class="">12:30 pm</option> <option value="1_00_PM" class="">01:00 pm</option> <option value="1_30_PM" class="">01:30 pm</option> <option value="2_00_PM" class="">02:00 pm</option> <option value="2_30_PM" class="">02:30 pm</option> <option value="3_00_PM" class="">03:00 pm</option> <option value="3_30_PM" class="">03:30 pm</option> <option value="4_00_PM" class="">04:00 pm</option> <option value="4_30_PM" class="">04:30 pm</option> <option value="5_00_PM" class="">05:00 pm</option> <option value="5_30_PM" class="">05:30 pm</option> <option value="6_00_PM" class="">06:00 pm</option> <option value="6_30_PM" class="">06:30 pm</option> <option value="7_00_PM" class="">07:00 pm</option> <option value="7_30_PM" class="">07:30 pm</option> <option value="8_00_PM" class="">08:00 pm</option> <option value="8_30_PM" class="">08:30 pm</option> <option value="9_00_PM" class="">09:00 pm</option> <option value="9_30_PM" class="">09:30 pm</option> <option value="10_00_PM" class="">10:00 pm</option> <option value="10_30_PM" class="">10:30 pm</option> <option value="11_00_PM" class="">11:00 pm</option> <option value="11_30_PM" class="">11:30 pm</option> </select></td> </tr> </table> </fieldset> <!-- / start / end date / time --></td> </tr> <tr> <td>Notes:<br><textarea name="WYSIWYG_HTML" id="html_hidden_field" cols="40"></textarea></td> </tr> <tr> <td> <div style="margin-top:6px"> <input type="hidden" name="s" value="" /> <input type="hidden" name="c" value="1" /> <input type="hidden" name="e" value="0" /> <input type="hidden" name="timezoneoffset" title="Time Zone" value="10" /> <input type="hidden" name="type" value="recur" /> <input type="hidden" name="do" value="update" /> <input type="submit" class="button" value="Book Room" accesskey="s" tabindex="1" /> <input type="reset" class="button" value="Clear" accesskey="r" tabindex="1" /> </div></td> </tr> </table><!--End--></div> </td> </tr> </table> </td> </tr> </table> <br /> |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|