Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
  #1  
Old 08-02-2005, 03:51 AM
ZGeek ZGeek is offline
 
Join Date: Jan 2003
Posts: 149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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">&nbsp; &nbsp;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 />
anyone?
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:29 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03313 seconds
  • Memory Usage 2,256KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)showthread_list
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_threadedmode.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids_threaded
  • showthread_threaded_construct_link
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete