Files
winix/html/fun_sort.html
Tomasz Sowa 0c6ddc2218 added: 'subject' winix function is using WINIX_FILE_CHANGED message now (when changing a file's subject)
added: 'postredirect' global parameter (it can be a param or post value)
       you can use this parameter in a html POST form
       after processing the POST request winix will make a redirect to the value



git-svn-id: svn://ttmath.org/publicrep/winix/trunk@881 e52654a7-88a9-db11-a3e9-0013d4bc506e
2012-09-04 20:24:42 +00:00

45 lines
1.1 KiB
HTML
Executable File

<h1>{sort_header}</h1>
<p>{sort_info1}</p>
[if item_is]
<form id="additem" action="[doc_base_url][dir][item_url]/sort" method="post">
<div>
<p class="withnext">{sort_current_sortindex}:</p>
<input class="editshort" type="text" name="sortindex" value="[item_sort]">
<input class="submit" type="submit" value="{change}">
[if winix_function_param_is "postredirect"]
<input type="hidden" name="postredirect" value="[winix_function_param_value "postredirect"]">
[end]
</div>
</form>
[else]
[if item_tab]
<form id="additem" action="[doc_base_url][dir]sort" method="post">
<div>
<ul id="sortable">
[for item_tab]
<li id="li[item_tab_index]">
<input type="text" name="sort[item_tab_id]" value="[item_tab_sort]">
[if item_tab_has_thumb]<img src="[item_tab_link]/-/thumb" alt="[item_tab_subject]">[end]
[item_tab_url]
</li>
[end]
</ul>
[if winix_function_param_is "postredirect"]
<input type="hidden" name="postredirect" value="[winix_function_param_value "postredirect"]">
[end]
<input class="submit" type="submit" value="{change}">
</div>
</form>
[end]
[end]