[ Mini Kiebo ]
Server: Windows NT DESKTOP-5B8S0D4 6.2 build 9200 (Windows 8 Professional Edition) i586
Path:
D:
/
Backup
/
14082024
/
Data
/
htdocs
/
htdocs
/
ojs
/
248
/
templates
/
comment
/
[
Home
]
File: comment.tpl
{** * templates/comment/comment.tpl * * Copyright (c) 2013-2019 Simon Fraser University * Copyright (c) 2003-2019 John Willinsky * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING. * * Article reader comment editing * *} {strip} {assign var="pageTitle" value="comments.enterComment"} {include file="common/header.tpl"} {/strip} <script type="text/javascript"> <!-- {literal} function handleAnonymousCheckbox(theBox) { var submitForm = document.getElementById('submit'); if (theBox.checked) { submitForm.posterName.disabled = false; submitForm.posterEmail.disabled = false; submitForm.posterName.value = ""; submitForm.posterEmail.value = ""; submitForm.posterName.focus(); } else { submitForm.posterName.disabled = true; submitForm.posterEmail.disabled = true; {/literal}{if $isUserLoggedIn && ($enableComments == COMMENTS_ANONYMOUS || $enableComments == COMMENTS_UNAUTHENTICATED)} submitForm.posterName.value = "{$userName|escape}"; submitForm.posterEmail.value = "{$userEmail|escape}"; {/if}{literal} } } // --> {/literal} </script> {include file="common/formErrors.tpl"} {assign var=parentId value=$parentId|default:"0"} <div id="commentForm"> <form id="submit" action="{if $commentId}{url op="edit" path=$articleId|to_array:$galleyId:$commentId}{else}{url op="add" path=$articleId|to_array:$galleyId:$parentId:"save"}{/if}" method="post"> <table class="data" width="100%"> <tr valign="top"> <td class="label" width="20%"><label for="posterName">{translate key="comments.name"}</label></td> <td class="value" width="80%"><input type="text" class="textField" name="posterName" id="posterName" value="{$posterName|escape}" size="40" maxlength="90" /></td> </tr> <tr valign="top"> <td class="label"><label for="posterEmail">{translate key="comments.email"}</label></td> <td class="value"><input type="text" class="textField" name="posterEmail" id="posterEmail" value="{$posterEmail|escape}" size="40" maxlength="90" /></td> </tr> {if $isUserLoggedIn && ($enableComments == COMMENTS_ANONYMOUS || $enableComments == COMMENTS_UNAUTHENTICATED)} <tr valign="top"> <td class="label"> </td> <td class="value"> <input type="checkbox" name="anonymous" id="anonymous" onclick="handleAnonymousCheckbox(this)"> <label for="anonymous">{translate key="comments.postAnonymously"}</label> </td> </tr> {/if} <tr valign="top"> <td class="label"><label for="title">{translate key="comments.title"}</label></td> <td class="value"><input type="text" class="textField" name="title" id="title" value="{$title|escape}" size="60" maxlength="255" /></td> </tr> <tr valign="top"> <td width="20%" class="label"><label for="commentBody">{translate key="comments.body"}</label></td> <td width="80%" class="value"> <textarea class="textArea" name="body" id="commentBody" rows="5" cols="60">{$commentBody|escape}</textarea> </td> </tr> {if $captchaEnabled} <tr valign="top"> {if $reCaptchaEnabled} <td class="label" valign="top">{fieldLabel name="recaptcha_challenge_field" required="true" key="common.captchaField"}</td> <td class="value"> {$reCaptchaHtml} </td> {else} <td class="label" valign="top">{fieldLabel name="captcha" required="true" key="common.captchaField"}</td> <td class="value"> <img src="{url page="user" op="viewCaptcha" path=$captchaId}" alt="{translate key="common.captchaField.altText"}" /><br /> <span class="instruct">{translate key="common.captchaField.description"}</span><br /> <input name="captcha" id="captcha" value="" size="20" maxlength="32" class="textField" /> <input type="hidden" name="captchaId" value="{$captchaId|escape:"quoted"}" /> </td> {/if} </tr> {/if} </table> <p><input type="submit" value="{translate key="common.save"}" class="button defaultButton" /> <input type="button" value="{translate key="common.cancel"}" class="button" onclick="location.href='{url page="comment" op="view" path=$articleId|to_array:$galleyId:$parentId}';" /></p> </form> </div> {include file="common/footer.tpl"}