Skip to content

Instantly share code, notes, and snippets.

@LI-NA
Last active August 29, 2015 14:06
Show Gist options
  • Save LI-NA/63b8d7b0337843b00eb2 to your computer and use it in GitHub Desktop.
Save LI-NA/63b8d7b0337843b00eb2 to your computer and use it in GitHub Desktop.
카테고리 변경 애드온 스킨 적용 코드
<form action="./" method="post" id="quickChangeCategory">
<input type="hidden" name="act" value="procBoardInsertDocument" />
<input type="hidden" name="subAct" value="updateCategory" />
<input type="hidden" name="document_srl" value="{$oDocument->document_srl}">
<select cond="$mi->use_category=='Y' && $category_list" name="category_srl" class="category" onChange="document.getElementById('quickChangeCategory').submit()"|cond="$logged_info->is_admin=='Y'" disabled="disabled"|cond="$logged_info->is_admin!='Y'">
<option loop="$category_list => $val" disabled="disabled"|cond="!$val->grant" value="{$val->category_srl}" selected="selected"|cond="$val->grant&&$val->selected||$val->category_srl==$oDocument->get('category_srl')">
{str_repeat("&nbsp;&nbsp;",$val->depth)} {$val->title}
</option>
</select>
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment