sql_query($q);
while ($rows = $db->sql_fetchrow($r))
{
if ($rows['group_id'])
{
$q1 = "UPDATE ". COLORS ."
SET group_weight = '". $rows['group_id'] ."'
WHERE group_id = '". $rows['group_id'] ."'";
$db->sql_query($q1);
}
}
if ($mode == 'move_up')
{
$group = ($_GET['id']) ? $_GET['id'] : $HTTP_GET_VARS['id'];
#==== Get current weight & weight above it to switch them.
$q = "SELECT *
FROM ". COLORS ."
WHERE group_id = '". intval($group) ."'";
$r = $db->sql_query($q);
$group_one = $db->sql_fetchrow($r);
$above_it = $group_one['group_weight'] - 1;
$q = "SELECT *
FROM ". COLORS ."
WHERE group_weight = '". intval($above_it) ."'";
$r = $db->sql_query($q);
$group_two = $db->sql_fetchrow($r);
$group_one_id = $group_one['group_id'];
$group_one_weight = $group_one['group_weight'];
$group_two_id = $group_two['group_id'];
$group_two_weight = $group_two['group_weight'];
#==== Set new settings for the groups
$q = "UPDATE ". COLORS ."
SET group_weight = '". $group_two_weight ."'
WHERE group_id = '". $group_one_id ."'";
$db->sql_query($q);
$q = "UPDATE ". COLORS ."
SET group_weight = '". $group_one_weight ."'
WHERE group_id = '". $group_two_id ."'";
$db->sql_query($q);
message_die(GENERAL_MESSAGE, 'Saved');
}
if ($mode == 'move_down')
{
$group = ($_GET['id']) ? $_GET['id'] : $HTTP_GET_VARS['id'];
#==== Get current weight & weight under it to switch them.
$q = "SELECT *
FROM ". COLORS ."
WHERE group_id = '". intval($group) ."'";
$r = $db->sql_query($q);
$group_one = $db->sql_fetchrow($r);
$below_it = $group_one['group_weight'] + 1;
$q = "SELECT *
FROM ". COLORS ."
WHERE group_weight = '". intval($below_it) ."'";
$r = $db->sql_query($q);
$group_two = $db->sql_fetchrow($r);
$group_one_id = $group_one['group_id'];
$group_one_weight = $group_one['group_weight'];
$group_two_id = $group_two['group_id'];
$group_two_weight = $group_two['group_weight'];
#==== Set new settings for the groups
$q = "UPDATE ". COLORS ."
SET group_weight = '". $group_two_weight ."'
WHERE group_id = '". $group_one_id ."'";
$db->sql_query($q);
$q = "UPDATE ". COLORS ."
SET group_weight = '". $group_one_weight ."'
WHERE group_id = '". $group_two_id ."'";
$db->sql_query($q);
message_die(GENERAL_MESSAGE, 'Saved');
}
if($mode == "main" || !$mode)
{
echo "
";
echo " ";
echo " ";
echo " ". $lang['admin_main_header_c'];
echo " | ";
echo "
";
echo "
";
echo "
";
echo "";
echo " ";
echo " | ";
echo " ";
echo " ". $lang['view_group_names'];
echo " | ";
echo " ";
echo " ". $lang['view_group_colors'];
echo " | ";
echo " ";
echo " ". $lang['view_group_colors_2'];
echo " | ";
echo "
";
$q = "SELECT *
FROM ". COLORS ."
WHERE group_id > '0'";
$r = $db -> sql_query($q);
$total = $db->sql_numrows($r);
$w = 1;
$q = "SELECT *
FROM ". COLORS ."
WHERE group_id > '0'
ORDER BY group_weight ASC";
$r = $db -> sql_query($q);
while($row = $db -> sql_fetchrow($r))
{
if ($w != 1)
$links = ' Up';
else
$links = ' Down';
echo " ";
echo " ";
echo " ";
echo " ". $w . $links;
echo " ";
echo " | ";
echo " ";
echo " ";
echo " ". $row['group_name'];
echo " ";
echo " | ";
echo " ";
echo " ";
echo " ". $row['group_color'];
echo " ";
echo " | ";
echo " ";
echo " ";
echo " ". $lang['view_group_colors_3'] ."";
echo " ";
echo " | ";
echo "
";
$w++;
}
echo "
";
echo "
";
echo "";
echo " ";
echo " ";
echo " ";
echo " ". $lang['add_new_color'];
echo " ";
echo " | ";
echo "
";
echo "
";
echo "";
echo "
";
echo "";
echo " ";
echo " ";
echo " ";
echo " ". $lang['edit_color'];
echo " ";
echo " | ";
echo "
";
echo "
";
echo "";
echo "
";
echo "";
echo " ";
echo " ";
echo " ";
echo " ". $lang['delete_color'];
echo " ";
echo " | ";
echo "
";
echo "
";
echo "";
echo "
";
echo "
150000 | 2a0000 | 3f0000 | 550000 | 6a0000 | 7f0000 | 940000 | aa0000 | bf0000 | d40000 | e90000 | ff0000 | ff1515 | ff2a2a | ff3f3f | ff5555 | ff6a6a | ff7f7f | ff9494 | ffaaaa | ffbfbf | ffd4d4 | ffe9e9 |
150100 | 2a0200 | 3f0400 | 550500 | 6a0700 | 7f0800 | 940900 | aa0b00 | bf0c00 | d40e00 | e90f00 | ff1100 | ff2415 | ff382a | ff4c3f | ff6055 | ff746a | ff887f | ff9b94 | ffafaa | ffc3bf | ffd7d4 | ffebe9 |
150200 | 2a0500 | 3f0800 | 550b00 | 6a0e00 | 7f1100 | 941300 | aa1600 | bf1900 | d41c00 | e91f00 | ff2200 | ff3415 | ff462a | ff593f | ff6b55 | ff7e6a | ff907f | ffa294 | ffb5aa | ffc7bf | ffdad4 | ffece9 |
150400 | 2a0800 | 3f0c00 | 551100 | 6a1500 | 7f1900 | 941d00 | aa2200 | bf2600 | d42a00 | e92e00 | ff3300 | ff4415 | ff552a | ff663f | ff7755 | ff886a | ff997f | ffaa94 | ffbbaa | ffccbf | ffddd4 | ffeee9 |
150500 | 2a0b00 | 3f1100 | 551600 | 6a1c00 | 7f2200 | 942700 | aa2d00 | bf3300 | d43800 | e93e00 | ff4400 | ff5315 | ff632a | ff723f | ff8255 | ff916a | ffa17f | ffb194 | ffc0aa | ffd0bf | ffdfd4 | ffefe9 |
150700 | 2a0e00 | 3f1500 | 551c00 | 6a2300 | 7f2a00 | 943100 | aa3800 | bf3f00 | d44600 | e94d00 | ff5500 | ff6315 | ff712a | ff7f3f | ff8d55 | ff9b6a | ffaa7f | ffb894 | ffc6aa | ffd4bf | ffe2d4 | fff0e9 |
150800 | 2a1000 | 3f1900 | 552200 | 6a2a00 | 7f3300 | 943b00 | aa4400 | bf4c00 | d45500 | e95d00 | ff6600 | ff7215 | ff7f2a | ff8c3f | ff9955 | ffa56a | ffb27f | ffbf94 | ffccaa | ffd8bf | ffe5d4 | fff2e9 |
150900 | 2a1300 | 3f1d00 | 552700 | 6a3100 | 7f3b00 | 944500 | aa4f00 | bf5900 | d46300 | e96d00 | ff7700 | ff8215 | ff8d2a | ff993f | ffa455 | ffaf6a | ffbb7f | ffc694 | ffd1aa | ffddbf | ffe8d4 | fff3e9 |
150b00 | 2a1600 | 3f2200 | 552d00 | 6a3800 | 7f4400 | 944f00 | aa5a00 | bf6600 | d47100 | e97c00 | ff8800 | ff9115 | ff9b2a | ffa53f | ffaf55 | ffb96a | ffc37f | ffcd94 | ffd7aa | ffe1bf | ffebd4 | fff5e9 |
150c00 | 2a1900 | 3f2600 | 553300 | 6a3f00 | 7f4c00 | 945900 | aa6600 | bf7200 | d47f00 | e98c00 | ff9900 | ffa115 | ffaa2a | ffb23f | ffbb55 | ffc36a | ffcc7f | ffd494 | ffddaa | ffe5bf | ffeed4 | fff6e9 |
150e00 | 2a1c00 | 3f2a00 | 553800 | 6a4600 | 7f5500 | 946300 | aa7100 | bf7f00 | d48d00 | e99b00 | ffaa00 | ffb115 | ffb82a | ffbf3f | ffc655 | ffcd6a | ffd47f | ffdb94 | ffe2aa | ffe9bf | fff0d4 | fff7e9 |
150f00 | 2a1f00 | 3f2e00 | 553e00 | 6a4d00 | 7f5d00 | 946d00 | aa7c00 | bf8c00 | d49b00 | e9ab00 | ffbb00 | ffc015 | ffc62a | ffcb3f | ffd155 | ffd76a | ffdd7f | ffe294 | ffe8aa | ffeebf | fff3d4 | fff9e9 |
151100 | 2a2100 | 3f3300 | 554400 | 6a5500 | 7f6600 | 947600 | aa8800 | bf9900 | d4aa00 | e9bb00 | ffcc00 | ffd015 | ffd42a | ffd83f | ffdd55 | ffe16a | ffe57f | ffe994 | ffeeaa | fff2bf | fff6d4 | fffae9 |
151200 | 2a2400 | 3f3700 | 554900 | 6a5c00 | 7f6e00 | 948000 | aa9300 | bfa500 | d4b800 | e9ca00 | ffdd00 | ffdf15 | ffe22a | ffe53f | ffe855 | ffeb6a | ffee7f | fff094 | fff3aa | fff6bf | fff9d4 | fffce9 |
151300 | 2a2700 | 3f3b00 | 554f00 | 6a6300 | 7f7700 | 948a00 | aa9e00 | bfb200 | d4c600 | e9da00 | ffee00 | ffef15 | fff02a | fff23f | fff355 | fff56a | fff67f | fff794 | fff9aa | fffabf | fffcd4 | fffde9 |
151500 | 2a2a00 | 3f3f00 | 555500 | 6a6a00 | 7f7f00 | 949400 | aaaa00 | bfbf00 | d4d400 | e9e900 | ffff00 | ffff15 | ffff2a | ffff3f | ffff55 | ffff6a | ffff7f | ffff94 | ffffaa | ffffbf | ffffd4 | ffffe9 |
131500 | 272a00 | 3b3f00 | 4f5500 | 636a00 | 777f00 | 8a9400 | 9eaa00 | b2bf00 | c6d400 | dae900 | eeff00 | efff15 | f0ff2a | f2ff3f | f3ff55 | f5ff6a | f6ff7f | f7ff94 | f9ffaa | faffbf | fcffd4 | fdffe9 |
121500 | 242a00 | 373f00 | 495500 | 5c6a00 | 6e7f00 | 809400 | 93aa00 | a5bf00 | b8d400 | cae900 | ddff00 | dfff15 | e2ff2a | e5ff3f | e8ff55 | ebff6a | eeff7f | f0ff94 | f3ffaa | f6ffbf | f9ffd4 | fcffe9 |
111500 | 212a00 | 333f00 | 445500 | 556a00 | 667f00 | 769400 | 88aa00 | 99bf00 | aad400 | bbe900 | ccff00 | d0ff15 | d4ff2a | d8ff3f | ddff55 | e1ff6a | e5ff7f | e9ff94 | eeffaa | f2ffbf | f6ffd4 | faffe9 |
0f1500 | 1f2a00 | 2e3f00 | 3e5500 | 4d6a00 | 5d7f00 | 6d9400 | 7caa00 | 8cbf00 | 9bd400 | abe900 | bbff00 | c0ff15 | c6ff2a | ccff3f | d1ff55 | d7ff6a | ddff7f | e2ff94 | e8ffaa | eeffbf | f3ffd4 | f9ffe9 |
0e1500 | 1c2a00 | 2a3f00 | 385500 | 466a00 | 557f00 | 639400 | 71aa00 | 7fbf00 | 8dd400 | 9be900 | aaff00 | b1ff15 | b8ff2a | bfff3f | c6ff55 | cdff6a | d4ff7f | dbff94 | e2ffaa | e9ffbf | f0ffd4 | f7ffe9 |
0c1500 | 192a00 | 263f00 | 335500 | 3f6a00 | 4c7f00 | 599400 | 66aa00 | 72bf00 | 7fd400 | 8ce900 | 99ff00 | a1ff15 | aaff2a | b2ff3f | bbff55 | c3ff6a | ccff7f | d4ff94 | ddffaa | e5ffbf | eeffd4 | f6ffe9 |
0b1500 | 162a00 | 223f00 | 2d5500 | 386a00 | 447f00 | 4f9400 | 5aaa00 | 66bf00 | 71d400 | 7ce900 | 88ff00 | 91ff15 | 9bff2a | a5ff3f | afff55 | b9ff6a | c3ff7f | cdff94 | d7ffaa | e1ffbf | ebffd4 | f5ffe9 |
091500 | 132a00 | 1d3f00 | 275500 | 316a00 | 3b7f00 | 459400 | 4faa00 | 59bf00 | 63d400 | 6de900 | 76ff00 | 82ff15 | 8dff2a | 98ff3f | a4ff55 | afff6a | bbff7f | c6ff94 | d1ffaa | ddffbf | e8ffd4 | f3ffe9 |
081500 | 102a00 | 193f00 | 225500 | 2a6a00 | 327f00 | 3b9400 | 44aa00 | 4cbf00 | 54d400 | 5de900 | 65ff00 | 72ff15 | 7fff2a | 8cff3f | 99ff55 | a5ff6a | b2ff7f | bfff94 | cbffaa | d8ffbf | e5ffd4 | f2ffe9 |
071500 | 0e2a00 | 153f00 | 1c5500 | 236a00 | 2a7f00 | 319400 | 38aa00 | 3fbf00 | 46d400 | 4de900 | 54ff00 | 63ff15 | 71ff2a | 7fff3f | 8dff55 | 9bff6a | aaff7f | b8ff94 | c6ffaa | d4ffbf | e2ffd4 | f0ffe9 |
051500 | 0b2a00 | 103f00 | 165500 | 1c6a00 | 217f00 | 279400 | 2daa00 | 32bf00 | 38d400 | 3ee900 | 43ff00 | 53ff15 | 63ff2a | 72ff3f | 82ff55 | 91ff6a | a1ff7f | b1ff94 | c0ffaa | d0ffbf | dfffd4 | efffe9 |
041500 | 082a00 | 0c3f00 | 115500 | 156a00 | 197f00 | 1d9400 | 22aa00 | 26bf00 | 2ad400 | 2ee900 | 32ff00 | 43ff15 | 54ff2a | 65ff3f | 77ff55 | 88ff6a | 99ff7f | aaff94 | bbffaa | ccffbf | ddffd4 | eeffe9 |
021500 | 052a00 | 083f00 | 0b5500 | 0e6a00 | 107f00 | 139400 | 16aa00 | 19bf00 | 1cd400 | 1fe900 | 21ff00 | 34ff15 | 46ff2a | 59ff3f | 6bff55 | 7eff6a | 90ff7f | a2ff94 | b5ffaa | c7ffbf | daffd4 | ecffe9 |
011500 | 022a00 | 043f00 | 055500 | 076a00 | 087f00 | 099400 | 0baa00 | 0cbf00 | 0ed400 | 0fe900 | 10ff00 | 24ff15 | 38ff2a | 4cff3f | 60ff55 | 74ff6a | 88ff7f | 9bff94 | afffaa | c3ffbf | d7ffd4 | ebffe9 |
001500 | 002a00 | 003f00 | 005500 | 006a00 | 007f00 | 009400 | 00aa00 | 00bf00 | 00d400 | 00e900 | 00ff00 | 15ff15 | 2aff2a | 3fff3f | 55ff55 | 6aff6a | 7fff7f | 94ff94 | aaffaa | bfffbf | d4ffd4 | e9ffe9 |
001501 | 002a02 | 003f04 | 005505 | 006a07 | 007f08 | 009409 | 00aa0b | 00bf0c | 00d40e | 00e90f | 00ff11 | 15ff24 | 2aff38 | 3fff4c | 55ff60 | 6aff74 | 7fff88 | 94ff9b | aaffaf | bfffc3 | d4ffd7 | e9ffeb |
001502 | 002a05 | 003f08 | 00550b | 006a0e | 007f10 | 009413 | 00aa16 | 00bf19 | 00d41c | 00e91f | 00ff21 | 15ff34 | 2aff46 | 3fff59 | 55ff6b | 6aff7e | 7fff90 | 94ffa2 | aaffb5 | bfffc7 | d4ffda | e9ffec |
001504 | 002a08 | 003f0c | 005511 | 006a15 | 007f19 | 00941d | 00aa22 | 00bf26 | 00d42a | 00e92e | 00ff33 | 15ff44 | 2aff55 | 3fff66 | 55ff77 | 6aff88 | 7fff99 | 94ffaa | aaffbb | bfffcc | d4ffdd | e9ffee |
001505 | 002a0b | 003f10 | 005516 | 006a1c | 007f21 | 009427 | 00aa2d | 00bf32 | 00d438 | 00e93e | 00ff43 | 15ff53 | 2aff63 | 3fff72 | 55ff82 | 6aff91 | 7fffa1 | 94ffb1 | aaffc0 | bfffd0 | d4ffdf | e9ffef |
001507 | 002a0e | 003f15 | 00551c | 006a23 | 007f2a | 009431 | 00aa38 | 00bf3f | 00d446 | 00e94d | 00ff55 | 15ff63 | 2aff71 | 3fff7f | 55ff8d | 6aff9b | 7fffaa | 94ffb8 | aaffc6 | bfffd4 | d4ffe2 | e9fff0 |
001508 | 002a10 | 003f19 | 005522 | 006a2a | 007f32 | 00943b | 00aa44 | 00bf4c | 00d454 | 00e95d | 00ff65 | 15ff72 | 2aff7f | 3fff8c | 55ff99 | 6affa5 | 7fffb2 | 94ffbf | aaffcb | bfffd8 | d4ffe5 | e9fff2 |
001509 | 002a13 | 003f1d | 005527 | 006a31 | 007f3b | 009445 | 00aa4f | 00bf59 | 00d463 | 00e96d | 00ff77 | 15ff82 | 2aff8d | 3fff99 | 55ffa4 | 6affaf | 7fffbb | 94ffc6 | aaffd1 | bfffdd | d4ffe8 | e9fff3 |
00150b | 002a16 | 003f21 | 00552d | 006a38 | 007f43 | 00944f | 00aa5a | 00bf65 | 00d471 | 00e97c | 00ff87 | 15ff91 | 2aff9b | 3fffa5 | 55ffaf | 6affb9 | 7fffc3 | 94ffcd | aaffd7 | bfffe1 | d4ffeb | e9fff5 |
00150c | 002a19 | 003f26 | 005533 | 006a3f | 007f4c | 009459 | 00aa66 | 00bf72 | 00d47f | 00e98c | 00ff99 | 15ffa1 | 2affaa | 3fffb2 | 55ffbb | 6affc3 | 7fffcc | 94ffd4 | aaffdd | bfffe5 | d4ffee | e9fff6 |
00150e | 002a1c | 003f2a | 005538 | 006a46 | 007f54 | 009463 | 00aa71 | 00bf7f | 00d48d | 00e99b | 00ffa9 | 15ffb1 | 2affb8 | 3fffbf | 55ffc6 | 6affcd | 7fffd4 | 94ffdb | aaffe2 | bfffe9 | d4fff0 | e9fff7 |
00150f | 002a1f | 003f2e | 00553e | 006a4d | 007f5d | 00946d | 00aa7c | 00bf8c | 00d49b | 00e9ab | 00ffbb | 15ffc0 | 2affc6 | 3fffcc | 55ffd1 | 6affd7 | 7fffdd | 94ffe2 | aaffe8 | bfffee | d4fff3 | e9fff9 |
001511 | 002a21 | 003f32 | 005544 | 006a54 | 007f65 | 009476 | 00aa88 | 00bf98 | 00d4a9 | 00e9ba | 00ffcb | 15ffd0 | 2affd4 | 3fffd8 | 55ffdd | 6affe1 | 7fffe5 | 94ffe9 | aaffee | bffff2 | d4fff6 | e9fffa |
001512 | 002a24 | 003f37 | 005549 | 006a5c | 007f6e | 009480 | 00aa93 | 00bfa5 | 00d4b8 | 00e9ca | 00ffdd | 15ffdf | 2affe2 | 3fffe5 | 55ffe8 | 6affeb | 7fffee | 94fff0 | aafff3 | bffff6 | d4fff9 | e9fffc |
001513 | 002a27 | 003f3b | 00554f | 006a63 | 007f76 | 00948a | 00aa9e | 00bfb2 | 00d4c6 | 00e9da | 00ffed | 15ffef | 2afff0 | 3ffff2 | 55fff3 | 6afff5 | 7ffff6 | 94fff7 | aafff9 | bffffa | d4fffc | e9fffd |
001515 | 002a2a | 003f3f | 005555 | 006a6a | 007f7f | 009494 | 00aaaa | 00bfbf | 00d4d4 | 00e9e9 | 00ffff | 15ffff | 2affff | 3fffff | 55ffff | 6affff | 7fffff | 94ffff | aaffff | bfffff | d4ffff | e9ffff |
001315 | 00272a | 003b3f | 004f55 | 00636a | 00767f | 008a94 | 009eaa | 00b2bf | 00c6d4 | 00dae9 | 00edff | 15efff | 2af0ff | 3ff2ff | 55f3ff | 6af5ff | 7ff6ff | 94f7ff | aaf9ff | bffaff | d4fcff | e9fdff |
001215 | 00242a | 00373f | 004955 | 005c6a | 006e7f | 008094 | 0093aa | 00a5bf | 00b8d4 | 00cae9 | 00ddff | 15dfff | 2ae2ff | 3fe5ff | 55e8ff | 6aebff | 7feeff | 94f0ff | aaf3ff | bff6ff | d4f9ff | e9fcff |
001115 | 00212a | 00323f | 004455 | 00546a | 00657f | 007694 | 0088aa | 0098bf | 00a9d4 | 00bae9 | 00cbff | 15d0ff | 2ad4ff | 3fd8ff | 55ddff | 6ae1ff | 7fe5ff | 94e9ff | aaeeff | bff2ff | d4f6ff | e9faff |
000f15 | 001f2a | 002e3f | 003e55 | 004d6a | 005d7f | 006d94 | 007caa | 008cbf | 009bd4 | 00abe9 | 00bbff | 15c0ff | 2ac6ff | 3fccff | 55d1ff | 6ad7ff | 7fddff | 94e2ff | aae8ff | bfeeff | d4f3ff | e9f9ff |
000e15 | 001c2a | 002a3f | 003855 | 00466a | 00547f | 006394 | 0071aa | 007fbf | 008dd4 | 009be9 | 00a9ff | 15b1ff | 2ab8ff | 3fbfff | 55c6ff | 6acdff | 7fd4ff | 94dbff | aae2ff | bfe9ff | d4f0ff | e9f7ff |
000c15 | 00192a | 00263f | 003355 | 003f6a | 004c7f | 005994 | 0066aa | 0072bf | 007fd4 | 008ce9 | 0099ff | 15a1ff | 2aaaff | 3fb2ff | 55bbff | 6ac3ff | 7fccff | 94d4ff | aaddff | bfe5ff | d4eeff | e9f6ff |
000b15 | 00162a | 00213f | 002d55 | 00386a | 00437f | 004f94 | 005aaa | 0065bf | 0071d4 | 007ce9 | 0087ff | 1591ff | 2a9bff | 3fa5ff | 55afff | 6ab9ff | 7fc3ff | 94cdff | aad7ff | bfe1ff | d4ebff | e9f5ff |
000915 | 00132a | 001d3f | 002755 | 00316a | 003b7f | 004594 | 004faa | 0059bf | 0063d4 | 006de9 | 0077ff | 1582ff | 2a8dff | 3f99ff | 55a4ff | 6aafff | 7fbbff | 94c6ff | aad1ff | bfddff | d4e8ff | e9f3ff |
000815 | 00102a | 00193f | 002255 | 002a6a | 00327f | 003b94 | 0044aa | 004cbf | 0054d4 | 005de9 | 0065ff | 1572ff | 2a7fff | 3f8cff | 5599ff | 6aa5ff | 7fb2ff | 94bfff | aacbff | bfd8ff | d4e5ff | e9f2ff |
000715 | 000e2a | 00153f | 001c55 | 00236a | 002a7f | 003194 | 0038aa | 003fbf | 0046d4 | 004de9 | 0055ff | 1563ff | 2a71ff | 3f7fff | 558dff | 6a9bff | 7faaff | 94b8ff | aac6ff | bfd4ff | d4e2ff | e9f0ff |
000515 | 000b2a | 00103f | 001655 | 001c6a | 00217f | 002794 | 002daa | 0032bf | 0038d4 | 003ee9 | 0043ff | 1553ff | 2a63ff | 3f72ff | 5582ff | 6a91ff | 7fa1ff | 94b1ff | aac0ff | bfd0ff | d4dfff | e9efff |
000415 | 00082a | 000c3f | 001155 | 00156a | 00197f | 001d94 | 0022aa | 0026bf | 002ad4 | 002ee9 | 0033ff | 1544ff | 2a55ff | 3f66ff | 5577ff | 6a88ff | 7f99ff | 94aaff | aabbff | bfccff | d4ddff | e9eeff |
000215 | 00052a | 00083f | 000b55 | 000e6a | 00107f | 001394 | 0016aa | 0019bf | 001cd4 | 001fe9 | 0021ff | 1534ff | 2a46ff | 3f59ff | 556bff | 6a7eff | 7f90ff | 94a2ff | aab5ff | bfc7ff | d4daff | e9ecff |
000115 | 00022a | 00043f | 000555 | 00076a | 00087f | 000994 | 000baa | 000cbf | 000ed4 | 000fe9 | 0011ff | 1524ff | 2a38ff | 3f4cff | 5560ff | 6a74ff | 7f88ff | 949bff | aaafff | bfc3ff | d4d7ff | e9ebff |
000015 | 00002a | 00003f | 000055 | 00006a | 00007f | 000094 | 0000aa | 0000bf | 0000d4 | 0000e9 | 0000ff | 1515ff | 2a2aff | 3f3fff | 5555ff | 6a6aff | 7f7fff | 9494ff | aaaaff | bfbfff | d4d4ff | e9e9ff |
010015 | 02002a | 04003f | 050055 | 07006a | 08007f | 090094 | 0b00aa | 0c00bf | 0e00d4 | 0f00e9 | 1000ff | 2415ff | 382aff | 4c3fff | 6055ff | 746aff | 877fff | 9b94ff | afaaff | c3bfff | d7d4ff | ebe9ff |
020015 | 05002a | 08003f | 0b0055 | 0e006a | 11007f | 130094 | 1600aa | 1900bf | 1c00d4 | 1f00e9 | 2200ff | 3415ff | 462aff | 593fff | 6b55ff | 7e6aff | 907fff | a294ff | b5aaff | c7bfff | dad4ff | ece9ff |
040015 | 08002a | 0c003f | 110055 | 15006a | 19007f | 1d0094 | 2200aa | 2600bf | 2a00d4 | 2e00e9 | 3300ff | 4415ff | 552aff | 663fff | 7755ff | 886aff | 997fff | aa94ff | bbaaff | ccbfff | ddd4ff | eee9ff |
050015 | 0b002a | 10003f | 160055 | 1c006a | 21007f | 270094 | 2d00aa | 3200bf | 3800d4 | 3e00e9 | 4300ff | 5315ff | 632aff | 723fff | 8255ff | 916aff | a17fff | b194ff | c0aaff | d0bfff | dfd4ff | efe9ff |
070015 | 0e002a | 15003f | 1c0055 | 23006a | 2a007f | 310094 | 3800aa | 3f00bf | 4600d4 | 4d00e9 | 5400ff | 6315ff | 712aff | 7f3fff | 8d55ff | 9b6aff | a97fff | b894ff | c6aaff | d4bfff | e2d4ff | f0e9ff |
080015 | 11002a | 19003f | 220055 | 2a006a | 33007f | 3b0094 | 4400aa | 4c00bf | 5500d4 | 5d00e9 | 6600ff | 7215ff | 7f2aff | 8c3fff | 9955ff | a56aff | b27fff | bf94ff | ccaaff | d8bfff | e5d4ff | f2e9ff |
090015 | 13002a | 1d003f | 270055 | 31006a | 3b007f | 450094 | 4f00aa | 5900bf | 6300d4 | 6d00e9 | 7700ff | 8215ff | 8d2aff | 993fff | a455ff | af6aff | bb7fff | c694ff | d1aaff | ddbfff | e8d4ff | f3e9ff |
0b0015 | 16002a | 21003f | 2d0055 | 38006a | 43007f | 4f0094 | 5a00aa | 6500bf | 7100d4 | 7c00e9 | 8700ff | 9115ff | 9b2aff | a53fff | af55ff | b96aff | c37fff | cd94ff | d7aaff | e1bfff | ebd4ff | f5e9ff |
0c0015 | 19002a | 26003f | 320055 | 3f006a | 4c007f | 590094 | 6500aa | 7200bf | 7f00d4 | 8c00e9 | 9800ff | a115ff | a92aff | b23fff | ba55ff | c36aff | cb7fff | d494ff | dcaaff | e5bfff | eed4ff | f6e9ff |
0e0015 | 1c002a | 2a003f | 380055 | 46006a | 55007f | 630094 | 7100aa | 7f00bf | 8d00d4 | 9b00e9 | aa00ff | b115ff | b82aff | bf3fff | c655ff | cd6aff | d47fff | db94ff | e2aaff | e9bfff | f0d4ff | f7e9ff |
0f0015 | 1f002a | 2e003f | 3e0055 | 4d006a | 5d007f | 6d0094 | 7c00aa | 8c00bf | 9b00d4 | ab00e9 | bb00ff | c015ff | c62aff | cc3fff | d155ff | d76aff | dd7fff | e294ff | e8aaff | eebfff | f3d4ff | f9e9ff |
110015 | 21002a | 32003f | 440055 | 54006a | 65007f | 760094 | 8800aa | 9800bf | a900d4 | ba00e9 | cb00ff | d015ff | d42aff | d83fff | dd55ff | e16aff | e57fff | e994ff | eeaaff | f2bfff | f6d4ff | fae9ff |
120015 | 24002a | 37003f | 490055 | 5c006a | 6e007f | 800094 | 9300aa | a500bf | b800d4 | ca00e9 | dc00ff | df15ff | e22aff | e53fff | e855ff | eb6aff | ed7fff | f094ff | f3aaff | f6bfff | f9d4ff | fce9ff |
130015 | 27002a | 3b003f | 4f0055 | 63006a | 77007f | 8a0094 | 9e00aa | b200bf | c600d4 | da00e9 | ee00ff | ef15ff | f02aff | f23fff | f355ff | f56aff | f67fff | f794ff | f9aaff | fabfff | fcd4ff | fde9ff |
150015 | 2a002a | 3f003f | 550055 | 6a006a | 7f007f | 940094 | aa00aa | bf00bf | d400d4 | e900e9 | ff00ff | ff15ff | ff2aff | ff3fff | ff55ff | ff6aff | ff7fff | ff94ff | ffaaff | ffbfff | ffd4ff | ffe9ff |
150013 | 2a0027 | 3f003b | 55004f | 6a0063 | 7f0077 | 94008a | aa009e | bf00b2 | d400c6 | e900da | ff00ee | ff15ef | ff2af0 | ff3ff2 | ff55f3 | ff6af5 | ff7ff6 | ff94f7 | ffaaf9 | ffbffa | ffd4fc | ffe9fd |
150012 | 2a0024 | 3f0037 | 550049 | 6a005c | 7f006e | 940080 | aa0093 | bf00a5 | d400b8 | e900ca | ff00dc | ff15df | ff2ae2 | ff3fe5 | ff55e8 | ff6aeb | ff7fed | ff94f0 | ffaaf3 | ffbff6 | ffd4f9 | ffe9fc |
150011 | 2a0021 | 3f0032 | 550044 | 6a0054 | 7f0065 | 940076 | aa0088 | bf0098 | d400a9 | e900ba | ff00cb | ff15d0 | ff2ad4 | ff3fd8 | ff55dd | ff6ae1 | ff7fe5 | ff94e9 | ffaaee | ffbff2 | ffd4f6 | ffe9fa |
15000f | 2a001f | 3f002e | 55003e | 6a004d | 7f005d | 94006d | aa007c | bf008c | d4009b | e900ab | ff00bb | ff15c0 | ff2ac6 | ff3fcc | ff55d1 | ff6ad7 | ff7fdd | ff94e2 | ffaae8 | ffbfee | ffd4f3 | ffe9f9 |
15000e | 2a001c | 3f002a | 550038 | 6a0046 | 7f0055 | 940063 | aa0071 | bf007f | d4008d | e9009b | ff00aa | ff15b1 | ff2ab8 | ff3fbf | ff55c6 | ff6acd | ff7fd4 | ff94db | ffaae2 | ffbfe9 | ffd4f0 | ffe9f7 |
15000c | 2a0019 | 3f0026 | 550032 | 6a003f | 7f004c | 940059 | aa0065 | bf0072 | d4007f | e9008c | ff0098 | ff15a1 | ff2aa9 | ff3fb2 | ff55ba | ff6ac3 | ff7fcb | ff94d4 | ffaadc | ffbfe5 | ffd4ee | ffe9f6 |
15000b | 2a0016 | 3f0021 | 55002d | 6a0038 | 7f0043 | 94004f | aa005a | bf0065 | d40071 | e9007c | ff0087 | ff1591 | ff2a9b | ff3fa5 | ff55af | ff6ab9 | ff7fc3 | ff94cd | ffaad7 | ffbfe1 | ffd4eb | ffe9f5 |
150009 | 2a0013 | 3f001d | 550027 | 6a0031 | 7f003b | 940045 | aa004f | bf0059 | d40063 | e9006d | ff0077 | ff1582 | ff2a8d | ff3f99 | ff55a4 | ff6aaf | ff7fbb | ff94c6 | ffaad1 | ffbfdd | ffd4e8 | ffe9f3 |
150008 | 2a0011 | 3f0019 | 550022 | 6a002a | 7f0033 | 94003b | aa0044 | bf004c | d40055 | e9005d | ff0066 | ff1572 | ff2a7f | ff3f8c | ff5599 | ff6aa5 | ff7fb2 | ff94bf | ffaacc | ffbfd8 | ffd4e5 | ffe9f2 |
150007 | 2a000e | 3f0015 | 55001c | 6a0023 | 7f002a | 940031 | aa0038 | bf003f | d40046 | e9004d | ff0054 | ff1563 | ff2a71 | ff3f7f | ff558d | ff6a9b | ff7fa9 | ff94b8 | ffaac6 | ffbfd4 | ffd4e2 | ffe9f0 |
150005 | 2a000b | 3f0010 | 550016 | 6a001c | 7f0021 | 940027 | aa002d | bf0032 | d40038 | e9003e | ff0043 | ff1553 | ff2a63 | ff3f72 | ff5582 | ff6a91 | ff7fa1 | ff94b1 | ffaac0 | ffbfd0 | ffd4df | ffe9ef |
150004 | 2a0008 | 3f000c | 550011 | 6a0015 | 7f0019 | 94001d | aa0022 | bf0026 | d4002a | e9002e | ff0033 | ff1544 | ff2a55 | ff3f66 | ff5577 | ff6a88 | ff7f99 | ff94aa | ffaabb | ffbfcc | ffd4dd | ffe9ee |
150002 | 2a0005 | 3f0008 | 55000b | 6a000e | 7f0011 | 940013 | aa0016 | bf0019 | d4001c | e9001f | ff0022 | ff1534 | ff2a46 | ff3f59 | ff556b | ff6a7e | ff7f90 | ff94a2 | ffaab5 | ffbfc7 | ffd4da | ffe9ec |
150001 | 2a0002 | 3f0004 | 550005 | 6a0007 | 7f0008 | 940009 | aa000b | bf000c | d4000e | e9000f | ff0010 | ff1524 | ff2a38 | ff3f4c | ff5560 | ff6a74 | ff7f87 | ff949b | ffaaaf | ffbfc3 | ffd4d7 | ffe9eb |
";
}
if($mode == "del_exis_group")
{
$to_delete = $_POST['group'];
if(!$to_delete)
message_die(GENERAL_ERROR, $lang['delete_error'], $lang['error']);
$q = "DELETE FROM ". COLORS ."
WHERE group_id = '". $to_delete ."'";
$r = $db -> sql_query($q);
#==== Update all users for this group
$q = "SELECT user_color_gi, user_id
FROM ". USERS_TABLE ."
WHERE user_color_gi <> '0'";
$r = $db->sql_query($q);
$row = $db->sql_fetchrowset($r);
for ($a = 0; $a < count($row); $a++)
{
if (eregi('--'. $to_delete .'--', $row[$a]['user_color_gi']))
{
$remove = str_replace('--'. $to_delete .'--', '', $row[$a]['user_color_gi']);
if (!$remove)
$new_id = '0';
else
$new_id = $remove;
#==== If in more than 1 group, get the next color
if ($new_id)
{
$q = "SELECT group_color, group_id
FROM ". COLORS ."";
$r = $db->sql_query($q);
$groups_info = $db->sql_fetchrowset($r);
for ($b = 0; $b < count($groups_info); $b++)
{
if (eregi('--'. $groups_info[$b]['group_id'] .'--', $new_id))
{
$new_color = $groups_info[$b]['group_color'];
break;
}
}
}
else
$new_color = '';
$q1 = "UPDATE ". USERS_TABLE ."
SET user_color_gi = '$new_id', user_color_gc = '$new_color'
WHERE user_id = '". $row[$a]['user_id'] ."'";
$db->sql_query($q1);
break;
}
}
message_die(GENERAL_MESSAGE, $lang['delete_success'], $lang['success']);
}
if($mode == "edit_exis_group")
{
$color = $_POST['group'];
if(!$color) message_die(GENERAL_ERROR, $lang['edit_error'], $lang['error']);
$q = "SELECT *
FROM ". COLORS ."
WHERE group_id = '". $color ."'";
$r = $db -> sql_query($q);
$row = $db -> sql_fetchrow($r);
echo "";
echo " ";
echo " ";
echo " ". $lang['admin_main_header_c'];
echo " | ";
echo "
";
echo "
";
echo "
";
echo "";
echo " ";
echo " ";
echo " ";
echo " ". $lang['editing_color'];
echo " ";
echo " | ";
echo "
";
echo "
";
echo "";
echo "
";
}
if($mode == "save_new_color")
{
$new_name = $_POST['new_name'];
$new_color = $_POST['new_color'];
$old_name = $_POST['old_name'];
$id = $_POST['id'];
if(!$new_name || !$new_color) message_die(GENERAL_ERROR, $lang['save_error'], $lang['error']);
if(strlen($new_color) <> 6) message_die(GENERAL_ERROR, $lang['add_error_3'], $lang['error']);
$q = "SELECT group_name
FROM ". COLORS ."
WHERE group_name = '". $new_name ."'";
$r = $db -> sql_query($q);
$row = $db -> sql_fetchrow($r);
$exists = $row['group_name'];
if($new_name != $old_name)
{
if($exists == $new_name) message_die(GENERAL_ERROR, $lang['save_error_1'], $lang['error']);
}
$q = "SELECT *
FROM ". COLORS ."
WHERE group_id = '". $id ."'";
$r = $db -> sql_query($q);
$row = $db -> sql_fetchrow($r);
$current_c = $row['group_color'];
$q = "UPDATE ". COLORS ."
SET group_name = '". $new_name ."', group_color = '". $new_color ."'
WHERE group_id = '". $id ."'";
$r = $db -> sql_query($q);
$q = "UPDATE ". USERS_TABLE ."
SET user_color_gc = '". $new_color ."'
WHERE user_color_gc = '". $current_c ."'";
$r = $db -> sql_query($q);
message_die(GENERAL_MESSAGE, $lang['add_success'], $lang['success']);
}
if($mode == "add_new_color")
{
$color_name = $_POST['new_name'];
$color_color = $_POST['new_color'];
if(!$color_name || !$color_color) message_die(GENERAL_ERROR, $lang['add_error'], $lang['error']);
if(strlen($color_color) <> 6) message_die(GENERAL_ERROR, $lang['add_error_3'], $lang['error']);
$q = "SELECT group_name
FROM ". COLORS ."
WHERE group_name = '". $color_name ."'";
$r = $db -> sql_query($q);
$row = $db -> sql_fetchrow($r);
if($row['group_name'])
message_die(GENERAL_ERROR, $lang['add_error_2'], $lang['error']);
$q = "SELECT MAX(group_weight) AS max_weight
FROM ". COLORS ."";
$r = $db -> sql_query($q);
$next = $db -> sql_fetchrow($r);
$weight = $next['max_weight'] + 1;
$q = "INSERT INTO ". COLORS ."
VALUES ('', '". $color_name ."', '". $color_color ."', '". $weight ."')";
$r = $db -> sql_query($q);
message_die(GENERAL_MESSAGE, $lang['add_success'], $lang['success']);
}
include('page_footer_admin.' . $phpEx);
?>