コード例 #1
0
ファイル: statistics.sale.php プロジェクト: name3/cheng
<?php

!defined('IN_PTF') && exit('ILLEGAL EXECUTION');
/**
 * @author  ryan <*****@*****.**>
 */
?>
<ul>
    <li><a href="?divide=day">每日销量柱状统计图</a></li>
    <li><a href="?divide=month">每月销量柱状统计图</a></li>
</ul>
<?php 
include smart_view('col.graph');
?>
<div><?php 
echo $start . '到' . $end;
?>
</div>
コード例 #2
0
ファイル: factory.php プロジェクト: name3/cheng
        case 'get_pay_div':
            $order_id = _req('order');
            $order = new Order($order_id);
            $view_name = 'factory.pay';
            include smart_view('append.div');
            exit;
        case 'get_account_records_div':
            $order_id = _req('order');
            $order = new Order($order_id);
            $records = $factory->accountRecords(array('order' => $order_id));
            include smart_view('factory.account.record');
            exit;
        case 'get_stone_recharge_div':
            $account = $factory->stAccount();
            $view_name = 'factory.stone.recharge';
            include smart_view('append.div');
            exit;
        default:
            throw new Exception("ajax not good action: {$action}");
            break;
    }
}
if (is_numeric($target) && $by_post) {
    switch ($action) {
        case 'pay':
            $money = _post('money');
            $remark = _post('remark');
            $admin->payFactoryForOrder($factory, $order, $money, $remark);
            redirect("factory/{$target}/account");
            break;
        case 'recharge_stone':
コード例 #3
0
ファイル: order.php プロジェクト: name3/cheng
    echo $order->customer_remark;
    ?>
</span>
            </div>
            <?php 
    if ($user_type === 'Admin') {
        ?>
                <div class="remark">
                    <span>管理员备注:</span>
                    <span><?php 
        echo $order->admin_remark;
        ?>
</span>
                </div>
            <?php 
    }
    ?>
            <div class="order-detail"></div>
        </div>
    <?php 
}
?>
</div>
<div>
    <?php 
include smart_view('paging');
?>
    <input type="checkbox" />
    <button>批量导出</button>
</div>
コード例 #4
0
ファイル: my.customer.php プロジェクト: name3/cheng
<?php

!defined('IN_PTF') && exit('ILLEGAL EXECUTION');
/**
 * @author  ryan <*****@*****.**>
 */
?>
<div class="left">
    <?php 
$nav_id = 'default';
include smart_view('nav');
?>
</div>
コード例 #5
0
ファイル: my.customer.php プロジェクト: name3/cheng
<?php

!defined('IN_PTF') && exit('ILLEGAL EXECUTION');
/**
 * @author  ryan <*****@*****.**>
 */
?>
<h2>info</h2>
<?php 
include smart_view('my.customer.nav');
コード例 #6
0
ファイル: order.factory.php プロジェクト: name3/cheng
<?php

!defined('IN_PTF') && exit('ILLEGAL EXECUTION');
/**
 * @author  ryan <*****@*****.**>
 */
?>
<div class="title">选择工厂</div>
<form action="<?php 
echo ROOT;
?>
order" method="post">
    <input type="hidden" name="action" value="change_factory">
    <input type="hidden" name="target" value="<?php 
echo $order->id;
?>
">
    <div>
        <?php 
$field_name = 'factory_id';
$no_default = 1;
$data = $factories;
include smart_view('widget.select');
?>
    </div>
    <input type="submit" value="确定" />
</form>
コード例 #7
0
ファイル: master.php プロジェクト: name3/cheng
        <div class="header-wrap">
            <?php 
include smart_view('header');
?>
        </div>
        <div class="content-wrap <?php 
echo $content;
?>
-wrap">
            <?php 
include smart_view($content);
?>
        </div>
        <div class="footer-wrap">
            <?php 
include smart_view('footer');
?>
        </div>
        <?php 
echo js_node('jquery-1.7.2.min'), "\n";
echo js_var('_G', array('ROOT' => ROOT)), "\n";
echo js_node('every'), PHP_EOL;
if (file_exists(_js($controller))) {
    $page['scripts'][] = $controller;
}
foreach ($page['scripts'] as $script) {
    echo js_node($script), PHP_EOL;
}
?>
    </body>
</html>
コード例 #8
0
ファイル: board.php プロジェクト: name3/cheng
<?php

!defined('IN_PTF') && exit('ILLEGAL EXECUTION');
/**
 * @author  ryan <*****@*****.**>
 */
include smart_view('nav');
?>
<div class="right-frame">
    <?php 
include smart_view('crumb');
?>
    <div class="matter <?php 
echo str_replace('.', '-', $matter);
?>
">
        <?php 
include smart_view($matter);
?>
    </div>
</div>
コード例 #9
0
ファイル: index.php プロジェクト: name3/cheng
ob_start();
session_start();
date_default_timezone_set('PRC');
require 'lib/helper.php';
require FrameFile::controller('init');
if (isset($force_redirect)) {
    // 强制跳转 这个在整站关闭的时候很有用
    $controller = $force_redirect;
}
$view = $controller;
if (!file_exists(FrameFile::controller($controller))) {
    $controller = 'default';
    // page 404
    include FrameFile::controller($controller);
    include smart_view($controller);
    exit;
}
// auto include if there exists css or js file same name with controller
if (file_exists(_css($controller))) {
    $page['styles'][] = $controller;
}
// execute controller
include FrameFile::controller($controller);
// view
$arr = explode('?', $view);
if (count($arr) == 2 && $arr[1] == 'master') {
    $content = $arr[0];
    $view = 'master';
}
include smart_view($view);
// 渲染 view
コード例 #10
0
ファイル: stone.php プロジェクト: name3/cheng
<?php

!defined('IN_PTF') && exit('ILLEGAL EXECUTION');
/**
 * @author  ryan <*****@*****.**>
 */
$stone = new Stone($target);
include smart_view('stone.detail');
exit;