Return to Snippet

Revision: 5835
at April 7, 2008 09:32 by tclancy

Initial Code
<div class="formRow">
		<label for="related_file">Related File:</label>
		if ($oEvent->is_populated("related_file"))
			echo "<span id=\"replaceFileInfo\">Currently ".$oEvent->get("related_file").". <a href=\"#\" onclick=\"document.getElementById('docUploadBox').style.display='block';document.getElementById('replaceFileInfo').style.display='none';return false;\">Replace?</a></span>";
			echo "<span id=\"docUploadBox\" style=\"display: none;\">";
			echo "<span id=\"docUploadBox\">";
			<input type="file" class="fileUpload" tabindex="9" name="related_file" id="related_file" />

Initial URL

Initial Description
Just a quick and dirty way to handle file uploads in admin tools

Initial Title
PHP File Upload Toggle

Initial Tags

Initial Language