Location: PHPKode > projects > Stickleback > stickleback-1.10.0/stickleback/plugins/sbgui/guirender/sbgui_PulldownViewlet.render.php
<?php
$fullname = $viewlet->getName();
$keyvals = $viewlet->getKeyVals();
$id = $viewlet->getDomId();
?>
<span class="sb-pulldown">
    <label for="<?php print $id ?>"><?php print $viewlet->getLabel() ?></label>
    <select id="<?php print $id ?>" name="<?php print $fullname ?>">

    <?php foreach ( $keyvals  as $key=>$val ) {
        $selected = $viewlet->isSelected( $val )?" selected=\"selected\"":"";
    ?>
    <option value="<?php print $key ?>"<?php print $selected ?>><?php print $val ?></option>
    <?php } ?>
    </select>
</span>
Return current item: Stickleback