</div>
        <ul class="ui-list ui-list-text ui-list-active ui-list-link ui-border-tb" style="height: auto; margin-top: -1px;">
            <li data-url="/user/todaysum" class="ui-border-t click-list-link">
                <h4 class="ui-nowrap">
                    <?php 
if (!empty($done)) {
    ?>
                    <a href="javascript:void(0);">本月共:<?php 
    echo $done;
    ?>
/<?php 
    echo $curMonth;
    ?>
  单/万</a>
                    <?php 
} else {
    ?>
                        暂无
                    <?php 
}
?>
                </h4>
                <span class="ui-panel-subtitle">本月业绩</span>
            </li>
        </ul>
<?php 
$data = array('username' => $realname, 'roleName' => $roleName, 'mobile' => $mobile);
echo load_widget('user/personal_data.php', $data);
?>
<script src="/assets/js/libs/frozen.min.js"></script>
</div>
if (!empty($assess)) {
    ?>
        <?php 
    $data = array('assess' => $assess);
    echo load_widget('widgets/assess.php', $data);
    ?>
    <?php 
}
?>
    <!--风控-->
    <?php 
if (!empty($wind)) {
    ?>
        <?php 
    $data = array('wind' => $wind);
    echo load_widget('widgets/wind.php', $data);
    ?>
    <?php 
}
?>
    <form id="pact-form"   name="pact-form" >
    <h2>成交信息</h2>
    <div class="ui-form ui-border-t">
            <div class="ui-form-item ui-border-b">
                <label>
                    放款金额
                </label>
                <input id="loan_amount" name="loan_amount" type="number" placeholder="请输入放款金额(万元)" value="<?php 
if (!empty($hetong['loan_amount'])) {
    echo $hetong['loan_amount'] / 10000;
}
        <li class="ui-border-t">
            <h4 class="ui-nowrap">厂商指导价</h4>
            <span class="ui-panel-subtitle"><a class="a-content"><?php 
    echo $evaluation['price'];
    ?>
万</a></span>
        </li>
    <?php 
}
?>
</ul>
<!--业务员-->

<?php 
$data = array('salesman' => $salesman);
echo load_widget('widgets/salesman.php', $data);
?>

<?php 
echo form_open('/assess/detail', array('name' => 'assess_form', 'id' => 'assess_form', 'role' => 'form'));
?>
<h2>车况详情</h2>
<div class="ui-form ui-border-t">
    <div class="ui-form-item ui-border-b">
        <label>车身颜色</label>
        <div class="ui-select">
            <select name="color" id="color">
                <option>请选择</option>
                <?php 
if (isset($nature['color'])) {
    ?>
    <!--亮点配置-->
<?php 
    if (!empty($liangdian['have_highlight'])) {
        ?>
    <?php 
        $data = array('borrower' => $liangdian);
        echo load_widget('widgets/highlight.php', $data);
    }
    ?>
    <!--价格分布与走势-->
<?php 
    if (!empty($fenbu)) {
        ?>
    <?php 
        $data = array('borrower' => $fenbu);
        echo load_widget('widgets/trend.php', $data);
    }
    ?>
<input type="hidden" id="id" name="id" value="<?php 
    echo $id;
    ?>
"/>
<script src="/assets/js/libs/frozen.min.js"></script>
<script type="text/javascript">
    (function() {
        <?php 
    if (!empty($fenbu)) {
        ?>
            var tab = new fz.Scroll('.ui-tab', {
                role: 'tab',
                autoplay: false,
Пример #5
0
$widgets = array();
// Load module specific widgets
$basedir = scandir(MODULE_PATH);
for ($i = 2; $i < count($basedir); $i++) {
    $base = MODULE_PATH . "/" . $basedir[$i] . "/widget";
    if (is_dir($base)) {
        // Look for /Modules/[module_name]/widget/[module_name].js or php files
        if (load_widget($base, $basedir[$i])) {
            $widgets[] = $basedir[$i];
        }
        $extendeddir = scandir($base);
        for ($j = 2; $j < count($extendeddir); $j++) {
            $extended = $base . "/" . $extendeddir[$j];
            if (is_dir($extended)) {
                // Look for /Modules/[module_name]/widget/[widget_name]/[widget_name].js or php files
                if (load_widget($extended, $extendeddir[$j])) {
                    $widgets[] = $extendeddir[$j];
                }
            }
        }
    }
}
function load_widget($folder, $widgetname)
{
    global $path;
    $gotWidget = false;
    if (is_file($folder . "/" . $widgetname . "_widget.php")) {
        require_once $folder . "/" . $widgetname . "_widget.php";
        $gotWidget = true;
    }
    if (is_file($folder . "/" . $widgetname . "_render.js")) {