public function render($label_template = '{title}', $back_url = NULL) { if (empty($this->mItems)) { return '<p>No records are found.</p>'; } else { $html = box_open('Sort Order', 'primary'); // Render form with alert message $html .= '<form action="' . current_url() . '" method="POST">'; $html .= $this->CI->system_message->render(); $html .= '<p>Drag and drop below items to sort them in ascending order:</p>'; // Generate item list by CodeIgniter Template Parser $template = '<ul class="sortable list-group"> {items} <li class="list-group-item"> <strong>' . $label_template . '</strong> <input type="hidden" name="' . $this->mPostName . '[]" value="{id}" /> </li> {/items} </ul>'; $data = array('items' => $this->mItems); $html .= $this->CI->parser->parse_string($template, $data); if ($back_url != NULL) { $html .= btn('Back', $back_url, 'reply', 'bg-purple') . ' '; } $html .= btn_submit('Save'); $html .= '</form>'; $html .= box_close(); return $html; } }
?> <?php echo box_open('Welcome!'); ?> <p>Demonstration of functions from adminlte_helper: </p> <ul> <li>box_open()</li> <li>box_close()</li> <li>app_btn()</li> </ul> <?php echo app_btn('github', 'CI Bootstrap', CI_BOOTSTRAP_REPO); ?> <?php echo box_close('Box footer here'); ?> </div> <div class="col-md-4"> <?php echo info_box('yellow', $count['users'], 'Users', 'users', 'user'); ?> </div> <div class="col-md-4"> <?php echo info_box('aqua', $count['admin_users'], 'Admin Users', 'users', 'panel/admin_user'); ?> </div>
echo column_open(6); echo "<div class='theme-center-text'>"; echo "<div class='theme-biggest-text" . ($status != 'ONLINE' ? ' theme-text-alert' : '') . "'>" . $status . "</div>"; echo "<div class='theme-smaller-text'>" . lang('apcups_status') . "</div>"; echo "</div>"; echo column_close(); echo column_open(6); echo "<div class='theme-center-text'>"; echo "<div class='theme-biggest-text'>" . $loadpct . "</div>"; echo "<div class='theme-smaller-text'>" . lang('apcups_load_percent') . "</div>"; echo "</div>"; echo column_close(); echo row_close(); echo "<BR>"; echo row_open(); echo column_open(6); echo "<div class='theme-center-text'>"; echo "<div class='theme-biggest-text'>" . $bcharge . "</div>"; echo "<div class='theme-smaller-text'>" . lang('apcups_battery_charge') . "</div>"; echo "</div>"; echo column_close(); echo column_open(6); echo "<div class='theme-center-text'>"; echo "<div class='theme-biggest-text'>" . $timeleft_brief . "</div>"; echo "<div class='theme-smaller-text'>" . lang('apcups_battery_time_remaining_dashboard') . "</div>"; echo "</div>"; echo column_close(); echo row_close(); echo box_content_close(); echo box_close();
<?php echo box_close(btn_submit('Mettre à jour')); ?> <?php echo form_close(); ?> </div> <!-- Change Password --> <div class="col-md-6"> <?php echo form_open('account/change_password'); ?> <?php echo box_open('Changer de mot de passe'); ?> <?php echo form_group_password('Mot de passe', 'Nouveau mot de passe'); ?> <?php echo form_group_password('Confirmer mot de passe'); ?> <?php echo box_close(btn_submit('Confirmer')); ?> <?php echo form_close(); ?> </div> </div>