本文整理汇总了PHP中core\View::css方法的典型用法代码示例。如果您正苦于以下问题:PHP View::css方法的具体用法?PHP View::css怎么用?PHP View::css使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类core\View
的用法示例。
在下文中一共展示了View::css方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: record
/**
* 积分流水
*/
public function record()
{
\Core\View::css('/manage/tablescroll/css/style.css');
\Core\View::script('/manage/tablescroll/js/jquery.tablescroll.js');
$user_id = \Core\URI::kv('user_id');
$user = \DB\Account\User::row(array('user_id' => $user_id));
if ($user) {
$this->view->content = view('user/record.php');
} else {
redirect(\Core\URI::a2p(array('user' => 'index')));
}
}
示例2:
<meta name="viewport" content="initial-scale=1, width=device-width, maximum-scale=1, minimum-scale=1, user-scalable=no">
<title><?php
echo \Core\View::$title;
?>
</title>
<link rel="stylesheet" href="/manage/bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="/manage/bootstrap/css/bootstrap-theme.min.css">
<link rel="stylesheet" href="/manage/css/style.css">
<script type="text/javascript" src="/manage/js/jquery-1.11.min.js"></script>
<script type="text/javascript" src="/manage/bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/manage/js/jquery.form.js"></script>
<script type="text/javascript" src="/manage/js/common.js"></script>
<script type="text/javascript" src="/manage/js/kindeditor.js"></script>
<?php
echo \Core\View::css();
echo \Core\View::script();
?>
</head>
<body>
<div class="container" style="padding: 0px 15px; width: 100%;">
<div class="row">
<div class="col-md-2" id="nav-panel">
<?php
$admin = \Model\Authorize\Admin::login_admin();
?>
<div class="manager">
<div class="media" style="padding:18px 0px 0px 18px;">
<a class="pull-left" href="<?php
echo \Core\URI::a2p(array('account' => 'index'));
示例3: get
/**
* 获取某列数据
*/
public function get()
{
\Core\View::script('/manage/js/ajaxfileupload.js');
\Core\View::script('/manage/editor/js/libs/beautify/beautify-html.js');
\Core\View::script('/manage/editor/js/froala_editor.min.js');
\Core\View::script('/manage/editor/js/plugins/tables.min.js');
\Core\View::script('/manage/editor/js/plugins/colors.min.js');
\Core\View::script('/manage/editor/js/plugins/fonts/fonts.min.js');
\Core\View::script('/manage/editor/js/plugins/fonts/font_family.min.js');
\Core\View::script('/manage/editor/js/plugins/block_styles.min.js');
\Core\View::script('/manage/editor/js/plugins/fonts/font_size.min.js');
\Core\View::script('/manage/editor/js/plugins/video.min.js');
\Core\View::css('/manage/editor/css/font-awesome.min.css');
\Core\View::css('/manage/editor/css/froala_editor.min.css');
\Core\View::css('/manage/editor/css/froala_reset.min.css');
$goods_id = \Core\URI::kv('id');
$v = new \Core\Validation();
$v->required($goods_id)->message('参数错误');
if (!$v->has_error()) {
$this->view->content = view('goods/get.php');
$this->view->content->data = new \DB\Mall\Goods($goods_id);
}
}
示例4: search
/**
* 搜索用户考勤
*/
public function search()
{
\Core\View::css('/manage/daterange/font-awesome.min.css');
\Core\View::css('/manage/daterange/daterangepicker-bs3.css');
\Core\View::script('/manage/daterange/moment.js');
\Core\View::script('/manage/daterange/daterangepicker.js');
\Core\View::css('/manage/tablescroll/css/style.css');
\Core\View::script('/manage/tablescroll/js/jquery.tablescroll.js');
$order_id = \Core\URI::kv('order_id');
$page = \Core\URI::kv('page', 1);
$this->view->content = view('order/index.php');
$limit = 12;
$offset = ($page - 1) * $limit;
$where = array("order_id like '{$order_id}%' or user_mobile like '{$order_id}%'");
$this->view->content->rows = \Db\Trade\Order::fetch($where, $limit, $offset, array('hurry_time' => 'desc', 'create_time' => 'desc'));
$this->view->content->page = new \Model\Page($page, \DB\Trade\Order::count($where), $limit);
$this->view->content->order_id = $order_id;
}