private function getWorkerMapInfo($phone, $stime, $etime) { $str = getHttp('http://sun-talk.com.cn/qchat2_0API/gisLatlngtmp/findGISData.do?loginName=tfkj&loginPasswd=123456&startTime=' . urlencode(outTime($stime)) . '&endTime=' . urlencode(outTime($etime)) . '&mobile=' . $phone . '&corpCode=tfkj'); $res = json_decode($str, true); $rs = array(); if ($res['statusCode'] == 3000 && isset($res['pagina']['resultList'])) { // z($res['pagina']['resultList']); $str = array(); foreach ($res['pagina']['resultList'] as $val) { $str[] = $val['latitude'] . ',' . $val['longitude']; } $arr = array_chunk($str, 30); // z($arr); $resArr = array(); foreach ($arr as $v) { $rs = json_decode(getHttp('http://apis.map.qq.com/ws/coord/v1/translate?locations=' . implode(';', $v) . '&type=1&key=1aa6a77c877c9d026f2f7640bb722f41'), true); if ($rs['status'] == 0 && isset($rs['locations']) && is_array($rs['locations'])) { $resArr = array_merge($resArr, $rs['locations']); } } // z($resArr); return $resArr; } else { showError('小管家实时地理位置获取失败'); } }
if ($row['nodename'] == "") { echo $row['nodeid']; } else { echo $row['nodename']; } echo "<br>"; } $NATS->DB->Free($r); echo "</td><td align=left valign=top>"; echo "<b>Start Time</b><br><br>"; outTime(mktime(0, 0, 0, $td_mon, $td_day, $td_yr), "0:00 Today", true, true); outTime(time() - 60 * 60 * 24, "24 Hours Ago"); outTime(time() - 60 * 60, "1 Hour Ago"); echo "<br><b>Finish Time</b><br><br>"; outTime(mktime(23, 59, 59, $td_mon, $td_day, $td_yr), "23:59:59 Today", false, true); outTime(time(), "Now", false); echo "<br><input type=submit value=\"View Summary\">"; echo "</td></tr>"; echo "</form></table>"; } if (isset($_REQUEST['startx'])) { $startx = $_REQUEST['startx']; } else { $startx = mktime(0, 0, 0, $td_mon, $td_day, $td_yr); } if (isset($_REQUEST['finishx'])) { $finishx = $_REQUEST['finishx']; } else { $finishx = mktime(23, 59, 59, $td_mon, $td_day, $td_yr); } echo "<br><b>From </b>" . nicedt($startx) . " <b>to</b> " . nicedt($finishx) . "<br><br>";
?> </td> <td><?php echo $val['goods_amount']; ?> </td> <td><?php echo $val['order_amount']; ?> </td> <td><?php echo $val['pay_amount']; ?> </td> <td><?php echo outTime($val['pay_time']); ?> </td> <td id="order-status-<?php echo $val['order_id']; ?> "><?php echo $setting['order_status'][$val['status']]; ?> </td> <td> <a href="<?php echo U('order/detail', array('id' => $val['order_id'])); ?> ">详细</a> </td>
function daily() { $today = $this->_get('date', ''); if (!isHave($today)) { return showError('请传入一个日期'); } $query = array(); $timestamp = inTime($today); $query['fb_time[>=]'] = $timestamp; $query['fb_time[<]'] = $timestamp + 86400; // $rs = D('serviceLog')->where($query)->findAll(); $feedbackConfig = C('steward/service_log'); foreach ($rs as $key => $value) { $rs[$key]['fb_time'] = outTime($value['fb_time'], 2); $rs[$key]['ct_time'] = outTime($value['ct_time'], 2); } $this->assign(array('today' => $today, 'rs' => $rs, 'type' => $feedbackConfig['type'], 'status' => $feedbackConfig['status'])); $this->display(); }
?> </a></td> <td><?php echo $val['msg_id']; ?> </td> <td><?php echo getMsgType($val['msg_type']); ?> </td> <td><?php echo $val['content']; ?> </td> <td><?php echo $val['create_time'] ? outTime($val['create_time']) : ''; ?> </td> <td> <div class="btn-group"> <button class="btn btn-white btn-xs dropdown-toggle" data-toggle="dropdown">操作<span class="caret"></span></button> <ul class="dropdown-menu"> <li><a rel="pop" href="<?php echo U('home/msg', array('uid' => $val['uid'])); ?> ">发送消息</a></li> <li><a rel="pop" href="<?php echo U('member/detail', array('uid' => $val['uid'], 'all' => 1)); ?> ">用户信息</a></li> </ul>
function preview() { $id = $this->_getid('id', 0); if (!$id) { showError('参数丢失'); } $rs = M('ste_goods')->where(array('gid' => $id))->find(); if (!$rs) { showError('商品不存在'); } steadmin::$adminInfo['city_id'] = 3301; $goodPic = $rs['goods_pic']; $rs['goods_tips'] = parent::_getTipsGroupList($this->steSetting['goods_tips'], $rs['goods_tips']); $rs['goods_pic'] = getImgUrl(getThumb($goodPic, 0)); $rs['orig_pic'] = getImgUrl(getThumb($goodPic, 2)); if ($rs['is_realtime'] && $rs['booked_time']) { $rs['goods_desc'] = '<p><img src="' . getImgUrl('statics/default/images/steward/2015/presell_' . $rs['booked_time'] . '.png') . '"/></p><br/>' . $rs['goods_desc']; } $rs['goods_desc'] = htmlspecialchars_decode($rs['goods_desc']); $rs['is_delay'] = parent::_getShopName($rs['shop_id'], 'is_delay'); $rs['cate_name'] = parent::_getCateName($rs['cate_id']); $rs['shop_name'] = parent::_getShopName($rs['shop_id'], 'shop_name'); $rs['order_counts'] = $rs['order_counts'] * 3; ////2015-03-31 新增刷新销量 $list = explode(',', 'is_delay,gid,cate_id,shop_id,shop_name,goods_name,goods_subtitle,goods_spec,goods_tips,goods_pic,orig_pic,original_price,price_pre,price,goods_desc,order_counts,sale_counts,storage_counts,is_realtime,is_hot,is_new,is_recommend,is_limited,limit_counts'); foreach ($list as $val) { $rs['goodsData'][$val] = $rs[$val]; } $rs['goodsData'] = json_encode($rs['goodsData']); if (!$rs['status'] || $rs['status'] == 2) { $rs['sale_status'] = 0; } if ($rs['start_times'] <= TIME) { if ($rs['end_times'] < TIME) { $rs['sale_status'] = 0; } elseif ($rs['end_times'] >= TIME) { $rs['sale_status'] = 1; } } else { $rs['sale_status'] = 2; } $rs['sale_time'] = outTime($rs['start_times']); // z($rs); $this->assign(array('id' => $id, 'rs' => $rs, 'vid' => 0)); $this->display(); }
function disttime() { $limit = $this->steSetting['shipTime']['limit']; //可购买天数 $shours = $this->steSetting['shipTime']['shours']; //开始服务时间 $ehours = $this->steSetting['shipTime']['ehours']; //结束服务时间 $minute = $this->steSetting['shipTime']['minute']; //起止分钟,00 或者 30 $objData = array(); $gtime = date('G'); //当前小时 $itime = date('i'); //当前分钟 for ($i = 0; $i < $limit; $i += 1) { $date = mktime(0, 0, 0, date('m'), date('d') + $i, date('Y')); if (!$i) { //今天时间段 if ($gtime < $shours) { $shour = $shours; } else { $shour = $itime <= 30 ? $gtime : $gtime + 1; } $timeLimit = $itime <= 30 ? 30 : ($gtime < $shours ? $minute : '00'); } else { $shour = $shours; $timeLimit = $minute; } switch ($i) { case 0: $desc = '今天'; break; case 1: $desc = '明天'; break; case 2: $desc = '后天'; break; default: $desc = date('m月d日', $date); } if ($shour < $ehours) { $objData[] = array('show' => outTime($date, 2), 'desc' => $desc, 'date' => $date, 'times' => $this->setTimes($shour, $ehours, $timeLimit)); } } return $objData; }
echo $setting['expTime'][$val['booked_time']]['name']; ?> </td> <td><?php echo $val['px']; ?> </td> <td id="goods-status-<?php echo $val['gid']; ?> "><?php echo $val['saleStatus']; ?> </td> <td><?php echo outTime($val['refresh_time']); ?> </td> <td><div class="btn-group"> <button class="btn btn-white btn-xs dropdown-toggle" data-toggle="dropdown">操作<span class="caret"></span></button> <ul class="dropdown-menu" style="width:95px"> <li><a href="<?php echo U('goods/detail', array('id' => $val['gid'])); ?> " rel="pop">详细</a></li> <li class="divider"></li> <li class="dropdown-submenu pull-left"><a href="#" tabindex="-1">状态</a> <ul aria-labelledby="dropdownMenu" role="menu" class="dropdown-menu" style="margin-left:5px"> <?php foreach ($setting['goods_status'] as $k => $v) { ?>
?> </td> <td align="left" valign="middle">金额:<span class="red"><?php echo $value['goods_counts'] * $value['goods_price']; ?> </span> 元<br/> 结邻币:<span class="red"><?php echo $value['goods_counts'] * $value['credits']; ?> </span></td> <td align="left" valign="middle"><?php echo $value['is_spell'] ? $value['spell_username'] : '******'; ?> </td> <td align="left" valign="middle"><?php echo outTime($value['add_time']); ?> </td> </tr> <?php $goodsNum += $value['goods_counts'] * $value['goods_price']; $creditsNum += $value['goods_counts'] * $value['credits']; } $downNum = priceFormat($rs['credit_offset'] + $rs['coupon_offset'] + $rs['sales_offset']); ?> <tr> <td colspan="20">订单总计:商品<span class="red" style="font-size:20px"><?php echo priceFormat($goodsNum); ?> </span> 元,运费<span class="red" style="font-size:20px"><?php echo $rs['shipping_fee'];
?> " /> <div class="table-responsive show-pop-content" style="width:450px; height:380px;"> <section class="panel portlet-item"> <header class="panel-heading">订单异常处理</header> <ul class="list-group"> <li class="list-group-item">订单号:<?php echo $rs['order_sn']; ?> </li> <li class="list-group-item">订单状态:<?php echo $setting['order_status'][$rs['status']]; ?> </li> <li class="list-group-item">配送时间:<?php echo outTime($rs['arrive_date'], 2); ?> <?php echo $rs['arrive_time']; ?> </li> <li class="list-group-item" id="select-5"> <div class="col-sm-3" style="width:100px; padding:0">选择配送日期:</div> <div class="col-sm-6" style="padding:0"> <select class="form-control" style="width:auto;" name="arrive_date" id="arrive_date"> <?php $selectDateTime = $timer[0]['times']; $selectData = array(); foreach ($timer as $key => $val) { if ($rs['arrive_date'] == $val['date']) { $selectDateTime = $val['times'];
?> </li> <li class="list-group-item"><strong>每人限购量</strong>:<?php echo $rs['limit_counts']; ?> </li> <li class="list-group-item"><strong>排序值</strong>:<?php echo $rs['px']; ?> </li> <li class="list-group-item"><strong>发布时间</strong>:<?php echo outTime($rs['info_time']); ?> </li> <li class="list-group-item"><strong>最后更新</strong>:<?php echo outTime($rs['refresh_time']); ?> </li> <li class="list-group-item"><strong>状态</strong>:<?php echo $setting['goods_status'][$rs['status']]; ?> </li> <li class="list-group-item"><strong>商品描述</strong>:<?php echo $rs['goods_desc']; ?> </li> </ul> </section> <div id="data-matrix" style="margin:20px auto; width:230px; height:230px"></div> </div> <script>
<div class="col-sm-3"> <input type="password" name="psw" id="psw" placeholder="" class="form-control" value="" /> <span class="help-block">密码长度必须大于4个字符</span></div> <div class="col-sm-3"></div> </div> <div class="form-group"> <label class="col-sm-1 control-label">重复密码</label> <div class="col-sm-3"> <input type="password" name="repsw" id="repsw" placeholder="" class="form-control" value="" /> <span class="help-block"></span></div> </div> <div class="form-group"> <label class="col-sm-1 control-label">帐号有效期</label> <div class="col-sm-2"> <input type="text" name="effective" id="effective" placeholder="" class="form-control" value="<?php echo $rs['effective'] ? outTime($rs['effective'], 2) : ''; ?> " onClick="new Calendar().show(this);" readonly/> <span class="help-block"></span></div> <div class="col-sm-3"></div> </div> <div class="form-group"> <label class="col-sm-1 control-label">真实姓名</label> <div class="col-sm-3"> <input type="text" name="real_name" id="real_name" placeholder="必填" class="form-control" value="<?php echo $rs['real_name']; ?> " /> <span class="help-block">姓名长度为2-30个字符</span></div> </div> <div class="form-group">
<span class="help-block">商品显示顺序,0-255之间正整数,数字越大越靠前</span></div> </div> <div class="form-group"> <label class="col-sm-1 control-label">上架时间</label> <div class="col-sm-3"> <input style="width:225px" type="text" name="start_times" id="start_times" placeholder="" class="form-control" value="<?php echo outTime($rs['start_times']); ?> " /> <span class="help-block"></span></div> </div> <div class="form-group"> <label class="col-sm-1 control-label">下架时间</label> <div class="col-sm-3"> <input style="width:225px" type="text" name="end_times" id="end_times" placeholder="" class="form-control" value="<?php echo outTime($rs['end_times']); ?> " /> <span class="help-block"></span></div> </div> <div class="form-group"> <div class="col-sm-9 col-lg-offset-1"> <div class="col-sm-1"> <input name="id" type="hidden" value="<?php echo $rs['gid']; ?> " /> <button type="submit" id="sub-ok" data-loading-text="正在提交..." class="btn btn-primary">保存</button> </div> <div class="col-md-offset-2"> <button type="button" class="btn btn-white">取消</button>
?> </td> <td><?php echo isset($val['action']) ? $val['action'] : ''; ?> </td> <td><?php echo $val['action_desc']; ?> </td> <td><?php echo is_array($val['record_id']) ? implode(',', $val['record_id']) : $val['record_id']; ?> </td> <td><?php echo outTime($val['infotime']); ?> </td> <td> <a href="<?php echo U('home/logdetail', array('id' => $key)); ?> " rel="pop">详细</a> </td> </tr> <?php } } else { ?> <tr> <td colspan="20" align="center">暂无数据</td>
<p><strong>微信昵称:</strong><?php echo $rs['nickname']; ?> </p> <p><strong>是否关注:</strong><?php echo $rs['subscribe'] ? '是' : '<span class="red">否</span>'; ?> </p> <p><strong>性别:</strong><?php echo isset($sex[$rs['sex']]) ? $sex[$rs['sex']] : '未知'; ?> </p> <p><strong>国家:</strong><?php echo $rs['country']; ?> </p> <p><strong>省份:</strong><?php echo $rs['province']; ?> </p> <p><strong>城市:</strong><?php echo $rs['city']; ?> </p> <p><strong>关注时间:</strong><?php echo $rs['subscribe_time'] ? outTime($rs['subscribe_time']) : ''; ?> </p> <p></p> <p></p> </div>
echo $val['phone']; ?> </td> <td><?php echo $val['address']; ?> </td> <td><?php echo outTime($val['arrive_date'], 2); ?> <?php echo $val['arrive_time']; ?> </td> <td><?php echo outTime($val['order_time']); ?> </td> <td><?php foreach ($val['list'] as $v) { echo $v['goods_name'], ' (x ', $v['goods_counts'], ')<br/>'; } ?> </td> <td><?php echo $val['desc']; ?> </td> <td><?php echo $val['goods_total'] == $val['select_goods_total'] ? '<span class="red">否</span>' : '是'; ?>
public function report() { $startTime = $this->_get('stime', ''); //开始时间 $endTime = $this->_get('etime', ''); //结束时间 $serviceId = $this->_getid('service_id', 0); //服务社 $isOutput = $this->_getid('is_output', 0); //是否导出数据 $cateId = $this->_getid('cid', 0); //类目 $cateList = array(275 => '半成品菜', 273 => '预定下午茶'); if (!isset($cateList[$cateId])) { showError('抱歉,该类目不允许查看'); } if (!parent::_checkIsAdmin()) { if ($cateId != 275 || steadmin::$adminInfo['user_id'] != 291) { //半成品菜店长 showError('抱歉,暂无权限'); } } //取类目及所有子类目 $cateAllList = M('ste_goods_cate')->where(array('city_id' => steadmin::$adminInfo['city_id'], 'is_del' => 0))->order('sort DESC')->select('id'); $tidList = D('tree')->getSubs($cateAllList, $cateId, true); $cateId = $tidList['list'] ? implode(',', $tidList['list']) : $cateId; //默认报表时间为今天 $today = mktime(0, 0, 0, date('m'), date('d'), date('Y')); $stime = mktime(0, 0, 0, date('m'), date('d') + 1, date('Y')); if (!$startTime) { $startTime = date('Y-m-d', $stime); } if (!$endTime) { $endTime = date('Y-m-d', $stime); } if ($startTime && $endTime) { $startTime = inTime($startTime); $endTime = inTime($endTime) + 60 * 60 * 24 - 1; } if ($serviceId) { $where = ' AND a.service_id=' . $serviceId; $sWhere = ' AND service_id=' . $serviceId; } else { $where = ''; $sWhere = ''; } if ($startTime < $today) { $statusList = '1,3,4,5,6,7,8,9,10,11'; } else { $statusList = '1,3,4,5,6,7,8,9,10,11'; //搜索状态:已支付、已审核、正在配货 } //根据类目搜索所有的商品gid $where = ''; $rs = M('ste_order')->query('SELECT a.order_id,a.order_sn,a.order_type,a.service_id,a.village_id,a.uid,a.address,a.phone,a.username,' . 'a.desc,a.arrive_date,a.arrive_time,a.order_source,a.status,a.order_time,a.goods_counts AS goods_total,b.gid,b.shop_id,b.goods_name,b.goods_counts,b.goods_price' . ' FROM __TABLE__ AS a LEFT JOIN __PRE__ste_order_goods AS b ON a.order_id=b.order_id WHERE a.arrive_date>=' . $startTime . ' AND a.arrive_date<=' . $endTime . ' AND a.status IN (' . $statusList . ') AND b.gid IN ( SELECT gid FROM __PRE__ste_goods WHERE cate_id IN (' . $cateId . ') ' . $sWhere . ' )' . $where . ' ORDER BY service_id ASC'); // z(M('ste_order')->getAllSql()); // z($rs); $orderList = array(); $orderTotal = array(); $serviceList = array(); if ($rs) { foreach ($rs as $val) { //统计各个菜的数量 $goodsName = md5($val['goods_name']); if (!isset($orderTotal[$goodsName])) { $orderTotal[$goodsName] = array('name' => $val['goods_name'], 'counts' => $val['goods_counts'], 'item' => array()); } else { $orderTotal[$goodsName]['counts'] += $val['goods_counts']; } if (!isset($orderTotal[$goodsName]['item'][$val['service_id']])) { $orderTotal[$goodsName]['item'][$val['service_id']] = array('name' => $this->serviceData[$val['service_id']]['stitle'], 'counts' => $val['goods_counts']); } else { $orderTotal[$goodsName]['item'][$val['service_id']]['counts'] += $val['goods_counts']; } //按服务社统计菜单 if (!isset($serviceList[$val['service_id']])) { $serviceList[$val['service_id']] = array('service_name' => $this->serviceData[$val['service_id']]['stitle'], 'counts' => $val['goods_counts'], 'item' => array()); } else { $serviceList[$val['service_id']]['counts'] += $val['goods_counts']; } if (!isset($serviceList[$val['service_id']]['item'][$val['gid']])) { $serviceList[$val['service_id']]['item'][$val['gid']] = array('name' => $val['goods_name'], 'counts' => $val['goods_counts']); } else { $serviceList[$val['service_id']]['item'][$val['gid']]['counts'] += $val['goods_counts']; } //按订单号归类商品 if (!isset($orderList[$val['order_id']])) { $orderList[$val['order_id']] = array('order_id' => $val['order_id'], 'order_sn' => $val['order_sn'], 'order_type' => $val['order_type'], 'service_id' => $val['service_id'], 'service_name' => $this->serviceData[$val['service_id']]['stitle'], 'village_id' => $val['village_id'], 'village_name' => parent::getVillageName($val['village_id']), 'address' => $val['address'], 'phone' => $val['phone'], 'username' => $val['username'], 'desc' => $val['desc'], 'arrive_date' => $val['arrive_date'], 'arrive_time' => $val['arrive_time'], 'order_source' => $val['order_source'], 'status' => $val['status'], 'order_time' => $val['order_time'], 'goods_total' => $val['goods_total'], 'select_goods_total' => 0, 'list' => array()); } $orderList[$val['order_id']]['list'][] = array('goods_name' => $val['goods_name'], 'goods_counts' => $val['goods_counts'], 'goods_price' => $val['goods_price']); $orderList[$val['order_id']]['select_goods_total'] += $val['goods_counts']; } } // z($orderTotal); // z($serviceList); if ($isOutput) { $dataList = array(); $title = array('订单号', '收货人', '手机', '地址', '配送时间', '商品列表', '留言', '混合订单'); foreach ($orderList as $val) { $list = array(); foreach ($val['list'] as $v) { $list[] = $v['goods_name'] . ' (x ' . $v['goods_counts'] . ')'; } $dataList[] = array($val['order_sn'], $val['username'], $val['phone'], $val['address'], outTime($val['arrive_date'], 2) . ' ' . $val['arrive_time'], implode("\r\n", $list), $val['desc'], $val['goods_total'] == $val['select_goods_total'] ? '否' : '是'); } if (isset($this->serviceData[$serviceId])) { $tname = $this->serviceData[$serviceId]['stitle']; } else { $tname = '全部'; } $dataList[] = array('', '', '', '', '', '', '', ''); $dataList[] = array('', '', '', '', '', '', '', ''); $dataList[] = array('品类', '详细', '数量', '', '', '', '', ''); //将统计信息附加到报表中 foreach ($orderTotal as $val) { $list = array(); foreach ($val['item'] as $v) { $list[] = $v['name'] . ' (' . $v['counts'] . '份)'; } $dataList[] = array($val['name'], implode('、', $list), $val['counts'], '', '', '', '', ''); } $dataList[] = array('', '', '', '', '', '', '', ''); $dataList[] = array('', '', '', '', '', '', '', ''); $dataList[] = array('服务社', '详细', '数量', '', '', '', '', ''); //将统计信息附加到报表中 foreach ($serviceList as $val) { $list = array(); foreach ($val['item'] as $v) { $list[] = $v['name'] . ' (' . $v['counts'] . '份)'; } $dataList[] = array($val['service_name'], implode("\r\n", $list), $val['counts'], '', '', '', '', ''); } load('csv'); $csv = new csv(); $csv->write($title, $dataList, $cateList[$cateId] . '订单_' . $tname . date('Y-m-d H/i/s')); } else { $this->assign(array('rs' => $orderList, 'orderTotal' => $orderTotal, 'cid' => $cateId, 'service_id' => $serviceId, 'startTime' => $startTime, 'endTime' => $endTime, 'serviceList' => $serviceList, 'service' => $this->serviceData, 'setting' => $this->steSetting)); $this->display(); } }
function viewFeedback() { header('Cache-Control:no-cache,must-revalidate'); header('Pragma:no-cache'); $fid = $this->_getid('fid', 0); $feedbackConfig = C('feedback'); $fb_types = array(); foreach ($feedbackConfig['type'] as $key => $value) { $fb_types[$value['id']] = $value; } $results = array(); foreach ($feedbackConfig['result'] as $key => $value) { $results[$value['id']] = $value; } D('feedback'); $m = new feedbackModel(); $feedback = $m->getFeedback($fid); $feedback['fb_time'] = outTime($feedback['fb_time'], 2); $feedback['ct_time'] = outTime($feedback['ct_time'], 2); $this->assign(array('feedback' => $feedback, 'type' => $fb_types, 'results' => $results)); $this->display(); }
function detail() { header('Cache-Control:no-cache,must-revalidate'); header('Pragma:no-cache'); $fid = $this->_getid('fid', 0); $feedbackConfig = C('feedback'); $feedback = D('feedback')->getFeedback($fid); $feedback['fb_time'] = outTime($feedback['fb_time'], 2); $feedback['ct_time'] = outTime($feedback['ct_time'], 2); $this->assign(array('feedback' => $feedback, 'type' => $feedbackConfig['type'], 'status' => $feedbackConfig['status'])); $this->display(); }
?> </td> <td><?php echo $val['logintime'] ? outTime($val['logintime']) : ''; ?> </td> <td><?php echo long2ip($val['loginip']); ?> </td> <td><?php echo $val['regdateline'] ? outTime($val['regdateline']) : ''; ?> </td> <td><?php echo $val['effective'] ? outTime($val['effective'], 2) : '长期'; ?> </td> <td><?php echo $group[$val['groupid']]; ?> </td> <td><?php echo $status[$val['status']]; ?> </td> <td id="work-status-<?php echo $val['user_id']; ?> "><?php echo $setting['work_status'][$val['work_status']];
<div class="row text-small"> <div class="col-sm-10 m-b-mini"> <p>欢迎您:<?php echo $adminInfo['username']; ?> </p> <p>用户组:<?php echo $group[$adminInfo['groupid']]; ?> </p> <p>有效期:<span class="red"><?php echo $adminInfo['effective'] ? outTime($adminInfo['effective']) : '长期'; ?> </span></p> <p>登陆时间:<?php echo $adminInfo['logintime'] ? outTime($adminInfo['logintime']) : ''; ?> </p> <p>登陆IP:<?php echo long2ip($adminInfo['loginip']); ?> </p> </div> </div> </div> </section> </div> <!--/ table 11 --> </div> </section> <!--/ main padder -->
$haveTime = false; $showDate = ''; foreach ($timer as $key => $val) { if ($rs['arrive_date'] == $val['date']) { $selectDateTime = $val['times']; } $selectData[$key] = $val['times']; $showDate .= '<option rel="' . $key . '" value="' . $val['date'] . '" '; if ($rs['arrive_date'] == $val['date']) { $haveDate = true; $showDate .= 'selected="selected"'; } $showDate .= '>' . $val['desc'] . ' ' . $val['show'] . '</option>'; } if (!$haveDate) { $showDate = '<option value="' . $rs['arrive_date'] . '" selected="selected">' . outTime($rs['arrive_date'], 2) . '</option>' . $showDate; } echo $showDate; ?> </select> </div> <div style="clear:both"></div> </li> <li class="list-group-item" id="select-1"> <div class="col-sm-3" style="width:100px; padding:0">选择配送时间:</div> <div class="col-sm-6" style="padding:0"> <select class="form-control" style="width:auto;" name="arrive_time" id="arrive_time"> <?php $showTime = ''; foreach ($selectDateTime as $val) { $showTime .= '<option value="' . $val . '" ';