From 94d2fc1815a919734353c942f224db1de4b4fcb8 Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Mon, 7 Mar 2011 09:04:49 +0100 Subject: Django, org * Added nxhtml, mostly for django support. * Changed some org settings. --- emacs.d/nxhtml/tests/in/bug-290364.php | 66 ++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 emacs.d/nxhtml/tests/in/bug-290364.php (limited to 'emacs.d/nxhtml/tests/in/bug-290364.php') diff --git a/emacs.d/nxhtml/tests/in/bug-290364.php b/emacs.d/nxhtml/tests/in/bug-290364.php new file mode 100644 index 0000000..190b230 --- /dev/null +++ b/emacs.d/nxhtml/tests/in/bug-290364.php @@ -0,0 +1,66 @@ +'; +echo ''; +echo ''; + + + +echo ' Test image'; + +echo ' '; + +echo '

Cropper votre image v0.1

'; + +$label = 'file_default'; + +$form = new HTML_QuickForm ('cropper_form', "", "img-cropped.php", '', 'enctype=multipart/form-data'); + +$form->addElement ('file', 'file_0', $label); +$form->addElement ('hidden', 'hidden_0'); +$form->addElement ('button', 'button_0'); +$form->updateElementAttr(array('button_0'), array ('id' => 'button_0')); +$form->addElement ('submit', 'submit_0', 'Envoyer!'); +$form->updateElementAttr(array('file_0'), array ('id' => 'file_0')); +$form->updateElementAttr(array('hidden_0'), array ('id' => 'hidden_0')); +echo $form->toHtml (); + +if (isset ($_POST['file_0'])): +$image = $_POST['file_0']; +tmpfile ($image); +echo $_POST['file_0']; +endif; +echo sys_get_temp_dir (); +var_dump ($_POST); +?> \ No newline at end of file -- cgit v1.2.3-54-g00ecf