{include file="1549864.tpl"}

{if $user_id eq false}
<center>{include file="1549885.tpl"}</center>

{else}

<form action='/id/{$node.node_id}/' method='post'>

      <input type='text' name='k_wallet' value='{$k_wallet}'>
      <input type='submit' name='event' value='k_wallet'>
      <br /><br />
      <input type='text' name='header_id' value='{$header_id}'>
      <input type='submit' name='event' value='set_header_template'>
      <br /><br />
      <input type='text' name='listing_amount' value='{$listing_amount}'>
      <input type='submit' name='event' value='set_listing_amount'>
      <br /><br />
      old password<input name='old_password' type='password'> 
      new password<input name='new_password1' type='password'>
      new password<input name='new_password2' type='password'>
      <input type='submit' name='event' value='set_password'>

    </form>
<br />
<br>


<table style='width: 100%; align:center;' id='configure'>
<tr>
  <td align='center'>
    
    {if $node.node_creator eq $user_id or $node.node_permission eq 'master'}
    <form method='post' enctype="multipart/form-data" action='/id/1538/'>
      <table align='center'>
        <tr>
          <td><input type='text' name='node_name' value='{$node.node_name}'></td>
          <td><input type='submit' name='event' value='configure_node_name'>
        </tr><tr>
          <td>
            <select 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>
          </td>
          <td><input type='submit' name='event' value='configure_system_access'></td>
        </tr><tr>
          <td><input name='node_external_access' type='checkbox' value='yes' {if $node.node_external_access eq 'yes'}checked{/if}></td>
          <td><input type='submit' name='event' value='configure_external_access'></td>
        </tr>
        {if $node.node_creator eq $user_id}
        <tr>
          <td><input type='file' name='description_image'></td>
          <td><input type='submit' name='event' value='configure_image'></td>
        </tr>
        {/if}
        <tr>
          <td><input type='text' name='template_id' value='{$node.template_id}' title='[submission: 4 | forum: 3 | nodeshell: 2 | article: 5 | data: 12 | user: 7]'></td>
          <td><input type='submit' name='event' value='configure_template_id'></td>
        </tr>
      </table>
      <table>
        <tr>
          <td>apply on vector ??? <input type='checkbox' name='apply_on_vector'> </td>
        </tr>
      </table>
    </form>

    <form action='/id/{$node.node_id}/' method='post'>
      <table>
        <tr>
          <td colspan='2'>vector: {$node.node_vector} </td>
        </tr><tr>
          <td><input type='text' name='new_parent' value='{$node.node_parent}'></td>
          <td><input type='submit' name='event' value='set_parent'></td>
        </tr>
        {if $node.node_creator eq $user_id}
        <tr>
          <td><input type='text' name='external_link' value='{$node.external_link}'></td>
          <td><input type='submit' name='event' value='set_external_link'></td>
        </tr>
        {/if}
      </table>
    </form>
    
    {if $node.node_creator eq $user_id}
    <form action='/id/{$node.node_id}/' method='post'>
      <input type='text' name='owner' value='{$node.owner}'><input type='submit' name='event' value='set_creator'>
    </form>
    {/if}
    
    <form method='post' enctype="multipart/form-data" action='/id/{$node.node_id}/'>
    {if $node.node_system_access eq 'crypto'}crypto password: {$crypto_pass}{/if}   
      <input type='file' name='data_file'>&nbsp;&nbsp;<input type='submit' name='event' value='upload_data_file'><br>
      <input type='checkbox' name='unzip'>unzip?
      <input type='checkbox' name='gallery'>gallery<Br><br>
    </form>

    
    {if $user_id eq $node.node_id}
    <form action='/id/{$node.node_id}/' method='post'>
      <table align='center'>
        <tr>
          <td><input type='text' name='k_wallet' value='{$k_wallet}'></td>
          <td><input type='submit' name='event' value='k_wallet'></td>
        </tr><tr>
          <td><input type='text' name='header_id' value='{$header_id}'></td>
          <td><input type='submit' name='event' value='set_header_template'></td>
        </tr><tr>
          <td><input type='text' name='listing_amount' value='{$listing_amount}'></td>
          <td><input type='submit' name='event' value='set_listing_amount'></td>
        </tr><tr>
          <td>
            <select 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>
          </td>
          <td><input type='submit' name='event' value='set_listing_order'></td>
        </tr>
      </table>
      <br />
      <table class='bordered'>
        <tr><td>old password</td><td><input name='old_password' type='password'></td></tr>
        <tr><td>new password</td><td><input name='new_password1' type='password'></td></tr>
        <tr><td>new password (again)</td><td><input name='new_password2' type='password'></td></tr>
        <tr><td colspan='2' align='center'><input type='submit' name='event' value='set_password'></td></tr>
      </table>
    </form> <br />
    
    {get_user_email_icq_www user_id=$node.node_id}
    {get_moods user_id=$user_id}
    <form action='/id/1538/' method='post'>
      <table>
        <tr>
          <td><input type='text' name='user_email' value='{$get_user_email}' /></td>
          <td><input type='submit' name='event' value='configure_email' /></td>
        </tr>
        <br>
        <tr>
          <td><textarea class='small' name='moodlist'>{$get_moods_string}</textarea></td>
          <td><input type='submit' name='event' value='moodlist' /></td>
        </tr>
        <tr>
          <td><select 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></td>
          <td><input type='submit' name='event' value='set_mood' /></td>
        </tr>
      </table>
    </form>
    {/if} 
  {/if}
    
    <form method='post'>
      template_id: <input type='text' value='{$node.node_id}' name='add_template_id'> <br>
      <input type='submit' name='event' value='addTemplate'>
    </form>
    
    {if $node.node_creator eq $user_id or $node.node_permission eq 'master' or $node.node_permission eq 'op'}
    <form method='post' enctype="multipart/form-data" action='/id/{$node.node_id}/'>
      <textarea class=node_content name='node_content'>{$node.node_content|escape:"html"}</textarea><br>
      <center>
      <input type='submit' name='event' value='configure_content'> &nbsp;&nbsp;<input type='checkbox' name='no_html' value='yes'>&nbsp;NO HTML &nbsp;&nbsp;
      <input type='checkbox' name='code' value='yes'>&nbsp;code &nbsp;&nbsp;
      <input type='checkbox' name='wiki' value='yes'>&nbsp;wiki
      </center>
    </form><br /><br />
    <form method='post' action='/id/{$node.node_id}'>
    {get_node_commanders}{*masterlist*}{include file="1549911.tpl"}
    </form>
    {/if}
  </td>
</tr>
</table>



<center>&copy; kyberia.sk v2 - ergond's crypt<br>
prevadzkovatel stranky ruci za nic
</center>

{include file="1549925.tpl"}
{/if}














