<table cellpadding="0" cellspacing="2" border="0" width="100%">
	<tr><td class="grey-lined body padded" colspan="2"><table cellpadding="0" cellspacing="3" border="0" align="center">
		<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="social_bookmarking">
		<input type="hidden" name="theme" value="<?php echo $data["theme"]; ?>">
		<tr><td class="body">Enable Module:</td><td class="highlight"><?php
			if(extract_null_value($data["social_bookmarking"]["enabled"]))
				$data["social_bookmarking"]["enabled"] = 0;
			admin_form_element ( array ("type" => "radio", "name" => "enabled", "value" => $data["social_bookmarking"]["enabled"], "ovalue" => "1") );
			?> Enable</td>
			<td class="highlight"><?php
			admin_form_element ( array ("type" => "radio", "name" => "enabled", "value" => $data["social_bookmarking"]["enabled"], "ovalue" => "0") );
			?> Disable</td>
			<td><?php admin_form_element( array("type" => "button", "value" => "Update") ); ?></td>
		</tr>
		</form>
	</table></td></tr>
	<tr><td class="lined blue_bcg white_body padded" align="center">New Engine</td>
	<td class="lined blue_bcg white_body padded" align="center">Engines</td></tr>
	<tr><td class="grey-lined body padded" valign="top"><table cellpadding="0" cellspacing="2" border="0" width="100%">
		<form action="index.php" method="post" enctype="multipart/form-data">
		<input type="hidden" name="section" value="modules">
		<input type="hidden" name="action" value="sb_add">
		<input type="hidden" name="module" value="social_bookmarking">
		<input type="hidden" name="theme" value="<?php echo $data["theme"]; ?>">
		<tr><td class="body">Engine Name:</td>
		<td class="highlight"><?php
		admin_form_element( array ("type" => "input", "size" => 30, "name" => "name") );
		?></td></tr>
		<tr><td class="body" valign="top">URL:</td>
		<td class="highlight"><?php
		admin_form_element( array ("type" => "input", "size" => 30, "name" => "url") );
		?><br /><small>|link| - page URL; |title| - page title</small></td></tr>
		<tr><td class="body">Icon:</td>
		<td class="highlight"><input type="file" class="textfield" name="icon"></td></tr>
		<tr><td colspan="2" align="center"><?php
		admin_form_element( array("type" => "button", "value" => "Add") );
		?></td></tr>
		</form>
	</table></td>
	<td class="grey-lined body padded" valign="top"><table cellpadding="2" cellspacing="2" border="0" width="100%">
		<tr>
		<td class="list_header" align="center">Icon</td>
		<td class="list_header" align="center">Engine</td>
		<td class="list_header" align="center">Action</td></tr>
		<?php
		if(count($data["social_bookmarking"]["engines"])) {
		foreach($data["social_bookmarking"]["engines"] as $engine){ ?>
			<tr>
				<td class="list_cell" style="text-align:center"><?php if($engine["icon"]) { admin_output_image( $engine["icon"], 0, "includes/sbicons" ); } ?></td>
				<td class="list_cell"><?php echo $engine["name"]; ?></td>
				<td class="list_cell" align="center"><?php
				if($engine["enabled"])
					admin_output_image("buttons/but_ban_small.gif","index.php?section=modules&action=sb_enable&eng_id=".$engine["eng_id"]."&theme=".$data["theme"],0,"disable");
				else
					admin_output_image("buttons/but_unban_small.gif","index.php?section=modules&action=sb_enable&eng_id=".$engine["eng_id"]."&theme=".$data["theme"],0,"enable");
				admin_output_image("buttons/but_delete_small.gif","index.php?section=modules&action=sb_delete&eng_id=".$engine["eng_id"]."&theme=".$data["theme"],0,"delete");
				?></td>
			</tr>
		<?php
		}
		} ?>
	</table></td></tr>
</table>