* 수정 전
<span class="item">
<label for="tags" class="iLabel">{$lang->tag}: {$lang->about_tag}</label>
<input type="text" name="tags" id="tags" value="{htmlspecialchars($oDocument->get('tags'))}" class="iText" style="width:300px" title="Tag" />
</span>
* 수정 후
{@ $key_w = array(키워드1,키워드2.....)}
{@ $count_k = count($key_w) -1 }
{@ $select_k = rand(0,$count_k)}
<span class="item">
<label for="tags" class="iLabel">{$lang->tag}: {$lang->about_tag}</label>
<input type="text" name="tags" id="tags" value="<!--@if(htmlspecialchars($oDocument->get('tags')))-->{htmlspecialchars($oDocument->get('tags'))}
<!--@else-->
{$key_w[$select_k]}
<!--@end-->" class="iText" style="width:300px" title="Tag" />
</span>
vnote
UPDATE xe_documents SET tags = NULL;
문서에서 tags 삭제
이 댓글을