Exemplo n.º 1
0
							<div class="frameform">
							</div>
						</div>
					</div>
				<?
				break;
			}
		break;



		case "frame":
			switch($_REQUEST['action'])
			{
				case "list":
					$frames = DATABASE::records("sprite_frame",array("sprite_id"=>$_GET['sprite']));
					if(is_array($frames) && count($frames))
					foreach($frames as $frame)
					{
						echo "<option item='frame' value='".$frame['sprite_frame_id']."'>".$frame['name']." : ".$frame['mip']."</option>";
					}
				break;

				case "newform":
				?>
					<form id="frameform">
						<input type="hidden" name="action" value="newitem">
						<input type="hidden" name="sprite_id" value="<?=$_GET['sprite']?>">
						<div style="clear:both;padding-top:10px;text-align:right;">	Name:<input type="text" name="name" style="width:175px;">
																					X:<input type="text" name="x" style="width:35px;" value="0">
																					Y:<input type="text" name="y" style="width:35px;" value="0">