|
@@ -5,27 +5,29 @@ namespace app\index;
|
|
|
|
|
|
class publish_setting extends BaseUser
|
|
class publish_setting extends BaseUser
|
|
{
|
|
{
|
|
- function index()
|
|
|
|
- {
|
|
|
|
- $id = bees_decrypt(SafeRequest("id", "get"));
|
|
|
|
- $row = db("appid")->where("in_uid", $this->userid)->where("in_id", $id)->find();
|
|
|
|
- $row or exit(include_once dirname(__FILE__) . "/../pack/error/404.php");
|
|
|
|
- $ssl = is_ssl() ? "https://" : "http://";
|
|
|
|
- $link = $ssl . $_SERVER["HTTP_HOST"] . IN_PATH;
|
|
|
|
- ?> <!DOCTYPE html>
|
|
|
|
|
|
+ function index()
|
|
|
|
+ {
|
|
|
|
+ $id = bees_decrypt(SafeRequest("id", "get"));
|
|
|
|
+ $row = db("appid")->where("in_uid", $this->userid)->where("in_id", $id)->find();
|
|
|
|
+ $row or exit(include_once dirname(__FILE__) . "/../pack/error/404.php");
|
|
|
|
+ $ssl = is_ssl() ? "https://" : "http://";
|
|
|
|
+ $link = $ssl . $_SERVER["HTTP_HOST"] . IN_PATH;
|
|
|
|
+?>
|
|
|
|
+ <!DOCTYPE html>
|
|
<html lang="">
|
|
<html lang="">
|
|
|
|
+
|
|
<head>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta charset="utf-8">
|
|
- <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0"/>
|
|
|
|
- <meta name="keywords" content="<?php echo IN_KEYWORDS;?>"/>
|
|
|
|
- <meta name="description" content="<?php echo IN_DESCRIPTION;?>"/>
|
|
|
|
- <title><?php echo $row["in_name"];?>应用详情 - <?php echo IN_NAME;?></title>
|
|
|
|
- <?php
|
|
|
|
- $this->static_();
|
|
|
|
- ?> <script charset="utf-8" src="/static/pack/kindeditor/kindeditor-all-min.js"></script>
|
|
|
|
|
|
+ <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0" />
|
|
|
|
+ <meta name="keywords" content="<?php echo IN_KEYWORDS; ?>" />
|
|
|
|
+ <meta name="description" content="<?php echo IN_DESCRIPTION; ?>" />
|
|
|
|
+ <title><?php echo $row["in_name"]; ?>应用详情 - <?php echo IN_NAME; ?></title>
|
|
|
|
+ <?php
|
|
|
|
+ $this->static_();
|
|
|
|
+ ?> <script charset="utf-8" src="/static/pack/kindeditor/kindeditor-all-min.js"></script>
|
|
<script>
|
|
<script>
|
|
var editor;
|
|
var editor;
|
|
- KindEditor.ready(function (K) {
|
|
|
|
|
|
+ KindEditor.ready(function(K) {
|
|
editor = K.create('textarea[name="app_intro"]', {
|
|
editor = K.create('textarea[name="app_intro"]', {
|
|
resizeType: 1,
|
|
resizeType: 1,
|
|
allowPreviewEmoticons: false,
|
|
allowPreviewEmoticons: false,
|
|
@@ -33,530 +35,537 @@ class publish_setting extends BaseUser
|
|
items: [
|
|
items: [
|
|
'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
|
|
'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
|
|
'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
|
|
'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
|
|
- 'insertunorderedlist', '|', 'emoticons', 'image', 'link']
|
|
|
|
|
|
+ 'insertunorderedlist', '|', 'emoticons', 'image', 'link'
|
|
|
|
+ ]
|
|
});
|
|
});
|
|
})
|
|
})
|
|
</script>
|
|
</script>
|
|
</head>
|
|
</head>
|
|
|
|
+
|
|
<body>
|
|
<body>
|
|
- <?php
|
|
|
|
- $this->header();
|
|
|
|
- ?> <link rel="stylesheet" href="/static/pack/font-awesome-4.7.0/css/font-awesome.css"/>
|
|
|
|
- <script src="/static/index/js/jquery.form.js"></script>
|
|
|
|
- <div class="release-app-wrap">
|
|
|
|
- <div class="container">
|
|
|
|
- <div class="release-app2">
|
|
|
|
- <div class="crumbs">
|
|
|
|
- <a href="/index/apps/apps">我的应用</a>
|
|
|
|
- <span>/</span>
|
|
|
|
- <a href="/index/apps/apps">应用列表</a>
|
|
|
|
- <span>/</span>
|
|
|
|
- <?php echo $row["in_name"];?> </div>
|
|
|
|
- <div class="row clearfix">
|
|
|
|
- <?php
|
|
|
|
- $this->publish_left();
|
|
|
|
- ?> <div class="col-sm-10">
|
|
|
|
- <div class="aside-right">
|
|
|
|
- <form class="form-horizontal" id="app_setting_form"
|
|
|
|
- action="/index/ajax_profile/edit" method="post">
|
|
|
|
- <div class="app-details app-details2 app-set1">
|
|
|
|
- <?php
|
|
|
|
- $this->publish_top($row);
|
|
|
|
- ?> <hr>
|
|
|
|
- <div class="app-set">
|
|
|
|
- <ul class="tab clearfix">
|
|
|
|
- <li class="active">基本设置</li>
|
|
|
|
- <li>高级设置</li>
|
|
|
|
- <li>模板设置</li>
|
|
|
|
- </ul>
|
|
|
|
- <div class="tab-con">
|
|
|
|
- <div class="basic" style="display: block;">
|
|
|
|
- <div class="form-group clearfix">
|
|
|
|
- <label class="control-label col-sm-1"><span>*</span>应用名称</label>
|
|
|
|
- <div class="col-sm-6">
|
|
|
|
- <input id="app_name" name="app_name" class="form-control"
|
|
|
|
- type="text" placeholder="APP的名字"
|
|
|
|
- value="<?php echo $row["in_name"];?>">
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- <div class="form-group clearfix short-link">
|
|
|
|
- <label class="control-label col-sm-1"><span>*</span>短链接</label>
|
|
|
|
- <div class="col-sm-6 clearfix">
|
|
|
|
- <div class="col-sm-6 link"><?php echo $link;?></div>
|
|
|
|
|
|
+ <?php
|
|
|
|
+ $this->header();
|
|
|
|
+ ?>
|
|
|
|
+ <link rel="stylesheet" href="/static/pack/font-awesome-4.7.0/css/font-awesome.css" />
|
|
|
|
+ <script src="/static/index/js/jquery.form.js"></script>
|
|
|
|
+ <div class="release-app-wrap">
|
|
|
|
+ <div class="container">
|
|
|
|
+ <div class="release-app2">
|
|
|
|
+ <div class="crumbs">
|
|
|
|
+ <a href="/index/apps/apps">我的应用</a>
|
|
|
|
+ <span>/</span>
|
|
|
|
+ <a href="/index/apps/apps">应用列表</a>
|
|
|
|
+ <span>/</span>
|
|
|
|
+ <?php echo $row["in_name"]; ?>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="row clearfix">
|
|
|
|
+ <?php
|
|
|
|
+ $this->publish_left();
|
|
|
|
+ ?> <div class="col-sm-10">
|
|
|
|
+ <div class="aside-right">
|
|
|
|
+ <form class="form-horizontal" id="app_setting_form"
|
|
|
|
+ action="/index/ajax_profile/edit" method="post">
|
|
|
|
+ <div class="app-details app-details2 app-set1">
|
|
|
|
+ <?php
|
|
|
|
+ $this->publish_top($row);
|
|
|
|
+ ?>
|
|
|
|
+ <hr>
|
|
|
|
+ <div class="app-set">
|
|
|
|
+ <ul class="tab clearfix">
|
|
|
|
+ <li class="active">基本设置</li>
|
|
|
|
+ <li>高级设置</li>
|
|
|
|
+ <li>模板设置</li>
|
|
|
|
+ </ul>
|
|
|
|
+ <div class="tab-con">
|
|
|
|
+ <div class="basic" style="display: block;">
|
|
|
|
+ <div class="form-group clearfix">
|
|
|
|
+ <label class="control-label col-sm-1"><span>*</span>应用名称</label>
|
|
<div class="col-sm-6">
|
|
<div class="col-sm-6">
|
|
- <input id="url" name="url" class="form-control"
|
|
|
|
- type="text"
|
|
|
|
- placeholder="例如:abcdef"
|
|
|
|
- value="<?php echo $row["in_link"];?>">
|
|
|
|
|
|
+ <input id="app_name" name="app_name" class="form-control"
|
|
|
|
+ type="text" placeholder="APP的名字"
|
|
|
|
+ value="<?php echo $row["in_name"]; ?>">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- <div class="senior">
|
|
|
|
-
|
|
|
|
- <div class="form-group clearfix" <?php echo $row["in_form"] == "iOS" && $this->action != "super" ? "" : "style=\"display:none\"";?>>
|
|
|
|
- <label class="control-label col-sm-1">信任教程</label>
|
|
|
|
- <div class="col-sm-6">
|
|
|
|
- <ul class="clearfix trust in_tutorial">
|
|
|
|
- <li class="clearfix <?php
|
|
|
|
- if ($row["in_tutorial"] == 1) {
|
|
|
|
- ?>active<?php
|
|
|
|
- }
|
|
|
|
- ?>"
|
|
|
|
- data-value="1">
|
|
|
|
- <span class="icon icon-radio fl <?php
|
|
|
|
- if ($row["in_tutorial"] == 1) {
|
|
|
|
- ?>icon-radio-checked<?php
|
|
|
|
- }
|
|
|
|
- ?>"></span>
|
|
|
|
- <span class="fl">显示</span>
|
|
|
|
- </li>
|
|
|
|
- <li class="clearfix <?php
|
|
|
|
- if ($row["in_tutorial"] == 0) {
|
|
|
|
- ?>active<?php
|
|
|
|
- }
|
|
|
|
- ?>"
|
|
|
|
- data-value="0">
|
|
|
|
- <span class="icon icon-radio fl <?php
|
|
|
|
- if ($row["in_tutorial"] == 0) {
|
|
|
|
- ?>icon-radio-checked<?php
|
|
|
|
- }
|
|
|
|
- ?>"></span>
|
|
|
|
- <span class="fl">不显示</span>
|
|
|
|
- </li>
|
|
|
|
- </ul>
|
|
|
|
|
|
+ <div class="form-group clearfix short-link">
|
|
|
|
+ <label class="control-label col-sm-1"><span>*</span>短链接</label>
|
|
|
|
+ <div class="col-sm-6 clearfix">
|
|
|
|
+ <div class="col-sm-6 link"><?php echo $link; ?></div>
|
|
|
|
+ <div class="col-sm-6">
|
|
|
|
+ <input id="url" name="url" class="form-control"
|
|
|
|
+ type="text"
|
|
|
|
+ placeholder="例如:abcdef"
|
|
|
|
+ value="<?php echo $row["in_link"]; ?>">
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
- <input type="hidden" name="show_guide"
|
|
|
|
- value="<?php echo $row["in_tutorial"];?>">
|
|
|
|
</div>
|
|
</div>
|
|
|
|
+ <div class="senior">
|
|
|
|
|
|
- <div class="form-group clearfix" <?php echo $this->action == "super" ? "" : "style=\"display:none\"";?>>
|
|
|
|
- <label class="control-label col-sm-1">下载池</label>
|
|
|
|
- <div class="col-sm-6">
|
|
|
|
- <ul class="clearfix trust in_private">
|
|
|
|
- <li class="clearfix <?php
|
|
|
|
- if ($row["in_private"] == 0) {
|
|
|
|
- ?>active<?php
|
|
|
|
- }
|
|
|
|
- ?>">
|
|
|
|
- <span class="icon icon-radio fl <?php
|
|
|
|
- if ($row["in_private"] == 0) {
|
|
|
|
- ?>icon-radio-checked<?php
|
|
|
|
- }
|
|
|
|
- ?>"></span>
|
|
|
|
- <span class="fl">公有</span>
|
|
|
|
- </li>
|
|
|
|
- <li class="clearfix <?php
|
|
|
|
- if ($row["in_private"] == 1) {
|
|
|
|
- ?>active<?php
|
|
|
|
- }
|
|
|
|
- ?>">
|
|
|
|
- <span class="icon icon-radio fl <?php
|
|
|
|
- if ($row["in_private"] == 1) {
|
|
|
|
- ?>icon-radio-checked<?php
|
|
|
|
- }
|
|
|
|
- ?>"></span>
|
|
|
|
- <span class="fl">私有</span>
|
|
|
|
- </li>
|
|
|
|
- </ul>
|
|
|
|
|
|
+ <div class="form-group clearfix" <?php echo $row["in_form"] == "iOS" && $this->action != "super" ? "" : "style=\"display:none\""; ?>>
|
|
|
|
+ <label class="control-label col-sm-1">信任教程</label>
|
|
|
|
+ <div class="col-sm-6">
|
|
|
|
+ <ul class="clearfix trust in_tutorial">
|
|
|
|
+ <li class="clearfix <?php
|
|
|
|
+ if ($row["in_tutorial"] == 1) {
|
|
|
|
+ ?>active<?php
|
|
|
|
+ }
|
|
|
|
+ ?>"
|
|
|
|
+ data-value="1">
|
|
|
|
+ <span class="icon icon-radio fl <?php
|
|
|
|
+ if ($row["in_tutorial"] == 1) {
|
|
|
|
+ ?>icon-radio-checked<?php
|
|
|
|
+ }
|
|
|
|
+ ?>"></span>
|
|
|
|
+ <span class="fl">显示</span>
|
|
|
|
+ </li>
|
|
|
|
+ <li class="clearfix <?php
|
|
|
|
+ if ($row["in_tutorial"] == 0) {
|
|
|
|
+ ?>active<?php
|
|
|
|
+ }
|
|
|
|
+ ?>"
|
|
|
|
+ data-value="0">
|
|
|
|
+ <span class="icon icon-radio fl <?php
|
|
|
|
+ if ($row["in_tutorial"] == 0) {
|
|
|
|
+ ?>icon-radio-checked<?php
|
|
|
|
+ }
|
|
|
|
+ ?>"></span>
|
|
|
|
+ <span class="fl">不显示</span>
|
|
|
|
+ </li>
|
|
|
|
+ </ul>
|
|
|
|
+ </div>
|
|
|
|
+ <input type="hidden" name="show_guide"
|
|
|
|
+ value="<?php echo $row["in_tutorial"]; ?>">
|
|
</div>
|
|
</div>
|
|
- <input type="hidden" name="in_private" value="<?php echo $row["in_private"];?>">
|
|
|
|
- </div>
|
|
|
|
|
|
|
|
- <div class="form-group clearfix">
|
|
|
|
- <label class="control-label col-sm-1">下载方式</label>
|
|
|
|
- <div class="col-sm-10">
|
|
|
|
- <ul class="clearfix download-way">
|
|
|
|
- <li class="clearfix active" data-value="0">
|
|
|
|
- <span class="icon icon-radio <?php
|
|
|
|
- if (empty($row["in_use_auth_code"]) && empty($row["in_apppwd"])) {
|
|
|
|
- ?>icon-radio-checked <?php
|
|
|
|
- }
|
|
|
|
- ?>fl"></span>
|
|
|
|
- <span class="fl">公开安装</span>
|
|
|
|
- </li>
|
|
|
|
- <li class="clearfix" data-value="1">
|
|
|
|
- <span class="icon icon-radio <?php
|
|
|
|
- if (empty($row["in_use_auth_code"]) && $row["in_apppwd"]) {
|
|
|
|
- ?>icon-radio-checked <?php
|
|
|
|
- }
|
|
|
|
- ?>fl"></span>
|
|
|
|
- <span class="fl">密码安装</span>
|
|
|
|
- </li>
|
|
|
|
- <li class="clearfix" data-value="2" <?php echo $this->action == "super" ? "" : "style=\"display:none\"";?>>
|
|
|
|
- <span class="icon icon-radio <?php
|
|
|
|
- if ($row["in_use_auth_code"]) {
|
|
|
|
- ?>icon-radio-checked <?php
|
|
|
|
- }
|
|
|
|
- ?>fl"></span>
|
|
|
|
- <span class="fl">授权码安装</span>
|
|
|
|
- </li>
|
|
|
|
- <input type="hidden" name="in_use_auth_code" value="<?php echo $row["in_use_auth_code"];?>">
|
|
|
|
- </ul>
|
|
|
|
|
|
+ <div class="form-group clearfix" <?php echo $this->action == "super" ? "" : "style=\"display:none\""; ?>>
|
|
|
|
+ <label class="control-label col-sm-1">下载池</label>
|
|
|
|
+ <div class="col-sm-6">
|
|
|
|
+ <ul class="clearfix trust in_private">
|
|
|
|
+ <li class="clearfix <?php
|
|
|
|
+ if ($row["in_private"] == 0) {
|
|
|
|
+ ?>active<?php
|
|
|
|
+ }
|
|
|
|
+ ?>">
|
|
|
|
+ <span class="icon icon-radio fl <?php
|
|
|
|
+ if ($row["in_private"] == 0) {
|
|
|
|
+ ?>icon-radio-checked<?php
|
|
|
|
+ }
|
|
|
|
+ ?>"></span>
|
|
|
|
+ <span class="fl">公有</span>
|
|
|
|
+ </li>
|
|
|
|
+ <li class="clearfix <?php
|
|
|
|
+ if ($row["in_private"] == 1) {
|
|
|
|
+ ?>active<?php
|
|
|
|
+ }
|
|
|
|
+ ?>">
|
|
|
|
+ <span class="icon icon-radio fl <?php
|
|
|
|
+ if ($row["in_private"] == 1) {
|
|
|
|
+ ?>icon-radio-checked<?php
|
|
|
|
+ }
|
|
|
|
+ ?>"></span>
|
|
|
|
+ <span class="fl">私有</span>
|
|
|
|
+ </li>
|
|
|
|
+ </ul>
|
|
|
|
+ </div>
|
|
|
|
+ <input type="hidden" name="in_private" value="<?php echo $row["in_private"]; ?>">
|
|
</div>
|
|
</div>
|
|
- </div>
|
|
|
|
- <div id="apppwd" class="form-group clearfix" <?php
|
|
|
|
- if (empty($row["in_apppwd"])) {
|
|
|
|
- ?> style="display: none;"<?php
|
|
|
|
- }
|
|
|
|
- ?>>
|
|
|
|
- <label class="control-label col-sm-1">下载密码</label>
|
|
|
|
- <div class="col-sm-6">
|
|
|
|
- <input id="password" name="password" class="form-control" autocomplete="false" type="text" placeholder="请输入下载密码" value="">
|
|
|
|
|
|
+
|
|
|
|
+ <div class="form-group clearfix">
|
|
|
|
+ <label class="control-label col-sm-1">下载方式</label>
|
|
|
|
+ <div class="col-sm-10">
|
|
|
|
+ <ul class="clearfix download-way">
|
|
|
|
+ <li class="clearfix active" data-value="0">
|
|
|
|
+ <span class="icon icon-radio <?php
|
|
|
|
+ if (empty($row["in_use_auth_code"]) && empty($row["in_apppwd"])) {
|
|
|
|
+ ?>icon-radio-checked <?php
|
|
|
|
+ }
|
|
|
|
+ ?>fl"></span>
|
|
|
|
+ <span class="fl">公开安装</span>
|
|
|
|
+ </li>
|
|
|
|
+ <li class="clearfix" data-value="1">
|
|
|
|
+ <span class="icon icon-radio <?php
|
|
|
|
+ if (empty($row["in_use_auth_code"]) && $row["in_apppwd"]) {
|
|
|
|
+ ?>icon-radio-checked <?php
|
|
|
|
+ }
|
|
|
|
+ ?>fl"></span>
|
|
|
|
+ <span class="fl">密码安装</span>
|
|
|
|
+ </li>
|
|
|
|
+ <li class="clearfix" data-value="2" <?php echo $this->action == "super" ? "" : "style=\"display:none\""; ?>>
|
|
|
|
+ <span class="icon icon-radio <?php
|
|
|
|
+ if ($row["in_use_auth_code"]) {
|
|
|
|
+ ?>icon-radio-checked <?php
|
|
|
|
+ }
|
|
|
|
+ ?>fl"></span>
|
|
|
|
+ <span class="fl">授权码安装</span>
|
|
|
|
+ </li>
|
|
|
|
+ <input type="hidden" name="in_use_auth_code" value="<?php echo $row["in_use_auth_code"]; ?>">
|
|
|
|
+ </ul>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
- </div>
|
|
|
|
- <div class="form-group clearfix auth_code_dispense_url" <?php
|
|
|
|
- if (empty($row["in_use_auth_code"]) || $this->action != "super") {
|
|
|
|
- ?> style="display: none;"<?php
|
|
|
|
- }
|
|
|
|
- ?>>
|
|
|
|
- <label class="control-label col-sm-1">购码地址</label>
|
|
|
|
- <div class="col-sm-6">
|
|
|
|
- <input id="auth_code_dispense_url" name="auth_code_dispense_url" class="form-control" autocomplete="false" type="text" placeholder="默认留空,在平台购卡,也可自定义填写" value="<?php echo $row["auth_code_dispense_url"];?>">
|
|
|
|
|
|
+ <div id="apppwd" class="form-group clearfix" <?php
|
|
|
|
+ if (empty($row["in_apppwd"])) {
|
|
|
|
+ ?> style="display: none;" <?php
|
|
|
|
+ }
|
|
|
|
+ ?>>
|
|
|
|
+ <label class="control-label col-sm-1">下载密码</label>
|
|
|
|
+ <div class="col-sm-6">
|
|
|
|
+ <input id="password" name="password" class="form-control" autocomplete="false" type="text" placeholder="请输入下载密码" value="">
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
- </div>
|
|
|
|
- <div class="form-group clearfix">
|
|
|
|
- <label class="control-label col-sm-1">验证码</label>
|
|
|
|
- <div class="col-sm-6">
|
|
|
|
- <ul class="clearfix trust in_captcha">
|
|
|
|
- <li class="clearfix <?php
|
|
|
|
- if ($row["in_captcha"] == 0) {
|
|
|
|
- ?>active<?php
|
|
|
|
- }
|
|
|
|
- ?>"
|
|
|
|
- data-value="0">
|
|
|
|
- <span class="icon icon-radio fl <?php
|
|
|
|
- if ($row["in_captcha"] == 0) {
|
|
|
|
- ?>icon-radio-checked<?php
|
|
|
|
- }
|
|
|
|
- ?>"></span>
|
|
|
|
- <span class="fl">不启用</span>
|
|
|
|
- </li>
|
|
|
|
- <li class="clearfix <?php
|
|
|
|
- if ($row["in_captcha"] == 1) {
|
|
|
|
- ?>active<?php
|
|
|
|
- }
|
|
|
|
- ?>"
|
|
|
|
- data-value="1">
|
|
|
|
- <span class="icon icon-radio fl <?php
|
|
|
|
- if ($row["in_captcha"] == 1) {
|
|
|
|
- ?>icon-radio-checked<?php
|
|
|
|
- }
|
|
|
|
- ?>"></span>
|
|
|
|
- <span class="fl">启用</span>
|
|
|
|
- </li>
|
|
|
|
- </ul>
|
|
|
|
|
|
+ <div class="form-group clearfix auth_code_dispense_url" <?php
|
|
|
|
+ if (empty($row["in_use_auth_code"]) || $this->action != "super") {
|
|
|
|
+ ?> style="display: none;" <?php
|
|
|
|
+ }
|
|
|
|
+ ?>>
|
|
|
|
+ <label class="control-label col-sm-1">购码地址</label>
|
|
|
|
+ <div class="col-sm-6">
|
|
|
|
+ <input id="auth_code_dispense_url" name="auth_code_dispense_url" class="form-control" autocomplete="false" type="text" placeholder="默认留空,在平台购卡,也可自定义填写" value="<?php echo $row["auth_code_dispense_url"]; ?>">
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
- <input type="hidden" name="in_captcha"
|
|
|
|
- value="<?php echo $row["in_captcha"];?>">
|
|
|
|
- </div>
|
|
|
|
- <div class="form-group clearfix">
|
|
|
|
- <label class="control-label col-sm-1">下载限制</label>
|
|
|
|
- <div class="col-sm-6">
|
|
|
|
- <input id="limit_num" name="limit_num" class="form-control"
|
|
|
|
- type="text" placeholder="请输入限制下载次数,不填或填0表示不限制"
|
|
|
|
- value="<?php echo $row["in_applimit"];?>">
|
|
|
|
|
|
+ <div class="form-group clearfix">
|
|
|
|
+ <label class="control-label col-sm-1">验证码</label>
|
|
|
|
+ <div class="col-sm-6">
|
|
|
|
+ <ul class="clearfix trust in_captcha">
|
|
|
|
+ <li class="clearfix <?php
|
|
|
|
+ if ($row["in_captcha"] == 0) {
|
|
|
|
+ ?>active<?php
|
|
|
|
+ }
|
|
|
|
+ ?>"
|
|
|
|
+ data-value="0">
|
|
|
|
+ <span class="icon icon-radio fl <?php
|
|
|
|
+ if ($row["in_captcha"] == 0) {
|
|
|
|
+ ?>icon-radio-checked<?php
|
|
|
|
+ }
|
|
|
|
+ ?>"></span>
|
|
|
|
+ <span class="fl">不启用</span>
|
|
|
|
+ </li>
|
|
|
|
+ <li class="clearfix <?php
|
|
|
|
+ if ($row["in_captcha"] == 1) {
|
|
|
|
+ ?>active<?php
|
|
|
|
+ }
|
|
|
|
+ ?>"
|
|
|
|
+ data-value="1">
|
|
|
|
+ <span class="icon icon-radio fl <?php
|
|
|
|
+ if ($row["in_captcha"] == 1) {
|
|
|
|
+ ?>icon-radio-checked<?php
|
|
|
|
+ }
|
|
|
|
+ ?>"></span>
|
|
|
|
+ <span class="fl">启用</span>
|
|
|
|
+ </li>
|
|
|
|
+ </ul>
|
|
|
|
+ </div>
|
|
|
|
+ <input type="hidden" name="in_captcha"
|
|
|
|
+ value="<?php echo $row["in_captcha"]; ?>">
|
|
</div>
|
|
</div>
|
|
- </div>
|
|
|
|
- <div class="form-group clearfix">
|
|
|
|
- <label class="control-label col-sm-1">联系方式</label>
|
|
|
|
- <div class="col-sm-6">
|
|
|
|
- <input id="qq" name="qq" class="form-control" type="text"
|
|
|
|
- placeholder="请输入微信/QQ/手机号(格式:微信 123456696)"
|
|
|
|
- value="<?php echo $row["in_contact"];?>">
|
|
|
|
|
|
+ <div class="form-group clearfix">
|
|
|
|
+ <label class="control-label col-sm-1">下载限制</label>
|
|
|
|
+ <div class="col-sm-6">
|
|
|
|
+ <input id="limit_num" name="limit_num" class="form-control"
|
|
|
|
+ type="text" placeholder="请输入限制下载次数,不填或填0表示不限制"
|
|
|
|
+ value="<?php echo $row["in_applimit"]; ?>">
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
- </div>
|
|
|
|
- <?php
|
|
|
|
- if ($row["in_form"] == "iOS") {
|
|
|
|
- ?> <div class="form-group clearfix">
|
|
|
|
- <label class="control-label col-sm-1">苹果商店地址</label>
|
|
|
|
|
|
+ <div class="form-group clearfix">
|
|
|
|
+ <label class="control-label col-sm-1">联系方式</label>
|
|
<div class="col-sm-6">
|
|
<div class="col-sm-6">
|
|
- <input class="form-control" autocomplete="false"
|
|
|
|
- id="appstore_url" name="appstore_url"
|
|
|
|
- value="<?php echo $row["in_appstore"];?>"
|
|
|
|
- placeholder="请输入苹果商店地址">
|
|
|
|
|
|
+ <input id="qq" name="qq" class="form-control" type="text"
|
|
|
|
+ placeholder="请输入微信/QQ/手机号(格式:微信 123456696)"
|
|
|
|
+ value="<?php echo $row["in_contact"]; ?>">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <?php
|
|
|
|
- }
|
|
|
|
- ?> <div class="form-group clearfix">
|
|
|
|
- <label class="control-label col-sm-1">备注</label>
|
|
|
|
- <div class="col-sm-6">
|
|
|
|
- <input class="form-control" type="text"
|
|
|
|
- placeholder="请输入备注说明"
|
|
|
|
- name="remark"
|
|
|
|
- value="<?php echo $row["in_remark"];?>">
|
|
|
|
|
|
+ <?php
|
|
|
|
+ if ($row["in_form"] == "iOS") {
|
|
|
|
+ ?> <div class="form-group clearfix">
|
|
|
|
+ <label class="control-label col-sm-1">苹果商店地址</label>
|
|
|
|
+ <div class="col-sm-6">
|
|
|
|
+ <input class="form-control" autocomplete="false"
|
|
|
|
+ id="appstore_url" name="appstore_url"
|
|
|
|
+ value="<?php echo $row["in_appstore"]; ?>"
|
|
|
|
+ placeholder="请输入苹果商店地址">
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <?php
|
|
|
|
+ }
|
|
|
|
+ ?> <div class="form-group clearfix">
|
|
|
|
+ <label class="control-label col-sm-1">备注</label>
|
|
|
|
+ <div class="col-sm-6">
|
|
|
|
+ <input class="form-control" type="text"
|
|
|
|
+ placeholder="请输入备注说明"
|
|
|
|
+ name="remark"
|
|
|
|
+ value="<?php echo $row["in_remark"]; ?>">
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
- </div>
|
|
|
|
- <div class="form-group clearfix">
|
|
|
|
- <label class="control-label col-sm-1">应用介绍</label>
|
|
|
|
- <div class="col-sm-6">
|
|
|
|
- <textarea class="form-control" rows="4" type="text"
|
|
|
|
- placeholder="请输入应用介绍" id="app_intro"
|
|
|
|
- name="app_intro"
|
|
|
|
- style="width:500px;height:200px;visibility:hidden;"><?php echo $row["in_appintro"];?></textarea>
|
|
|
|
|
|
+ <div class="form-group clearfix">
|
|
|
|
+ <label class="control-label col-sm-1">应用介绍</label>
|
|
|
|
+ <div class="col-sm-6">
|
|
|
|
+ <textarea class="form-control" rows="4" type="text"
|
|
|
|
+ placeholder="请输入应用介绍" id="app_intro"
|
|
|
|
+ name="app_intro"
|
|
|
|
+ style="width:500px;height:200px;visibility:hidden;"><?php echo $row["in_appintro"]; ?></textarea>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- </div>
|
|
|
|
- <div class="download-template">
|
|
|
|
- <div class="form-group clearfix">
|
|
|
|
- <label class="control-label col-sm-1">设置语言</label>
|
|
|
|
- <div class="col-sm-10">
|
|
|
|
- <ul class="clearfix template-language radio-round" style="margin-top:7px;">
|
|
|
|
- <li class="clearfix active" data-language="zh">
|
|
|
|
- <span class="icon icon-radio <?php
|
|
|
|
- if ($row["template_language"] == "zh") {
|
|
|
|
- ?>icon-radio-checked <?php
|
|
|
|
- }
|
|
|
|
- ?>fl"></span>
|
|
|
|
- <span class="fl">简体中文</span>
|
|
|
|
- </li>
|
|
|
|
- <li class="clearfix " data-language="en">
|
|
|
|
- <span class="icon icon-radio <?php
|
|
|
|
- if ($row["template_language"] == "en") {
|
|
|
|
- ?>icon-radio-checked <?php
|
|
|
|
- }
|
|
|
|
- ?>fl "></span>
|
|
|
|
- <span class="fl">English</span>
|
|
|
|
- </li>
|
|
|
|
- <li class="clearfix " data-language="zh-tw">
|
|
|
|
- <span class="icon icon-radio <?php
|
|
|
|
- if ($row["template_language"] == "zh-tw") {
|
|
|
|
- ?>icon-radio-checked <?php
|
|
|
|
- }
|
|
|
|
- ?>fl "></span>
|
|
|
|
- <span class="fl">繁體中文</span>
|
|
|
|
- </li>
|
|
|
|
- <input type="hidden" name="template_language"
|
|
|
|
- value="<?php echo $row["template_language"];?>">
|
|
|
|
- </ul>
|
|
|
|
|
|
+ <div class="download-template">
|
|
|
|
+ <div class="form-group clearfix">
|
|
|
|
+ <label class="control-label col-sm-1">设置语言</label>
|
|
|
|
+ <div class="col-sm-10">
|
|
|
|
+ <ul class="clearfix template-language radio-round" style="margin-top:7px;">
|
|
|
|
+ <li class="clearfix active" data-language="zh">
|
|
|
|
+ <span class="icon icon-radio <?php
|
|
|
|
+ if ($row["template_language"] == "zh") {
|
|
|
|
+ ?>icon-radio-checked <?php
|
|
|
|
+ }
|
|
|
|
+ ?>fl"></span>
|
|
|
|
+ <span class="fl">简体中文</span>
|
|
|
|
+ </li>
|
|
|
|
+ <li class="clearfix " data-language="en">
|
|
|
|
+ <span class="icon icon-radio <?php
|
|
|
|
+ if ($row["template_language"] == "en") {
|
|
|
|
+ ?>icon-radio-checked <?php
|
|
|
|
+ }
|
|
|
|
+ ?>fl "></span>
|
|
|
|
+ <span class="fl">English</span>
|
|
|
|
+ </li>
|
|
|
|
+ <li class="clearfix " data-language="zh-tw">
|
|
|
|
+ <span class="icon icon-radio <?php
|
|
|
|
+ if ($row["template_language"] == "zh-tw") {
|
|
|
|
+ ?>icon-radio-checked <?php
|
|
|
|
+ }
|
|
|
|
+ ?>fl "></span>
|
|
|
|
+ <span class="fl">繁體中文</span>
|
|
|
|
+ </li>
|
|
|
|
+ <input type="hidden" name="template_language"
|
|
|
|
+ value="<?php echo $row["template_language"]; ?>">
|
|
|
|
+ </ul>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
- </div>
|
|
|
|
- <div class="form-group">
|
|
|
|
- <label class="control-label col-sm-1">设置模板</label>
|
|
|
|
- <div class="col-sm-10">
|
|
|
|
- <ul class="clearfix">
|
|
|
|
- <?php
|
|
|
|
- foreach (range(1, 7) as $k => $v) {
|
|
|
|
- ?> <li>
|
|
|
|
- <div class="t-checked-wrap">
|
|
|
|
- <img src="/static/index/image/template-<?php echo $v;?>.jpg"
|
|
|
|
- class="img-responsive">
|
|
|
|
- <div class="t-checked"
|
|
|
|
- <?php echo $row["template"] == $v ? "style=\"display: flex\"" : "";?>>
|
|
|
|
- <span class="iconfont icon-xuanzhong1"></span>
|
|
|
|
|
|
+ <div class="form-group">
|
|
|
|
+ <label class="control-label col-sm-1">设置模板</label>
|
|
|
|
+ <div class="col-sm-10">
|
|
|
|
+ <ul class="clearfix">
|
|
|
|
+ <?php
|
|
|
|
+ foreach (range(1, 7) as $k => $v) {
|
|
|
|
+ ?> <li>
|
|
|
|
+ <div class="t-checked-wrap">
|
|
|
|
+ <img src="/static/index/image/template-<?php echo $v; ?>.jpg"
|
|
|
|
+ class="img-responsive">
|
|
|
|
+ <div class="t-checked"
|
|
|
|
+ <?php echo $row["template"] == $v ? "style=\"display: flex\"" : ""; ?>>
|
|
|
|
+ <span class="iconfont icon-xuanzhong1"></span>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
- </div>
|
|
|
|
- <a href="/index/template/<?php echo bees_encrypt($row["in_id"]);?>/tmp<?php echo $v;?>"
|
|
|
|
- target="_blank" class="text">预览</a>
|
|
|
|
- <input type="radio" name="template"
|
|
|
|
- value="<?php echo $v;?>" <?php
|
|
|
|
- if ($row["template"] == $v) {
|
|
|
|
- ?>checked<?php
|
|
|
|
- }
|
|
|
|
- ?> class="hidden">
|
|
|
|
- </li>
|
|
|
|
- <?php
|
|
|
|
- }
|
|
|
|
- ?> </ul>
|
|
|
|
|
|
+ <a href="/index/template/<?php echo bees_encrypt($row["in_id"]); ?>/tmp<?php echo $v; ?>"
|
|
|
|
+ target="_blank" class="text">预览</a>
|
|
|
|
+ <input type="radio" name="template"
|
|
|
|
+ value="<?php echo $v; ?>" <?php
|
|
|
|
+ if ($row["template"] == $v) {
|
|
|
|
+ ?>checked<?php
|
|
|
|
+ }
|
|
|
|
+ ?> class="hidden">
|
|
|
|
+ </li>
|
|
|
|
+ <?php
|
|
|
|
+ }
|
|
|
|
+ ?> </ul>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- </div>
|
|
|
|
- <div class="form-group clearfix">
|
|
|
|
- <input type="hidden" name="id"
|
|
|
|
- value="<?php echo bees_encrypt($row["in_id"]);?>"/>
|
|
|
|
- <label class="control-label col-sm-1"></label>
|
|
|
|
- <div class="col-sm-6">
|
|
|
|
- <button id="submitButton" type="button"
|
|
|
|
|
|
+ <div class="form-group clearfix">
|
|
|
|
+ <input type="hidden" name="id"
|
|
|
|
+ value="<?php echo bees_encrypt($row["in_id"]); ?>" />
|
|
|
|
+ <label class="control-label col-sm-1"></label>
|
|
|
|
+ <div class="col-sm-6">
|
|
|
|
+ <button id="submitButton" type="button"
|
|
class="ms-btn ms-btn-primary w140">
|
|
class="ms-btn ms-btn-primary w140">
|
|
- 保存
|
|
|
|
- </button>
|
|
|
|
|
|
+ 保存
|
|
|
|
+ </button>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- </div>
|
|
|
|
- </form>
|
|
|
|
|
|
+ </form>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- </div>
|
|
|
|
- <div class="modal fade ms-modal auto-hide-modal" id="msModalSetting" tabindex="-1" role="dialog"
|
|
|
|
- style="display: none;">
|
|
|
|
- <div class="modal-dialog modal-sm" role="document">
|
|
|
|
- <div class="modal-content">
|
|
|
|
- <div class="modal-body">
|
|
|
|
- <div class="text-center">
|
|
|
|
- <div class="auto-hide">
|
|
|
|
- <span class="icon icon-modal-success3"></span>
|
|
|
|
- <div class="mt5">
|
|
|
|
- 保存成功
|
|
|
|
|
|
+ <div class="modal fade ms-modal auto-hide-modal" id="msModalSetting" tabindex="-1" role="dialog"
|
|
|
|
+ style="display: none;">
|
|
|
|
+ <div class="modal-dialog modal-sm" role="document">
|
|
|
|
+ <div class="modal-content">
|
|
|
|
+ <div class="modal-body">
|
|
|
|
+ <div class="text-center">
|
|
|
|
+ <div class="auto-hide">
|
|
|
|
+ <span class="icon icon-modal-success3"></span>
|
|
|
|
+ <div class="mt5">
|
|
|
|
+ 保存成功
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- </div>
|
|
|
|
- <?php
|
|
|
|
- $this->inc_merge();
|
|
|
|
- ?> <script>
|
|
|
|
- var app_id = '<?php echo bees_encrypt($id);?>';
|
|
|
|
- Layout.initUploadPic();
|
|
|
|
- tab.radioRound({
|
|
|
|
- el: ".radio-round li",
|
|
|
|
- checkedClass: "icon-radio-checked"
|
|
|
|
- });
|
|
|
|
- // 下载模板选中
|
|
|
|
- $(".download-template ul li .t-checked-wrap").click(function () {
|
|
|
|
- var i = $(this).parent().index();
|
|
|
|
- $(".download-template ul li .t-checked-wrap").find(".t-checked").hide();
|
|
|
|
- $(this).find(".t-checked").css("display", "flex");
|
|
|
|
- $(".download-template ul li input[type=radio]").prop("checked", false);
|
|
|
|
- $(this).parent("li").find("input[type=radio]").prop("checked", true);
|
|
|
|
- });
|
|
|
|
|
|
+ <?php
|
|
|
|
+ $this->inc_merge();
|
|
|
|
+ ?> <script>
|
|
|
|
+ var app_id = '<?php echo bees_encrypt($id); ?>';
|
|
|
|
+ Layout.initUploadPic();
|
|
|
|
+ tab.radioRound({
|
|
|
|
+ el: ".radio-round li",
|
|
|
|
+ checkedClass: "icon-radio-checked"
|
|
|
|
+ });
|
|
|
|
+ // 下载模板选中
|
|
|
|
+ $(".download-template ul li .t-checked-wrap").click(function() {
|
|
|
|
+ var i = $(this).parent().index();
|
|
|
|
+ $(".download-template ul li .t-checked-wrap").find(".t-checked").hide();
|
|
|
|
+ $(this).find(".t-checked").css("display", "flex");
|
|
|
|
+ $(".download-template ul li input[type=radio]").prop("checked", false);
|
|
|
|
+ $(this).parent("li").find("input[type=radio]").prop("checked", true);
|
|
|
|
+ });
|
|
|
|
|
|
- // 设置模板页语言
|
|
|
|
- $(".download-template .template-language li").click(function () {
|
|
|
|
- var val = $(this).data('language');
|
|
|
|
- $("input[name='template_language']").val(val);
|
|
|
|
- });
|
|
|
|
- $('#submitButton').click(function () {
|
|
|
|
- editor.sync();
|
|
|
|
- $('#app_setting_form').ajaxSubmit({
|
|
|
|
- dataType: 'json',
|
|
|
|
- success: function (data) {
|
|
|
|
- if (data.code != 200) {
|
|
|
|
- alert(data.msg);
|
|
|
|
- } else {
|
|
|
|
- // $(".app-details").find(".details-preview").attr('href', '/' + data.data.url);
|
|
|
|
- $("#msModalSetting").find(".modal-dialog").addClass("modal-sm").find(".auto-hide .mt5").text("保存成功");
|
|
|
|
- autoHideModal('#msModalSetting', 3000);
|
|
|
|
|
|
+ // 设置模板页语言
|
|
|
|
+ $(".download-template .template-language li").click(function() {
|
|
|
|
+ var val = $(this).data('language');
|
|
|
|
+ $("input[name='template_language']").val(val);
|
|
|
|
+ });
|
|
|
|
+ $('#submitButton').click(function() {
|
|
|
|
+ editor.sync();
|
|
|
|
+ $('#app_setting_form').ajaxSubmit({
|
|
|
|
+ dataType: 'json',
|
|
|
|
+ success: function(data) {
|
|
|
|
+ if (data.code != 200) {
|
|
|
|
+ alert(data.msg);
|
|
|
|
+ } else {
|
|
|
|
+ // $(".app-details").find(".details-preview").attr('href', '/' + data.data.url);
|
|
|
|
+ $("#msModalSetting").find(".modal-dialog").addClass("modal-sm").find(".auto-hide .mt5").text("保存成功");
|
|
|
|
+ autoHideModal('#msModalSetting', 3000);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
- }
|
|
|
|
|
|
+ });
|
|
});
|
|
});
|
|
- });
|
|
|
|
|
|
|
|
- $('#password').val('<?php echo $row["in_apppwd"];?>');
|
|
|
|
- $('#url').val('<?php echo $row["in_link"];?>');
|
|
|
|
- $('#appstore_url').val('<?php echo $row["in_appstore"];?>');
|
|
|
|
|
|
+ $('#password').val('<?php echo $row["in_apppwd"]; ?>');
|
|
|
|
+ $('#url').val('<?php echo $row["in_link"]; ?>');
|
|
|
|
+ $('#appstore_url').val('<?php echo $row["in_appstore"]; ?>');
|
|
|
|
+
|
|
|
|
+ function fileSelect() {
|
|
|
|
+ $("#fileToUpload").click();
|
|
|
|
+ }
|
|
|
|
|
|
- function fileSelect() {
|
|
|
|
- $("#fileToUpload").click();
|
|
|
|
- }
|
|
|
|
|
|
+ function fileSelected() {
|
|
|
|
+ var $file = $('#fileToUpload');
|
|
|
|
+ var fileObj = $file[0];
|
|
|
|
+ var windowURL = window.URL || window.webkitURL;
|
|
|
|
+ var dataURL;
|
|
|
|
+ var $img = $("#icon");
|
|
|
|
|
|
- function fileSelected() {
|
|
|
|
- var $file = $('#fileToUpload');
|
|
|
|
- var fileObj = $file[0];
|
|
|
|
- var windowURL = window.URL || window.webkitURL;
|
|
|
|
- var dataURL;
|
|
|
|
- var $img = $("#icon");
|
|
|
|
|
|
+ if (fileObj && fileObj.files && fileObj.files[0]) {
|
|
|
|
+ dataURL = windowURL.createObjectURL(fileObj.files[0]);
|
|
|
|
+ $img.attr('src', dataURL);
|
|
|
|
+ } else {
|
|
|
|
+ dataURL = $file.val();
|
|
|
|
+ var imgObj = document.getElementById("preview");
|
|
|
|
+ // 两个坑:
|
|
|
|
+ // 1、在设置filter属性时,元素必须已经存在在DOM树中,动态创建的Node,也需要在设置属性前加入到DOM中,先设置属性在加入,无效;
|
|
|
|
+ // 2、src属性需要像下面的方式添加,上面的两种方式添加,无效;
|
|
|
|
+ imgObj.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale)";
|
|
|
|
+ imgObj.filters.item("DXImageTransform.Microsoft.AlphaImageLoader").src = dataURL;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
|
|
- if (fileObj && fileObj.files && fileObj.files[0]) {
|
|
|
|
- dataURL = windowURL.createObjectURL(fileObj.files[0]);
|
|
|
|
- $img.attr('src', dataURL);
|
|
|
|
- } else {
|
|
|
|
- dataURL = $file.val();
|
|
|
|
- var imgObj = document.getElementById("preview");
|
|
|
|
- // 两个坑:
|
|
|
|
- // 1、在设置filter属性时,元素必须已经存在在DOM树中,动态创建的Node,也需要在设置属性前加入到DOM中,先设置属性在加入,无效;
|
|
|
|
- // 2、src属性需要像下面的方式添加,上面的两种方式添加,无效;
|
|
|
|
- imgObj.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale)";
|
|
|
|
- imgObj.filters.item("DXImageTransform.Microsoft.AlphaImageLoader").src = dataURL;
|
|
|
|
|
|
+ function autoHideModal(obj1, time) {
|
|
|
|
+ var autoHide = null;
|
|
|
|
+ clearTimeout(autoHide);
|
|
|
|
+ $(obj1).modal('show');
|
|
|
|
+ $(".modal-backdrop").hide();
|
|
|
|
+ autoHide = setTimeout(function() {
|
|
|
|
+ $(obj1).modal("hide");
|
|
|
|
+ }, time);
|
|
}
|
|
}
|
|
- }
|
|
|
|
|
|
|
|
- function autoHideModal(obj1, time) {
|
|
|
|
- var autoHide = null;
|
|
|
|
- clearTimeout(autoHide);
|
|
|
|
- $(obj1).modal('show');
|
|
|
|
- $(".modal-backdrop").hide();
|
|
|
|
- autoHide = setTimeout(function () {
|
|
|
|
- $(obj1).modal("hide");
|
|
|
|
- }, time);
|
|
|
|
- }
|
|
|
|
|
|
+ // 信任教程
|
|
|
|
+ $(".senior .in_tutorial li").click(function() {
|
|
|
|
+ var val = $(this).data('value');
|
|
|
|
+ $("input[name='show_guide']").val(val);
|
|
|
|
+ });
|
|
|
|
+ // 开放安装、有密安装
|
|
|
|
+ $(".senior .download-way li").click(function() {
|
|
|
|
+ var val = $(this).data('value');
|
|
|
|
+ if (val == 1) {
|
|
|
|
+ $('#apppwd').show();
|
|
|
|
+ } else {
|
|
|
|
+ $('#apppwd').hide();
|
|
|
|
+ $("input[name='password']").val('');
|
|
|
|
+ }
|
|
|
|
+ if (val == 2) {
|
|
|
|
+ $("input[name='in_use_auth_code']").val(1)
|
|
|
|
+ $('.auth_code_dispense_url').show()
|
|
|
|
+ } else {
|
|
|
|
+ $("input[name='in_use_auth_code']").val(0);
|
|
|
|
+ $('.auth_code_dispense_url').hide();
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
|
|
- // 信任教程
|
|
|
|
- $(".senior .in_tutorial li").click(function () {
|
|
|
|
- var val = $(this).data('value');
|
|
|
|
- $("input[name='show_guide']").val(val);
|
|
|
|
- });
|
|
|
|
- // 开放安装、有密安装
|
|
|
|
- $(".senior .download-way li").click(function () {
|
|
|
|
- var val = $(this).data('value');
|
|
|
|
- if (val == 1){
|
|
|
|
- $('#apppwd').show();
|
|
|
|
- }else{
|
|
|
|
- $('#apppwd').hide();
|
|
|
|
- $("input[name='password']").val('');
|
|
|
|
- }
|
|
|
|
- if (val == 2) {
|
|
|
|
- $("input[name='in_use_auth_code']").val(1)
|
|
|
|
- $('.auth_code_dispense_url').show()
|
|
|
|
- } else{
|
|
|
|
- $("input[name='in_use_auth_code']").val(0);
|
|
|
|
- $('.auth_code_dispense_url').hide();
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
|
|
+ $(".senior .in_private li").click(function() {
|
|
|
|
+ var val = $(this).index();
|
|
|
|
+ $("input[name='in_private']").val(val);
|
|
|
|
+ });
|
|
|
|
+ $(".senior .in_captcha li").click(function() {
|
|
|
|
+ var val = $(this).index();
|
|
|
|
+ $("input[name='in_captcha']").val(val);
|
|
|
|
+ });
|
|
|
|
+ // 设置模板页语言
|
|
|
|
+ $(".download-template .template-language li").click(function() {
|
|
|
|
+ var val = $(this).data('language');
|
|
|
|
+ $("input[name='template_language']").val(val);
|
|
|
|
+ });
|
|
|
|
|
|
- $(".senior .in_private li").click(function () {
|
|
|
|
- var val = $(this).index();
|
|
|
|
- $("input[name='in_private']").val(val);
|
|
|
|
- });
|
|
|
|
- $(".senior .in_captcha li").click(function () {
|
|
|
|
- var val = $(this).index();
|
|
|
|
- $("input[name='in_captcha']").val(val);
|
|
|
|
- });
|
|
|
|
- // 设置模板页语言
|
|
|
|
- $(".download-template .template-language li").click(function () {
|
|
|
|
- var val = $(this).data('language');
|
|
|
|
- $("input[name='template_language']").val(val);
|
|
|
|
- });
|
|
|
|
|
|
+ $('.control-content .ibox .caption').each(function() {
|
|
|
|
+ if ($(this).find('input').val() == 'tmp<?php echo $row["template"]; ?>') {
|
|
|
|
+ $(this).show();
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
|
|
- $('.control-content .ibox .caption').each(function () {
|
|
|
|
- if ($(this).find('input').val() == 'tmp<?php echo $row["template"];?>') {
|
|
|
|
- $(this).show();
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
|
|
+ $('#app_name').focus(function() {
|
|
|
|
+ $('.appname-danger').show();
|
|
|
|
+ }).blur(function() {
|
|
|
|
+ $('.appname-danger').hide();
|
|
|
|
+ });
|
|
|
|
|
|
- $('#app_name').focus(function () {
|
|
|
|
- $('.appname-danger').show();
|
|
|
|
- }).blur(function () {
|
|
|
|
- $('.appname-danger').hide();
|
|
|
|
- });
|
|
|
|
|
|
+ $('#url').focus(function() {
|
|
|
|
+ $('.url-danger').show();
|
|
|
|
+ }).blur(function() {
|
|
|
|
+ $('.url-danger').hide();
|
|
|
|
+ });
|
|
|
|
|
|
- $('#url').focus(function () {
|
|
|
|
- $('.url-danger').show();
|
|
|
|
- }).blur(function () {
|
|
|
|
- $('.url-danger').hide();
|
|
|
|
- });
|
|
|
|
|
|
+ $('.control-content .ibox').click(function() {
|
|
|
|
+ $('.control-content .ibox .caption').each(function() {
|
|
|
|
+ $(this).hide();
|
|
|
|
+ });
|
|
|
|
+ $(this).find('.caption').show();
|
|
|
|
+ });
|
|
|
|
|
|
- $('.control-content .ibox').click(function () {
|
|
|
|
- $('.control-content .ibox .caption').each(function () {
|
|
|
|
- $(this).hide();
|
|
|
|
|
|
+ $('#modifyBtn').click(function() {
|
|
|
|
+ $('#appstore_url').removeAttr("readonly");
|
|
|
|
+ return false;
|
|
|
|
+ });
|
|
|
|
+ $('#modifyUrl').click(function() {
|
|
|
|
+ $('#url').removeAttr("readonly");
|
|
|
|
+ return false;
|
|
|
|
+ });
|
|
|
|
+ $('#modifyPassword').click(function() {
|
|
|
|
+ $('#password').removeAttr("readonly");
|
|
|
|
+ return false;
|
|
});
|
|
});
|
|
- $(this).find('.caption').show();
|
|
|
|
- });
|
|
|
|
|
|
+ </script>
|
|
|
|
+ <?php
|
|
|
|
+ $this->footer();
|
|
|
|
+ ?>
|
|
|
|
+ </body>
|
|
|
|
|
|
- $('#modifyBtn').click(function () {
|
|
|
|
- $('#appstore_url').removeAttr("readonly");
|
|
|
|
- return false;
|
|
|
|
- });
|
|
|
|
- $('#modifyUrl').click(function () {
|
|
|
|
- $('#url').removeAttr("readonly");
|
|
|
|
- return false;
|
|
|
|
- });
|
|
|
|
- $('#modifyPassword').click(function () {
|
|
|
|
- $('#password').removeAttr("readonly");
|
|
|
|
- return false;
|
|
|
|
- });
|
|
|
|
- </script>
|
|
|
|
- <?php
|
|
|
|
- $this->footer();
|
|
|
|
- ?> </body>
|
|
|
|
</html>
|
|
</html>
|
|
- <?php
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
|
|
+<?php
|
|
|
|
+ }
|
|
|
|
+}
|