Esempio n. 1
0
<?php

$settingObj = new Cores\Models\SettingModel();
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>控制面板 - <?php 
echo $settingObj->get('site_admin_title');
?>
</title>
    <!-- <link href="<?php 
echo DOMAIN;
?>
/App/Admin/assets/css/bootstrap-combined.no-icons.min.css" rel="stylesheet"> -->
    <link href="<?php 
echo DOMAIN;
?>
/App/Admin/assets/css/bootstrap-responsive.min.css" rel="stylesheet">
    <link href="<?php 
echo DOMAIN;
?>
/App/Admin/assets/css/bootstrap.css" rel="stylesheet" />
    <link href="<?php 
echo DOMAIN;
?>
/App/Admin/assets/css/font-awesome.css" rel="stylesheet" />
    <link href="<?php 
Esempio n. 2
0
<?php 
$settingObj = new Cores\Models\SettingModel();
$prompt = '';
if (!empty($_GET['action'])) {
    if ($_GET['action'] == 'update_setting') {
        $settingObj->set('site_title', $_POST['site_title']);
        $settingObj->set('site_sub_title', $_POST['site_sub_title']);
        $settingObj->set('site_admin_title', $_POST['site_admin_title']);
        $settingObj->set('site_logo', $_POST['site_logo']);
        $prompt = success('更新成功');
    }
}
?>

        <!-- /. NAV SIDE  -->
        <div id="page-wrapper">
            <div id="page-inner">


                <div class="row">
                    <div class="col-md-12">
                        <h1 class="page-header">
                            系统设置 <small>在这里管理本系统:)</small>
                        </h1>
                    </div>
                </div>

                <div class="row">
                <?php 
echo $prompt;