<div class="outerdiv">
    <div class=" innerdiv ">
        <div class="panelhead page-header"><h1><small>My preferences</small></h1></div>
        <?php if (isset($message) && is_array($message) && !empty($message))  { ?>
            <div class="alert <?= htmlspecialchars($message['type']) ?>"><?= htmlspecialchars($message['content']) ?></div>
         <?php } ?>
        <div class="form">
            <?php
            $attributes = array('class' => 'form-horizontal well', 'id' => '');
            echo form_open('settings/preferences/' . $op, $attributes);
            ?>
            <div class="control-group">
                <label class="control-label" for="tooltips">Show tooltips <span class="required">*</span></label>
                <div class="controls">
                    <label  class="checkbox inline" for="tooltips" class="">
                        <input id="opt1" name="tooltips" type="radio" class="" value="tips_on" <?php echo (isset($tips_on)) ? $tips_on : $this->form_validation->set_radio('tooltips', 'tips_on'); ?> checked="checked"/>
                        On
                    </label>
                    <label  class="checkbox inline" for="tooltips" class="">
                        <input id="opt2" name="tooltips" type="radio" class="" value="tips_off" <?php echo (isset($tips_off)) ? $tips_off : $this->form_validation->set_radio('tooltips', 'tips_off'); ?> />
                        Off
                    </label>
                </div>
            </div>

            <div class="control-group">
                <label class="control-label" for="num_rows">Default number of rows shown in reports table <span class="required">*</span></label>
                <div class="controls">
                    <?php
                    $arrayListRows = array("25" => "25", "50" => "50", "100" => "100", "250" => "250", "500" => "500", "1000" => "1000");
                    echo form_dropdown('num_rows', $arrayListRows, array(0 => $num_rows));
                    ?>
                </div>
            </div>

            <div  id="btnholder" class="form-actions">
                <button type="submit" value="Submit" class="btn btn-large btn-primary">Save changes</button>
            </div>

            <?php echo form_close(); ?>
        </div>
    </div>
</div>