Location: PHPKode > projects > Instant PHP/MySQL Guestbook > ipmgb/template/default/admin/_comment.tpl
<!-- $Include /admin/header.inc.tpl --><!-- 
$BeginBlock comment_main_brq -->
<script language="javascript" type="text/javascript">
<!--
function addEmoticon(myValue) {
  myValue = " " + myValue + " ";
  var myField = document.cmtform.comment_data;
  if (document.selection) {
    //IE support
    myField.focus();
    sel = document.selection.createRange();
    sel.text = myValue;
  } else if (myField.selectionStart || myField.selectionStart == '0') {
    //Mozilla/Firefox/Netscape 7+ support
    var startPos = myField.selectionStart;
    var endPos = myField.selectionEnd;
    myField.value = myField.value.substring(0, startPos)+ myValue + myField.value.substring(endPos, myField.value.length);
    myField.selectionEnd += myValue.length;
    myField.selectionStart = myField.selectionEnd;
  } else {
    myField.value += myValue;
  }
  myField.focus();
}

//-->
</script>
<form name="cmtform" action="comment.${php_extension}${cmtform_urlparams_rq}" method="POST">
<!-- $BeginBlock validation_error_log_brq -->
<!-- ${validation_error_log_rq} -->
<!-- $EndBlock validation_error_log_brq -->
<table width="100%" border="0" cellpadding="2" cellspacing="0"><!--
$BeginBlock review_b -->
  <tr>
    <td colspan="2">
    Message from your guest:<!-- 
$Include /admin/msg.inc.tpl -->
    </td>
  </tr><!--
$EndBlock review_b -->
  <tr><td></td>
    <td align="left"><!-- 
$BeginBlock error_mesg_b --><img class="admgb-icon" src="${gb_root_dir}/assets/attn16.png"><!-- 
$EndBlock error_mesg_b -->    
  Your Comment:
    </td>
  </tr>
  <tr>
    <td class="admgb-fixedwidthcol" align="right" valign="top">
     <table border="0" width="100%">
        <tr><td nowrap align="right"><!-- 
$BeginBlock emoticon1_b -->
          <a class="admgb" href="javascript:addEmoticon('${emoticon1_code_js}');"><img class="admgb-icon" src="${emoticon1_url}" alt="${emoticon1_code} ${emoticon1_desc}" title="${emoticon1_code} ${emoticon1_desc}"/></a><!-- 
$EndBlock emoticon1_b --><!-- 
$BeginBlock emoticon2_b -->
          <a class="admgb" href="javascript:addEmoticon('${emoticon2_code_js}');"><img class="admgb-icon" src="${emoticon2_url}" alt="${emoticon2_code} ${emoticon2_desc}" title="${emoticon2_code} ${emoticon2_desc}"/></a><!-- 
$EndBlock emoticon2_b --><!-- 
$BeginBlock emoticon3_b -->
          <a class="admgb" href="javascript:addEmoticon('${emoticon3_code_js}');"><img class="admgb-icon" src="${emoticon3_url}" alt="${emoticon3_code} ${emoticon3_desc}" title="${emoticon3_code} ${emoticon3_desc}"/></a><!-- 
$EndBlock emoticon3_b --><!-- 
$BeginBlock emoticon4_b -->
          <a class="admgb" href="javascript:addEmoticon('${emoticon4_code_js}');"><img class="admgb-icon" src="${emoticon4_url}" alt="${emoticon4_code} ${emoticon4_desc}" title="${emoticon4_code} ${emoticon4_desc}"/></a><!-- 
$EndBlock emoticon4_b --><!-- 
$BeginBlock emoticon5_b -->
          <a class="admgb" href="javascript:addEmoticon('${emoticon5_code_js}');"><img class="admgb-icon" src="${emoticon5_url}" alt="${emoticon5_code} ${emoticon5_desc}" title="${emoticon5_code} ${emoticon5_desc}"/></a><!-- 
$EndBlock emoticon5_b -->
        </td></tr>
        <tr><td nowrap align="right"><!-- 
$BeginBlock emoticon6_b -->
          <a class="admgb" href="javascript:addEmoticon('${emoticon6_code_js}');"><img class="admgb-icon" src="${emoticon6_url}" alt="${emoticon6_code} ${emoticon6_desc}" title="${emoticon6_code} ${emoticon6_desc}"/></a><!-- 
$EndBlock emoticon6_b --><!-- 
$BeginBlock emoticon7_b -->
          <a class="admgb" href="javascript:addEmoticon('${emoticon7_code_js}');"><img class="admgb-icon" src="${emoticon7_url}" alt="${emoticon7_code} ${emoticon7_desc}" title="${emoticon7_code} ${emoticon7_desc}"/></a><!-- 
$EndBlock emoticon7_b --><!-- 
$BeginBlock emoticon8_b -->
          <a class="admgb" href="javascript:addEmoticon('${emoticon8_code_js}');"><img class="admgb-icon" src="${emoticon8_url}" alt="${emoticon8_code} ${emoticon8_desc}" title="${emoticon8_code} ${emoticon8_desc}"/></a><!-- 
$EndBlock emoticon8_b --><!-- 
$BeginBlock emoticon9_b -->
          <a class="admgb" href="javascript:addEmoticon('${emoticon9_code_js}');"><img class="admgb-icon" src="${emoticon9_url}" alt="${emoticon9_code} ${emoticon9_desc}" title="${emoticon9_code} ${emoticon9_desc}"/></a><!-- 
$EndBlock emoticon9_b --><!-- 
$BeginBlock emoticon10_b -->
          <a class="admgb" href="javascript:addEmoticon('${emoticon10_code_js}');"><img class="admgb-icon" src="${emoticon10_url}" alt="${emoticon10_code} ${emoticon10_desc}" title="${emoticon10_code} ${emoticon10_desc}"/></a><!-- 
$EndBlock emoticon10_b -->
        </td></tr>
        <tr><td nowrap align="right"><!-- 
$BeginBlock emoticon11_b -->
          <a class="admgb" href="javascript:addEmoticon('${emoticon11_code_js}');"><img class="admgb-icon" src="${emoticon11_url}" alt="${emoticon11_code} ${emoticon11_desc}" title="${emoticon11_code} ${emoticon11_desc}"/></a><!-- 
$EndBlock emoticon11_b --><!-- 
$BeginBlock emoticon12_b -->
          <a class="admgb" href="javascript:addEmoticon('${emoticon12_code_js}');"><img class="admgb-icon" src="${emoticon12_url}" alt="${emoticon12_code} ${emoticon12_desc}" title="${emoticon12_code} ${emoticon12_desc}"/></a><!-- 
$EndBlock emoticon12_b --><!-- 
$BeginBlock emoticon13_b -->
          <a class="admgb" href="javascript:addEmoticon('${emoticon13_code_js}');"><img class="admgb-icon" src="${emoticon13_url}" alt="${emoticon13_code} ${emoticon13_desc}" title="${emoticon13_code} ${emoticon13_desc}"/></a><!-- 
$EndBlock emoticon13_b --><!-- 
$BeginBlock emoticon14_b -->
          <a class="admgb" href="javascript:addEmoticon('${emoticon14_code_js}');"><img class="admgb-icon" src="${emoticon14_url}" alt="${emoticon14_code} ${emoticon14_desc}" title="${emoticon14_code} ${emoticon14_desc}"/></a><!-- 
$EndBlock emoticon14_b --><!-- 
$BeginBlock emoticon15_b -->
          <a class="admgb" href="javascript:addEmoticon('${emoticon15_code_js}');"><img class="admgb-icon" src="${emoticon15_url}" alt="${emoticon15_code} ${emoticon15_desc}" title="${emoticon15_code} ${emoticon15_desc}"/></a><!-- 
$EndBlock emoticon15_b -->
        </td></tr>
        <tr><td nowrap align="right"><!-- 
$BeginBlock emoticon16_b -->
          <a class="admgb" href="javascript:addEmoticon('${emoticon16_code_js}');"><img class="admgb-icon" src="${emoticon16_url}" alt="${emoticon16_code} ${emoticon16_desc}" title="${emoticon16_code} ${emoticon16_desc}"/></a><!-- 
$EndBlock emoticon16_b --><!-- 
$BeginBlock emoticon17_b -->
          <a class="admgb" href="javascript:addEmoticon('${emoticon17_code_js}');"><img class="admgb-icon" src="${emoticon17_url}" alt="${emoticon17_code} ${emoticon17_desc}" title="${emoticon17_code} ${emoticon17_desc}"/></a><!-- 
$EndBlock emoticon17_b --><!-- 
$BeginBlock emoticon18_b -->
          <a class="admgb" href="javascript:addEmoticon('${emoticon18_code_js}');"><img class="admgb-icon" src="${emoticon18_url}" alt="${emoticon18_code} ${emoticon18_desc}" title="${emoticon18_code} ${emoticon18_desc}"/></a><!-- 
$EndBlock emoticon18_b --><!-- 
$BeginBlock emoticon19_b -->
          <a class="admgb" href="javascript:addEmoticon('${emoticon19_code_js}');"><img class="admgb-icon" src="${emoticon19_url}" alt="${emoticon19_code} ${emoticon19_desc}" title="${emoticon19_code} ${emoticon19_desc}"/></a><!-- 
$EndBlock emoticon19_b --><!-- 
$BeginBlock emoticon20_b -->
          <a class="admgb" href="javascript:addEmoticon('${emoticon20_code_js}');"><img class="admgb-icon" src="${emoticon20_url}" alt="${emoticon20_code} ${emoticon20_desc}" title="${emoticon20_code} ${emoticon20_desc}"/></a><!-- 
$EndBlock emoticon20_b -->
        </td></tr>
        <tr><td nowrap align="right"><!-- 
$BeginBlock emoticon21_b -->
          <a class="admgb" href="javascript:addEmoticon('${emoticon21_code_js}');"><img class="admgb-icon" src="${emoticon21_url}" alt="${emoticon21_code} ${emoticon21_desc}" title="${emoticon21_code} ${emoticon21_desc}"/></a><!-- 
$EndBlock emoticon21_b --><!-- 
$BeginBlock emoticon22_b -->
          <a class="admgb" href="javascript:addEmoticon('${emoticon22_code_js}');"><img class="admgb-icon" src="${emoticon22_url}" alt="${emoticon22_code} ${emoticon22_desc}" title="${emoticon22_code} ${emoticon22_desc}"/></a><!-- 
$EndBlock emoticon22_b --><!-- 
$BeginBlock emoticon23_b -->
          <a class="admgb" href="javascript:addEmoticon('${emoticon23_code_js}');"><img class="admgb-icon" src="${emoticon23_url}" alt="${emoticon23_code} ${emoticon23_desc}" title="${emoticon23_code} ${emoticon23_desc}"/></a><!-- 
$EndBlock emoticon23_b --><!-- 
$BeginBlock emoticon24_b -->
          <a class="admgb" href="javascript:addEmoticon('${emoticon24_code_js}');"><img class="admgb-icon" src="${emoticon24_url}" alt="${emoticon24_code} ${emoticon24_desc}" title="${emoticon24_code} ${emoticon24_desc}"/></a><!-- 
$EndBlock emoticon24_b --><!-- 
$BeginBlock emoticon25_b -->
          <a class="admgb" href="javascript:addEmoticon('${emoticon25_code_js}');"><img class="admgb-icon" src="${emoticon25_url}" alt="${emoticon25_code} ${emoticon25_desc}" title="${emoticon25_code} ${emoticon25_desc}"/></a><!-- 
$EndBlock emoticon25_b -->
        </td></tr>
        <tr><td nowrap align="right"><!-- 
$BeginBlock emoticon26_b -->
          <a class="admgb" href="javascript:addEmoticon('${emoticon26_code_js}');"><img class="admgb-icon" src="${emoticon26_url}" alt="${emoticon26_code} ${emoticon26_desc}" title="${emoticon26_code} ${emoticon26_desc}"/></a><!-- 
$EndBlock emoticon26_b --><!-- 
$BeginBlock emoticon27_b -->
          <a class="admgb" href="javascript:addEmoticon('${emoticon27_code_js}');"><img class="admgb-icon" src="${emoticon27_url}" alt="${emoticon27_code} ${emoticon27_desc}" title="${emoticon27_code} ${emoticon27_desc}"/></a><!-- 
$EndBlock emoticon27_b --><!-- 
$BeginBlock emoticon28_b -->
          <a class="admgb" href="javascript:addEmoticon('${emoticon28_code_js}');"><img class="admgb-icon" src="${emoticon28_url}" alt="${emoticon28_code} ${emoticon28_desc}" title="${emoticon28_code} ${emoticon28_desc}"/></a><!-- 
$EndBlock emoticon28_b --><!-- 
$BeginBlock emoticon29_b -->
          <a class="admgb" href="javascript:addEmoticon('${emoticon29_code_js}');"><img class="admgb-icon" src="${emoticon29_url}" alt="${emoticon29_code} ${emoticon29_desc}" title="${emoticon29_code} ${emoticon29_desc}"/></a><!-- 
$EndBlock emoticon29_b --><!-- 
$BeginBlock emoticon30_b -->
          <a class="admgb" href="javascript:addEmoticon('${emoticon30_code_js}');"><img class="admgb-icon" src="${emoticon30_url}" alt="${emoticon30_code} ${emoticon30_desc}" title="${emoticon30_code} ${emoticon30_desc}"/></a><!-- 
$EndBlock emoticon30_b -->
        </td></tr>
     </table>
     <img src="${gb_root_dir}/assets/t.gif" class="admgb-fixedwidthcol" height="1" border="0" alt="" title=""/>
     </td>
      <td align="left">
          <textarea class="admgb" wrap="virtual" cols="50" rows="12" name="comment_data">${comment_data}</textarea><!-- 
$BeginBlock error_mesg_b -->
          <br>
          <span class="admgb-error"><!-- 
$BeginBlock error_mesg_required_b -->Message is required.<!-- 
$EndBlock error_mesg_required_b --><!-- 
$BeginBlock error_mesg_too_short_b -->Message is too short. Message must be at least ${mesg_minlen} character long.<!-- 
$EndBlock error_mesg_too_short_b --><!-- 
$BeginBlock error_mesg_too_long_b -->Message is too long. Message must not exceed ${mesg_maxlen} character long.<!-- 
$EndBlock error_mesg_too_long_b --><!-- 
$BeginBlock error_mesg_word_too_long_b -->One or more words in your message are too long. A word must not exceed ${mesg_word_maxlen} character long.<!-- 
$EndBlock error_mesg_word_too_long_b --><!-- 
$BeginBlock error_mesg_line_too_long_b -->One or more lines between &lt;pre&gt; and &lt;/pre&gt; are too long.  A preformatted line must not exceed ${mesg_word_maxlen} character long.<!-- 
$EndBlock error_mesg_line_too_long_b --><!-- 
$BeginBlock error_mesg_too_many_lines_b -->There are too many lines in this message.  The number of lines must not exceed ${mesg_line_maxnum}.<!-- 
$EndBlock error_mesg_too_many_lines_b -->          
          </span>
          <br><!-- 
$EndBlock error_mesg_b -->
      </td>
    </tr><!-- 
$BeginBlock emoticon_enabled_b --><!--
$BeginBlock emoticon_as_text_b -->
    <tr>
      <td class="admgb-fixedwidthcol" align="right">&nbsp;</td>
      <td align="left">
      Note: Your guest has opted for displaying emoticons as text in this message; as a result,
      emoticons you use in your comment will be displayed as text as well.
      </td>
    </tr><!--
$EndBlock emoticon_as_text_b --><!-- 
$EndBlock emoticon_enabled_b --><!-- 
$BeginBlock html_tags_allowed -->
    <tr>
      <td class="admgb-fixedwidthcol" align="right">&nbsp;</td>
      <td align="left">
          <span class="admgb-info12">
          Allowable HTML Tags:<!-- 
$BeginBlock strong_tag_allowed -->
          &lt;strong&gt;&lt;/strong&gt;<!-- 
$EndBlock strong_tag_allowed --><!-- 
$BeginBlock b_tag_allowed -->
          &lt;b&gt;&lt;/b&gt;<!-- 
$EndBlock b_tag_allowed --><!-- 
$BeginBlock em_tag_allowed -->
          &lt;em&gt;&lt;/em&gt;<!-- 
$EndBlock em_tag_allowed --><!-- 
$BeginBlock i_tag_allowed -->
          &lt;i&gt;&lt;/i&gt;<!-- 
$EndBlock i_tag_allowed --><!-- 
$BeginBlock tt_tag_allowed -->
          &lt;tt&gt;&lt;/tt&gt;<!-- 
$EndBlock tt_tag_allowed --><!-- 
$BeginBlock big_tag_allowed -->
          &lt;big&gt;&lt;/big&gt;<!-- 
$EndBlock big_tag_allowed --><!-- 
$BeginBlock small_tag_allowed -->
          &lt;small&gt;&lt;/small&gt;<!-- 
$EndBlock small_tag_allowed --><!-- 
$BeginBlock sub_tag_allowed -->
          &lt;sub&gt;&lt;/sub&gt;<!-- 
$EndBlock sub_tag_allowed --><!-- 
$BeginBlock sup_tag_allowed -->
          &lt;sup&gt;&lt;/sup&gt;<!-- 
$EndBlock sup_tag_allowed --><!-- 
$BeginBlock pre_tag_allowed -->
          &lt;pre&gt;&lt;/pre&gt;<!-- 
$EndBlock pre_tag_allowed -->
          (To display an allowable tag as is, place '\' after '&lt;'; for example, &lt;\b&gt; or &lt;\/b&gt;.)
          </span>
      </td>
    </tr><!-- 
$EndBlock html_tags_allowed -->
  <tr>
      <td>&nbsp;</td>
      <td align="left">
        <input type="submit" name="comment_preview" value="Preview">
        <input type="submit" name="comment_submit" value="Add Comment">
      </td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td align="left">
      <a class="admgb" href="messages.${php_extension}${return_urlparams}">Return to Messages</a>
    </td>
  </tr><!--
$BeginBlock usr_preview_b -->
  <tr>
    <td colspan="2">
      Preview (as your guests will see):<!--
$Include /_msg.inc.tpl -->
      <input type="submit" name="resume_edit" value="Resume Editing">
    </td>
  </tr><!--
$EndBlock usr_preview_b -->
</table>
</form><!-- 
$EndBlock comment_main_brq --><!-- 

$BeginBlock id_error_brq -->
<img class="admgb-icon" src="${gb_root_dir}/assets/attn16.png">
An error has occurred.  The message cannot be loaded for commenting.
Please return to the previous page.<br><br>
<a class="admgb" href="messages.${php_extension}${return_urlparams}">Return to Messages</a><!-- 
$EndBlock id_error_brq --><!-- 
$Include /admin/footer.inc.tpl -->
Return current item: Instant PHP/MySQL Guestbook