This commit is contained in:
朱金勇
2023-04-17 05:10:15 +00:00
9 changed files with 23 additions and 10 deletions
+13 -4
View File
@@ -20,15 +20,24 @@ class screen extends control
*/
public function browse($dimensionID = 0)
{
$this->app->loadLang('admin');
$this->loadModel('setting');
$dimensionID = $this->loadModel('dimension')->setSwitcherMenu($dimensionID);
$this->loadModel('setting');
/* BI guide. */
$lang = (strpos($this->app->getClientLang(), 'zh') !== false) ? 'zh' : 'en';
$version = ($this->config->edition == 'biz' or $this->config->edition == 'max') ? 'biz' : 'pms';
$imageURL = "static/images/bi_guide_{$version}_{$lang}.png";
$currentUser = $this->app->user->account;
$firstGuide = $this->setting->getItem("owner={$currentUser}&module=bi&key=firstGuide");
if(empty($firstGuide)) $this->setting->setItem("{$currentUser}.bi.firstGuide", 1);
$moduleKey = $version . 'firstGuide';
$firstGuide = $this->setting->getItem("owner={$currentUser}&module=bi&key={$moduleKey}");
if(empty($firstGuide)) $this->setting->setItem("{$currentUser}.bi.{$moduleKey}", 1);
$this->view->firstGuide = !empty($firstGuide);
$this->view->langSuffix = (strpos($this->app->getClientLang(), 'zh') !== false) ? 'zh' : 'en';
$this->view->imageURL = $imageURL;
$this->view->version = $version;
$this->view->title = $this->lang->screen->common;
$this->view->screens = $this->screen->getList($dimensionID);
$this->view->dimension = $dimensionID;
+4 -3
View File
@@ -33,8 +33,9 @@
.main-col .row .col-md-3 {padding: 8px;}
.main-col .row .col-md-3 a {min-width: 297px;}
#firstGuide .modal-dialog {width: 750px !important;}
#firstGuide .modal-body {padding: 0 !important;}
#firstGuide .background-img {height: 430px !important;}
#firstGuide .modal-dialog {width: 800px !important;}
#firstGuide .modal-body {padding: 0 !important; max-height: 465px !important;}
#firstGuide .background-img {height: 460px !important;}
#firstGuide .modal-footer {text-align: center !important; border-top: none !important; padding: 24px 0px !important;}
#firstGuide .btn-wide {min-width: 90px !important;}
#firstGuide .clickable-area {position: absolute; width: 50px; height: 20px; top: 235px; right: 117px;}
+1
View File
@@ -0,0 +1 @@
#firstGuide .clickable-area {position: absolute; width: 50px; height: 20px; top: 250px; right: 130px;}
+5 -3
View File
@@ -47,9 +47,11 @@
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-body">
<?php $url = 'static/images/bi_guide_' . $langSuffix . '.png';?>
<?php $style = "background: url($url) no-repeat; background-size: 100%";?>
<div class="background-img" <?php echo "style='$style'";?>></div>
<div class="background-img" <?php echo "style='background: url($imageURL) no-repeat; background-size: 100%'";?>>
<?php if($version == 'pms'):?>
<a href="<?php echo $lang->admin->bizInfoURL;?>" class="clickable-area" target="_blank"></a>
<?php endif;?>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-wide btn-primary" data-dismiss="modal"><?php echo $lang->close;?></button>
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB