예제 #1
0
파일: admin_base.php 프로젝트: andyhd/minim
<?php 
$this->set('js_foot');
$this->include_js('label_inside');
$this->get('page_js_foot');
$this->end();
?>

<?php 
$this->set('content');
?>
  <div id="wrapper">
   <div id="masthead">
    <h1>Minim Admin</h1>
    <div class="logged_in">
<?php 
if ($user = logged_in_user()) {
    ?>
     Logged in as <strong><?php 
    echo $user['name'];
    ?>
</strong> - <a href="<?php 
    echo minim('routing')->url_for('logout');
    ?>
">Log out</a>
<?php 
} else {
    ?>
     <a href="<?php 
    echo minim('routing')->url_for('admin-login');
    ?>
">Log in</a>
예제 #2
0
    echo get_text('Departments');
    ?>
</a></li>
        <?php 
}
if (logged_in()) {
    ?>
            <li><a href="logout.php"><?php 
    echo get_text('Logout');
    ?>
</a></li>
            <li><?php 
    echo get_text('Username');
    ?>
: <?php 
    echo logged_in_user();
    ?>
</li>
        <?php 
}
if (isset($_SESSION['admin_id'])) {
    ?>
            <li><a href="logout.php"><?php 
    echo get_text('Logout');
    ?>
</a></li>
        <?php 
}
?>
    </ul>
    <div class="handle"><?php 
예제 #3
0
            'class' => 'form-horizontal row-border',
            'name'  =>'fileinfo'
        );
    if (isset($errors)) {
        echo error_template($errors);
    }
    if (isset($success)) {
        echo success_template($success);
    }
    echo form_open_multipart(current_url(),$attributes);


    ?>


    <input  type="hidden"  name="user_id" value="<?=logged_in_user('id')?>" class="form-control" id="user_id" >

    <div class="form-group">
            <label class="col-md-2 control-label">Title</label>
            <div class="col-md-8">
                <input type="text" name="title" class="form-control" value="<?= set_value('title') ?>"/>
            </div>
        </div>
        <div class="form-group">

            <label class="col-md-2 control-label">File type</label>
            <div class="col-md-8">
                <select id="file_type" name="file_type" class="form-control select" data-style="btn-default">
                    <?php
                    foreach(get_active_file_types() as $type)
                    {