Esempio n. 1
0
    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;
        }
    }
Esempio n. 2
0
	<div class="col-md-4">	
		<?php 
echo box_open('Shortcuts');
?>
			<?php 
echo app_btn('user', 'Account', 'account');
?>
			<?php 
echo app_btn('sign-out', 'Logout', 'account/logout');
?>
		<?php 
echo box_close();
?>

		<?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>
Esempio n. 3
0
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>.
//
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
// Load dependencies
///////////////////////////////////////////////////////////////////////////////
$this->lang->load('base');
$this->lang->load('apcups');
$this->lang->load('base');
echo box_open($model, array('class' => 'apcups_status'));
echo box_content_open();
echo row_open();
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();
Esempio n. 4
0
<div class="row">

	<div class="col-md-4">

		<?php 
echo box_open('Welcome!');
?>
			<p>Demonstration of box_open() and box_close() helper functions.</p>
		<?php 
echo box_close('Box footer here');
?>

		<?php 
echo box_open('Shortcuts');
?>
			<p>Demonstration of app_btn() helper functions.</p>
			<?php 
if ($user->role == 'admin') {
    echo app_btn('users', 'Admin Users', '#', $count['admin_users']);
}
?>
			<?php 
echo app_btn('users', 'Users', 'user', $count['users']);
?>
			<?php 
echo app_btn('user', 'Account', 'account');
?>
			<?php 
echo app_btn('sign-out', 'Logout', 'account/logout');
?>
Esempio n. 5
0
?>
			<?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>
Esempio n. 6
0
<div class="row">
	<div class="col-md-6">

		<?php 
echo alert_box();
?>

		<?php 
echo form_open();
?>
			<?php 
echo box_open('Reset Password');
?>
				<p>Set a new password for: <strong><?php 
echo $target['full_name'];
?>
</strong></p>
				<?php 
echo form_group_password('password', 'New Password');
?>
				<?php 
echo form_group_password('retype_password');
?>
			<?php 
echo box_close(btn_submit('Confirm'));
?>
		<?php 
echo form_close();
?>
Esempio n. 7
0
?>
			<?php 
echo box_close(btn_submit('Update'));
?>
		<?php 
echo form_close();
?>
	</div>
	
	<!-- Change Password -->
	<div class="col-md-6">
		<?php 
echo form_open('account/change_password');
?>
			<?php 
echo box_open('Change Password');
?>
				<?php 
echo form_group_password('password', 'New Password');
?>
				<?php 
echo form_group_password('retype_password');
?>
			<?php 
echo box_close(btn_submit('Confirm'));
?>
		<?php 
echo form_close();
?>
	</div>