title: set image after text box in zend form using zend decorator
body: <p>I am using zend form and zend decorator to create a form. and I want to set a image after a text box. like this:
  <img src="https://i.stack.imgur.com/6qguv.png" alt="enter image description here"></p>
  
  <p>I am using zend decorator but it is giving me like this:</p>
  
  <p><img src="https://i.stack.imgur.com/SaDJK.png" alt="enter image description here"> </p>
  
  <p>I am using this code:</p>
  
  <blockquote>
    <p>Class CountryController extends Zend_Controller_Action
    {</p>
  </blockquote>
  
  <pre><code>public $textimage = array(
      'ViewHelper',
       array('FormElements',array('tag'=&gt;'img')),
      'FormElements',
      array(array('openerror' =&gt; 'HtmlTag'),array('tag' =&gt; 'td', 'openOnly' =&gt; true, 'placement' =&gt; Zend_Form_Decorator_Abstract::APPEND,'width'=&gt;'37%')),
      'Errors',
      array(array('closeerror' =&gt; 'HtmlTag'),array('tag' =&gt; 'td', 'closeOnly' =&gt; true, 'placement' =&gt; Zend_Form_Decorator_Abstract::APPEND)),
  
      array(array('elementImg' =&gt; 'HtmlTag'), array('tag' =&gt; 'img','class'=&gt;'imgpos')),
  
      array('HtmlTag', array('tag' =&gt; 'td','align'=&gt;'left')),
      array('Label', array('tag' =&gt; 'td')),
  
      array(array('row' =&gt; 'HtmlTag'), array('tag' =&gt; 'tr','valign'=&gt;'top','align'=&gt;'right')),
      );
  
  public $elementDecorators = array(
      'ViewHelper',
      'FormElements',
      array(array('openerror' =&gt; 'HtmlTag'),array('tag' =&gt; 'td', 'openOnly' =&gt; true, 'placement' =&gt; Zend_Form_Decorator_Abstract::APPEND)),
      'Errors',
      array(array('closeerror' =&gt; 'HtmlTag'),array('tag' =&gt; 'td', 'closeOnly' =&gt; true, 'placement' =&gt; Zend_Form_Decorator_Abstract::APPEND)),
  
      array('HtmlTag', array('tag' =&gt; 'td', 'class' =&gt; 'element','align'=&gt;'left','colspan'=&gt;'2')),
      array('Label', array('tag' =&gt; 'td')),
      array(array('row' =&gt; 'HtmlTag'), array('tag' =&gt; 'tr','valign'=&gt;'top','align'=&gt;'right')),
  );
  
  public $buttonDecorators = array(
      'ViewHelper',
      'Errors',
      'FormElements',
      array('HtmlTag', array('tag' =&gt; 'td','align'=&gt;'left')),
      array(array('row' =&gt; 'HtmlTag'), array('tag' =&gt; 'div')),
  );
  
  public $addButton = array(
      'ViewHelper',
      'Errors',
      'FormElements',
      array('HtmlTag', array('tag' =&gt; 'td','align'=&gt;'right')),
      array(array('row' =&gt; 'HtmlTag'), array('tag' =&gt; 'div')),
  );
  </code></pre>
  
  <p>//======================add action for country============================</p>
  
  <p>public function addAction()
      {</p>
  
  <pre><code>    $request = $this-&gt;getRequest();
  
      $form = new Zend_Form;
      $form-&gt;setAction('add')
          -&gt;setMethod('POST')
          -&gt;setAttrib('Name','addfrm')
          -&gt;setAttrib('Id','addfrm');
  
  
      $form-&gt;addElements(array( 
               new Zend_Form_Element_Text('cou_name',array(
                      'decorators' =&gt; $this-&gt;textimage,
  
                    'required'   =&gt; true,
                    'label'      =&gt; 'Country Name :',
                      'class'=&gt;'textpos',
                      'validator'=&gt;'Alpha',
                )),
                new Zend_Form_Element_Textarea('description',array(
                      'decorators' =&gt; $this-&gt;textimage,
                    'required'   =&gt; true,
                    'label'      =&gt; 'Country Description :',
                      'rows'=&gt;10,
                      'cols'=&gt;40,
                      'validator'=&gt;'NotEmpty',
                      'class'=&gt;'textpos',
                )),
              new Zend_Form_Element_Checkbox('block',array(
                  'decorators' =&gt; $this-&gt;elementDecorators,
                  'Label'=&gt;'Block :',
                  'Value'=&gt;'1',
  
                )),
                new Zend_Form_Element_Radio('block_r',array(
                  'decorators' =&gt; $this-&gt;elementDecorators,
                  'Label'=&gt;'Block :',
                  'multiOptions'=&gt;array(0=&gt;'Yes',1=&gt;'No'),
                  'Separator'=&gt;'',
                )),
                new Zend_Form_Element_Submit('add',array(
                  'decorators' =&gt; $this-&gt;addButton,
                  'Label'=&gt;'Add',
                )),
                new Zend_Form_Element_Button('back',array(
                  'decorators' =&gt; $this-&gt;buttonDecorators,
                  'Label'=&gt;'Back',
                  'onclick'=&gt;'window.location="list"',
                )),
                ));
  
  
  $form-&gt;setDecorators(array(
      'FormElements',
      array('HtmlTag', array('tag' =&gt; 'table','align'=&gt;'center','class'=&gt;'tbcss','width'=&gt;'84%')), 
      'Form',
  </code></pre>
  
  <p>));</p>
  
  <pre><code>    $this-&gt;view-&gt;assign('form',$form);
  </code></pre>
  
  <p>}
  }</p>
  
  <p>I am using IE6.</p>
  
  <p>the generated code is this:</p>
  
  <pre><code>&lt;div class="container"&gt;
       &lt;form enctype="application/x-www-form-urlencoded" action="add"
      method="post" Name="addfrm" Id="addfrm" name=""&gt;
        &lt;table align="center" class="tbcss" width="84%"&gt;
      &lt;tr valign="top" align="right"&gt;
          &lt;td id="cou_name-label"&gt;&lt;label for="cou_name" class="required"&gt;Country
          Name :&lt;/label&gt;&lt;/td&gt;
  
  
  &gt;     &lt;td align="left"&gt;&lt;img class="imgpos"&gt; &lt;input type="text"
  &gt;                   name="cou_name" id="cou_name" value="" class="textpos"
  &gt;                   validator="Alpha" /&gt;
  &gt;               &lt;td width="37%"&gt;&lt;/td&gt;
  &gt;               &lt;/img&gt;&lt;/td&gt;
  
      &lt;/tr&gt;
      &lt;tr valign="top" align="right"&gt;
          &lt;td id="description-label"&gt;&lt;label for="description"
              class="required"&gt;Country Description :&lt;/label&gt;&lt;/td&gt;
          &lt;td align="left"&gt;&lt;img class="imgpos"&gt; &lt;textarea
              name="description" id="description" rows="10" cols="40"
              validator="NotEmpty" class="textpos"&gt;&lt;/textarea&gt;
          &lt;td width="37%"&gt;&lt;/td&gt;
          &lt;/img&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr valign="top" align="right"&gt;
          &lt;td id="block-label"&gt;&lt;label for="block" class="optional"&gt;Block
          :&lt;/label&gt;&lt;/td&gt;
          &lt;td class="element" align="left" colspan="2"&gt;&lt;input type="hidden"
              name="block" value="0" /&gt;&lt;input type="checkbox" name="block"
              id="block" value="1" checked="checked" /&gt;
          &lt;td&gt;&lt;/td&gt;
          &lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr valign="top" align="right"&gt;
          &lt;td id="block_r-label"&gt;&lt;label class="optional"&gt;Block :&lt;/label&gt;&lt;/td&gt;
          &lt;td class="element" align="left" colspan="2"&gt;&lt;label
              for="block_r-0"&gt;&lt;input type="radio" name="block_r"
              id="block_r-0" value="0" /&gt;Yes&lt;/label&gt;&lt;label for="block_r-1"&gt;&lt;input
              type="radio" name="block_r" id="block_r-1" value="1" /&gt;No&lt;/label&gt;
          &lt;td&gt;&lt;/td&gt;
          &lt;/td&gt;
      &lt;/tr&gt;
      &lt;div&gt;
      &lt;td align="right"&gt;&lt;input type="submit" name="add" id="add"
          value="Add" /&gt;&lt;/td&gt;
      &lt;/div&gt;
      &lt;div&gt;
      &lt;td align="left"&gt;
      &lt;button name="back" id="back" type="button"
          onclick=
      window.location = "list";
  Back&lt;/button&gt;
      &lt;/td&gt;
      &lt;/div&gt;
  &lt;/table&gt;
  &lt;/form&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Can anyone help me plz.</p>