';
echo '';
echo '';
echo ' ';
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);
?>