Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Image uploader


Recommended Posts

I want to implement PHP Imagemanager standalone. But I have a problem. So the script can run I must to insert








<td class="main"><?php echo TEXT_PRODUCTS_IMAGE; ?></td>

<td class="main"><?php echo tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' . tep_draw_file_field('products_image','') . '<br>' . tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' . $pInfo->products_image . tep_draw_hidden_field('products_previous_image', $pInfo->products_image); ?></td>



Can I put it in admin/includes/functions/html_output.php??



// Output a form filefield

function tep_draw_file_field($name,'' , $required = false) {

$field = tep_draw_input_field($name, '', '', $required, 'file');


return $field;



the original script is:



<title>PHP ImageManager + Editor Standalone Demo</title>

<script type="text/javascript" src="../ImageManager/assets/dialog.js"></script>

<script type="text/javascript" src="../ImageManager/IMEStandalone.js"></script>

<script type="text/javascript">



//Create a new Imanager Manager, needs the directory where the manager is

//and which language translation to use.

var manager = new ImageManager('../ImageManager','en');


//Image Manager wrapper. Simply calls the ImageManager

ImageSelector =


//This is called when the user has selected a file

//and clicked OK, see popManager in IMEStandalone to

//see the parameters returned.

update : function(params)


if(this.field && this.field.value != null)


this.field.value = params.f_file; //params.f_url



//open the Image Manager, updates the textfield

//value when user has selected a file.

select: function(textfieldID)


this.field = document.getElementById(textfieldID);







<style type="text/css">



.selectFile { width: 20em; }

body{margin: 2em;}

form{margin: 5em;}







<h1>PHP ImageManager + Editor Standalone Demo</h1>

<form action="">


Please select an image file.

<input type="text" id="file" class="selectFile" name="file" />

<input type="button" name="select" value=" File " onclick="ImageSelector.select('file');"/>





I'm sorry for my bad english. Thank you for helping

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...