{if $header_id neq true}
<html>
    <head>      
        <meta http-equiv="Default-Style" content="kyberia">
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <link rel='stylesheet' title="kyberia" type='text/css' href='/templates/2019722.tpl'>
        <title>{* title.tpl *}{include file="791948.tpl"}</title>
        <!-- AJAX CONNECTION -->
        <script language="JavaScript" type="text/javascript" src="/ajax/XHConn.js"></script>
        <!-- CHECK NEW MAIL -->
        <script language="JavaScript" type="text/javascript"
src="/js/check_new_mail.js"></script>
    </head>
    <body>
  {if $user_id eq true}{include file="1549959.tpl"}{/if}
  {if $error eq true}<center><span class='most_important'>{$error}</span></center>{/if}
  {if $new_mail eq true}<center><a href='/id/24/' class='mail'>u have {$new_mail} new
mail,last from {$new_mail_name}</a></center>{/if}


{/if}





{if $user_id eq false}<center><!-- preco je tu ten center, ak includujeme nieco? -->{* loginbox *}{include file="1549885.tpl"}</center><br /><br/>{/if}

{if $node.node_creator eq $user_id or $node.node_permission eq 'master'}

<h2 class="sloboconfigure">Node</h2>

{if $node.k < 23}
<span style="height:300px;width:74px;position:fixed;right:0;top:100px;z-index:-1;background-image: url('http://x86.sk/~slobo/conf/back.png');">&nbsp;</span>
{else}
<span style="height:300px;width:74px;position:fixed;right:0;top:100px;z-index:-1;background-image: url('http://x86.sk/~slobo/conf/backred.png');">&nbsp;</span>
{/if}



<br />
<form class="sloboconfigure" method='post' enctype="multipart/form-data" action='/id/{$node.node_id}/'>
  <label>Current image:</label>
  <img src='{get_image_link id=$node.node_id}' /><br />

  
  <label for='description_image'>Conf. image:</label>
  <input type='file' id='description_image' name='description_image' />
  <input type='submit' name='event' value='configure_image' /><br /><br />

  <label for='node_name'>Node name:</label>
  <input type='text' id='node_name' name='node_name' value='{$node.node_name}' />
  <input type='submit' name='event' value='configure_node_name'/ style='' />(?)<br />
 
  <label for='new_parent'>Parent:</label>
  <input type='text' id='new_parent' name='new_parent' value='{$node.node_parent}' />
  <input type='submit' name='event' value='set_parent' />(?)<br />
  
  <label for='owner'>Owner:</label>
  <input type='text' id='owner' name='owner' value='{$node.owner}' />
	<input type='submit' name='event' value='set_creator' disabled='disabled' /><br /><br />

  <label for='template_id'>Template id:</label>
  <input type='text' id='template_id' name='template_id' value='{$node.template_id}' title='[submission: 4 | forum: 3 | nodeshell: 2 | article: 5 | data: 12 | user: 7]' />
  <input type='submit' name='event' value='configure_template_id' />(?)<br />
  
</form>


{if $user_id eq $node.node_id}

<h2 class="sloboconfigure">User</h2>
<br />

<form class="sloboconfigure" method='post' enctype="multipart/form-data" action='/id/{$node.node_id}/'>

  <label for='k_wallet'>K wallet:</label>
  <input type='text' id='k_wallet' name='k_wallet' value='{$k_wallet}' />
  <input type='submit' name='event' value='k_wallet' /><br /><br />
  
{get_moods user_id=$user_id}  
  <label for='moodlist'>Moodlist:</label>
  <textarea class='small' id='moodlist' name='moodlist'>{$get_moods_string}</textarea>
  <input type='submit' name='event' value='moodlist' /><br /> 
  
  <label for='mood'>Set Mood:</label>
  <select id='mood' name='mood'>
   {foreach from=$get_moods item=mood}
		<option value='{$mood.node_id}' {if $get_moods_mood.node_id eq $mood.node_id}selected{/if}>{$mood.node_name}</option>
		{/foreach}
		<option value='' {if $get_moods_mood.node_id eq ''}selected{/if}>clear mood</option>
	</select>
  <input type='submit' name='event' value='set_mood' /><br /><br />
  
  <label for='header_id'>Header Template:</label>
  <input type='text' id='header_id' name='header_id' value='{$header_id}' />
	<input type='submit' name='event' value='set_header_template' /><br /><br />
	
	<label for='listing_amount'>Listing amount:</label>
	<input type='text' id='listing_amount' name='listing_amount' value='{$listing_amount}' />
  <input type='submit' name='event' value='set_listing_amount' /><br />
	
	<label for='listing_order'>Listing order:</label>
	<select id='listing_order' name='listing_order'>
    <option value='desc'  {if $smarty.session.listing_order eq 'desc'}selected{/if}>najnovsie hore</option>
    <option value='asc' {if $smarty.session.listing_order eq 'asc'}selected{/if}>najstarsie hore</option>
  </select>
  <input type='submit' name='event' value='set_listing_order' /><br /><br />
  
{get_user_email_icq_www user_id=$node.node_id}
  <label for='user_email'>User email:</label>
  <input type='text' id='user_email' name='user_email' value='{$get_user_email}'/>
  <input type='submit' name='event' value='configure_email' /><br /><br />

  <label for='mail_notify'>Notify mail by:</label>
  <select id='mail_notify' name="mail_notify">
    <option value="0" {if $mail_notify == 0}selected{/if}>none</option>
    <option value="1" {if $mail_notify == 1}selected{/if}>popup</option>
    <option value="2" {if $mail_notify == 2}selected{/if}>title</option>
	</select>
  <input type="submit" name="event" value="configure_mail_notify" /><br /><br />
</form>

  <h3 class="sloboconfigure">Change password</h3>

<form class="sloboconfigure" method='post' enctype="multipart/form-data" action='/id/{$node.node_id}/'>  
  <label for='old_password'>Old Password:</label>
  <input id='old_password' name='old_password' type='password' /><br />
  
  <label for='new_password1'>New Password:</label>
  <input id='new_password1' name='new_password1' type='password' /><br />
  
  <label for='new_password2'>Confirm New:</label>
  <input id='new_password2' name='new_password2' type='password' />
  <input type='submit' name='event' value='set_password' /><br />
</form>

{/if}




{literal}
<!-- HIDE CONTENT SCRIPT -->
<script type="text/javascript" language="JavaScript"><!--
function HideContent(d) {
document.getElementById(d).style.display = "none";
}
function ShowContent(d) {
document.getElementById(d).style.display = "block";
}
function ReverseDisplay(d) {
if(document.getElementById(d).style.display == "none") { document.getElementById(d).style.display = "block"; }
else { document.getElementById(d).style.display = "none"; }
}
//--></script>
<!-- -->
{/literal}



  <h2 class="sloboconfigure"><a href="javascript:ReverseDisplay('contentaccess')" style="">Access etc.</a></h2>
  <div id="contentaccess" style="display:block;"><br />


  
 <span class="sloboconfigure"> vector: {$node.node_vector}</span><br /><br />
<form class="sloboconfigure" method='post' enctype="multipart/form-data" action='/id/{$node.node_id}/'>
	

  <label for='apply_on_vector'>Apply on Vector:</label> 
  <input type='checkbox' id='apply_on_vector' name='apply_on_vector' /><br />
	
	<label for='nl2br'>Break New Line:</label> 
	<input type="checkbox" id='nl2br' name="nl2br" value="1" title="new line to break" {if $node.nl2br == 1} checked="checked" {/if} />
  <input type="submit" name="event" value="configure_nl2br" /><br />

<!-- 
{if $node.node_system_access eq 'crypto'}
crypto password:{$crypto_pass}
{/if}
-->

  <label for='data_file'>Attach File</label> 
  <input type='file' id='data_file' name='data_file' />
  <input type='submit' name='event' value='upload_data_file' /><br />

<!-- Pouziva sa toto system vobec? --><!--
  <label for='unzip'>Unzip</label>
  <input type='checkbox' id='unzip' name='unzip' /><br />

  <label for=''>Gallery</label>
  <input type='checkbox' id='gallery' name='gallery' /><br />
-->

{if $node.node_creator eq $user_id}
  <label for='external_link'>External Link:</label>
  <input type='text' id='external_link' name='external_link' value='{$node.external_link}' />
  <input type='submit' name='event' value='set_external_link' /><br />
{/if}
  
  <label for='node_external_access'>Ext. Access:</label>
  <input id='node_external_access' name='node_external_access' type='checkbox' value='yes' {if $node.node_external_access eq 'yes'} checked {/if} />
  <input type='submit' name='event' value='configure_external_access'/><br />

  <label for='node_system_access'>Int. Access: </label>
  <select id='node_system_access' name='node_system_access'>
    <option value='public' {if $node.node_system_access eq 'public'}selected{/if}>public</option>
		<option value='moderated' {if $node.node_system_access eq 'moderated'}selected{/if}>moderated</option>
		<option value='private' {if $node.node_system_access eq 'private'}selected{/if}>private</option>
    <!--option value='cube' {if $node.node_system_access eq 'cube'}selected{/if}>cube</option-->
    <!--option value='crypto' {if $node.node_system_access eq 'crypto'}selected{/if}>crypto</option-->
	</select>	
	<input type='submit' name='event' value='configure_system_access'/><br />
	
	<label for='add_template_id'>Add Template:</label>
	<input type='text' value='{$node.node_id}' id='add_template_id' name='add_template_id' />
	<input type='submit' name='event' value='addTemplate' /><br />

</form> 
</div>
<br /><br />
{/if}
				
{if $node.node_creator eq $user_id or $node.node_permission eq 'master' or $node.node_permission eq 'op'}

<h2 class="sloboconfigure"><a href="javascript:ReverseDisplay('commanders')" style="">Commanders</a></h2>
  <div id="commanders" style="display:block;"><br />
<form class="sloboconfigure" method='post' action='/id/{$node.node_id}'>

  <label for='masterlist'>Masters:</label> 
  <textarea class='small' id='masterlist' name='masterlist'>{$masters}</textarea>
  <input type='submit' name='event' value='masterlist'><br />

  <label for='oplist'>Ops:</label> 
  <textarea class='small' id='oplist' name='oplist'>{$ops}</textarea>
  <input type='submit' name='event' value='oplist'><br />

  <label for='execute'>Execute:</label> 
  <textarea class='small' id='execute' name='execute'>{$execute}</textarea>
  <input type='submit' name='event' value='executelist'><br />

{if $node.node_system_access neq 'public'}
  <label for='access'>Access:</label> 
  <textarea class='small' id='access' name='access'>{$access}</textarea>
  <input type='submit' name='event' value='accesslist'><br />
{/if}

  <label for='bans'>Ban:</label> 
  <textarea class='small' id='bans' name='bans'>{$bans}</textarea>
  <input type='submit' name='event' value='banlist'><br />

  <label for='silence'>Silence:</label> 
  <textarea class='small' id='silence' name='silence'>{$silence}</textarea>
  <input type='submit' name='event' value='silencelist'><br />
  
</form>
  </div>

{literal}
<!-- HIDE CONTENTACCEESS & COMMANDERS -->
<script type="text/javascript" language="JavaScript">
document.getElementById('contentaccess').style.display = "none";
document.getElementById('commanders').style.display = "none";
</script>
{/literal}

<br /><br />
<h2 class="sloboconfigure">Content</h2>
<br />

<form class="sloboconfigure" method='post' enctype="multipart/form-data" action='/id/{$node.node_id}/'>
	<label for='node_content'>Node Content:</label>

<textarea class='node_content' id='node_content' name='node_content'>{$node.node_content|escape:"html"}</textarea>

	<label></label>
	<label for='no_html'>No HTML:</label>
	<input type='checkbox' id='no_html' name='no_html' value='yes' />
	
	<label for='code'>Code:</label>
	<input type='checkbox' id='code' name='code' value='yes'><br />

	
<!--
	<label for='wiki'>Wiki:</label>
	<input type='checkbox' id='wiki' name='wiki' value='yes'><br />
-->
	<label></label>
	<input type='submit' name='event' value='configure_content'><br />
	
</form>


{literal}
<script type="text/javascript">
var editor = CodeMirror.fromTextArea("node_content", {
  stylesheet: "http://x86.sk/~slobo/codemirror/css/xmlcolors.css",
  path: "",
  parserfile: "http://x86.sk/~slobo/codemirror/js/parsexml.js",
  basefiles: ["http://x86.sk/~slobo/codemirror/js/util.js", "http://x86.sk/~slobo/codemirror/js/stringstream.js", "http://x86.sk/~slobo/codemirror/js/select.js", "http://x86.sk/~slobo/codemirror/js/undo.js", "http://x86.sk/~slobo/codemirror/js/editor.js", "http://x86.sk/~slobo/codemirror/js/tokenize.js"],
  height: "666px",
  width: "80%",
  disableSpellcheck: false,
});
</script>
{/literal}

{/if}


	   
	   <!-- in memorian ergond 23.7.2002 -->
		<center>
			&copy; kyberia.sk v2.3 - solon's revenge<br />
			prevadzkovatel stranky ruci za nic<br />
		</center>
   </body>
</html>