-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f2e174c
commit 95df606
Showing
26 changed files
with
372 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<body><?php include "topmenu.php"; ?><div class="editorContent"><div id="doc_warnings" class="docWarningContainer"></div><?php | ||
<body><?php include app()->ui()->getFilePath("html/topmenu.php"); ?><div class="editorContent"><div id="doc_warnings" class="docWarningContainer"></div><?php | ||
|
||
if(isset($context) && isset($context->obj)) | ||
$obj = $context->obj; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<body style="overflow: hidden;"><div class="pageHeader"><?php include "topmenu.php"; ?><div class="topMenuPlaceholder"></div> | ||
<body style="overflow: hidden;"><div class="pageHeader"><?php include app()->ui()->getFilePath("html/topmenu.php"); ?><div class="topMenuPlaceholder"></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
<?php | ||
/** | ||
* MainMenu | ||
* @author Ilja Tihhanovski <[email protected]> | ||
* @copyright (c) 2015 Intellisoft OÜ | ||
* | ||
*/ | ||
|
||
class OldMainMenu extends HtmlComponent | ||
{ | ||
public function toHtml() | ||
{ | ||
$ret = ""; | ||
|
||
$widgets = array(); | ||
foreach (app()->registries() as $widget) | ||
if($widget->typeId == ROBJECT_TYPE_SIMPLEWIDGET) | ||
$widgets[] = $widget; | ||
if(count($widgets)) | ||
{ | ||
$ret .= "<div class=\"mainMenuWidgets\">"; | ||
|
||
foreach ($widgets as $widget) | ||
if(file_exists($fn = app()->getAbsoluteFile("registries/" . $widget->name . "/" . $widget->name . ".wt.php"))) | ||
include $fn; | ||
|
||
$ret .= "</div><div class=\"clearBoth\"></div>"; | ||
} | ||
|
||
|
||
$p = app()->dbo("menupart"); | ||
$p->orderBy("id"); | ||
$parts = array(); | ||
if($p->find()) | ||
while($p->fetch()) | ||
$parts[] = clone $p; | ||
|
||
$ret .= "<table border=\"0\" cellspacing=\"20\">"; | ||
$ret .= "<tr><td></td>"; | ||
foreach ( $parts as $p ) | ||
$ret .= "<td>" . t($p->name) . "</td>"; | ||
$ret .= "</tr>"; | ||
|
||
$m = app()->dbo("rmodule"); | ||
$m->orderBy("pos"); | ||
if($m->find()) | ||
while($m->fetch()) | ||
{ | ||
$tcnt = 0; | ||
$mh = "<tr><td valign=\"top\" align=\"right\">" . t($m->name) . "</td>"; | ||
foreach ( $parts as $p ) | ||
{ | ||
$l = array(); | ||
foreach (app()->registries() as $val) | ||
if(($val->module == $m->getIdValue()) && ($val->menupartId == $p->getIdValue()) && ($val->typeId < 10)) //TODO | ||
$l[] = $val; | ||
|
||
$mh .= "<td valign=\"top\">"; | ||
|
||
$cnt = 0; | ||
foreach ($l as $val) | ||
{ | ||
$mh .= mi($val); | ||
$cnt++; | ||
$tcnt++; | ||
} | ||
$mh .= "</td>"; | ||
} | ||
$mh .= "</tr>"; | ||
|
||
if($tcnt) $ret .= $mh; | ||
} | ||
$ret .= "</table>"; | ||
return $ret; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
/** | ||
* MainMenu | ||
* @author Ilja Tihhanovski <[email protected]> | ||
* @copyright (c) 2015 Intellisoft OÜ | ||
* | ||
*/ | ||
|
||
class OldToolbar extends HtmlComponent | ||
{ | ||
public function toHtml() | ||
{ | ||
$ret = '<div id="dh" class="frontpageTopMenu"> | ||
<div class="frontpageCaption"> | ||
<img src="<?=app()->url("resources/p2logo.png")?>" border="0" height="24"/> | ||
<?=APP_TITLE . ($cn ? " / " . $cn : "")?> | ||
</div>' . app()->ui()->getUserMenu()->toHtml() . '</div>'; | ||
} | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
/** | ||
* MainMenu | ||
* @author Ilja Tihhanovski <[email protected]> | ||
* @copyright (c) 2015 Intellisoft OÜ | ||
* | ||
*/ | ||
|
||
class OldUserMenu extends HtmlComponent | ||
{ | ||
public function toHtml() | ||
{ | ||
return '<div class="squaredUserMenu"> | ||
<div> | ||
<!--a href="JavaScript:logout();"><?=t("Logout")?></a--> | ||
<i class="userMenuItem fa fa-share-alt" aria-hidden="true"></i> | ||
<i class="userMenuItem fa fa-user" aria-hidden="true"></i> | ||
<i class="userMenuItem fa fa-cog" aria-hidden="true"></i> | ||
</div> | ||
</div>'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
.mainMenu | ||
{ | ||
color: #505050; | ||
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#E0FFFFFF,endColorstr=#E0FFFFFF); | ||
background: rgba(255,255,255,0.95); | ||
position: fixed; | ||
overflow: auto; | ||
padding: 50px; | ||
z-index: 30; | ||
} | ||
|
||
.mainMenuItem | ||
{ | ||
width: 150px; | ||
height: 40px; | ||
float: left; | ||
font-size: 14px; | ||
font-weight: bold; | ||
cursor: pointer; | ||
text-align: left; | ||
padding: 10px; | ||
} | ||
|
||
.mmi | ||
{ | ||
margin-bottom: 10px; margin-right: 20px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<div class="<?=app()->ui()->getTopMenuClass()?>"><div class="appIcon"><img src="<?=app()->url("resources/webicon.png")?>" width="16" height="16" border="0"/></div><div class="topMenuItem" id="toolbar_MainMenu"><a href="<?=app()->url()?>" tabindex="-1"><b><?=app()->getPageTitle()?></b></a></div><div id="toolbar_UserMenu" class="topMenuRightItem" style="margin-right: 20px;"><?=app()->isI18n() ? "<span onclick=\"JavaScript:app.userMenu();\">" . app()->getLocale() . "</span> " : ""?><a href="JavaScript:app.userMenu();" tabindex="-1"><?=app()->user()->uid?></a></div><div id="toolbar_Help" class="topMenuRightItem"><?php | ||
|
||
if($h = app()->helpLink()) | ||
echo "<a href=\"$h\" target=\"_blank\" tabindex=\"-1\"><img src=\"" . app()->url("ui/img/16/help.png") . "\" alt=\"\" border=\"0\"/></a>"; | ||
|
||
?></div><?=$this->getTopToolbar()?></div><div id="mainMenu" class="mainMenu" style="display: none;"></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
<?php | ||
|
||
$uiModuleDir = app()->getAbsoluteFile(UI_MODULE); | ||
require_once $uiModuleDir . "OldUIModule.php"; | ||
//require_once $uiModuleDir . "OldUIModule.php"; | ||
|
||
app()->_uiModule = new OldUIModule(); | ||
$uiModuleDir = app()->getAbsoluteFile(UI_MODULE); | ||
require_once $uiModuleDir . "classes/OldUIModule.php"; | ||
require_once $uiModuleDir . "classes/OldMainMenu.php"; | ||
require_once $uiModuleDir . "classes/OldToolbar.php"; | ||
require_once $uiModuleDir . "classes/OldUserMenu.php"; | ||
|
||
app()->_uiModule = new OldUIModule("Old"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.