示例#1
0
                <label for="inputName" class="col-sm-4 control-label">Username: </label>
                <div class="col-sm-3">
                    <input type="text" class="form-control" id="username" name="username" placeholder="try 'scm4'" required>
                </div>
            </div>
            <div class="form-group">
                <label for="inputPassword" class="col-sm-4 control-label">Password:</label>
                <div class="col-sm-3">
                    <input type="password" class="form-control" id="inputPassword" name="password" placeholder="try 'scm4'" required>
                </div>
            </div>
            <div class = "form-group">
                <label for="channel" class="col-sm-4 control-label">Channel:</label>
                <div class = "col-sm-3">
                        <?php 
$channels = DataManager::getChannels();
foreach ($channels as $channel) {
    ?>
                                <div class="checkbox">
                                    <label><input type="checkbox" name="channels[]" value="<?php 
    echo $channel->getName();
    ?>
"><?php 
    echo $channel->getName();
    ?>
</label>
                                </div>
                            <?php 
}
?>
                </div>
示例#2
0
                    </div>
                    <div class="form-group">
                        <div class="row">
                            <label for="<?php 
echo Controller::USR_CHANNELS;
?>
" class="col-lg-3 control-label">Channels:</label>

                            <div class="col-lg-8">
                                <select required class="form-control" id="example-getting-started" multiple="multiple"
                                        name="<?php 
echo Controller::USR_CHANNELS;
?>
[]">
                                    <?php 
foreach (DataManager::getChannels() as $channel) {
    ?>
                                        <option value="<?php 
    echo $channel->getId();
    ?>
">
                                            <?php 
    echo $channel->getName();
    ?>
                                        </option>
                                    <?php 
}
?>
                                </select>
                            </div>
                        </div>