Esempio n. 1
0
					}
					?>
						<div>
						Delete frame "<?=$frame['name']?>"?
						</div>
						<div class="formbuttons">
							<button type="button" onClick="deleteframe(true)">Delete</button>
							<button type="button" onClick="clearform()">Cancel</button>
						</div>
					<?


				break;

				case "editform":
					$frame = DATABASE::record("sprite_frame","sprite_frame_id",$_GET['id']);
				?>
					<form id="frameform">
						<input type="hidden" name="action" value="edititem">
						<input type="hidden" name="sprite_id" value="<?=$frame['sprite_id']?>">
						<input type="hidden" name="sprite_frame_id" value="<?=$_GET['id']?>">
						<div style="clear:both;padding-top:10px;text-align:right;">	Name:<input type="text" name="name" style="width:175px;" value="<?=$frame['name']?>">
																					X:<input type="text" name="x" style="width:35px;" value="<?=$frame['x']?>">
																					Y:<input type="text" name="y" style="width:35px;" value="<?=$frame['y']?>">
																					W:<input type="text" name="w" style="width:35px;" value="<?=$frame['w']?>">
																					H:<input type="text" name="h" style="width:35px;" value="<?=$frame['h']?>">
																					MipMap:<input type="text" name="m" style="width:35px;" value="<?=$frame['mip']?>">
						</div>
						<div style="text-align:center;padding: 10px;">
							<canvas id="plottingcanvas" style="background-color:#000; margin-top:10px;" width="300" height="300"></canvas>
							<canvas id="previewcanvas" style="background-color:#000; margin:10px;" width="150" height="150"></canvas>