當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。