htm 페이지에서 {BEGIN {END 구문을 사용하는 요령은 어디서 배울 수 있는지요?
본문
수고 많습니다.
PHP MySQL Open Source 프로그램을 하나 살펴보는 중인데, htm 파일 중에 보면 {BEGIN . . .} . . . {END . . . } 이런 구문이 여러군데 들어 있는 것을 볼 수 있습니다.
<div> . . .</div> 구문과 비슷한 방법으로 사용되는 것 같은데...
{BEGIN {END 구문을 사용하는 구체적인 방법이나 요령은 어디서 배울 수 있는지 좀 알려주시면 고맙겠습니다.
간단한 설명이라도 부탁드립니다.
아래에 일부분을 올려드립니다.
파일명 : sell_transaction_list.htm
<!doctype html>
<html {$html_attrs}>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<title>{$pagetitle}</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link REL="stylesheet" href="styles/default.css" type="text/css">
{BEGIN rtlCSS}
<link REL="stylesheet" href="styles/defaultRTL.css" type="text/css">
{END rtlCSS}
{BEGIN styleCSSFiles}
<link REL="stylesheet" href="{$stylepath}" type="text/css">
{END styleCSSFiles}
{BEGIN pageCSSFiles}
<link REL="stylesheet" href="{$pagestylepath}" type="text/css">
{END pageCSSFiles}
</head>
<body class="{$stylename} function-list" {$bodyattrs}>
{BEGIN body}
{$header}
<div class="rnr-page">
<div class="rnr-top {$blockclass_top}">
{BEGIN container_toplinks}
<div class="rnr-c rnr-ch rnr-c-toplinks">
{BEGIN security_block}
<div class="style1 rnr-bl rnr-b-loggedas {$brickclass_loggedas}"><div id="login_block{$id}">
{BEGIN loggedas_message}
<span>{mlang_message LOGGED_AS} <b>{$username}</b> </span>
{END loggedas_message}
{BEGIN guestloginbutton}
<span>
<a href="#" class="rnr-button" {$guestloginlink_attrs}>{mlang_message LOGIN}</a>
</span>
{END guestloginbutton}
{BEGIN logoutbutton}
<a href="#" class="rnr-button" {$logoutlink_attrs}>{mlang_message LOG_OUT}</a>
{END logoutbutton}
</div></div>
{END security_block}
{BEGIN languages_block}
<div class="style1 rnr-bl rnr-b-languages {$brickclass_languages}"><span>
<b>{BEGIN lang_label}{mlang_message LANGUAGE}:{END lang_label}</b>
<select {$langselector_attrs}>
<option value="English" {$English_langattrs}>English</option>
<option value="German" {$German_langattrs}>Deutsch</option>
<option value="Greek" {$Greek_langattrs}>Ελληνικά</option>
</select>
</span>
</div>
{END languages_block}
<div class="rnr-hfiller"></div>
{BEGIN print_friendly}
<div class="style1 rnr-br rnr-b-printpanel {$brickclass_printpanel}"><div class="rnr-printpanelblock" id="printpanelblock{$id}">
<div class="rnr-printtab">
<a data-icon="printdown" class="rnr-printicon" id="print_friendly_togger{$id}" title="{mlang_message WR_PRINT_FRIENDLY}"></a>
</div>
<div class="rnr-printpanel" >
<table class="rnr-printscope" id="print_friendly_scope{$id}">
<tr>
<td class="rnr-printScopeCell">{mlang_message PPANEL_SCOPE}</td>
{BEGIN print_friendly_all}
<td class="rnr-printScopeCell"><input type="radio" id="printAll{$id}" data-href="sell_transaction_print.php?all=1&{$crosstable_attrs}" name="printScope"> <label for="printAll{$id}">{mlang_message PPANEL_ALL_PAGES}</label></td>
{END print_friendly_all}
</tr>
<tr>
<td></td>
<td class="rnr-printScopeCell"><input type="radio" id="printPage{$id}" data-href="sell_transaction_print.php?{$crosstable_attrs}" name="printScope" checked> <label for="printPage{$id}">{mlang_message PPANEL_THIS_PAGE}</label></td>
</tr>
<tr>
<td></td>
<td class="rnr-printScopeCell"><input type="radio" id="printSelection{$id}" name="printScope" disabled="disabled"> <label for="printSelection{$id}" style="color: gray;">{mlang_message PPANEL_SELECTED}</label></td>
</tr>
</table>
<div class="rnr-printdetails">
<label for="printPerPage{$id}">
{mlang_message RECORDS_PP}:
</label> <input type=number id="printPerPage{$id}" value="{$print_recspp}" class="rnr-printrecspp">
</div>
<div class="rnr-printbutton">
<a href=# class="rnr-button button" id="print_friendly_button{$id}" >{mlang_message PPANEL_PRINT}</a>
</div>
</div>
</div>
</div>
{END print_friendly}
</div>
{END container_toplinks}
</div>
답변 1
일반적인 HTML이 아니라
템플릿입니다.
특이한 형태라서 검색을 해보니
https://xlinesoft.com/phprunner/docs/smarty_templates.htm
이것이 가장 유사해보입니다.
답변을 작성하시기 전에 로그인 해주세요.