Example #1
0
 /**
  * 退出登录
  */
 public function out()
 {
     $admin = \Model\Authorize\Admin::login_admin();
     \Db\Log::message('退出', '退出系统', $admin->admin_name);
     \Core\Session::destory();
     redirect(\Core\URI::a2p(array('main' => 'index')));
 }
Example #2
0
 public function initialize()
 {
     $admin = self::login_admin();
     if (empty($admin)) {
         redirect(\Core\URI::a2p(array('main' => 'index')));
     }
 }
Example #3
0
 /**
  * 获取后台控制菜单
  * @param array $menu
  */
 public static function get_menu(&$menu)
 {
     $tpl = '<a href="%s"><li class="list-group-item %s"><span class="badge">%s</span><span class="glyphicon %s"></span> %s</li></a>';
     $html = '';
     $controller_name = \Core\URI::part(0);
     foreach ($menu as &$val) {
         if (stripos($val['link'], $controller_name)) {
             $val['is_active'] = true;
         }
         $active = $val['is_active'] ? 'select' : '';
         $html .= sprintf($tpl, $val['link'], $active, $val['badge'], $val['ico'], $val['name']);
     }
     return $html;
 }
Example #4
0
 /**
  * 删除友情连接
  */
 public function delete()
 {
     $ids = \Core\URI::kv('ids');
     $v = new \Core\Validation();
     $v->required($ids)->message('参数错误');
     if (!$v->has_error()) {
         $id_arr = explode('-', $ids);
         foreach ($id_arr as $id) {
             $slide = new \DB\Mall\Slide($id);
             $slide->delete();
         }
     }
     echo json_encode($v->get_error());
     exit;
 }
Example #5
0
 /**
  * 微信创建账号登录
  * @see Core.Controller::initialize()
  */
 public function initialize()
 {
     $user = self::login_user();
     if (empty($user)) {
         $code = \Core\URI::kv('code');
         $v = new \Core\Validation();
         $v->required($code)->message('用户未来授权访问', 1000);
         $oauth = \WX\Platform\Oauth::init_config_params();
         if ($v->has_error()) {
             //                $oauth->to_weixin(W_DOMAIN.\Core\URI::a2p_before(), 'host_base');
             $oauth->to_weixin(W_DOMAIN . \Core\URI::a2p_before(), 'user_info');
         } else {
             $user_accesstoken = $oauth->user_accesstoken($code);
             $openid = $user_accesstoken['openid'];
             $access_token = $user_accesstoken['access_token'];
             $userinfo = $oauth->user_info();
             $row = \DB\Account\Identify::row(array('identify_name' => $openid, 'identify_type' => 4));
             if (empty($row)) {
                 $user = new \DB\Account\User();
                 $user->user_avatar = $userinfo['headimgurl'];
                 $user->user_nickname = $userinfo['nickname'];
                 $user->user_status = 1;
                 $user->user_gender = $userinfo['sex'] == 1 ? 'male' : 'female';
                 $user->create_time = W_START_TIME;
                 $user->login_time = W_START_TIME;
                 $user_id = $user->save();
                 $identify = new \DB\Account\Identify();
                 $identify->identify_name = $openid;
                 $identify->identify_level = 1;
                 $identify->create_time = W_START_TIME;
                 $identify->identify_password = $access_token;
                 $identify->user_id = $user_id;
                 $identify->identify_type = 4;
                 $identify->save();
             } else {
                 $user_id = $row->user_id;
                 $row->user->user_avatar = $userinfo['headimgurl'];
                 $row->user->user_nickname = $userinfo['nickname'];
                 $row->user->user_gender = $userinfo['sex'] == 1 ? 'male' : 'female';
                 $row->user->login_time = W_START_TIME;
                 $row->user->save();
             }
             \Core\Session::set('user_id', $user_id);
         }
     }
 }
Example #6
0
 public function __toString()
 {
     if ($this->maximum_page < 1) {
         return '';
     }
     $html = '<ul class="pagination" style="margin:0px;"><li><a href="#">总数:' . $this->total . '</a></li>';
     $previous = $this->range($this->current_page - 1, 1, $this->maximum_page);
     $html .= '<li><a href="' . \Core\URI::a2p_before(array('page' => $previous)) . '">&laquo;</a></li>';
     for ($i = $this->first_page; $i <= $this->last_page; $i++) {
         if ($i == $this->current_page) {
             $html .= "<li class='active'><a href='" . \Core\URI::a2p_before(array('page' => $i)) . "'>{$i}</a></li>";
         } else {
             $html .= "<li><a href='" . \Core\URI::a2p_before(array('page' => $i)) . "'>{$i}</a></li>";
         }
     }
     $next = $this->range($this->current_page + 1, 1, $this->maximum_page);
     $html .= '<li><a href="' . \Core\URI::a2p_before(array('page' => $i)) . '">&raquo;</a></li>';
     $html .= '</ul>';
     return $html;
 }
Example #7
0
 /**
  * 获取任意尺寸图片
  * demo:
  * http://wenheyou.vstry.com/image/get?path=/upload/1440605685.jpg&size=350-150
  */
 public function get()
 {
     $path = \Core\URI::kv('path');
     $size = \Core\URI::kv('size');
     $width = 0;
     $height = 0;
     if (!empty($size)) {
         $size_arr = explode('-', $size);
         $width = $size_arr[0];
         $height = $size_arr[1];
     }
     $file_path = $path;
     $thumb_path = preg_replace('/\\/upload\\/(\\d+)\\.(jpg|png|jpeg|gif)/i', "/upload/\$1_{$width}-{$height}.\$2", $file_path);
     if (file_exists('.' . $thumb_path)) {
         redirect($thumb_path);
     } else {
         if (file_exists('.' . $file_path)) {
             //dump($width, $height, $size, $size_arr);exit();
             if (!empty($width) && !empty($height)) {
                 $thumb_path = \Core\GD::thumb('.' . $file_path, $width, $height);
             }
             header('Content-type: image/jpeg');
             $file = file_get_contents($thumb_path);
             echo $file;
             //header('Content-Disposition: attachment; filename="' . basename($thumb_path) . '"');
             //header('X-Accel-Redirect: '.$thumb_path);
         } else {
             header('HTTP/1.1 404 Not Found');
             exit;
         }
     }
     //header('Content-type: image/jpeg');
     /*
     header('Content-type: application/octet-stream');
     
     header('Content-Disposition: attachment; filename="' . basename($file_path) . '"');
     
     //让Xsendfile发送文件
     header('X-Accel-Redirect: '.$file_path);
     */
 }
Example #8
0
 public function index_part()
 {
     $limit = 10;
     $page = \Core\URI::kv('page', 1);
     $start = ($page - 1) * $limit;
     $rows = \DB\Log::fetch(null, $limit, $start, array('create_time' => 'desc'));
     $rs = '';
     $v = new \Model\Validation();
     if (!empty($rows)) {
         foreach ($rows as $row) {
             $view = view('log/index_part.php');
             $view->row = $row;
             $rs .= $view->__toString();
         }
         $v->set_data($rs);
     } else {
         $v->required(false)->message('没有更多了...');
     }
     echo json_encode($v->get_error());
     exit;
 }
Example #9
0
 public function changepw()
 {
     $password = \Core\URI::kv('password');
     $new_password = \Core\URI::kv('new_password');
     $repeat_password = \Core\URI::kv('repeat_password');
     $v = new \Core\Validation();
     $v->required($password)->message('密码');
     $v->required($new_password)->message('新密码不能为空');
     $v->filter_var($new_password == $repeat_password)->message('重复新密码不正确');
     if (!$v->has_error()) {
         $authorize_id = \Core\Session::get('authorize_id');
         $row = \DB\Authorize::row(array('authorize_id' => $authorize_id));
         $gen_password = \DB\Authorize::gen_password($password);
         if ($gen_password == $row->authorize_password) {
             $row->authorize_password = \DB\Authorize::gen_password($new_password);
             $row->save();
             $v->required(false)->message('密码修改成功,退出当前登录生效');
         } else {
             $v->required(false)->message('原始密码不正确');
         }
     }
     echo json_encode($v->get_error());
     exit;
 }
Example #10
0
						</div>
					</li>
				</ul>
				<div class="goods_detail_title">
					<span></span><p>商品详情</p><span></span>
				</div>
				<div class="detail_content">
					<?php 
echo $this->row->goods_content;
?>
				</div>
			</div>
		</div>
		<div class="detail_button">
			<a class="submit" href="<?php 
echo \Core\URI::a2p(array('cart' => 'index'));
?>
">
				<i title="<?php 
echo $this->count['total_nums'];
?>
"><?php 
echo $this->count['total_nums'];
?>
</i>
				<span></span>下一步
			</a>
			<div class="button_list">
				<div><a href="/main/min_index"></a></div>
			</div>
			<div class="button_money">
Example #11
0
<div class="panel panel-default">
  <div class="panel-heading">
  	<div class="btn-group pull-left">
  			<a href="javascript:history.go(-1);" type="button" class="btn btn-default"><span class="glyphicon glyphicon-remove"></span> 取消</a>
	</div>
  </div>
  <div class="panel-body" style="min-height:300px;">

	<form id="add" role="form" method="post" action="<?php 
echo \Core\URI::a2p(array('admin' => 'save'));
?>
">
	<input id="id" type="hidden" name="id" value="<?php 
echo $this->row->admin_id;
?>
">
	<div class="row">
		<div class="pull-left" style="padding: 20px; margin-right: -1px;border-right: 1px solid #ddd;">
			<div style="padding: 0px 0px 10px 10px;"><b>缩略图</b></div>
      		<div class="thumbnail img-circle" style="width: 140px; height: 140px;">
      			<div class="bg-image" style="background-image: url(<?php 
echo $this->row->admin_avatar;
?>
);">
      				<input id="ajax_upload" type="file" name="ajax_upload" accept="image/*" style="display:inline-block;width: 100%;height: 100%;opacity:0; -moz-opacity:0; filter:alpha(opacity=0);cursor: pointer;">
      			</div>
      			<input id="ajax_image" type="hidden" name="ajax_image" value="<?php 
echo $this->row->admin_avatar;
?>
">
      		</div>
Example #12
0
 public function wuchao()
 {
     $user_id = \Core\URI::kv('user_id', 5);
     \Core\Session::set('user_id', $user_id);
     echo "设置测试帐号:{$user_id}";
 }
Example #13
0
 /**
  * 更改用户状态
  */
 public function status()
 {
     $ids = \Core\URI::kv('ids');
     $status = \Core\URI::kv('status', 0);
     $v = new \Core\Validation();
     $v->required($ids)->message('参数不合法');
     if (!$v->has_error()) {
         $id_arr = explode('-', $ids);
         foreach ($id_arr as $id) {
             $item = \DB\Account\User::row(array('user_id' => $id));
             if (!empty($item)) {
                 $item->user_status = $status;
                 $item->update();
             }
         }
     }
     echo json_encode($v->get_error());
     exit;
 }
Example #14
0
    echo \Core\URI::a2p(array('address' => 'update', 'id' => $row->address_id));
    ?>
" class="rect">
						<p><?php 
    echo $row->address_city . $row->address_area . $row->address_street;
    ?>
</p>
						<i></i><span><?php 
    echo $row->user_mobile;
    ?>
</span><span><?php 
    echo $row->user_name;
    ?>
</span>
					</a>
				</li>
				<?php 
}
?>
				<li class="item new_address" id="new_address">
					<a class="rect" href="<?php 
echo \Core\URI::a2p(array('address' => 'create'));
?>
">
						<label>添加新地址</label>
					</a>
				</li>
			</ul>
		</dd>
	</dl>
</div>
Example #15
0
<div class="panel panel-default">
  <div class="panel-heading">
  	<div class="btn-group pull-left">
  			<a href="javascript:history.go(-1);" type="button" class="btn btn-default"><span class="glyphicon glyphicon-remove"></span> 取消</a>
	</div>
  </div>
  <div class="panel-body" style="min-height:300px;">

	<form id="add" role="form" method="post" action="<?php 
echo \Core\URI::a2p(array('slide' => 'save'));
?>
">

	<div class="row">
		<div class="pull-left" style="padding: 20px; margin-right: -1px;border-right: 1px solid #ddd;">
			<div style="padding: 0px 0px 10px 10px;"><b>缩略图</b></div>
      		<div class="thumbnail img-circle" style="width: 140px; height: 140px;">
      			<div class="bg-image" style="background-image: url(/manage/image/add_image.jpg);">
      				<input id="ajax_upload" type="file" name="ajax_upload" accept="image/*" style="display:inline-block;width: 100%;height: 100%;opacity:0; -moz-opacity:0; filter:alpha(opacity=0);cursor: pointer;">
      			</div>
      			<input id="ajax_image" type="hidden" name="ajax_image">
      		</div>
            <div style="text-align:center; margin-top:10px;color:#ccc">
           	图片尺寸620*310
           	</div>
		</div>
		<div style="margin-left: 180px;width: auto; border-left: 1px solid #ddd; padding: 20px;">
            <div class="form-group"><label>打开方式</label> 
				<select id="slide_target" name="slide_target" class="form-control">
                    <option value="_blank">_blank</option>
                    <option value="_self">_self</option>
Example #16
0
<div class="panel panel-default">
  <div class="panel-heading">
  	<div class="btn-group pull-left">
  			<a id="add" href="<?php 
echo \Core\URI::a2p(array('goods' => 'add'));
?>
" type="button" class="btn btn-default"><span class="glyphicon glyphicon-plus"></span> 添加</a>
  			<button id="edit" type="button" class="btn btn-default" disabled><span class="glyphicon glyphicon-pencil"></span> 编辑</button>
  			<button id="up" type="button" class="btn btn-default" disabled><span class="glyphicon glyphicon-upload"></span> 上架</button>
  			<button id="down" type="button" class="btn btn-default" disabled><span class="glyphicon glyphicon-download"></span> 下架</button>
  			<button id="delete" type="button" class="btn btn-default" disabled><span class="glyphicon glyphicon-minus"></span> 删除</button>
	</div>
  </div>
  <div class="panel-body" style="padding-top: 0px;" id="thetable">
  	<?php 
foreach ($this->data as $key => $row) {
    ?>
  		<?php 
    if ($key == 0) {
        ?>
  		<div class="row slide">分店名称:无</div>
  		<?php 
    } else {
        ?>
	  	<div class="row slide">分店名称:<?php 
        echo $this->data[0]->store->store_name;
        ?>
</div>
	  	<?php 
    }
    ?>
Example #17
0
		<div class="goods_count">
			<div class="count">
				<a href="javascript:;" class="dec"><div></div></a>
				<?php 
    $init_nums = \Db\Trade\Cart::row(array('user_id' => $this->user->user_id, 'goods_id' => $row->goods_id));
    ?>
				<input type="text" name="nums" value="<?php 
    echo !empty($init_nums->goods_nums) ? $init_nums->goods_nums : 0;
    ?>
">
				<a href="javascript:;" class="inc"><div></div></a>
			</div>
		</div>
		<div class="goods_title">
			<a href="<?php 
    echo \Core\URI::a2p(array('main' => 'get', 'id' => $row->goods_id));
    ?>
">
				<h4>
				<?php 
    if ($row->is_recommend) {
        ?>
				<i></i>
				<?php 
    }
    ?>
				<?php 
    echo $row->goods_name;
    ?>
				</h4>
			</a>
Example #18
0
if (\Core\URI::kv('active') == 'wait_refund') {
    ?>
class="active"<?php 
}
?>
><a href="<?php 
echo \Core\URI::a2p(array('order' => 'index', 'active' => 'wait_refund'));
?>
" >待退款</a></li>
  <li <?php 
if (\Core\URI::kv('active') == 'refund') {
    ?>
class="active"<?php 
}
?>
><a href="<?php 
echo \Core\URI::a2p(array('order' => 'index', 'active' => 'refund'));
?>
" >已退款</a></li>
  <li <?php 
if (\Core\URI::kv('active') == 'destory') {
    ?>
class="active"<?php 
}
?>
><a href="<?php 
echo \Core\URI::a2p(array('order' => 'index', 'active' => 'destory'));
?>
" >已作废</a></li>
</ul>
<div style="height:10px;"></div>
Example #19
0
<?php

ini_set('display_errors', "On");
date_default_timezone_set('Asia/Chongqing');
// 定义框架使用的常量和方法
require realpath(__DIR__ . '/../library/core/application.php');
// 定义框架使用的常量和方法
require realpath(__DIR__ . '/../library/core/uri.php');
// manage 后台管理模块
if (\Core\URI::part(0) == 'manage') {
    // 设置模块url别名和操作系统路径
    \Core\Application::bind_module('manage', realpath(__DIR__ . '/../manage'));
} else {
    // 设置模块url别名和操作系统路径
    \Core\Application::bind_module('', realpath(__DIR__ . '/../application'));
}
// 设置自动加载目录
\Core\Application::init_include_path(array(W_APPLICATION_PATH, W_LIBRARY_PATH));
//初始化自动加载
\Core\Application::init_autoload();
// 分发请求
\Core\Application::dispatch(\Core\Application::config()->route_maps, \Core\URI::get_url_path());
Example #20
0
		<div class="container-fluid" style="padding: 0px 15px; width: 100%; position: absolute; top: 50%; margin-top: -100px;">
			<div class="row" style="background: url(/manage/image/bg_login.gif) center 10px no-repeat;">
				<div class="col-md-6">
					<h1 style="line-height:40px; text-align: right; padding-right: 20px;">
						<b style="color:red;font-size:38px">WENHEYOU&nbsp;</b>后台管理系统
						<br>
						<small>
							<a target="_blank" href="mailto:279537592@qq.com">
								LOOKFEEL
							</a> 为文和友倾情打造&nbsp;
						</small>
					</h1>
				</div>
				<div class="col-md-3">
					<form role="form" style="padding: 20px 0px 0px 10px;" method="post" action="<?php 
echo \Core\URI::a2p(array('main' => 'login'));
?>
">
						<div class="form-group">
							<input type="email" name="user_account" class="form-control" placeholder="Enter email">
						</div>
						<div class="form-group">
							<input type="password" name="user_password" class="form-control"  placeholder="Password">
						</div>
						<button type="submit" class="btn btn-default">
							登录
						</button>
					</form>
				</div>
			</div>
		</div>
Example #21
0
 /**
  * 删除商品
  */
 public function delete()
 {
     $ids = \Core\URI::kv('ids');
     $v = new \Model\Validation();
     $v->required($ids)->message('参数错误', 1000);
     if (!$v->has_error()) {
         $id_arr = explode('-', $ids);
         foreach ($id_arr as $id) {
             $model = \DB\Trade\Cart::row(array('user_id' => $this->user->user_id, 'goods_id' => $id));
             if ($model) {
                 $model->delete();
             }
         }
         $v->set_data(\Db\Trade\Cart::count_cart($this->user->user_id));
     }
     $v->send();
 }
Example #22
0
<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="Pragma" content="no-cache">
<title>下单成功</title>
<meta name="description" content="">
<meta name="keywords" content="">
<link href="/css/base.css" rel="stylesheet">
<link rel="stylesheet" href="/css/style.css">
</head>
<body>
	<div class="success">
		<div class="success_main">
			<div class="success_content">
				<div><i></i></div>
				<h3>订单提交成功</h3>
				<p>我们将在5分钟内为您确认订单</p>
				<p>请密切光柱订单状态</p>
			</div>
			<div class="button_n">
		    	<a href="<?php 
echo \Core\URI::a2p(array('account' => 'order_list'));
?>
">我的订单</a>
		    </div>
		    <h2><a href="<?php 
echo \Core\URI::a2p(array('main' => 'tab2'));
?>
">继续购买</a></h2>
		</div>
	</div>
</body>
</html>
Example #23
0
<div class="panel panel-default">
  <div class="panel-body" style="min-height:300px;">

	<form id="account_form" role="form" method="post" action="<?php 
echo \Core\URI::a2p(array('account' => 'changepw'));
?>
">

      		<div class="form-group"><label>原始密码:</label> 
            <input type="password" class="form-control" id="password" name="password"  placeholder="初始密码">
			</div>
      		<div class="form-group"><label>新密码:</label> 
            <input type="password" class="form-control" id="new_password" name="new_password"  placeholder="新密码">
			</div>
      		<div class="form-group"><label>重复新密码:</label> 
            <input type="password" class="form-control" id="repeat_password" name="repeat_password"  placeholder="重复密码">
			</div>
		    <button id="account_submit" type="button" class="btn btn-primary">提交</button>
	</form>


  </div>
  <div class="panel-footer">
  	<ol class="breadcrumb" style="margin-bottom:0px; padding:0px">
    <li>帐号设置</li>
    </ol>
  </div>
</div>

<script type="text/javascript">
$(document).ready(function(){
Example #24
0
<div class="panel panel-default">
  <div class="panel-heading">
  	<div class="btn-group pull-left">
  			<a href="javascript:history.go(-1);" type="button" class="btn btn-default"><span class="glyphicon glyphicon-remove"></span> 取消</a>
	</div>
  </div>
  <div class="panel-body" style="min-height:300px;">

	<form id="add" role="form" method="post" action="<?php 
echo \Core\URI::a2p(array('notice' => 'save'));
?>
">
		<input type="hidden" name="notice_id" id="notice_id" value="<?php 
echo $this->data->notice_id;
?>
" />
	<div class="row">
		<div class="pull-left" style="padding: 20px; margin-right: -1px;border-right: 1px solid #ddd;">
			<div style="padding: 0px 0px 10px 10px;"><b>缩略图</b></div>
      		<div class="thumbnail img-circle" style="width: 140px; height: 140px;">
      			<div class="bg-image" style="background-image: url(<?php 
echo $this->data->notice_pic;
?>
);">
      				<input id="ajax_upload" type="file" name="ajax_upload" accept="image/*" style="display:inline-block;width: 100%;height: 100%;opacity:0; -moz-opacity:0; filter:alpha(opacity=0);cursor: pointer;">
      			</div>
      			<input id="ajax_image" type="hidden" name="ajax_image" value="<?php 
echo $this->data->notice_pic;
?>
">
      		</div>
Example #25
0
    ?>
">
          	<img class="img-circle" width="140px" height="140px" src="<?php 
    echo $row->link_logo;
    ?>
">
            
          	<div class="caption"><?php 
    echo $row->link_name;
    ?>
</div>
          	</a>
    	    <div class="panel-footer">
                <div class="btn-group">
                  <a href="<?php 
    echo \Core\URI::a2p(array('link' => 'destory', 'link_id' => $row->link_id));
    ?>
" type="button" class="btn btn-xs btn-default"><span class="glyphicon glyphicon-trash"></span> 删除</a>
                </div>
            </div>
	    </div>
		<?php 
}
?>
  </div>
  <div class="panel-footer">
  	<ol class="breadcrumb" style="margin-bottom:0px; padding:0px">
    <li>友情链接</li>
    </ol>
  </div>
</div>
Example #26
0
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'));
?>
">
                  <img class="img-circle" style="padding:2px; border:2px solid #ddd" width="64" height="64" alt="64x64" src=<?php 
echo !empty($admin->admin_avatar) ? $admin->admin_avatar : "/m/image/avatar.jpg";
?>
>
                </a>
                <div class="media-body">
                     <h4 class="media-heading"><?php 
echo $admin->admin_name;
?>
</h4>
                	  欢迎您的到来 <br>
                	 <a href='/manage/main/out'>退出</a>
                </div>
Example #27
0
	<div class="my_books_content">
		<ul class="base_goods_list my_books">
			<?php 
foreach ($this->rows as $row) {
    ?>
			<li class="item">
			 	<a style="display: block;" href="<?php 
    echo \Core\URI::a2p(array('trade' => 'order', 'id' => $row->order_id));
    ?>
">
				<div class="goods">
					<?php 
    $cart = unserialize($row->cart_text);
    ?>
    				<img src="<?php 
    echo \Core\URI::a2p(array('image' => 'get'));
    ?>
?path=<?php 
    echo $cart[0]->goods->goods_pic;
    ?>
&size=180-180">
    				<div class="goods_detail">
    					<h2>订单号:<?php 
    echo $row->order_id;
    ?>
</h2>
    					<div class="goods_level">
                            <h4>¥<?php 
    echo $row->total_amount;
    ?>
</h4>
Example #28
0
				<ul class="pay_detail">
					<li class="item arrow">
	    				<a class="rect detail_change personal_books_num" href="<?php 
echo \Core\URI::a2p(array('account' => 'order_list'));
?>
">
	    					<label>我的订单</label>
	    					<ins><?php 
echo $this->order_nums;
?>
</ins>
	    				</a>
	    			</li>
	    			<li class="item arrow">
	    				<a class="rect detail_change personal_default_address" href="<?php 
echo \Core\URI::a2p(array('address' => 'index'));
?>
">
	    					<label>收货地址</label>
	    					<kbd><?php 
if (!empty($this->address)) {
    echo $this->address->address_city . $this->address->address_area . $this->address->address_street;
}
?>
</kbd>
	    				</a>
	    			</li>
				</ul>
			</dd>
		</dl>
	</div>
Example #29
0
    ?>
">
								<a href="javascript:;" class="inc"><div></div></a>
							</div>
						</div>
					</div>
				</div>
			</li>
			<?php 
}
?>
		</ul>
	</div>
	<div class="detail_button">
		<a href="<?php 
echo \Core\URI::a2p(array('trade' => 'index'));
?>
" class="submit">
			立即下单
		</a>
		<div class="button_list">
			<div><a href="/main/min_index"></a></div>
		</div>
		<div class="button_money">
			<div class="pay_num">
				<h1>合计:</h1><p>¥<kbd><?php 
echo $this->count['total_fee'];
?>
</kbd></p>
			</div>
		</div>
Example #30
0
<ul class="nav nav-tabs">
  <li <?php 
if (\Core\URI::kv('active') == 'news') {
    ?>
class="active"<?php 
}
?>
><a href="<?php 
echo current_url(array('active' => 'news'));
?>
" >图文内容</a></li>
  <!--<li <?php 
if (\Core\URI::kv('active') == 'video') {
    ?>
class="active"<?php 
}
?>
><a href="<?php 
echo current_url(array('active' => 'video'));
?>
" >视频内容</a></li>-->
</ul>