当前位置: 首页>>代码示例>>PHP>>正文


PHP View::script方法代码示例

本文整理汇总了PHP中core\View::script方法的典型用法代码示例。如果您正苦于以下问题:PHP View::script方法的具体用法?PHP View::script怎么用?PHP View::script使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在core\View的用法示例。


在下文中一共展示了View::script方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: get

 /**
  * 获取某列数据
  */
 public function get()
 {
     \Core\View::script('/manage/js/ajaxfileupload.js');
     $slide_id = \Core\URI::kv('id');
     $v = new \Core\Validation();
     $v->required($slide_id)->message('参数错误');
     if (!$v->has_error()) {
         $this->view->content = view('slide/get.php');
         $this->view->content->data = new \DB\Mall\Slide($slide_id);
     }
 }
开发者ID:elmoy,项目名称:wenheyou,代码行数:14,代码来源:slide.php

示例2: 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')));
     }
 }
开发者ID:elmoy,项目名称:wenheyou,代码行数:15,代码来源:user.php

示例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);
     }
 }
开发者ID:elmoy,项目名称:wenheyou,代码行数:26,代码来源:goods.php

示例4:

	<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'));
?>
开发者ID:elmoy,项目名称:wenheyou,代码行数:31,代码来源:main.php

示例5: get

 /**
  * 获取某列数据
  */
 public function get()
 {
     \Core\View::script('/manage/js/ajaxfileupload.js');
     $id = \Core\URI::kv('id');
     $v = new \Core\Validation();
     $v->required($id)->message('参数错误');
     if (!$v->has_error()) {
         $this->view->content = view('admin/get.php');
         $this->view->content->row = new \DB\Authorize\Admin($id);
     }
 }
开发者ID:elmoy,项目名称:wenheyou,代码行数:14,代码来源:admin.php

示例6: 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;
 }
开发者ID:elmoy,项目名称:wenheyou,代码行数:21,代码来源:order.php


注:本文中的core\View::script方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。