-
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
18 changed files
with
435 additions
and
199 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
<?php | ||
|
||
class ManageAdmin { | ||
|
||
public function __construct($method, $checkType = true){ | ||
if($checkType == true){ | ||
if(isset($GLOBALS['login']->user)){ | ||
if(!$GLOBALS['login']->user->isAdmin()){ | ||
header("location: index.php?info=home/".$method); | ||
} | ||
} | ||
} | ||
} | ||
|
||
public function home(){ | ||
$page = new AdminPage(); | ||
$page->pagePrint(); | ||
} | ||
|
||
public function duom_anal(){ | ||
$page = new AdminPage(); | ||
$panel = new DuomenuAnalizePanel(); | ||
$panel1 = new Lenteles(); | ||
$panel2 = new Filters(); | ||
$page->addToContainer(1, $panel1->getHtml()); | ||
$page->addToContainer(2, $panel->getHtml()); | ||
$page->addToContainer(2, $panel2->getHtml()); | ||
$page->pagePrint(); | ||
} | ||
|
||
public function prognozes(){ | ||
$page = new AdminPage(); | ||
$panel = new Prognozes(); | ||
$panel1 = new Lenteles(); | ||
$page->addToContainer(1, $panel1->getHtml()); | ||
$page->addToContainer(2, $panel->getHTML()); | ||
$page->pagePrint(); | ||
} | ||
|
||
public function import(){ | ||
$page = new AdminPage(); | ||
$panel = new Import(); | ||
$page->addToContainer(1, $panel->getHtml()); | ||
$page->pagePrint(); | ||
} | ||
|
||
public function vartotojai(){ | ||
$page = new AdminPage(); | ||
$panel = new Users(); | ||
$panel1 = new UserManage(); | ||
$page->addToContainer(1, $panel->getHtml()); | ||
$page->addToContainer(2, $panel1->getHtml()); | ||
$page->pagePrint(); | ||
} | ||
|
||
public function login(){ | ||
$manager = new ManageHome("login", false); | ||
$manager->login(); | ||
} | ||
|
||
public function logout(){ | ||
$manager = new ManageHome("logout", false); | ||
$manager->logout(); | ||
} | ||
|
||
} | ||
|
||
?> |
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,30 @@ | ||
<!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>Home</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="#">Importuoti duomenys</a></li> | ||
<li><a href="#">Vartotojai</a></li> | ||
<li><a href="#">Atsijungti</a></li> | ||
<li><a href="#">Pagalba</a></li> | ||
</ul> | ||
</div> | ||
</div> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<!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>Plain & Clean by Free CSS Templates</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="#">Importuoti duomenys</a></li> | ||
<li><a href="#">Vartotojai</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="entry"> | ||
<p>Importuoti duomenis:</p> | ||
<p><input type="file" /></p> | ||
<p class="links"><input type="Button" class="more" value="Importuoti" /></p> | ||
</div> | ||
</div> | ||
<div style="clear: both;"> </div> | ||
</div> | ||
<!-- end #content --> | ||
<div id="sidebar"> | ||
<ul></ul> | ||
</div> | ||
<!-- end #sidebar --> | ||
<div style="clear: both;"> </div> | ||
</div> | ||
<!-- end #page --> | ||
</div> | ||
<div id="footer"> | ||
<p>Copyright (c) 2011 Sitename.com. All rights reserved. Design by <a href="http://www.freecsstemplates.org/">Free CSS Templates</a>.</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
<!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"> | ||
<p>Vartotojai</p> | ||
<table width="100%"> | ||
<tr> | ||
<td><b>Vartotojo vardas</b></td> | ||
<td><b>Veiksmas</b></td> | ||
</tr> | ||
<tr> | ||
<td class="name">Povilas</td> | ||
<td><a href="#">Trinti</a></td> | ||
</tr> | ||
<tr> | ||
<td class="name">Povilas</td> | ||
<td><a href="#">Trinti</a></td> | ||
</tr> | ||
<tr> | ||
<td class="name">Povilas</td> | ||
<td><a href="#">Trinti</a></td> | ||
</tr> | ||
<tr> | ||
<td class="name">Povilas</td> | ||
<td><a href="#">Trinti</a></td> | ||
</tr> | ||
<tr> | ||
<td class="name">Povilas</td> | ||
<td><a href="#">Trinti</a></td> | ||
</tr> | ||
</table> | ||
</div> | ||
<div style="clear: both;"> </div> | ||
</div> | ||
<!-- end #content --> | ||
<div id="sidebar"> | ||
<ul> | ||
<li> | ||
<h2>Valdymas:</h2> | ||
<ul style="font-size:10px;"> | ||
<li><a href="#">Prideti vartotoja</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> |
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
Binary file not shown.
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,28 @@ | ||
<?php | ||
|
||
class ImageText | ||
{ | ||
static public function createTextImage($width, $height, $text){ | ||
header('Content-Type: image/png'); | ||
$img = imagecreatetruecolor($width, $height); | ||
|
||
$bgColor = imagecolorallocate($img, 255, 255, 255); | ||
$textColor = imagecolorallocate($img, 0, 0, 0); | ||
$fontSize = 11; | ||
$fontName = "./arial.ttf"; | ||
|
||
imagefilledrectangle($img, 0, 0, $width, $height, $bgColor); | ||
|
||
$fontSizeBounds = imagettfbbox($fontSize, 0, $fontName, $text); | ||
$lineSize = $fontSizeBounds[4]; | ||
$lineHeight = abs($fontSizeBounds[5]); | ||
$x = (int)(($width - $lineSize) / 2); | ||
$y = (int)(($height - $lineHeight) / 2); | ||
imagettftext($img, $fontSize, 0, $x, $y, $textColor, $fontName, $text); | ||
|
||
imagepng($img); | ||
imagedestroy($img); | ||
} | ||
} | ||
|
||
?> |
Oops, something went wrong.