コード例 #1
0
echo $nomegrupo;
?>
">
<table class="tabLista">
    <tr>
        <td colspan="2">
            <table border="0" width="100%">
                <tr>
                    <td valign="top" align="center">
                        Usuários<br>
                        <select name="usuarios" id="usuarios" title="Dê um duplo clique para selecionar todos" ondblclick="selecionatudo(this.id);" multiple="multiple" style="height: 300px; width: 300px; font-size:10">
                        <?php 
$sql = "select login from sis_usuario u where status = 'A' order by login";
$rs = execQuery($sql);
while ($row = mysql_fetch_array($rs)) {
    if (!estaSelecionado($row['login'])) {
        ?>
<option value="<?php 
        echo $row['login'];
        ?>
" ><?php 
        echo $row['login'];
        ?>
</option><?php 
    }
}
?>
                        </select>		
                    </td>
                    <td valign="middle" align="center">
                        <center>
コード例 #2
0
                        </select>		
                    </td>
                    <td valign="middle" align="center">
                        <center>
                        <input type="button" value=">>" title="Selecionar" onclick="adicionaItem(document.getElementById('gruposdisponiveis'),document.getElementById('gruposselecionados'));"><br><br>
                        <input type="button" value="<<" title="Retirar" onclick="adicionaItem(document.getElementById('gruposselecionados'),document.getElementById('gruposdisponiveis'));">
                        </center>
                    </td>
                    <td valign="top" align="center">
                        Perfis do Usuário<br>
                        <select name="gruposselecionados[]" id="gruposselecionados" title="Dê um duplo clique para selecionar todos" ondblclick="selecionatudo(this.id);" multiple="multiple" style="height: 300px; width: 300px; font-size:10">
                        <?php 
$sql = "select nome, descricao from sis_grupo g order by nome";
$rs = execQuery($sql);
while ($row = mysql_fetch_array($rs)) {
    if (estaSelecionado($row['nome'])) {
        ?>
<option value="<?php 
        echo $row['nome'];
        ?>
" title="<?php 
        echo $row['descricao'];
        ?>
"><?php 
        echo $row['nome'];
        ?>
</option><?php 
    }
}
?>
                        </select>