Location: PHPKode > projects > LDAPted > ldapted/templates/std/controls/Image/default_edit.tpl
{if $ERRORMESSAGE != "" }
	<img SRC="{$IMAGEDIR}exclamation.png" TITLE="{$ERRORMESSAGE}" align="left" />
{/if}

<div title="{$DESCRIPTION}">
	{$ATTRIBLABEL} :
</div>
<div id="imagecontrolimage">
	<img SRC="showImage.php?dn={$DN}&attrib={$ATTRIBNAME}&type={$SOURCE_TYPE}" type="{$SOURCE_TYPE}" alt="{$SOURCE_ALT}" height="{$MAXHEIGHT}" width="{$MAXWIGHT}">
</div>
<div>
	<button onClick="image_control_modify(); return false;">
		<img src="{$IMAGEDIR}paste.png" />
	</button>
	<button onClick="image_control_remove(); return false;">
		<img src="{$IMAGEDIR}cancel.png" />
	</button>
</div>

<div id="uploadimage" style="display: none;">
	<input type="hidden" name="remove" id="imagecontrolremove" value="0" />
	<input type="file"   name="{$ATTRIBNAME}" /><br />
</div>

{literal}
<script language="JavaScript" type="text/javascript">
	function image_control_modify()
	{
		document.getElementById('uploadimage').style.display = 'block';
	}
	
	function image_control_remove()
	{
		document.getElementById('uploadimage').style.display = 'none';
		document.getElementById('imagecontrolimage').style.display = 'none';
		document.getElementById('imagecontrolremove').value = '1';
	}
</script>
{/literal}
Return current item: LDAPted