diff --git a/config.php b/config.php index 665ea76..cc1c528 100644 --- a/config.php +++ b/config.php @@ -40,7 +40,7 @@ function get($id) "anim" => false, "LinkAccount" => "http://localhost/admin/account.php?id=", "LinkPlayer" => "http://localhost/admin/player.php?guid=", - "searchlimit" => 10, + "searchlimit" => 5, "lang" => 8, /*################################################################################################## ## Admin settings diff --git a/lib/classes.php b/lib/classes.php index 72c7758..ecdf404 100644 --- a/lib/classes.php +++ b/lib/classes.php @@ -15,6 +15,10 @@ function GetNewId(); function GetNameByGUID($guid); function GetAccountNameById($id); function GetSections(); + function GetSubType($id); + function GetMap($id); + function GetZone($id); + function GetSectionById($id); function GetPercent($id,$one=false); function GetPriority($id,$one=false); function GetStatus($id,$one=false); @@ -44,7 +48,6 @@ interface html function install(); function send(); function viewall($int); - function viewdate($int); function progress($int); function detail($int); function view(); @@ -53,6 +56,7 @@ function htmlstart($title); function header(); function end(); function block($text); + function blocknot($text); function login(); function success(); function inc($content); diff --git a/lib/create.php b/lib/create.php index f5fde3e..3dbce73 100644 --- a/lib/create.php +++ b/lib/create.php @@ -55,7 +55,35 @@ public function GetSections($st=false) $res = $sql->num_rows($sql->exe($cfg->get("realmd"),"SELECT 1 FROM `bt_message`".$order)); return ($res > "0") ? ''.$res.'' : $res; } - + public function GetSectionById($id) + { + $cfg = new config; + $sql = new sql; + $name = $sql->res($cfg->get("realmd"),"SELECT `name` FROM `bt_section` WHERE `id` = '".$id."'"); + return $name; + } + public function GetSubType($id) + { + $cfg = new config; + $sql = new sql; + $result = $sql->res($cfg->get("realmd"),"SELECT `name` FROM `bt_subtype` WHERE `id` = '".$id."'"); + if(!$result) + $result = '--'; + return $result; + } + public function GetMap($id) + { + $cfg = new config; + $sql = new sql; + $result = $sql->res($cfg->get("realmd"),"SELECT `name` FROM `bt_map_id` WHERE `id` = '".$id."'"); + if(!$result) + $result = '--'; + return $result; + } + public function GetZone($id) + { + + } public function GetPercent($all,$one=false) { $cfg = new config; @@ -133,7 +161,7 @@ public function LoadZones() $opt[0] = ""; $cur = 0; $query = $sql->exe($cfg->get("realmd"),"SELECT * FROM `bt_zone_id` ORDER BY `map` ASC"); - while($row = mysql_fetch_array($query)) + while($row = $sql->fetch($query)) { if(!isset($opt[$row['map']])) { @@ -146,7 +174,7 @@ public function LoadZones() $query = $sql->exe($cfg->get("realmd"),"SELECT `map` FROM `bt_zone_id` ORDER BY `map` ASC"); $script = ''; - echo ' -
Сейчас так:
+ | Сейчас так:
А должно быть так:
Пояснение:
|
-
-
- Быстрый ответ:
- ';
- $this->block($text);
- }
+ $this->blocknot($text);
}
public function view()
{
@@ -280,17 +194,21 @@ public function view()
3 => array("100px","Прогресс"),
4 => array("100px","Статус"),
5 => array("100px","Приоритет"));
-
- echo '
-
|
'.$text.' | +
Здравствуйте, '.$user['username'].'! |
+ + | + |
Точно выйти? |
+ + | + | + | + |
+ | + | + | + | + | + | + | + | + |
Быстрый ответ: |
+ + | + | '; + + $text.= ' + | + | + | + | + | '; if(isset($_GET['a']) && $_GET['a'] == "list" && $main->GetSections("all") > "0") - echo ' | Изменить'; + $text.= ' + | + | '; - echo ''; + $text.= ' |