if ($dmpcfg['allow_resellers'] == 'No') {
            echo "selected=\"selected\"";
        }
        ?>
>No</option>
            </select>
            </label>
            To allow users to use this, you need to install and enable the mod_dmpuser in the modules menu.
            <br />
            <br />
            User types that are allowed to be resellers:          
            <br />
            <br />
<select name="reseller_usertypes[]" size="5" multiple>
<?php 
        $usertypes = $dm->getUserTypes();
        $selected_usertypes = explode(',', $dmpcfg['reseller_usertypes']);
        foreach ($usertypes as $tmp) {
            ?>
      
	<option value="<?php 
            echo $tmp['name'];
            ?>
" <?php 
            if (in_array($tmp['name'], $selected_usertypes)) {
                echo " selected=\"selected\"";
            }
            ?>
><?php 
            echo $tmp['name'];
            ?>