aboutsummaryrefslogtreecommitdiff
path: root/mod/guidtool/views/default/forms/guidtool/format.php
blob: a01790e4b1ff6ebb7b9e35e9c72284879b1f4176 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
	/**
	 * Elgg GUID Tool
	 * 
	 * @package ElggGUIDTool
	 * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
	 * @author Curverider Ltd
	 * @copyright Curverider Ltd 2008
	 * @link http://elgg.com/
	 */

	$formats = $vars['formats'];
	
	if (!$formats)
		$formats = array('opendd');
		
	$format = get_input('format');
	if ($format)
	{	
		forward(get_input('forward_url') . $format . "/");
		exit;
	}
	
?>

<div id="formatpicker">
	<form method="get">
		<select name="format">
		<?php
			foreach ($formats as $format)
			{
	?>
				<option value="<?php echo $format; ?>"><?php echo $format; ?></option>
	<?php 
			}
		?>
		</select>
		<input type="submit" class="submit_button" value="<?php echo elgg_echo("go"); ?>" />
	</form>
</div>