1 <?!("COND:MAY_CREATE_ROOM", 10)>
2 <?=("display_main_menu")>
4 <??("COND:MAY_CREATE_ROOM", 11)>
5 <?=("head")><?%("COND:LOGGEDIN", 1, 1, 1, "", ="paging")>
10 <div id="content" class="service">
12 <?=("box_begin_1")><?_("Create a new blog")><?=("box_begin_2")>
14 <form name="create_room_form" onsubmit="return false" action="entroom" >
15 <input type="hidden" name="nonce" id="Nonce" value="<?NONCE>">
16 <input type="hidden" name="er_view_blog" id="er_iew_blog" value="<?DEF:VAL(#"VIEW_BLOG")>">
17 <input type="hidden" name="er_blog_markup_html" id="er_blog_markup_html" value="<?DEF:VAL(#"VIEW_WIKI")>">
19 <div id="throbber" style="display: none;"><img src="static/throbber.gif" ></div>
20 <div id="wikitext" style="display: none;"><?_("This is the new edit room for your blog")></div>
21 <div id="wikipublish" style="display: none;"><?_("Once you've saved your edits, you can press 'publish' to make your writings visible in the blog.")></div>
22 <div id="wikilinktext" style="display: none;"><?_("click this link to start your first article")></div>
23 <div id="wikilinkmore" style="display: none;"><?_("Edit this page and copy plus edit the above to add more articles.")></div>
24 <div id="wikilinkembedmedia" style="display: none;"><?_("You may link previously uploaded images like this:")> (<?_("assuming its name is test.jpg")>)</div>
27 <table class="altern">
29 <tr class="odd"><td><?_("Name of the blog: ")></td><td><input type="text" id="er_name" NAME="er_name" MAXLENGTH="127"><div id="er_name_fixed" style="display: none;"></div></td></tr>
31 <tr class="even"><td><?_("Resides on floor: ")></td><td>
34 <select name="er_floor" id="er_floor" size="1"><?ITERATE("LFLR", ="room_select_targetfloor")></select>
35 <div id="er_floor_fixed" style="display: none;">xxx</div></td></tr>
38 <table class="altern">
39 <tr class="odd"><td><?_("Default editor for blog: ")></td>
41 <?_("Articles will be published from wiki articles to the blog. Choose your prefered source wiki format:")>
42 <select name="er_view" id="er_view" size="1">
43 <?!("COND:ALLOWED_DEFAULT_VIEW", 1, #"VIEW_WIKI")><option value="<?DEF:VAL(#"VIEW_WIKI")>" <?%("COND:THISROOM:CURR_VIEW", 2, #"VIEW_WIKI", 0, "selected", "")>><?ROOM:VIEW_STRING(#"VIEW_WIKI", "X")></option><??("X", 1)>
46 <div id="er_view_fixed" style="display: none;">xxx</div></td></tr>
47 <tr class="even"><td><?_("Type of edit room:")></td>
49 <ul class="adminlist">
51 <li id="li_adminlist_passworded"><input id="adminlist_passworded" type="radio" NAME="type" VALUE="passworded" checked="false">
52 <?_("Private - require password: ")>
53 <input id="er_password" type="text" NAME="er_password" MAXLENGTH="9">
56 <li id="li_adminlist_invonly"><input id="adminlist_invonly" type="radio" NAME="type" VALUE="invonly" checked="true">
57 <?_("Private - invitation only")>
63 <div id="create_buttons" class="buttons">
64 <input type="submit" onclick="create_blog()" value="<?_('Create new blog')>">
66 <input type="submit" name="cancel_button" value="<?_("Cancel")>">
71 <div id="edit_info" style="display: none;">
72 <?_("Enter the room info below.")> <?_("The text is formatted to the reader's browser. A newline is forced by preceding the next line by a blank.")>
73 <form method="post" action="editinfo">
74 <input type="hidden" name="nonce" value="<?NONCE()>">
75 <input type="hidden" name="template" value="room_info_status_json">
76 <textarea name="msgtext" wrap=soft rows=10 cols=80 width=80><?THISROOM:INFOTEXT("X")></textarea>
78 <div class="buttons" >
79 <input type="submit" name="save_button" value="<?_('Save changes')>">
81 <input type="submit" name="cancel_button" value="<?_('Cancel')>"><br>
88 <?SERV:MESG("roomaccess")>