-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
11 changed files
with
253 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?php | ||
|
||
session_start(); | ||
include("../../Includes.php"); | ||
|
||
if(ErrorMessages::isErrors()){ | ||
p(ErrorMessages::getErrors()); | ||
} | ||
|
||
$login = new Session(); | ||
|
||
if(!$login->isLogedin()){ | ||
die("You must loged in!"); | ||
} | ||
|
||
if(isset($_GET['tipas']) && !empty($_GET['tipas'])){ | ||
$tipas = $_GET['tipas']; | ||
}else{ | ||
die("Nepaskirtas tipas!!"); | ||
} | ||
|
||
if(isset($_GET['id']) && !empty($_GET['id'])){ | ||
$id = $_GET['id']; | ||
}else{ | ||
die("Nepaskirtas ID!!"); | ||
} | ||
|
||
$men = OrganizacijosPrognozes::getPrognozuojamiMenesiai(); | ||
|
||
if($tipas == "IS"){ | ||
echo "Tinkamiausia atnaujinti IS: ".$men[OrganizacijosPrognozes::getTinkamiausiasLaikasIsAtnaujimui($id)]; | ||
}else{ | ||
echo "Tinkamiausias laikas padalinio kvalifikacijai kelti: ".$men[OrganizacijosPrognozes::getTinkamiausiasLaikasPadalinioKvalifikacijai($id)]; //."\nTinkamiausias laikas padaliniui remontuoti: ".$men[OrganizacijosPrognozes::getTinkamiausiasLaikasPadalinioRemontui($id)]; | ||
} | ||
|
||
?> |
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 |
---|---|---|
@@ -0,0 +1,59 @@ | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | ||
<html xmlns="http://www.w3.org/1999/xhtml"> | ||
<head> | ||
<meta name="keywords" content="" /> | ||
<meta name="description" content="" /> | ||
<meta http-equiv="content-type" content="text/html; charset=utf-8" /> | ||
<title>Ataskaita 1</title> | ||
<link href="style.css" rel="stylesheet" type="text/css" media="screen" /> | ||
</head> | ||
<body> | ||
<div id="wrapper"> | ||
<div id="header" class="container"> | ||
<div id="menu"> | ||
<ul> | ||
<li class="current_page_item"><a href="#">Duomenų analizė</a></li> | ||
<li><a href="#">Prognozės</a></li> | ||
<li><a href="#">Atsijungti</a></li> | ||
<li><a href="#">Pagalba</a></li> | ||
</ul> | ||
</div> | ||
</div> | ||
<!-- end #header --> | ||
<div id="page" class="container"> | ||
<div id="content"> | ||
<div class="post"> | ||
<div class="dropDownMenu"> | ||
<p class="dropDownVisualButton">Param Priemone</p> | ||
<ul class="dropDownButtons"> | ||
<li>Paramos priemones 1</li> | ||
<li>Paramos priemones 2</li> | ||
<li>Paramos priemones 3</li> | ||
</ul> | ||
</div> | ||
</div> | ||
<div style="clear: both;"> </div> | ||
</div> | ||
<!-- end #content --> | ||
<div id="sidebar"> | ||
<ul> | ||
<li> | ||
<h2>Ataskaitą pagal:</h2> | ||
<ul style="font-size:10px;"> | ||
<li><a href="#">Informacine sistema</a></li> | ||
<li><a href="#">padalini</a></li> | ||
</ul> | ||
</li> | ||
</ul> | ||
</div> | ||
<!-- end #sidebar --> | ||
<div style="clear: both;"> </div> | ||
</div> | ||
<!-- end #page --> | ||
</div> | ||
<div id="footer"> | ||
<p>Copyright (c) 2011. All rights reserved.</p> | ||
</div> | ||
<!-- end #footer --> | ||
</body> | ||
</html> |
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 |
---|---|---|
@@ -0,0 +1,56 @@ | ||
<?php | ||
|
||
class TvarkymoPrognozavimas extends MainPanel{ | ||
|
||
private $padaliniai = ""; | ||
private $infSystemos = ""; | ||
|
||
public function __construct(){ | ||
$this->getPadaliniai(); | ||
$this->getInfSystemos(); | ||
} | ||
|
||
public function getPadaliniai(){ | ||
$padaliniai = Padaliniai::select("1"); | ||
foreach($padaliniai as $padId){ | ||
$padalinys = new Padaliniai($padId); | ||
$this->padaliniai .= "<li objectid='".$padalinys->getId()."'>".$padalinys->getPavadinimas()."</li>"; | ||
} | ||
} | ||
|
||
public function getInfSystemos(){ | ||
$infSystemos = IS::select("1"); | ||
foreach($infSystemos as $infSysId){ | ||
$IS = new IS($infSysId); | ||
$this->infSystemos .= "<li objectid='".$IS->getId()."'>".$IS->getPavadinimas()."</li>"; | ||
|
||
} | ||
} | ||
|
||
protected function htmlContent(){ | ||
$this->content = <<<FFF | ||
<li style="padding-top:20px;"> | ||
<div style="height:40px;"> | ||
<div tipas="padaliniai" class="dropDownMenu"> | ||
<p class="dropDownVisualButton">Padalinys</p> | ||
<ul class="dropDownButtons"> | ||
{$this->padaliniai} | ||
</ul> | ||
</div> | ||
</div> | ||
<div style="height:40px;"> | ||
<div tipas="IS" class="dropDownMenu"> | ||
<p class="dropDownVisualButton">Informacinė sistema</p> | ||
<ul class="dropDownButtons"> | ||
{$this->infSystemos} | ||
</ul> | ||
</div> | ||
</div> | ||
<p id="messageTvarkymui"></p> | ||
</li> | ||
FFF; | ||
} | ||
|
||
} | ||
|
||
?> |
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