Download XE Skin Creation User Manual

Transcript
4. Creating Board Skins
<input type="hidden" name="comment_srl" value="{$oComment->get('comment_srl')}" />
<input type="hidden" name="parent_srl" value="{$oComment->get('parent_srl')}" />
<textarea name="content" rows="5" cols="50">{htmlspecialchars($oComment>get('content'))}</textarea>
<div class="write_author" cond="!$is_logged">
<label for="userName">{$lang->writer}</label>
<input type="text" name="nick_name" id="userName" class="iText userName"
value="{htmlspecialchars($oComment->get('nick_name'))}" />
<label for="userPw">{$lang->password}</label>
<input type="password" name="password" id="userPw" class="iText userPw" />
<label for="homePage">{$lang->homepage}</label>
<input type="text" name="homepage" id="homePage" class="iText homePage"
value="{htmlspecialchars($oComment->get('homepage'))}" />
</div>
<div class="btnArea">
<input type="submit" value="{$lang->cmd_comment_registration}" class="btn" />
</div>
</form>
<!-- /WRITE COMMENT -->
<include target="_footer.html" />
The XE template syntax and the variables used in the code above are listed in the table below.
XE Template Syntax / Variable
Description
<include target="_header.html" />
Includes _header.html.
<include target="_footer.html" />
Includes _footer.html.
cond="$oSourceComment->isExists()"
Displays the original comment if one exists.
cond="$oSourceComment->homepage"
Displays the included contents, if the
homepage address exists.
cond="!$oSourceComment->homepage"
Displays the included contents, if the
homepage address does not exist.
{$oSourceComment->homepage}
Homepage address
{$oSourceComment->getNickName()}
Name of the poster who created the original
comment
{$oSourceComment->getRegdate('Y.m.d H:i')}
The posted-time of the original comment
{$oSourceComment->getContent(false)}
Displays the comment body.
onsubmit="return procFilter(this, insert_comment)"
Check data that a user entered, and
transmit the form
<input type="hidden" name="mid" value="{$mid}" /> Element to send board module IDs (hidden
type)
106
<input type="hidden" name="document_srl"
value="{$oComment->get('document_srl')}" />
Element to send a unique number of the
board (hidden type)
<input type="hidden" name="comment_srl"
value="{$oComment->get('comment_srl')}" />
Element to send a unique number of the
comment (hidden type)
<input type="hidden" name="parent_srl"
value="{$oComment->get('parent_srl')}" />
Element to send a unique number of the
original comment (hidden type)
<textarea name="content" rows="5"
cols="50">{htmlspecialchars($oComment>get('content'))}</textarea>
Comment input box or edit window. The
variable included inside of textarea displays
the original post when modifying the
comment.
cond="!$is_logged"
Displays the included contents if you are not
logged in.
{$lang->writer}
'Author' language variable