<?php
/* if (file_exists("includes/toolcheck.php")) {
  require("includes/toolcheck.php");
  } else {
  require("../includes/toolcheck.php");
  } */
$conn = @mysql_connect($dbhost, $dbuser, $dbpass) or sqlerror();
mysql_select_db($dbname, $conn);
$result = mysql_query('SELECT * FROM cmum_profiles');
//var_dump(mysql_fetch_assoc($result));
?>
<table width="980" height="20" border="0" align="center" valign="top" cellpadding="0" cellspacing="0" style="border-left: 0px solid #DDDDDD; border-right: 0px solid #DDDDDD; text-align: left;">
    <tr  style="border: solid 0px">
        <td width="15" height="20">&nbsp;</td>
        <td colspan="2">

            <fieldset>
                <legend>Perfis Cadastrado:</legend>
                <table border="0">
                    <thead>
                    <th>Nome Exibição:</th><th>&nbsp;</th><th>Valor no CSP</th>
                    </thead>

                    <?php while ($line = mysql_fetch_assoc($result)): ?>
                        <tr style="text-align: center"><td><?php echo $line['name'] . '</td><td>=></td><td>' . $line['value']; ?></td></tr>
                    <?php endwhile; ?>  
                </table>
            </fieldset>

        </td>
        <td width="15" height="20">&nbsp;</td>
    </tr>
    <tr >
        <td width="15" height="20"></td>
        <td height="20" colspan="4">
            <form name="importusersxml" method="post">
                <fieldset>
                    <legend>Importar Usuarios (CSP XML)</legend>
                    <table width="100%" valign="top">
                        <td width="70%" valign="top">
                            <textarea name="cspxmlusers" cols="58" rows="10" class="form-control" tabindex="1"></textarea><br /><br/>
                            <input type="submit" name="subimportxml" value="Importar" class="btn btn-default" id="submit" tabindex="2">
                        </td>
                        <!--<td width="30%" valign="top">
                            Importar usuários de outro PAINEL. Usando arquivo de configuração XML. Ex:
                            <pre><strong>&ltuser name="name"<br/> password="password"<br/> display-name="name"<br/> email-address="email"<br/> profiles="ceu" <sup style="font-size: 8pt"><span class="label label-danger"> *** [IMPORTANTE] valor do perfil do CSP.</span></sup><br/> max-connections="3"<br/> enabled="true"<br/> debug="0"<br/> start-date="2013-08-06"<br/> expire-date="2013-09-05 12:22:31"/&gt
<i>&ltuser <br/>'... informações de outro usuario ...'/&gt</i>
<br/></strong></pre></td>-->
                    </table>
                </fieldset>
            </form>
        </td>
        <!--<td width="15" height="20">&nbsp;</td>-->
    </tr>
</table>
