{include file="../head.tpl"}
<form method="post" name="f" onSubmit="return checkf();" action="user.php?action=moveto&subaction=movetofinal">
  <table width="100%"  border="0" cellpadding="4" cellspacing="1" class="tableborder">
    <tr>
      <th colspan="2" class="header"> {$langadmin.confirmthis}
      </th>
    </tr>
    <tr>
      <td colspan="2" class="secondrow">{$langadmin.confirmnoveto}
      </td>
    </tr>
    {foreach from=$user item=ung}
    <tr>
      <td width="5%" class="firstrow"><input name="usr_{$ung->uid}" type="checkbox" id="usr_{$ung->uid}" value="1" checked>
      </td>
      <td class="secondrow">{$ung->uname}
      </td>
    </tr>
    {/foreach}
    {if $smarty.request.mode == 7}
    <tr>
      <td width="5%" class="firstrow"><input name="usr_{$rowu->uid}" type="checkbox" id="usr_{$rowu->uid}" value="1" checked>
      </td>
      <td class="secondrow">{$rowu->uname}
      </td>
    </tr>
    {/if}
    <tr>
      <th colspan="2" class="firstrow"> <div align="center">
          {$langadmin.thenewgroupt}
        </div></th>
    </tr>
    <tr>
      <td colspan="2" class="secondrow"><div align="center">
          {literal}
          <script language="JavaScript" type="text/JavaScript">
	
	function checkf(){
		if(document.f.group.value == "" )
		{
			alert("{/literal}{$langadmin.henewgroupt}{literal}");
			document.f.group.focus();
			return false;
		}
	}
	
	</script>
          {/literal}
          <select name="group" id="group">
            <option value="">
            {$langadmin.selgroup}
            </option>
            {foreach from=$groups item=group}
            <option value="{$group->ugroup}" {if $group->ugroup == $row->ugroup}selected="selected"{/if}>
            {$group->groupname}
            </option>
            {/foreach}
          </select>
        </div></td>
    </tr>
    <tr>
      <td colspan="2" class="header"><div align="center">
          {if $smarty.request.typ == 1}
          <input name="typ" type="hidden" id="typ" value="1">
          {/if}
          {if isset($smarty.request.redir) && isset($smarty.request.smethod) }
          <input name="page" type="hidden" id="page" value="{$page}">
          <input name="redir" type="hidden" id="redir" value="{$smarty.request.redir}">
          <input name="smethod" type="hidden" id="smethod" value="1">
          <input name="ismore" type="hidden" id="ismore" value="1">
          {/if}
          <input name="delyes" type="submit" class="button" id="delyes" value="{$langadmin.send}">
          <input onClick="history.go(-1);" type="button" class="button" value="{$langadmin.back}">
        </div></td>
    </tr>
  </table>
</form>
{include file="../foot.tpl"}