Browse Source

字体颜色优化

tags/6.0.4^2
xushubieli 2 years ago
parent
commit
c2f270959d
3 changed files with 20 additions and 19 deletions
  1. +1
    -0
      src/dede/css/base.css
  2. +18
    -18
      src/include/oxwindow.class.php
  3. +1
    -1
      src/templets/plus/win_templet.htm

+ 1
- 0
src/dede/css/base.css View File

@@ -91,5 +91,6 @@ option.stype{padding-left:24px;font-size:12px;height:18px;line-height:18px;backg
span.page-link{color:#fff;background:#28a745} span.page-link{color:#fff;background:#28a745}
a.btn{color:white!important} a.btn{color:white!important}
.btn-success{background:#28a745;border-color:#28a745} .btn-success{background:#28a745;border-color:#28a745}
.table{color:#424b51}
.table td,.table th{padding:.60rem;vertical-align:middle} .table td,.table th{padding:.60rem;vertical-align:middle}
.table th img,.table td img{vertical-align:text-bottom} .table th img,.table td img{vertical-align:text-bottom}

+ 18
- 18
src/include/oxwindow.class.php View File

@@ -36,17 +36,17 @@ class OxWindow
*/ */
function Init($formaction = "", $checkScript = "js/blank.js", $formmethod = "POST", $formname = "myform") function Init($formaction = "", $checkScript = "js/blank.js", $formmethod = "POST", $formname = "myform")
{ {
$this->myWin .= "<script language='javascript'>\r\n";
$this->myWin .= "<script>";
if ($checkScript != "" && file_exists($checkScript)) { if ($checkScript != "" && file_exists($checkScript)) {
$fp = fopen($checkScript, "r"); $fp = fopen($checkScript, "r");
$this->myWin .= fread($fp, filesize($checkScript)); $this->myWin .= fread($fp, filesize($checkScript));
fclose($fp); fclose($fp);
} else { } else {
$this->myWin .= "<!-- function CheckSubmit()\r\n{ return true; } -->";
$this->myWin .= "<!--function CheckSubmit(){return true;}-->";
} }
$this->myWin .= "</script>\r\n";
$this->myWin .= "</script>";
$this->formName = $formname; $this->formName = $formname;
$this->myWin .= "<form name='$formname' method='$formmethod' onSubmit='return CheckSubmit();' action='$formaction'>\r\n";
$this->myWin .= "<form name='$formname' method='$formmethod' onSubmit='return CheckSubmit();' action='$formaction'>";
} }
/** /**
* 增加隐藏域 * 增加隐藏域
@@ -57,7 +57,7 @@ class OxWindow
*/ */
function AddHidden($iname, $ivalue) function AddHidden($iname, $ivalue)
{ {
$this->myWin .= "<input type='hidden' name='$iname' value='$ivalue'>\r\n";
$this->myWin .= "<input type='hidden' name='$iname' value='$ivalue'>";
} }
/** /**
* 开始创建窗口 * 开始创建窗口
@@ -66,7 +66,7 @@ class OxWindow
*/ */
function StartWin() function StartWin()
{ {
$this->myWin .= "<table width='100%' border='0' cellpadding='3' cellspacing='1'>\r\n";
$this->myWin .= "<table width='100%' border='0' cellpadding='3' cellspacing='1'>";
} }
/** /**
* 增加一个两列的行 * 增加一个两列的行
@@ -78,10 +78,10 @@ class OxWindow
*/ */
function AddItem($iname, $ivalue) function AddItem($iname, $ivalue)
{ {
$this->myWinItem .= "<tr bgcolor='#FFFFFF'>\r\n";
$this->myWinItem .= "<td width='25%'>$iname</td>\r\n";
$this->myWinItem .= "<td width='75%'>$ivalue</td>\r\n";
$this->myWinItem .= "</tr>\r\n";
$this->myWinItem .= "<tr bgcolor='#FFFFFF'>";
$this->myWinItem .= "<td width='30%'>$iname</td>";
$this->myWinItem .= "<td width='70%'>$ivalue</td>";
$this->myWinItem .= "</tr>";
} }
/** /**
* 增加一个单列的消息行 * 增加一个单列的消息行
@@ -104,9 +104,9 @@ class OxWindow
} else { } else {
$colspan = ""; $colspan = "";
} }
$this->myWinItem .= "<tr bgcolor='#FFFFFF'>\r\n";
$this->myWinItem .= "<td $colspan $height> $ivalue </td>\r\n";
$this->myWinItem .= "</tr>\r\n";
$this->myWinItem .= "<tr bgcolor='#FFFFFF'>";
$this->myWinItem .= "<td $colspan $height>$ivalue</td>";
$this->myWinItem .= "</tr>";
} }
/** /**
* 增加单列的标题行 * 增加单列的标题行
@@ -124,9 +124,9 @@ class OxWindow
} else { } else {
$colspan = ""; $colspan = "";
} }
$this->myWinItem .= "<tr>\r\n";
$this->myWinItem .= "<td $colspan height='26'>$title</td>\r\n";
$this->myWinItem .= "</tr>\r\n";
$this->myWinItem .= "<tr>";
$this->myWinItem .= "<td $colspan style='height:26px;color:#424b51'>$title</td>";
$this->myWinItem .= "</tr>";
} }
/** /**
* 结束Window * 结束Window
@@ -137,9 +137,9 @@ class OxWindow
function CloseWin($isform = true) function CloseWin($isform = true)
{ {
if (!$isform) { if (!$isform) {
$this->myWin .= "</table>\r\n";
$this->myWin .= "</table>";
} else { } else {
$this->myWin .= "</table></form>\r\n";
$this->myWin .= "</table></form>";
} }
} }
/** /**


+ 1
- 1
src/templets/plus/win_templet.htm View File

@@ -6,7 +6,7 @@
<link rel="stylesheet" href="{dede:global name='cfg_static_dir'/}/css/bootstrap.min.css"> <link rel="stylesheet" href="{dede:global name='cfg_static_dir'/}/css/bootstrap.min.css">
<link rel="stylesheet" href="{dede:global name='cfg_static_dir'/}/font-awesome/css/font-awesome.min.css"> <link rel="stylesheet" href="{dede:global name='cfg_static_dir'/}/font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" href="{dede:global name='cfg_static_dir'/}/img/base.css"> <link rel="stylesheet" href="{dede:global name='cfg_static_dir'/}/img/base.css">
<script language="javascript" src="{dede:global name='cfg_static_dir'/}/js/jquery.js"></script>
<script src="{dede:global name='cfg_static_dir'/}/js/jquery.js"></script>
</head> </head>
<body background="{dede:global name='cfg_static_dir'/}/img/allbg.gif" leftmargin="8" topmargin="8"> <body background="{dede:global name='cfg_static_dir'/}/img/allbg.gif" leftmargin="8" topmargin="8">
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="table maintable table-bordered mt-3"> <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="table maintable table-bordered mt-3">


Loading…
Cancel
Save