Browse Source

目录调整

shish 5 years ago
parent
commit
ea386a8ee8

+ 10 - 1
.gitignore

@@ -13,4 +13,13 @@ app/ghs/runtime/
 
 app/hd/web/assets/
 app/pt/web/assets/
-app/ghs/web/assets/
+app/ghs/web/assets/
+
+
+app-hd/runtime/
+app-pt/runtime/
+app-ghs/runtime/
+
+app-hd/web/assets/
+app-pt/web/assets/
+app-ghs/web/assets/

+ 26 - 0
app-pt/widgets/FooterWidget.php

@@ -0,0 +1,26 @@
+<?php
+
+namespace pt\widgets;
+
+use common\components\util;
+use yii\base\Widget;
+use common\components\dict;
+use common\services\xhWxOpenService;
+
+class FooterWidget extends Widget
+{
+	public $message;
+	
+	public function init()
+	{
+		parent::init();
+	}
+	
+	public function run($isOpen)
+	{
+		util::stop('取平台信息方式错误');
+		$open = [];
+		return $this->render('footer', ['open' => $open]);
+	}
+	
+}

+ 21 - 0
app-pt/widgets/SubTabWidget.php

@@ -0,0 +1,21 @@
+<?php
+
+namespace pt\widgets;
+
+use yii\base\Widget;
+
+class SubTabWidget extends Widget
+{
+	public $list, $currentMenu;
+	
+	public function init()
+	{
+		parent::init();
+	}
+	
+	public function run()
+	{
+		return $this->render('subTab', ['list' => $this->list, 'currentMenu'=> $this->currentMenu]);
+	}
+	
+}

+ 21 - 0
app-pt/widgets/TabWidget.php

@@ -0,0 +1,21 @@
+<?php
+
+namespace pt\widgets;
+
+use yii\base\Widget;
+
+class TabWidget extends Widget
+{
+	public $list, $currentMenu;
+	
+	public function init()
+	{
+		parent::init();
+	}
+	
+	public function run()
+	{
+		return $this->render('tab', ['list' => $this->list, 'currentMenu'=> $this->currentMenu]);
+	}
+	
+}

+ 189 - 0
app-pt/widgets/views/footer.php

@@ -0,0 +1,189 @@
+			<!-- Main Footer -->
+			<footer class="main-footer sticky footer-type-1">
+				<div class="footer-inner">	
+					<!-- Add your copyright text here -->
+					<div class="footer-text">
+						&copy; <?= date("Y") ?> <a href="<?= Yii::$app->params['wwwUrl'] ?>" target="_blank"><?= $open['name'] ?></a>
+					</div>
+					<!-- Go to Top Link, just add rel="go-top" to any link to add this functionality -->
+					<div class="go-up">
+					
+						<a href="#" rel="go-top">
+							<i class="fa-angle-up"></i>
+						</a>
+						
+					</div>
+					
+				</div>
+				
+			</footer>
+		</div>
+
+		<!-- start: Chat Section -->
+		<div id="chat" class="fixed">
+			
+			<div class="chat-inner">
+			
+				
+				<h2 class="chat-header">
+					<a href="#" class="chat-close" data-toggle="chat">
+						<i class="fa-plus-circle rotate-45deg"></i>
+					</a>
+					
+					Chat
+					<span class="badge badge-success is-hidden">0</span>
+				</h2>
+				
+				<script type="text/javascript">
+				// Here is just a sample how to open chat conversation box
+				jQuery(document).ready(function($)
+				{
+					var $chat_conversation = $(".chat-conversation");
+					
+					$(".chat-group a").on('click', function(ev)
+					{
+						ev.preventDefault();
+						
+						$chat_conversation.toggleClass('is-open');
+						
+						$(".chat-conversation textarea").trigger('autosize.resize').focus();
+					});
+					
+					$(".conversation-close").on('click', function(ev)
+					{
+						ev.preventDefault();
+						$chat_conversation.removeClass('is-open');
+					});
+				});
+				</script>
+				
+				
+				<div class="chat-group">
+					<strong>Favorites</strong>
+					
+					<a href="#"><span class="user-status is-online"></span> <em>Catherine J. Watkins</em></a>
+					<a href="#"><span class="user-status is-online"></span> <em>Nicholas R. Walker</em></a>
+					<a href="#"><span class="user-status is-busy"></span> <em>Susan J. Best</em></a>
+					<a href="#"><span class="user-status is-idle"></span> <em>Fernando G. Olson</em></a>
+					<a href="#"><span class="user-status is-offline"></span> <em>Brandon S. Young</em></a>
+				</div>
+				
+				
+				<div class="chat-group">
+					<strong>Work</strong>
+					
+					<a href="#"><span class="user-status is-busy"></span> <em>Rodrigo E. Lozano</em></a>
+					<a href="#"><span class="user-status is-offline"></span> <em>Robert J. Garcia</em></a>
+					<a href="#"><span class="user-status is-offline"></span> <em>Daniel A. Pena</em></a>
+				</div>
+				
+				
+				<div class="chat-group">
+					<strong>Other</strong>
+					
+					<a href="#"><span class="user-status is-online"></span> <em>Dennis E. Johnson</em></a>
+					<a href="#"><span class="user-status is-online"></span> <em>Stuart A. Shire</em></a>
+					<a href="#"><span class="user-status is-online"></span> <em>Janet I. Matas</em></a>
+					<a href="#"><span class="user-status is-online"></span> <em>Mindy A. Smith</em></a>
+					<a href="#"><span class="user-status is-busy"></span> <em>Herman S. Foltz</em></a>
+					<a href="#"><span class="user-status is-busy"></span> <em>Gregory E. Robie</em></a>
+					<a href="#"><span class="user-status is-busy"></span> <em>Nellie T. Foreman</em></a>
+					<a href="#"><span class="user-status is-busy"></span> <em>William R. Miller</em></a>
+					<a href="#"><span class="user-status is-idle"></span> <em>Vivian J. Hall</em></a>
+					<a href="#"><span class="user-status is-offline"></span> <em>Melinda A. Anderson</em></a>
+					<a href="#"><span class="user-status is-offline"></span> <em>Gary M. Mooneyham</em></a>
+					<a href="#"><span class="user-status is-offline"></span> <em>Robert C. Medina</em></a>
+					<a href="#"><span class="user-status is-offline"></span> <em>Dylan C. Bernal</em></a>
+					<a href="#"><span class="user-status is-offline"></span> <em>Marc P. Sanborn</em></a>
+					<a href="#"><span class="user-status is-offline"></span> <em>Kenneth M. Rochester</em></a>
+					<a href="#"><span class="user-status is-offline"></span> <em>Rachael D. Carpenter</em></a>
+				</div>
+			
+			</div>
+			
+			<!-- conversation template -->
+			<div class="chat-conversation">
+				
+				<div class="conversation-header">
+					<a href="#" class="conversation-close">
+						&times;
+					</a>
+					
+					<span class="user-status is-online"></span>
+					<span class="display-name">Arlind Nushi</span> 
+					<small>Online</small>
+				</div>
+				
+				<ul class="conversation-body">
+					<li>
+						<span class="user">Arlind Nushi</span>
+						<span class="time">09:00</span>
+						<p>Are you here?</p>
+					</li>
+					<li>
+						<span class="user">Arlind Nushi</span>
+						<span class="time">09:00</span>
+						<p>Are you here?</p>
+					</li>
+					<li>
+						<span class="user">Arlind Nushi</span>
+						<span class="time">09:00</span>
+						<p>Are you here?</p>
+					</li>
+					<li>
+						<span class="user">Arlind Nushi</span>
+						<span class="time">09:00</span>
+						<p>Are you here?</p>
+					</li>
+					<li>
+						<span class="user">Arlind Nushi</span>
+						<span class="time">09:00</span>
+						<p>Are you here?</p>
+					</li>
+					<li>
+						<span class="user">Arlind Nushi</span>
+						<span class="time">09:00</span>
+						<p>Are you here?</p>
+					</li>
+					<li class="odd">
+						<span class="user">Brandon S. Young</span>
+						<span class="time">09:25</span>
+						<p>This message is pre-queued.</p>
+					</li>
+					<li>
+						<span class="user">Brandon S. Young</span>
+						<span class="time">09:26</span>
+						<p>Whohoo!</p>
+					</li>
+					<li class="odd">
+						<span class="user">Arlind Nushi</span>
+						<span class="time">09:27</span>
+						<p>Do you like it?</p>
+					</li>
+				</ul>
+				
+				<div class="chat-textarea">
+					<textarea class="form-control autogrow" placeholder="Type your message"></textarea>
+				</div>
+				
+			</div>
+			
+		</div>
+		<!-- end: Chat Section -->
+	</div>
+
+	<!-- Bottom Scripts -->
+	<script src="/js/bootstrap.min.js"></script>
+	<script src="/js/TweenMax.min.js"></script>
+	<script src="/js/resizeable.js"></script>
+	<script src="/js/joinable.js"></script>
+	<script src="/js/xenon-api.js"></script>
+	<script src="/js/xenon-toggles.js"></script>
+
+	<!-- Imported scripts on this page -->
+	<script src="/js/jvectormap/jquery-jvectormap-1.2.2.min.js"></script>
+	<script src="/js/jvectormap/regions/jquery-jvectormap-world-mill-en.js"></script>
+	<script src="/js/xenon-widgets.js"></script>
+
+	<!-- JavaScripts initializations and stuff -->
+	<script src="/js/xenon-custom.js"></script>

+ 12 - 0
app-pt/widgets/views/subTab.php

@@ -0,0 +1,12 @@
+<?php
+if (!empty($list)) {
+	?>
+    <div class="sub_left_menu">
+		<?php
+		foreach ($list as $subMenu) {
+			$subClass = $subMenu['menu'] == $currentMenu ? 'selected' : '';
+			?>
+            <div class="<?= $subClass ?>" <?php if (empty($subClass)){ ?>onclick="window.location.href='<?= $subMenu['url'] ?>'"<?php } ?> ><?= $subMenu['name'] ?></div>
+		<?php } ?>
+    </div>
+<?php } ?>