Skip to content

Instantly share code, notes, and snippets.

<div cond="$XE_VALIDATOR_MESSAGE && $XE_VALIDATOR_ID == 'modules/myboard/tpl/Insert'"
class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
<p>{$XE_VALIDATOR_MESSAGE}</p>
</div>
<form action="./" method="post">
<input type="hidden" name="module" value="myboard">
<input type="hidden" name="act" value="procMyboardAdminInsert">
<input type="hidden" name="xe_validator_id" value="modules/myboard/tpl/Insert">
<input type="hidden" name="module_srl" value="{$module_srl}">
<table>
<caption>total: {number_format($total_count)}</caption>
<tr>
<th>{$lang->no}</th>
<th>{$lang->browser_title}</th>
<th>{$lang->mid}</th>
<th>{$lang->date}</th>
</tr>
<tr loop="$list => $no, $module">
<td>{$no}</td>
<query id="getMyboardList" action="select">
<tables>
<table name="modules" />
</tables>
<columns>
<column name="*" />
</columns>
<conditions>
<condition operation="equal" column="module" default="myboard" />
</conditions>
<?php
class myBoardAdminView extends myBoard
{
public function init()
{
$moduleSrl = Context::get('module_srl');
// 모듈 정보
if ($moduleSrl)
<?xml version="1.0" encoding="utf-8"?>
<ruleset version="1.5.0">
<customrules />
<fields>
<field name="nick_name" required="true" />
<field name="title" default="Untitled" />
<field name="content" required="true" />
</fields>
</ruleset>
<rule name="less_than_10" type="expr" test="$$ &lt; 10" />
<rule name="2_to_9" type="expr" test="$$ &lt; 10 &amp;&amp; $$ &gt; 1" />
<rule name="fruit" type="enum" test="apple,orange,banana" />
<rule name="fruit" type="enum" test="apple@orange@banana" delim="@"/>
<field name="word" rule="number" modifier="not" />
<filed name="password" required="true" />
<filed name="password2" required="true" equalto="password" />
<field name="count" default="10" />