Location: PHPKode > projects > Dev's CMS > devscms/admin/templates/files/edit.tpl
<? if ($saved): ?>

	<h2>Ändringarna sparade!</h2>

<? else: ?>
	
	<div style="background:url('<?=$file_info['icon']?>') no-repeat; padding-left:64px; height:64px;">
		<strong>Filnamn:</strong>
			<?=$file['filename']?><br />
		<strong>Filstorlek:</strong>
			<?=$file_info['size']?><br />
		
		<? if ($file_info['added'] == $file_info['updated']): ?>
			<strong>Uppladdad:</strong>
			<?=$file_info['added']?>
		<? else: ?>
			<strong>Uppladdad/Senast ändrad:</strong>
			<?=$file_info['added']?> <strong>/</strong> <?=$file_info['updated']?>
		<? endif; ?>
	</div>

	<form action="?p=f&amp;a=e" method="post">
	<fieldset>
	<legend>Ändra information</legend>
	
	<div>
		<input type="hidden" name="id" value="<?=$file['id']?>" />
		<label for="title">Titel</label>
		<input type="text" name="title" value="<?=$file['title']?>" class="text" />
	</div>
	
	<div>
		<label for="description">Beskrivning</label>
		<textarea name="description" id="description" class="text" rows="4" cols="50"><?=$file['description']?></textarea>
	</div>
	
	<div>
		<input type="submit" value="Spara ändringarna" />,
		
		<a href="?p=f&amp;a=r&amp;id=<?=$file['id']?>" onclick="return confirm('Är du säker?')">Ta bort</a>
		
		eller <a href="/admin/">Avbryt</a>
	</div>
	
	</fieldset>
	</form>

	
	
	
	<form enctype="multipart/form-data" action="?p=f&amp;a=u" method="post" onsubmit="return uploadBar()">
	
	<fieldset>
	<legend>Byt fil</legend>
	
	<div>
		<input type="hidden" name="id" value="<?=$file['id']?>" />
		<label for="file">Välj fil</label>
		<input type="file" id="file" name="file" />
	</div>
	
	<div id="submit">
		<input type="submit" value="Ladda upp" />
		eller <a href="?p=f">Avbryt</a>
		<img src="images/loader.gif" alt="Laddar.." style="display:none;" />
	</div>
	
	<script type="text/javascript">
	/* <![CDATA[ */
		function uploadBar() {
			$('#submit').html('<p>Laddar upp... <img src="images/loader.gif" alt="Laddar.." style="vertical-align:text-top" /><\/p>');
			return true;
		}
	/* ]]> */
	</script>
	
	</fieldset>
	
	</form>
	
<? endif; ?>
Return current item: Dev's CMS