Browse Source

对话框样式调整

tags/6.2.8
tianya 1 year ago
parent
commit
16b31473b3
5 changed files with 18 additions and 14 deletions
  1. +10
    -6
      README.md
  2. BIN
      docs/dedebiz.jpg
  3. +2
    -3
      src/admin/makehtml_homepage.php
  4. +1
    -2
      src/admin/makehtml_spec.php
  5. +5
    -3
      src/system/common.func.php

+ 10
- 6
README.md View File

@@ -6,6 +6,8 @@ DedeBIZ系统基于PHP7版本开发,具有很强的可扩展性,并且完全

DedeV6.x是一个LTS版本,支持将到2025年10月截止,目前DedeV6已经发布,可以[点击下载](https://www.dedebiz.com/download)获取

![DedeBIZ](docs/dedebiz.jpg)

## 参与开源

访问[代码托管](https://www.dedebiz.com/git),可以看到我们已经将代码托管在几个知名代码托管平台,可以通过提交Pull requests的方式来贡献您的力量
@@ -89,15 +91,17 @@ Sockets:支持接入DedeBIZ商业组件模块

```
NAME:
DedeBIZ Cli Tools
DedeBIZ命令行工具
USAGE:
php ./dedebiz command [arguments...]
COMMANDS:
serv,s Run cli web server for DedeBIZ
make,m Make DedeBIZ HTML
update,u Update to latest system
help,h Shows a list of commands or help
quick,q Quick start a development environment
serv,s 运行DedeBIZ开发服务
make,m 更新网页
update,u 更新到最新系统
help,h Shows 帮助
quick,q 快速开始一个开发环境
tdata 生成测试数据
pwd 更改管理员密码
WEBSITE:
https://www.dedebiz.com/help/
```


BIN
docs/dedebiz.jpg View File

Before After
Width: 1000  |  Height: 484  |  Size: 62KB

+ 2
- 3
src/admin/makehtml_homepage.php View File

@@ -82,12 +82,11 @@ if ($dopost == "view") {
$pv->SetTemplet($cfg_basedir.$cfg_templets_dir."/".$templet);
$pv->SaveToHtml($homeFile);
echo "<link rel=\"stylesheet\" href=\"{$cfg_cmsurl}/static/web/css/bootstrap.min.css\"><link rel=\"stylesheet\" href=\"{$cfg_cmsurl}/static/web/css/admin.css\">";
echo "<div class=\"alert alert-success\">更新首页模式:".$position." <a href=\"{$position}\" target=\"_blank\" class=\"btn btn-success btn-sm\">浏览</a></div>";
ShowMsg("更新首页模式", $position, 0, -1, '浏览', '_blank');
} else {
//动态浏览
if (file_exists($homeFile)) @unlink($homeFile);
echo "<link rel=\"stylesheet\" href=\"{$cfg_cmsurl}/static/web/css/bootstrap.min.css\"><link rel=\"stylesheet\" href=\"{$cfg_cmsurl}/static/web/css/admin.css\">";
echo "<div class=\"alert alert-success\">动态浏览模式:<a href=\"../index.php\" target=\"_blank\" class=\"btn btn-success btn-sm\">浏览</a></div>";
ShowMsg("动态浏览模式", '../index.php', 0, -1,'浏览', '_blank');
}
$iquery = "UPDATE `#@__homepageset` SET showmod='$showmod'";
$dsql->ExecuteNoneQuery($iquery);


+ 1
- 2
src/admin/makehtml_spec.php View File

@@ -15,8 +15,7 @@ if ($dopost == "ok") {
require_once(DEDEINC."/archive/specview.class.php");
$sp = new SpecView();
$rurl = $sp->MakeHtml(0);
echo "<link rel=\"stylesheet\" href=\"{$cfg_cmsurl}/static/web/css/bootstrap.min.css\"><link rel=\"stylesheet\" href=\"{$cfg_cmsurl}/static/web/css/admin.css\">";
echo "<div class=\"alert alert-success\">完成所有专题更新,<a href=\"$rurl\" target=\"_blank\">浏览专题</a></div>";
ShowMsg("完成所有专题更新", $rurl, 0, -1,'浏览专题', '_blank');
exit();
}
include DedeInclude('templets/makehtml_spec.htm');

+ 5
- 3
src/system/common.func.php View File

@@ -320,9 +320,11 @@ if (!function_exists('file_put_contents')) {
* @param string $gourl 跳转地址
* @param int $onlymsg 仅显示信息
* @param int $limittime 限制时间
* @param string $btnmsg 按钮提示
* @param string $target 跳转类型
* @return void
*/
function ShowMsg($msg, $gourl, $onlymsg = 0, $limittime = 0)
function ShowMsg($msg, $gourl, $onlymsg = 0, $limittime = 0, $btnmsg='点击反应', $target="_self")
{
if (isset($GLOBALS['format']) && strtolower($GLOBALS['format'])==='json') {
echo json_encode(array(
@@ -358,8 +360,8 @@ function ShowMsg($msg, $gourl, $onlymsg = 0, $limittime = 0)
$rmsg .= "document.write(\"";
if ($onlymsg == 0) {
if ($gourl != 'javascript:;' && $gourl != '') {
$rmsg .= "<div class='btn'><a href='{$gourl}'>点击反应</a></div>\");";
$rmsg .= "setTimeout('JumpUrl()',$litime);";
$rmsg .= "<div class='btn'><a href='{$gourl}' target='{$target}'>{$btnmsg}</a></div>\");";
$rmsg .= $litime > 0? "setTimeout('JumpUrl()',$litime);" : "";
} else {
$rmsg .= "</div>\");";
}


Loading…
Cancel
Save