9 <div id="introtext"><div class="wikitext">
10 $([ -r "Home/intro" ] && _wiki "Home/intro")
11 $($ADM && echo "<hr><a class='function' href='#' onclick='javascript:hide_screen(\"introtext\");show_screen(\"introedit\");'>Edit</a>" )
15 <div id="introedit" style="display: none;">
16 <form action="/write/introedit.cgi?i=intro" method="post" accept-charset="UTF-8">
17 <textarea name="text" rows="10">$([ -r "Home/intro" ] && cat Home/intro)</textarea><br>
19 <a class="function" href="#" onclick="javascript:hide_screen('introedit');show_screen('introtext');">Cancel</a>
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="/write/introedit.cgi?i=news" method="post" accept-charset="UTF-8">
30 <textarea name="text" rows="10">$([ -r "$each" ] && cat $each)</textarea><br>
32 <a class="function" href="#new" onclick="javascript:hide_screen('add');show_screen('new');">Cancel</a>
38 stat -c '' Home/<0000000000-9999999999>_<000-999>.news && for each in $(ls -c Home/<0000000000-9999999999>_<000-999>.news); do
39 info="$(sed 's:Home/::;s:.news::' <<<"$each")"
42 <div id="news_$info"><div class="wikitext">
43 $([ -r "$each" ] && _wiki "$each")
44 $($ADM && echo "<hr><a class='function' href='#edit_$info' onclick='javascript:hide_screen(\"news_$info\");show_screen(\"edit_$info\");'>Edit</a>" )
48 <div id="edit_$info" style="display: none;">
49 <form action="/write/introedit.cgi?i=$info" method="post" accept-charset="UTF-8">
50 <textarea name="text" rows="10">$([ -r "$each" ] && cat $each)</textarea><br>
52 <a class="function" href="#news_$info" onclick="javascript:hide_screen('edit_$info');show_screen('news_$info');">Cancel</a>