8 <a class="function" href="#${show}" onclick='javascript:hide_screen("${hide}");show_screen("${show}");'>${text}</a>
14 <div id="introedit" style="display: none;">
15 <form action="/?action=introedit&i=intro" method="post" accept-charset="UTF-8">
16 <textarea name="text" rows="10">$([ -r "Home/intro" ] && cat Home/intro)</textarea><br>
18 $(switchbutton introedit introtext Cancel)
27 <a id="new" class='function' href='#add' onclick='javascript:hide_screen("new");show_screen("add");'>Add News</a>
28 <div id="add" style="display: none;">
29 <form action="/?action=introedit&i=news" method="post" accept-charset="UTF-8">
30 <textarea name="text" rows="10"></textarea><br>
32 $(switchbutton add new Cancel)
41 info="$(sed 's:Home/::;s:.news::' <<<"$each")"
44 <div id="edit_$info" style="display: none;">
45 <form action="/?action=introedit&i=$info" method="post" accept-charset="UTF-8">
46 <textarea name="text" rows="10">$([ -r "$each" ] && cat $each)</textarea><br>
48 $(switchbutton edit_$info news_$info Cancel)
55 for each in $(ls -r Home/<0000000000-9999999999>_<000-999>.news); do
56 info="$(sed 's:Home/::;s:.news::' <<<"$each")"
60 <div id="news_$info"><div class="wikitext">
61 $([ -r "$each" ] && _wiki "$each")
62 $($ACL_EDITNEWS && echo "<hr/>$(switchbutton news_$info edit_$info Edit)")
64 $($ACL_EDITNEWS && edit_news $each)
72 <form method="GET" action="/${SCRIPTNAME}" accept-charset="utf-8">
73 <input type="hidden" name="p" value="Home">
74 <input type="text" name="s" placeholder="Search"><br>
75 <input type="submit" value="Search News">
83 <div id="introtext"><div class="wikitext">
84 $([ -r "Home/intro" ] && _wiki "Home/intro")
85 $($ACL_EDITINTRO && echo "<hr/> $(switchbutton introtext introedit Edit)")
87 $($ACL_EDITINTRO && edit_intro)
90 $($ACL_ADDNEWS && add_news)