<table cellpadding="0" cellspacing="2" border="0" width="100%">
	<form action="index.php" method="post">
	<input type="hidden" name="section" value="modules">
	<input type="hidden" name="action" value="update_module">
	<input type="hidden" name="module" value="vchat">
	<input type="hidden" name="theme" value="<?php echo $data["theme"]; ?>">
	<tr><td class="lined blue_bcg white_body padded" align="center" width="50%">General Settings</td>
	<td class="lined blue_bcg white_body padded" align="center">Audio/Video Settings</td></tr>
		<tr><td class="grey-lined body padded" valign="top"><table cellpadding="2" cellspacing="2" border="0" width="100%">
			<tr><td class="body">Enable Module:</td><td class="highlight"><table cellpadding="0" cellspacing="2" border="0">
			<tr>
			<td class="highlight"><?php
			if(extract_null_value($data["vchat"]["enabled"]))
				$data["vchat"]["enabled"] = 0;
			admin_form_element ( array ("type" => "radio", "name" => "enabled", "value" => $data["vchat"]["enabled"], "ovalue" => "1") );
			?> Enable</td>
			<td class="highlight"><?php
			admin_form_element ( array ("type" => "radio", "name" => "enabled", "value" => $data["vchat"]["enabled"], "ovalue" => "0") );
			?> Disable</td>
			</tr>
		</table></td></tr>
			<tr><td class="body">Flash Server URL:</td><td class="highlight"><?php
			admin_form_element ( array ("type" => "input", "size" => 20, "name" => "server_url", "value" => $data["vchat"]["server_url"]) );
			?></td></tr>
			<tr><td class="body">Secret Key <br /><small>(required for php-to-flash server communications)</small></td><td width="50%" valign="top" class="highlight"><?php
			admin_form_element ( array ("type" => "input", "size" => 10, "name" => "key", "value" => $data["vchat"]["key"]) );
			?></td></tr>
			<tr><td class="body">Limit per day per user:</td><td class="highlight"><?php
			admin_form_element ( array ("type" => "input", "size" => 3, "name" => "limit", "value" => $data["vchat"]["limit"]) );
			?> Seconds</td></tr>
		</table></td>
	<td class="grey-lined body padded" valign="top"><table cellpadding="0" cellspacing="2" border="0" width="100%">
			<tr><td class="body">Microphone Bitrate:</td><td class="highlight"><?php
			admin_form_element ( array ("type" => "input", "size" => 3, "name" => "mic_rate", "value" => $data["vchat"]["mic_rate"]) );
			?></td></tr>
			<tr><td class="body">Key Frame Interval:</td><td class="highlight"><?php
			admin_form_element ( array ("type" => "input", "size" => 3, "name" => "key_frame_interval", "value" => $data["vchat"]["key_frame_interval"]) );
			?></td></tr>
			<tr><td class="body">Picture Quality:</td><td class="highlight"><?php
			admin_form_element ( array ("type" => "input", "size" => 3, "name" => "picture_quality", "value" => $data["vchat"]["picture_quality"]) );
			?></td></tr>
			<tr><td class="body">Picture Width:</td><td class="highlight"><?php
			admin_form_element ( array ("type" => "input", "size" => 3, "name" => "movie_width", "value" => $data["vchat"]["movie_width"]) );
			?> px</td></tr>
			<tr><td class="body">Picture Height:</td><td class="highlight"><?php
			admin_form_element ( array ("type" => "input", "size" => 3, "name" => "movie_height", "value" => $data["vchat"]["movie_height"]) );
			?> px</td></tr>
			<tr><td class="body">Movie FPS (frames per second):</td><td class="highlight"><?php
			admin_form_element ( array ("type" => "input", "size" => 3, "name" => "movie_fps", "value" => $data["vchat"]["movie_fps"]) );
			?> FPS</td></tr>
			<tr><td class="body">Stream Bandwidth:</td><td class="highlight"><?php
			admin_form_element ( array ("type" => "input", "size" => 3, "name" => "stream_bandwidth", "value" => $data["vchat"]["stream_bandwidth"]) );
			?></td></tr>
		</table></td>
	</tr>
	<tr><td colspan="2" align="center"><?php
		admin_form_element( array("type" => "button", "value" => "Update") );
		?></td></tr>
	</form>
</table>