added: new winix function: "sort"

sorting items in a directory (Item::sort_index is used)


git-svn-id: svn://ttmath.org/publicrep/winix/trunk@754 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2011-08-02 00:10:45 +00:00
parent 4d87359aca
commit 3b2a1c3f25
34 changed files with 703 additions and 272 deletions

33
html/fun_sort.html Executable file
View File

@@ -0,0 +1,33 @@
<h1>{sort_header}</h1>
[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}">
</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>
<input class="submit" type="submit" value="{change}">
</div>
</form>
[end]
[end]