if ((int) $this->tmpl['display_email_form'] > 0) { echo '<tr>' . '<td><strong>' . JText::_('COM_PHOCAGUESTBOOK_EMAIL') . PhocaguestbookHelperFront::getRequiredSign((int) $this->tmpl['display_email_form']) . ' </strong></td>' . '<td colspan="3">' . '<input type="text" name="email" id="pgbemail" value="' . htmlspecialchars($this->formdata->email) . '" size="32" maxlength="100" class="pgbinput" />' . $this->tmpl['hidden_field_output'][3] . '</td>' . '</tr>'; } if ((int) $this->tmpl['display_website_form'] > 0) { echo '<tr>' . '<td><strong>' . JText::_('COM_PHOCAGUESTBOOK_WEBSITE') . PhocaguestbookHelperFront::getRequiredSign((int) $this->tmpl['display_website_form']) . ' </strong></td>' . '<td colspan="3">' . '<input type="text" name="website" id="pgbwebsite" value="' . htmlspecialchars($this->formdata->website) . '" size="32" maxlength="100" class="pgbinput" />' . $this->tmpl['hidden_field_output'][4] . '</td>' . '</tr>'; } if ((int) $this->tmpl['display_content_form'] > 0) { echo '<tr>' . '<td><strong>' . JText::_('COM_PHOCAGUESTBOOK_CONTENT') . PhocaguestbookHelperFront::getRequiredSign((int) $this->tmpl['display_content_form']) . ' </strong></td>' . '<td colspan="3">' . $this->tmpl['editor'] . $this->tmpl['hidden_field_output'][5] . '</td>' . '</tr>'; } if ((int) $this->tmpl['enable_captcha'] > 0 && $this->tmpl['captcha_id'] > 0) { // Server side checking CAPTCHA echo $this->tmpl['errmsg_captcha']; //-- Server side checking CAPTCHA // Set fix height because of pane slider $imageHeight = 'style="height:105px"'; echo '<tr>' . '<td width="5"><strong>' . JText::_('COM_PHOCAGUESTBOOK_IMG_VERIFICATION') . PhocaguestbookHelperFront::getRequiredSign(2) . ' </strong></td>'; if ((int) $this->tmpl['captcha_id'] == 4) { echo '<td colspan="2" align="center" valign="middle" ' . $imageHeight . '>'; echo PhocaGuestbookHelperReCaptcha::recaptcha_get_html($this->tmpl['recaptcha_publickey']); echo '</td>'; } else { echo '<td width="5" align="left" valign="middle" ' . $imageHeight . '>'; echo PhocaguestbookHelperFront::getCaptchaUrl($this->id); echo '</td>'; echo '<td width="5" align="left" valign="middle">' . '<input type="text" id="pgbcaptcha" name="captcha" size="6" maxlength="6" class="pgbinput" /></td>'; echo '<td align="center" width="50" valign="middle">'; //Remove because of IE6 - href="javascript:void(0)" onclick="javascript:reloadCaptcha();" echo '<a href="javascript:reloadCaptcha();" title="' . JText::_('COM_PHOCAGUESTBOOK_RELOAD_IMAGE') . '" >' . JHTML::_('image', 'components/com_phocaguestbook/assets/images/icon-reload.gif', JText::_('COM_PHOCAGUESTBOOK_RELOAD_IMAGE')) . '</a></td>'; } echo '</tr>'; }