public function actionUpdateexpress()
 {
     set_time_limit(0);
     $model = new OrderExpressInfo();
     $list = $model->find()->where(['<', 'status', 4])->orWhere(['status' => null])->all();
     if (!$list) {
         return false;
     }
     $res = [];
     foreach ($list as $k => $v) {
         $code = null;
         if (isset($v->express->code) && !empty($v->express->code)) {
             $code = $v->express->code;
         }
         $expressNo = null;
         if (isset($v->expressNo) && !empty($v->expressNo)) {
             $expressNo = $v->expressNo;
         }
         if (!($code && $expressNo)) {
             break;
         }
         $json = Tool::getExpressInfoByOrder($code, $expressNo);
         //数据有效
         if (isset($json->data) && !empty($json->data) && $json->data != '[]') {
             array_push($res, ['id' => $v->id, 'status' => $json->status, 'progressInfo' => json_encode($json->data), 'updateTime' => $json->updateTime]);
         }
         sleep(2);
     }
     (new OrderExpressInfo())->updateOrderExpressInfo($res);
 }
示例#2
0
 public function loginAdminUser($username)
 {
     if (!$username) {
         return false;
     }
     $model = (new AdminUser())->findOne(['username' => $username]);
     if (!$model) {
         return false;
     }
     $model->loginIp = Tool::getIp();
     $model->loginTime = date('Y-m-d H:i:s', time());
     $model->save();
     Yii::$app->session->set(Variable::$session_userId_str, $model->id);
     //设置session
 }
示例#3
0
                        <tr class="table_body_head">
                            <th>序号</th>
                            <th>标题</th>
                            <th>显示顺序</th>
                            <th>锚点</th>
                            <th>缩略图</th>
                            <th>操作人</th>
                            <th>操作</th>
                        </tr>
                        <?php 
foreach ($countries as $k => $v) {
    echo ' <tr>';
    echo '<td>' . ($k + 1) . '</td>';
    echo '<td>' . $v->title . '</td>';
    echo '<td>' . $v->useId . '</td>';
    echo '<td>' . $v->keywords . '</td>';
    echo '<td><a target="_blank" href="' . Tool::echoEncodeString($v->pic) . '"><img width="200" height="100" src="' . Tool::echoEncodeString($v->pic) . '"></a></td>';
    echo '<td>' . Tool::echoEncodeString($v->adminUser->username, 0) . '</td>';
    echo '<td><a href="' . Yii::$app->urlManager->createUrl([Variable::$editService_url, 'id' => Html::encode($v['id'])]) . '"  >编辑</a><a onclick="deleteArticle(this,' . Tool::echoEncodeString($v->id) . ')">删除</a></td>';
    echo '</tr>';
}
?>
                    </table>
                </div>
            </div>
            <?php 
echo LinkPager::widget(['pagination' => $pagination, 'nextPageLabel' => '下一页', 'prevPageLabel' => '上一页', 'firstPageLabel' => '首页', 'lastPageLabel' => '末页']);
?>
        </div>
    </div>
</div>
示例#4
0
use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
use common\widgets\Tool;
use yii\web;
use yii\base;
use kucha\ueditor\UEditor;
$admin_cur = "video";
?>
            <?php 
echo $this->render(\common\widgets\Variable::$layoutAdminLeftMenu_view, ['admin_cur' => $admin_cur]);
?>
        </div>
        <div class="adminCon-right">
            <?php 
$this->title = '视频管理';
echo Tool::setBreadcrumbs([[$this->title]]);
?>
            <div class="" id="seller-fixed">
                <div class="row dis-con">
<!--                    <p style="color: red;font-size: 18px">系统检测:This browser does not support HTML5 video!</p>-->
                    <div>

                        <!-- Nav tabs -->
                        <ul class="nav nav-tabs" role="tablist">
                            <li role="presentation" class="active"><a href="#home" aria-controls="home" role="tab" data-toggle="tab">本地上传</a></li>
<!--                            <li role="presentation"><a href="#profile" aria-controls="profile" role="tab" data-toggle="tab">网络视频源 </a></li>-->
                        </ul>

                        <!-- Tab panes -->
                        <div class="tab-content">
                            <div role="tabpanel" class="tab-pane active" id="home">
示例#5
0
use common\widgets\Tool;
use yii\web;
use yii\base;
use unclead\widgets\MultipleInput;
use vova07\fileapi\Widget;
use yii\helpers\ArrayHelper;
$admin_cur = "brand";
?>
            <?php 
echo $this->render(\common\widgets\Variable::$layoutAdminLeftMenu_view, ['admin_cur' => $admin_cur]);
?>
        </div>
        <div class="adminCon-right">
            <?php 
$this->title = '添加品牌';
echo Tool::setBreadcrumbs([['品牌管理', \common\widgets\Variable::$customerBrand_url], [$this->title]]);
?>
            <div class="" id="seller-fixed">
                <div class="dis-con">
                    <?php 
$form = ActiveForm::begin(['id' => 'add-seller-form', 'action' => \common\widgets\Variable::$addBrand_url, 'method' => 'post']);
?>
                    <div class="row margin0">
                        <?php 
echo $form->field($model, 'name', ['options' => ['class' => 'form-group col-lg-6 paddingLeft']])->textInput()->label('品牌名称');
?>
                        <?php 
echo $form->field($model, 'sort', ['options' => ['class' => 'form-group col-lg-6 paddingLeft']])->textInput()->label('展示顺序');
?>
                    </div>
 public function actionFindpswcode()
 {
     $phoneNumber = Yii::$app->request->post('phoneNumber');
     if (!preg_match("/^1[3-5,7-8]{1}[0-9]{9}\$/", $phoneNumber)) {
         exit;
     }
     $user = new User();
     $userMoblie = $user->findUserByUserName($phoneNumber);
     if (!$userMoblie) {
         JsonParser::GenerateJsonResult('_0004', '*手机号码不存在!');
         exit;
     }
     if (Tool::sendSms(Variable::$smsType_findPassword, $phoneNumber) == true) {
         JsonParser::GenerateJsonResult('_0000', '发送成功');
         exit;
     }
 }
示例#7
0
        echo '<tr class="list__item">';
        echo '<td class="list_name">';
        echo '<div class="form-group">';
        echo '<input type="text" class="input-priority col-lg-3 form-control barName" value="' . $v->name . '">';
        echo '</div>';
        echo '</td>';
        echo ' <td class="list_link">';
        echo '<div class="form-group">';
        echo '<input type="text"  class="input-priority form-control barLink" value="' . $v->sort . '">';
        echo '<div class="help-block help-block-error">';
        echo '</div>';
        echo ' </div>';
        echo '</td>';
        echo '<td>';
        echo '<div class="btn btn btn-success" onclick="updateOnRowForCus(this,' . $v->id . ')">更新</div>';
        echo '<div class="btn btn btn-danger" style="margin-left: 4px;"><a style="color:#FFFFFF" href=' . Yii::$app->urlManager->createUrl([\common\widgets\Variable::$editPointImg_url, 'id' => Tool::echoEncodeString($v->id)]) . '>编辑点位图片</a></div>';
        echo '<div class="btn btn btn-cancel" style="margin-left: 4px;" onclick="deleteOnRowForCus(this,' . $v->id . ')">删除</div>';
        echo '</td>';
        echo '</tr>';
        echo '';
        echo '';
    }
}
?>

                        </tbody>
                    </table>
                </div>
                <div class="form-group">
                    <button type="button" class="btn  btn-success col-lg-2 col-lg-offset-2" onclick="addOnRowForCus(2)">添加一个点位</button>
                    <a class="btn-cancel col-lg-2 col-lg-offset-1" href="<?php 
示例#8
0
    echo GlobalArray::$imgUrlArray['0'] . $detv['productLogo'];
    ?>
" class="img-responsive" /></div>
						<div class="shop-name">
							<p><?php 
    echo $detv['productName'];
    ?>
</p>
							<div class="shop-name-table">
								<div class="shop-n-tr">
								    <div><span>产</span>地:<?php 
    echo \common\widgets\Tool::echoEncodeString($detv['origin']);
    ?>
</div>
								    <div><span>工</span>艺:<?php 
    echo \common\widgets\Tool::echoEncodeString($detv['artsId']);
    ?>
</div>
								</div>
							</div>
						</div>
						<div class="shop-price">¥<?php 
    echo $detv['price'];
    ?>
</div>
						<div class="shop-number"><?php 
    echo $detv['productCount'];
    ?>
包</div>
						<div class="shop-total">¥<?php 
    echo $detv['productPrice'];
示例#9
0
use common\widgets\GlobalArray;
use yii\web;
use yii\base;
use dosamigos\datetimepicker\DateTimePicker;
use kucha\ueditor\UEditor;
use common\widgets\Tool;
$admin_cur = "activity";
$this->title = '新增活动';
?>
            <?php 
echo $this->render(\common\widgets\Variable::$layoutAdminLeftMenu_view, ['admin_cur' => $admin_cur]);
?>
        </div>
        <div class="adminCon-right">
            <?php 
echo Tool::setBreadcrumbs([['活动管理', \common\widgets\Variable::$activityList_url], [$this->title]]);
?>
            <div class="" id="seller-fixed">
                <div class="dis-con">
                    <?php 
$form = ActiveForm::begin(['id' => 'add-activity-form', 'action' => \common\widgets\Variable::$addActivity_url, 'method' => 'post', 'options' => ['enctype' => 'multipart/form-data']]);
?>
                    <?php 
echo $form->field($model, 'name')->textInput()->label('活动名称');
?>
                    <?php 
echo $form->field($model, 'description')->textarea()->label('活动简介');
?>

                    <?php 
echo $form->field($model, 'startTime', ['options' => ['class' => 'col-lg-6 paddingLeft']])->label('开始时间')->widget(DateTimePicker::className(), ['language' => 'zh-CN', 'size' => 'ms', 'template' => '{input}{reset}{button}', 'pickButtonIcon' => 'glyphicon glyphicon-time', 'inline' => false, 'clientOptions' => ['startView' => 4, 'minView' => 1, 'maxView' => 4, 'autoclose' => true, 'linkFormat' => 'yyyy-mm-dd H:ii:ss', 'format' => 'yyyy-mm-dd H:ii:ss', 'todayBtn' => true]]);
示例#10
0
            <?php 
use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
use common\widgets\Tool;
use yii\web;
use yii\base;
$admin_cur = "express";
?>
            <?php 
echo $this->render(\common\widgets\Variable::$layoutAdminLeftMenu_view, ['admin_cur' => $admin_cur]);
?>
        </div>
        <div class="adminCon-right">
            <?php 
$this->title = '添加快递';
echo Tool::setBreadcrumbs([['快递管理', \common\widgets\Variable::$express_url], [$this->title]]);
?>
            <div class="" id="seller-fixed">
                <div class="dis-con">
                    <?php 
$form = ActiveForm::begin(['id' => 'add-seller-form', 'action' => \common\widgets\Variable::$addExpress_url, 'method' => 'post']);
?>
                    <?php 
echo $form->field($model, 'name')->textInput()->label('快递名称');
?>
                    <?php 
echo $form->field($model, 'code')->textInput()->label('快递代码');
?>
                    <?php 
echo $form->field($model, 'phone')->textInput()->label('快递客服电话');
?>
示例#11
0
                            <th>活动优惠</th>
                            <th>活动优惠折扣</th>
                            <th>备注</th>
                        </tr>
                        <?php 
foreach ($countries as $k => $v) {
    echo '<tr>';
    echo '  <td>' . ($k + 1) . '</td>';
    echo '<td>' . Tool::echoEncodeString($v->activity->name) . '</td>';
    echo ' <td>' . Tool::echoEncodeString($v->user->nickName) . '</td>';
    echo ' <td>' . Tool::echoEncodeString($v->orderId, '无') . '</td>';
    //                                echo ' <td>'.\common\widgets\GlobalArray::$activityStatusArray[Tool::echoEncodeString($v->status,'0')].'</td>';
    echo '<td>' . Tool::echoEncodeString($v->time) . '</td>';
    echo '<td>' . Tool::echoEncodeString($v->discount, '0') . '</td>';
    echo '<td>' . Tool::echoEncodeString($v->money, '0') . '</td>';
    echo '<td>' . Tool::echoEncodeString($v->description, '无') . '</td>';
    echo ' </tr>';
}
?>
                    </table>
                </div>
            </div>
            <?php 
echo LinkPager::widget(['pagination' => $pagination, 'nextPageLabel' => '下一页', 'prevPageLabel' => '上一页', 'firstPageLabel' => '首页', 'lastPageLabel' => '末页']);
?>
        </div>
    </div>
</div>

<div class="discount-fixed seller-fixed" id="seller-fixed">
    <div class="dis-close">×</div>
示例#12
0
use yii\base;
$admin_cur = "adminUser";
?>
            <?php 
echo $this->render(\common\widgets\Variable::$layoutAdminLeftMenu_view, ['admin_cur' => $admin_cur]);
?>
        </div>
        <div class="adminCon-right">
            <?php 
$this->title = '编辑后台用户';
echo Tool::setBreadcrumbs([['后台用户管理', \common\widgets\Variable::$adminUserManger_url], [$this->title]]);
?>
            <div class="" id="adminUser-fixed">
                <div class="dis-con">
                    <?php 
$form = ActiveForm::begin(['id' => 'edit-adminUser-form', 'action' => Yii::$app->urlManager->createUrl([\common\widgets\Variable::$editAdminUser_url, 'id' => Tool::echoEncodeString($adminUserModel->id)]), 'method' => 'post']);
?>
                    <?php 
echo $form->field($model, 'username')->textInput(['disabled' => true])->label('用户名');
?>
                    <?php 
echo $form->field($model, 'password')->passwordInput()->label('密码');
?>
                    <?php 
echo $form->field($model, 'mobile')->textInput()->label('手机号码');
?>
                    <?php 
echo $form->field($model, 'role')->textInput()->label('用户角色');
?>
                    <?php 
if ($model->role != '超级管理员') {
示例#13
0
            <?php 
use common\widgets\Tool;
use common\widgets\Variable;
use unclead\widgets\MultipleInput;
use yii\helpers\Html;
use yii\widgets\ActiveForm;
$admin_cur = "bar";
$this->title = '编辑导航栏';
?>
            <?php 
echo $this->render(\common\widgets\Variable::$layoutAdminLeftMenu_view, ['admin_cur' => $admin_cur]);
?>
        </div>
        <div class="adminCon-right">
            <?php 
echo Tool::setBreadcrumbs([['底部导航栏', Variable::$barIndex_url], [$this->title]]);
?>
            <div class="member">
                <style>
                    .top{
                        font-size: 2rem;
                        border: solid 1px #FAFAFA;
                        margin: 6px;
                        text-align: left;
                        background: #FAFAFA;
                        line-height: 4rem;
                    }
                </style>
                <div class="row top">
                    <div>
                        <input type="hidden" value="<?php 
示例#14
0
use common\widgets\GlobalArray;
use yii\web;
use yii\base;
use dosamigos\datetimepicker\DateTimePicker;
use kucha\ueditor\UEditor;
use common\widgets\Tool;
$admin_cur = "proBanner";
$this->title = '添加视频轮播图';
?>
            <?php 
echo $this->render(\common\widgets\Variable::$layoutAdminLeftMenu_view, ['admin_cur' => $admin_cur]);
?>
        </div>
        <div class="adminCon-right">
            <?php 
echo Tool::setBreadcrumbs([['产品轮播图管理', \common\widgets\Variable::$proBanner_url], [$this->title]]);
?>
            <div class="" id="seller-fixed">
                <div class="dis-con">
                    <?php 
$form = ActiveForm::begin(['id' => 'add-activity-form', 'action' => \common\widgets\Variable::$addProBanner_url, 'method' => 'post', 'options' => ['enctype' => 'multipart/form-data']]);
?>
                    <?php 
echo $form->field($model, 'address')->label('请选择大图')->widget('common\\widgets\\file_upload\\FileUpload', ['config' => []]);
?>
                    <?php 
echo $form->field($model, 'sort', ['options' => ['class' => 'form-group col-lg-7  paddingLeft']])->textInput()->label('显示顺序');
?>
                    <?php 
echo $form->field($model, 'isShow', ['options' => ['class' => 'form-group col-lg-7  paddingLeft']])->dropDownList(GlobalArray::$materialIsShowArray, ['prompt' => '请选择图片是否启用'])->label('请选择是否启用');
?>
示例#15
0
use common\widgets\Tool;
use yii\web;
use yii\base;
use unclead\widgets\MultipleInput;
use vova07\fileapi\Widget;
use yii\helpers\ArrayHelper;
$admin_cur = "bar";
?>
            <?php 
echo $this->render(\common\widgets\Variable::$layoutAdminLeftMenu_view, ['admin_cur' => $admin_cur]);
?>
        </div>
        <div class="adminCon-right">
            <?php 
$this->title = '添加顶级导航栏';
echo Tool::setBreadcrumbs([['导航栏管理', \common\widgets\Variable::$barIndex_url], [$this->title]]);
?>
            <div class="" id="seller-fixed">
                <div class="dis-con">
                    <?php 
$form = ActiveForm::begin(['id' => 'add-seller-form', 'action' => \common\widgets\Variable::$addBarCat_url, 'method' => 'post']);
?>
                        <?php 
echo $form->field($model, 'name', ['options' => ['class' => 'form-group col-lg-7 paddingLeft']])->textInput()->label('导航栏名称');
?>
                        <?php 
echo $form->field($model, 'link', ['options' => ['class' => 'form-group col-lg-7 paddingLeft']])->textInput([''])->label('导航栏链接');
?>
                        <?php 
echo $form->field($model, 'sort', ['options' => ['class' => 'form-group col-lg-7 paddingLeft']])->textInput()->label('展示顺序');
?>
示例#16
0
                    <tr class="table_body_head">
                        <th>序号</th>
                        <th>区域名称</th>
                        <th>上一级名称</th>
                        <th>状态</th>
                    </tr>
                    <?php 
foreach ($countries as $k => $v) {
    $province = '无';
    if (isset($v->prev)) {
        $province = $v->prev->name;
    }
    echo '<tr>';
    echo '<td>' . ($k + 1) . '</td>';
    echo '<td>' . Tool::echoEncodeString($v->name) . '</td>';
    echo '<td>' . Tool::echoEncodeString($province, '无') . '</td>';
    echo '<td>可用</td>';
    echo '</tr>';
}
?>
                </table>
            </div>
        </div>
        <?php 
echo LinkPager::widget(['pagination' => $pagination, 'nextPageLabel' => '下一页', 'prevPageLabel' => '上一页', 'firstPageLabel' => '首页', 'lastPageLabel' => '末页']);
?>
<!--        <ul class="adminpage">-->
<!--            <li class="adminpage-first"><a href=""><img src="img/u107.png" /></a></li>-->
<!--            <li class="adminpage-prev"><a href=""><img src="img/u105.png" /></a></li>-->
<!--            <li><a href="">1</a></li>-->
<!--            <li class="active"><a href="">2</a></li>-->
示例#17
0
                            <th>商品数量</th>
                            <th>商品单价</th>
                            <th>商品总价</th>
                            <th>折扣价格</th>
                        </tr>
                        </thead>
                        <tbody>
                        <?php 
foreach ($orderModel->orderdetail as $k => $v) {
    echo '<tr>';
    echo ' <td>' . Tool::echoEncodeString($v->product->productNo) . '</td>';
    echo '<td class="align_Left"><a>' . Tool::echoEncodeString($v->product->productName) . '</a></td>';
    echo '<td>' . Tool::echoEncodeString($v->productCount, '1') . '</td>';
    echo '<td><strong class="ftx-01">¥' . Tool::echoEncodeString($v->product->productPrice) . '</strong></td>';
    echo '<td>¥' . Tool::echoEncodeString($v->productPrice) . '</td>';
    echo '<td>¥' . Tool::echoEncodeString($v->discountPrice, '0.00') . '</td>';
    echo '</tr>';
}
?>
                        </tbody>
                    </table>
                    <?php 
echo $form->field($model, 'orderMoney')->textInput(['disabled' => true])->label('订单价格');
?>
                    <?php 
echo $form->field($model, 'orderStatus', ['options' => ['class' => 'form-group  paddingLeft']])->dropDownList(\common\widgets\GlobalArray::$orderStatusArray, ['prompt' => '请选择订单状态', 'disabled' => true])->label('订单状态');
?>
                    <?php 
echo $form->field($model, 'orderPayMethod', ['options' => ['class' => 'form-group  paddingLeft']])->dropDownList(\common\widgets\GlobalArray::$orderPayMethodArray, ['prompt' => '请选择订单支付方式', 'disabled' => true])->label('订单支付方式');
?>
                    <?php 
示例#18
0
            <div class="member">
                <div class="member-head">
                    <div class="seller-head">
                    </div>
                </div>
                <div class="member-con articleM-con">
                    <table cellpadding="0" cellspacing="0" border="0" class="admin-table">
                        <tr class="table_body_head">
                            <th>序号</th>
                            <th>标题</th>
                            <th>作者</th>
                            <th>修改时间</th>
                            <th>操作</th>
                        </tr>
                        <?php 
foreach ($countries as $k => $v) {
    echo ' <tr>';
    echo '<td>' . ($k + 1) . '</td>';
    echo '<td><a href="' . Yii::$app->urlManager->createUrl([Variable::$showLiftObject_url, 'id' => Html::encode($v['id'])]) . '"  >' . Tool::echoEncodeString($v->title) . '</a></td>';
    echo '<td>' . Tool::echoEncodeString($v->adminUser->username) . '</td>';
    echo '<td>' . Tool::echoEncodeString($v->publishTime) . '</td>';
    echo '<td><a href="' . Yii::$app->urlManager->createUrl([Variable::$showLiftObject_url, 'id' => Html::encode($v['id'])]) . '"  >查看</a><a href="' . Yii::$app->urlManager->createUrl([Variable::$editLiftObject_url, 'id' => Html::encode($v['id'])]) . '"  >编辑</a></td>';
    echo '</tr>';
}
?>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>
示例#19
0
use yii\web;
use yii\base;
use dosamigos\datetimepicker\DateTimePicker;
use kucha\ueditor\UEditor;
use common\widgets\Variable;
use common\widgets\Tool;
$admin_cur = "banner";
$this->title = '编辑banner';
?>
            <?php 
echo $this->render(\common\widgets\Variable::$layoutAdminLeftMenu_view, ['admin_cur' => $admin_cur]);
?>
        </div>
        <div class="adminCon-right">
            <?php 
echo Tool::setBreadcrumbs([['banner管理', \common\widgets\Variable::$bannerList_url], [$this->title]]);
?>
            <div class="" id="seller-fixed">
                <div class="dis-con">
                    <?php 
$form = ActiveForm::begin(['id' => 'add-activity-form', 'action' => Yii::$app->urlManager->createUrl([Variable::$editBanner_url, 'id' => $model->id]), 'method' => 'post', 'options' => ['enctype' => 'multipart/form-data']]);
?>
                    <?php 
echo $form->field($model, 'address')->label('请选择大图')->widget('common\\widgets\\file_upload\\FileUpload', ['config' => []]);
?>
                    <?php 
echo $form->field($model, 'wapUrl')->label('请选择小图')->widget('common\\widgets\\file_upload\\FileUpload', ['config' => []]);
?>
                    <?php 
echo $form->field($model, 'pcUrl', ['options' => ['class' => 'form-group col-lg-7  paddingLeft']])->textInput()->label('跳转链接地址');
?>
示例#20
0
                            <th>注册来源</th>
                            <th>操作</th>
                        </tr>
                        <?php 
foreach ($countries as $k => $v) {
    echo '<tr>';
    echo '<td>' . ($k + 1) . '</td>';
    echo '<td>' . Tool::echoEncodeString($v->realName, '无') . '</td>';
    echo '<td>' . Tool::echoEncodeString($v->nickName) . '</td>';
    echo '<td>' . Tool::echoEncodeString($v->mobile, '无') . '</td>';
    //                                echo '<td>'.Tool::echoEncodeString($v['email'],'无').'</td>';
    echo '<td>' . GlobalArray::$userStatusArray[Tool::echoEncodeString($v->userStatus, '0')] . '</td>';
    echo '<td>' . Tool::echoEncodeString(date('Y-m-d H:i', strtotime($v->registerTime))) . '</td>';
    echo '<td>' . Tool::echoEncodeString(date('Y-m-d H:i', strtotime($v->lastLoginTime))) . '</td>';
    echo '<td>' . GlobalArray::$userRegComeFromArray[Tool::echoEncodeString($v->comeFrom, '0')] . '</td>';
    echo '<td class="vip-td-a"><a href="' . Yii::$app->urlManager->createUrl([Variable::$editUser_url, 'id' => Tool::echoEncodeString($v->id)]) . '"  class="frozen">编辑</a><a onclick="deleteUser(this,' . Tool::echoEncodeString($v->id) . ')" href="javascript::">删除</a><br><a href="' . Yii::$app->urlManager->createUrl([Variable::$userAddress_url, 'id' => Tool::echoEncodeString($v->id)]) . '">收货地址列表</a></td>';
    echo '</tr>';
}
?>
                    </table>
                </div>
            </div>
            <?php 
echo LinkPager::widget(['pagination' => $pagination, 'nextPageLabel' => '下一页', 'prevPageLabel' => '上一页', 'firstPageLabel' => '首页', 'lastPageLabel' => '末页']);
?>
        </div>
    </div>
</div>
<div class="discount-fixed" id="adduser-fixed">
    <div class="dis-close">×</div>
    <div class="dis-head">添加用户</div>
示例#21
0
    echo GlobalArray::$imgUrlArray['0'] . $detv['productLogo'];
    ?>
" class="img-responsive" /></div>
                        <div class="shop-name">
                            <p><?php 
    echo $detv['productName'];
    ?>
</p>
                            <div class="shop-name-table">
                                <div class="shop-n-tr">
                                    <div><span>产</span>地:<?php 
    echo Tool::echoEncodeString($detv['origin']);
    ?>
</div>
                                    <div><span>工</span>艺:<?php 
    echo Tool::echoEncodeString($detv['artsId']);
    ?>
</div>
                                </div>
                            </div>
                        </div>
                        <div class="shop-price">¥<?php 
    echo $detv['price'];
    ?>
</div>
                        <div class="shop-number"><?php 
    echo $detv['productCount'];
    ?>
包</div>
                        <div class="shop-total">¥<?php 
    echo $detv['productPrice'];
示例#22
0
        <div class="adminCon-right">
            <?php 
echo Tool::setBreadcrumbs([[$this->title]]);
?>
            <div class="material">
                <div class="material-head">
                    <a  class="material-head-add">+添加文章分类</a>
                </div>
                <ul class="material-ul">
                    <?php 
foreach ($countries as $k => $v) {
    echo '<li>';
    echo '<div class="mater-li-head">' . Tool::echoEncodeString($v->name) . '</div>';
    echo '<div class="mater-li-ce">分类ID:' . Tool::echoEncodeString($v->id) . '</div>';
    echo ' <div class="mater-li-con">' . Tool::echoEncodeString($v->description) . '</div>';
    echo ' <div class="mater-a"><a onclick="deleteArticleCat(this,' . Tool::echoEncodeString($v->id) . ')" class="btn4">删除</a></div>';
    echo '</li>';
}
?>
                </ul>
            </div>
            <?php 
echo LinkPager::widget(['pagination' => $pagination, 'nextPageLabel' => '下一页', 'prevPageLabel' => '上一页', 'firstPageLabel' => '首页', 'lastPageLabel' => '末页']);
?>
        </div>
    </div>
</div>
<div class="matered-fixed" id="matered-fixed">
    <div class="matered-close">×</div>
    <div class="matered-head">添加文章分类</div>
    <div class="matered-con">
示例#23
0
use yii\base;
$admin_cur = "employ";
?>
            <?php 
echo $this->render(\common\widgets\Variable::$layoutAdminLeftMenu_view, ['admin_cur' => $admin_cur]);
?>
        </div>
        <div class="adminCon-right">
            <?php 
$this->title = '添加后台用户';
echo Tool::setBreadcrumbs([['招聘管理', \common\widgets\Variable::$employIndex_url], [$this->title]]);
?>
            <div class="" id="seller-fixed">
                <div class="dis-con">
                    <?php 
$form = ActiveForm::begin(['id' => 'add-seller-form', 'action' => Yii::$app->urlManager->createUrl([\common\widgets\Variable::$editEmploy_url, 'id' => Tool::echoEncodeString($employModel->id)]), 'method' => 'post']);
?>
                    <div class="row margin0">
                        <?php 
echo $form->field($model, 'employName', ['options' => ['class' => 'form-group col-lg-6 paddingLeft']])->textInput()->label('职位名称');
?>
                        <?php 
echo $form->field($model, 'employCode', ['options' => ['class' => 'form-group col-lg-6 paddingLeft']])->textInput()->label('职位编号');
?>
                    </div>

                    <div class="row margin0">
                        <?php 
echo $form->field($model, 'address', ['options' => ['class' => 'form-group col-lg-3 paddingLeft']])->textInput()->label('工作城市');
?>
                        <?php 
示例#24
0
use common\widgets\GlobalArray;
use yii\web;
use yii\base;
use dosamigos\datetimepicker\DateTimePicker;
use kucha\ueditor\UEditor;
use common\widgets\Tool;
$admin_cur = "article";
$this->title = '编辑文章';
?>
            <?php 
echo $this->render(\common\widgets\Variable::$layoutAdminLeftMenu_view, ['admin_cur' => $admin_cur]);
?>
        </div>
        <div class="adminCon-right">
            <?php 
echo Tool::setBreadcrumbs([['文章管理', \common\widgets\Variable::$articleManger_url], [$this->title]]);
?>
            <div class="" id="seller-fixed">
                <div class="dis-con">
                    <?php 
$form = ActiveForm::begin(['id' => 'add-activity-form', 'action' => Yii::$app->urlManager->createUrl([\common\widgets\Variable::$editArticle_url, 'id' => $model->id]), 'method' => 'post', 'options' => ['enctype' => 'multipart/form-data']]);
?>
                    <?php 
echo $form->field($model, 'title', ['options' => ['class' => 'form-group col-lg-7  paddingLeft']])->textInput()->label('文章名称');
?>
                    <?php 
echo $form->field($model, 'isTop', ['options' => ['class' => 'form-group col-lg-5  paddingLeft']])->checkbox(['template' => "<div class=\"test\">{label}{input}{error}</div>"])->label('是否置顶');
?>
                    <?php 
echo $form->field($model, 'isIndexShow', ['options' => ['class' => 'form-group col-lg-7  paddingLeft']])->dropDownList(GlobalArray::$articleIsIndexShowArr, ['prompt' => '请选择是否首页展示'])->label('是否首页展示');
?>
 public function actionGet()
 {
     set_time_limit(0);
     $id = 10000;
     $end = 12000;
     for ($id; $id < $end; $id++) {
         $imgUrl = 'http://www.qccr.com/store/getStoreList.jhtml?psize=10000&areaId=' . $id;
         $arr = Tool::get_contents($imgUrl);
         $json = json_decode($arr);
         if ($json->msg == '成功') {
             $list = $json->info->list;
             foreach ($list as $k => $v) {
                 $imgUrl = $id;
                 $address = $v->store->sa;
                 $name = $v->store->sn;
                 $phone = $v->store->st;
                 $contract = $v->store->so;
                 $province = $v->store->opb;
                 if (!(new Stroe())->addCustomer($imgUrl, $address, $name, $phone, $contract)) {
                     continue;
                 }
             }
         }
     }
 }
示例#26
0
use common\widgets\Tool;
$admin_cur = "service";
$this->title = '编辑服务项';
?>
            <?php 
echo $this->render(\common\widgets\Variable::$layoutAdminLeftMenu_view, ['admin_cur' => $admin_cur]);
?>
        </div>
        <div class="adminCon-right">
            <?php 
echo Tool::setBreadcrumbs([['服务项管理', \common\widgets\Variable::$serviceIndex_url], [$this->title]]);
?>
            <div class="" id="seller-fixed">
                <div class="dis-con">
                    <?php 
$form = ActiveForm::begin(['id' => 'add-activity-form', 'action' => Yii::$app->urlManager->createUrl([\common\widgets\Variable::$editService_url, 'id' => Tool::echoEncodeString($articleModel->id)]), 'method' => 'post', 'options' => ['enctype' => 'multipart/form-data']]);
?>
                    <div class="row">
                        <?php 
echo $form->field($model, 'title', ['options' => ['class' => 'form-group col-lg-6  paddingLeft']])->textInput()->label('服务项标题');
?>
                        <?php 
echo $form->field($model, 'keywords', ['options' => ['class' => 'form-group col-lg-3  paddingLeft']])->textInput()->label('锚点');
?>
                        <?php 
echo $form->field($model, 'useId', ['options' => ['class' => 'form-group col-lg-3  paddingLeft']])->textInput()->label('显示顺序');
?>
                    </div>
                    <div class="row">
                        <?php 
echo $form->field($model, 'pic')->label('请选择图片')->widget('common\\widgets\\file_upload\\FileUpload', ['config' => []]);
示例#27
0
                            <th>快递编码</th>
                            <th>快递客服电话</th>
                            <th>状态</th>
                            <th>省内邮费</th>
                            <th>省外邮费</th>
                            <th>操作</th>
                        </tr>
                        <?php 
foreach ($countries as $k => $v) {
    echo '<tr>';
    echo ' <td>' . ($k + 1) . '</td>';
    echo '<td>' . Tool::echoEncodeString($v->name) . '</td>';
    echo ' <td>' . Tool::echoEncodeString($v->code) . '</td>';
    echo '<td>' . Tool::echoEncodeString($v->phone, '无') . '</td>';
    echo ' <td>' . GlobalArray::$expressStatusArray[Tool::echoEncodeString($v->status, 0)] . '</td>';
    echo '<td>' . Tool::echoEncodeString($v->inPostage, '未填写') . '</td>';
    echo '<td>' . Tool::echoEncodeString($v->outPostage, '未填写') . '</td>';
    echo '<td><a href="' . Yii::$app->urlManager->createUrl([\common\widgets\Variable::$editExpress_url, 'id' => Tool::echoEncodeString($v->id)]) . '" class="release marginR10">编辑</a><a onclick="deleteExpress(this,' . Tool::echoEncodeString($v->id) . ')"  class="among">删除</a></td>';
}
?>
                    </table>
                </div>
            </div>
            <?php 
echo LinkPager::widget(['pagination' => $pagination, 'nextPageLabel' => '下一页', 'prevPageLabel' => '上一页', 'firstPageLabel' => '首页', 'lastPageLabel' => '末页']);
?>
        </div>
    </div>
</div>

示例#28
0
  ]</small></h1>
                    </div>
                    <div class="action">
                        <span class="user"><a  ><span class="glyphicon glyphicon-user" aria-hidden="true"></span> <?php 
echo Tool::echoEncodeString($model->adminUser->username);
?>
</a></span>
                        <span class="time"><span class="glyphicon glyphicon-time" aria-hidden="true"></span> <?php 
echo Tool::echoEncodeString($model->publishTime);
?>
</span>
                        <span class="views"><span class="glyphicon glyphicon-eye-open" aria-hidden="true"></span> <?php 
echo Tool::echoEncodeString($model->lookCount, '10');
?>
次浏览</span>
                        <span class="replies"><a ><span class="glyphicon glyphicon-phone" aria-hidden="true"></span> <?php 
echo Tool::echoEncodeString($model->isTop);
?>
条回复</a></span>
                        <span class="favourites"><a  data-toggle="tooltip" data-original-title="收藏"><span class="glyphicon glyphicon-star-empty" aria-hidden="true"></span> <em>0</em></a></span>
                    </div>
                    <div><?php 
echo $model->content;
?>
</div>
                </div>
            </div>
        </div>
    </div>
</div>
示例#29
0
                            <th>薪资</th>
                            <th>工作地区</th>
                            <th>操作</th>
                        </tr>
                        <?php 
foreach ($countries as $k => $v) {
    echo '<tr>';
    echo '<td>' . ($k + 1) . '</td>';
    echo '<td>' . Tool::echoEncodeString($v->employName) . '</td>';
    echo '<td>' . GlobalArray::$employStatusArr[Tool::echoEncodeString($v->status, 0)] . '</td>';
    echo '<td>' . Tool::echoEncodeString($v->count) . '</td>';
    echo '<td>' . GlobalArray::$employGroupArr[Tool::echoEncodeString($v->group, '0')] . '</td>';
    echo '<td>' . GlobalArray::$employTypeArr[Tool::echoEncodeString($v->type, '0')] . '</td>';
    echo ' <td>' . Tool::echoEncodeString($v->money) . '</td>';
    echo '<td>' . Tool::echoEncodeString($v->address) . '</td>';
    echo '<td><a href="' . Yii::$app->urlManager->createUrl([\common\widgets\Variable::$editEmploy_url, 'id' => Tool::echoEncodeString($v->id)]) . '">编辑</a><a onclick="deleteEmploy(this,' . Tool::echoEncodeString($v->id) . ')">删除</a></td>';
    echo '</tr>';
}
?>

                    </table>
                </div>
            </div>



<!--            <embed src="http://player.youku.com/player.php/Type/Folder/Fid/16980025/Ob/1/Pt/0/sid/XMzQ3Njg5MTAw/v.swf" quality="high" width="480" height="400" align="middle" allowScriptAccess="always" allowFullScreen="true" mode="transparent" type="application/x-shockwave-flash"></embed>-->

            <?php 
echo LinkPager::widget(['pagination' => $pagination, 'nextPageLabel' => '下一页', 'prevPageLabel' => '上一页', 'firstPageLabel' => '首页', 'lastPageLabel' => '末页']);
?>
示例#30
0
foreach ($countries as $k => $v) {
    echo '<tr>';
    echo '<td>' . ($k + 1) . '</td>';
    echo '<td>' . Tool::echoEncodeString($v->username) . '</td>';
    echo '<td>' . GlobalArray::$userStatusArray[Tool::echoEncodeString($v->status, 0)] . '</td>';
    echo '<td>' . Tool::echoEncodeString($v->mobile) . '</td>';
    echo '<td>' . Tool::echoEncodeString($v->role, '管理员') . '</td>';
    echo '<td>' . Tool::echoEncodeString($v->loginIp) . '</td>';
    echo ' <td>' . Tool::echoEncodeString($v->loginTime) . '</td>';
    echo '<td>' . Tool::echoEncodeString($v->addTime) . '</td>';
    //                                $rr='<a onclick="deleteAdminUser(this,'.Tool::echoEncodeString($v->id).')">删除</a>';
    //                                if($v->role=='超级管理员'){
    //                                    $rr='';
    //                                }
    $rr = '';
    echo '<td><a href="' . Yii::$app->urlManager->createUrl([\common\widgets\Variable::$editAdminUser_url, 'id' => Tool::echoEncodeString($v->id)]) . '">编辑</a>' . $rr . '</td>';
    echo '</tr>';
}
?>

                    </table>
                </div>
            </div>

            <?php 
echo LinkPager::widget(['pagination' => $pagination, 'nextPageLabel' => '下一页', 'prevPageLabel' => '上一页', 'firstPageLabel' => '首页', 'lastPageLabel' => '末页']);
?>
        </div>
    </div>
</div>