Commit 6524aae115c6d471ad439697639b31160a1cfe1f
1 parent
f0ab673d
+ правки по пользователям (admin, Veronika, Natalia) 2ч
Showing
2 changed files
with
474 additions
and
231 deletions
Show diff stats
account/admin/orders.php
| @@ -24,7 +24,7 @@ include_once ($_SERVER['DOCUMENT_ROOT'] . "/account/func/func.php"); | @@ -24,7 +24,7 @@ include_once ($_SERVER['DOCUMENT_ROOT'] . "/account/func/func.php"); | ||
| 24 | } | 24 | } |
| 25 | elseif (isset ($_GET['label'])) | 25 | elseif (isset ($_GET['label'])) |
| 26 | { | 26 | { |
| 27 | - $sql = sprintf ("UPDATE catalogs_orders SET label=%d WHERE id=%d", $_GET['label'], $_GET['orderID']); | 27 | + $sql = sprintf ("UPDATE catalogs_orders SET label='%s' WHERE id=%d", $_GET['label'], $_GET['orderID']); |
| 28 | 28 | ||
| 29 | mysql_query ($sql); | 29 | mysql_query ($sql); |
| 30 | 30 | ||
| @@ -584,7 +584,7 @@ if (! isset ($_GET['action'])) | @@ -584,7 +584,7 @@ if (! isset ($_GET['action'])) | ||
| 584 | // ============= | 584 | // ============= |
| 585 | 585 | ||
| 586 | $th = array ( | 586 | $th = array ( |
| 587 | - "id" => "íîìåð çêàçà", | 587 | + "id" => "íîìåð çàêàçà", |
| 588 | "username" => "êëèåíò", | 588 | "username" => "êëèåíò", |
| 589 | "email" => "email", | 589 | "email" => "email", |
| 590 | "tel" => "òåëåôîí", | 590 | "tel" => "òåëåôîí", |
| @@ -654,13 +654,10 @@ if (! isset ($_GET['action'])) | @@ -654,13 +654,10 @@ if (! isset ($_GET['action'])) | ||
| 654 | $WHERE[] = $WHERE_DATE; | 654 | $WHERE[] = $WHERE_DATE; |
| 655 | } | 655 | } |
| 656 | } | 656 | } |
| 657 | - | ||
| 658 | - // ***** Àäìèí ðåæèì ***** | ||
| 659 | - if (in_array ($_SESSION['admin']['id'], array (1, 19, 20))) | ||
| 660 | - { | ||
| 661 | - // ============= | ||
| 662 | - // === Äàòà ==== | ||
| 663 | - // ============= | 657 | + |
| 658 | + // ============== | ||
| 659 | + // === ÏÎÈÑÊ ==== | ||
| 660 | + // ============== | ||
| 664 | 661 | ||
| 665 | echo " | 662 | echo " |
| 666 | <div class='grid-search'> | 663 | <div class='grid-search'> |
| @@ -681,6 +678,13 @@ if (! isset ($_GET['action'])) | @@ -681,6 +678,13 @@ if (! isset ($_GET['action'])) | ||
| 681 | <input type='hidden' name='status' value='" . $_GET['status'] . "'> | 678 | <input type='hidden' name='status' value='" . $_GET['status'] . "'> |
| 682 | </div>"; | 679 | </div>"; |
| 683 | 680 | ||
| 681 | + // ============= | ||
| 682 | + // === Äàòà ==== | ||
| 683 | + // ============= | ||
| 684 | + | ||
| 685 | + // ***** Àäìèí ðåæèì ***** | ||
| 686 | + if (in_array ($_SESSION['admin']['id'], array (1, 19, 20))) | ||
| 687 | + { | ||
| 684 | echo " | 688 | echo " |
| 685 | <div class='dates'> | 689 | <div class='dates'> |
| 686 | <div class='row'> | 690 | <div class='row'> |
| @@ -714,13 +718,13 @@ if (! isset ($_GET['action'])) | @@ -714,13 +718,13 @@ if (! isset ($_GET['action'])) | ||
| 714 | } | 718 | } |
| 715 | ); | 719 | ); |
| 716 | </script>'; | 720 | </script>'; |
| 721 | + } | ||
| 717 | 722 | ||
| 718 | echo " | 723 | echo " |
| 719 | <input type='hidden' name='search' value='ok'> | 724 | <input type='hidden' name='search' value='ok'> |
| 720 | </form> | 725 | </form> |
| 721 | </div>"; | 726 | </div>"; |
| 722 | 727 | ||
| 723 | - } | ||
| 724 | // =========== Ãåíåðèì òàáëèöó =========== | 728 | // =========== Ãåíåðèì òàáëèöó =========== |
| 725 | 729 | ||
| 726 | $lll = ""; | 730 | $lll = ""; |
| @@ -809,25 +813,8 @@ if (! isset ($_GET['action'])) | @@ -809,25 +813,8 @@ if (! isset ($_GET['action'])) | ||
| 809 | echo "<div class='clear'></div>"; | 813 | echo "<div class='clear'></div>"; |
| 810 | echo "<div class='order-tabs'>"; | 814 | echo "<div class='order-tabs'>"; |
| 811 | 815 | ||
| 812 | - $array_label = array ( | ||
| 813 | - 0 => "íîâûå çàêàçû", | ||
| 814 | - 1 => "îáðàáîòàí", | ||
| 815 | - 110 => "ïåðåìåùàåòñÿ", | ||
| 816 | - 2 => "äîñòàâèòü", | ||
| 817 | - 3 => "îòïðàâèòü", | ||
| 818 | - 4 => "ñàìîâûâîç", | ||
| 819 | - 5 => "5", | ||
| 820 | - 510 => "510", | ||
| 821 | - 6 => "6", | ||
| 822 | - 610 => "610", | ||
| 823 | - 7 => "âîçâðàò", | ||
| 824 | - 8 => "8", | ||
| 825 | - 9 => "îòìåíåí", | ||
| 826 | - 10 => "âûïîëíåí", | ||
| 827 | - ); | ||
| 828 | - | ||
| 829 | print ' | 816 | print ' |
| 830 | - <div style="float:left;padding:10px 0px;"> | 817 | + <div style="padding:10px 0px;"> |
| 831 | <form action="/admin.php/orders/" name="form" method="get"> | 818 | <form action="/admin.php/orders/" name="form" method="get"> |
| 832 | <input type="hidden" name="stat" value="' . $_GET['stat'] . '"> | 819 | <input type="hidden" name="stat" value="' . $_GET['stat'] . '"> |
| 833 | <input type="hidden" name="look" value="' . $_GET['look'] . '"> | 820 | <input type="hidden" name="look" value="' . $_GET['look'] . '"> |
| @@ -838,17 +825,29 @@ if (! isset ($_GET['action'])) | @@ -838,17 +825,29 @@ if (! isset ($_GET['action'])) | ||
| 838 | <input type="hidden" name="search" value="ok"> | 825 | <input type="hidden" name="search" value="ok"> |
| 839 | '; | 826 | '; |
| 840 | 827 | ||
| 841 | - $WHERE = array (); | 828 | + // =============== |
| 829 | + // ==== LABEL ==== | ||
| 830 | + // =============== | ||
| 831 | + | ||
| 832 | + echo '<div class="label-block">'; | ||
| 842 | 833 | ||
| 843 | - foreach ($array_label as $label_id => $label_title) | 834 | + $sql_label = ' |
| 835 | + SELECT * | ||
| 836 | + FROM `catalogs_orders_label` | ||
| 837 | + ORDER BY sortorder ASC | ||
| 838 | + '; | ||
| 839 | + $result_label = mysql_query ($sql_label) or die (mysql_error ()); | ||
| 840 | + while ($label = mysql_fetch_assoc ($result_label)) | ||
| 844 | { | 841 | { |
| 845 | // ***** Àäìèí ðåæèì ***** | 842 | // ***** Àäìèí ðåæèì ***** |
| 846 | - if (in_array ($label_id, array (9, 10)) && ! in_array ($_SESSION['admin']['id'], array (1, 19, 20))) | 843 | + if (in_array ($label['label_id'], array (9, 10)) && ! in_array ($_SESSION['admin']['id'], array (1, 19, 20))) |
| 847 | { | 844 | { |
| 848 | CONTINUE; | 845 | CONTINUE; |
| 849 | } | 846 | } |
| 850 | 847 | ||
| 851 | - $WHERE[] = "o.`label` = " . $label_id; | 848 | + $WHERE = array (); |
| 849 | + | ||
| 850 | + $WHERE[] = "o.`label` = " . $label['label_id']; | ||
| 852 | 851 | ||
| 853 | if (! empty ($WHERE_DATE)) | 852 | if (! empty ($WHERE_DATE)) |
| 854 | { | 853 | { |
| @@ -857,57 +856,84 @@ if (! isset ($_GET['action'])) | @@ -857,57 +856,84 @@ if (! isset ($_GET['action'])) | ||
| 857 | 856 | ||
| 858 | // Ïîäñ÷åò êîëè÷åñòâà çàêàçîâ ïî ñòàòóñó | 857 | // Ïîäñ÷åò êîëè÷åñòâà çàêàçîâ ïî ñòàòóñó |
| 859 | $sql = " | 858 | $sql = " |
| 860 | - SELECT count(*) as count | 859 | + SELECT count(*) as total |
| 861 | FROM catalogs_orders o | 860 | FROM catalogs_orders o |
| 862 | WHERE " . (! empty ($WHERE) ? implode (' AND ', $WHERE) : ''); | 861 | WHERE " . (! empty ($WHERE) ? implode (' AND ', $WHERE) : ''); |
| 863 | 862 | ||
| 864 | $r = mysql_query ($sql) or die (mysql_error ()); | 863 | $r = mysql_query ($sql) or die (mysql_error ()); |
| 865 | - $count = mysql_result ($r, 0); | 864 | + $row = mysql_fetch_assoc ($r); |
| 865 | + $count = $row['total']; | ||
| 866 | $checked = ''; | 866 | $checked = ''; |
| 867 | 867 | ||
| 868 | foreach ($_GET['lab'] as $id) | 868 | foreach ($_GET['lab'] as $id) |
| 869 | { | 869 | { |
| 870 | - if ($label_id == $id) | 870 | + if ($label['label_id'] == $id) |
| 871 | { | 871 | { |
| 872 | $checked = 'checked=checked'; | 872 | $checked = 'checked=checked'; |
| 873 | break; | 873 | break; |
| 874 | } | 874 | } |
| 875 | } | 875 | } |
| 876 | + echo '<div class="line">'; | ||
| 877 | + echo '<input type="checkbox" id="cb' . $label['label_id'] . '" name="lab[]" ' . $checked . ' value="' . $label['label_id'] . '" onclick="document.form.submit();"/>'; | ||
| 878 | + echo '<label for="cb' . $label['label_id'] . '">' . ($label['label_id'] == $label['label_title'] ? $label['label_title'] : $label['label_id']. ' - '.$label['label_title']) . ' (' . $count . ')</label>'; | ||
| 879 | + echo '</div>'; | ||
| 880 | + } | ||
| 876 | 881 | ||
| 877 | - $label_id = ($label_id == 110) ? 1.1 : $label_id; | ||
| 878 | - $label_id = ($label_id == 510) ? 5.1 : $label_id; | ||
| 879 | - $label_id = ($label_id == 610) ? 6.1 : $label_id; | 882 | + echo '</div>'; |
| 880 | 883 | ||
| 881 | - print '<input type="checkbox" id="cb' . $label_id . '" name="lab[]" ' . $checked . ' value="' . $label_id . '" onclick="document.form.submit();"/><label for="cb' . $label_id . '">' . $label_id . '-' . $label_title . '(' . $count . ')</label>'; | ||
| 882 | - } | 884 | + // ================== |
| 885 | + // ==== Ìåíåäæåð ==== | ||
| 886 | + // ================== | ||
| 883 | 887 | ||
| 884 | - print "<br /><br /><br />"; | 888 | + echo '<div class="manager-block">'; |
| 885 | 889 | ||
| 886 | - print "<select name='meneger' onChange='document.form.submit();'>"; | 890 | + echo "<select name='meneger' onChange='document.form.submit();'>"; |
| 887 | 891 | ||
| 888 | - print "<option value='0'>Ìåíåäæåð</option>"; | 892 | + echo "<option value='0'>Ìåíåäæåð</option>"; |
| 889 | 893 | ||
| 890 | $result_1 = mysql_query ("select * from zlo_admin"); | 894 | $result_1 = mysql_query ("select * from zlo_admin"); |
| 895 | + | ||
| 891 | while ($row = mysql_fetch_assoc ($result_1)) | 896 | while ($row = mysql_fetch_assoc ($result_1)) |
| 892 | { | 897 | { |
| 893 | echo "<option value='" . $row["id"] . "' " . (($_GET['meneger'] == $row["id"]) ? "selected" : "") . ">" . $row["username"] . "</option>"; | 898 | echo "<option value='" . $row["id"] . "' " . (($_GET['meneger'] == $row["id"]) ? "selected" : "") . ">" . $row["username"] . "</option>"; |
| 894 | } | 899 | } |
| 895 | - print "</select>"; | ||
| 896 | 900 | ||
| 897 | - $sql = "select * from zlo_book_delivery"; | ||
| 898 | - $r = mysql_query ($sql) or die (mysql_error ()); | ||
| 899 | - $i = 0; | ||
| 900 | - while ($row = mysql_fetch_assoc ($r)) | ||
| 901 | - { | ||
| 902 | - print '<input type="checkbox" id="delivery_' . $i . '" name="delivery[]" value="' . $row['id'] . '" '; | ||
| 903 | - foreach ($_GET['delivery'] as $l) | 901 | + echo "</select>"; |
| 902 | + | ||
| 903 | + echo '</div>'; | ||
| 904 | + | ||
| 905 | + // ================== | ||
| 906 | + // ==== ÄÎÑÒÀÂÊÀ ==== | ||
| 907 | + // ================== | ||
| 908 | + | ||
| 909 | + echo '<div class="delivery-block">'; | ||
| 910 | + | ||
| 911 | + $sql = "select * from zlo_book_delivery"; | ||
| 912 | + $r = mysql_query ($sql) or die (mysql_error ()); | ||
| 913 | + $i = 0; | ||
| 914 | + while ($delivery = mysql_fetch_assoc ($r)) | ||
| 904 | { | 915 | { |
| 905 | - if ($l == $row['id']) | ||
| 906 | - print 'checked'; | 916 | + $checked = ''; |
| 917 | + | ||
| 918 | + foreach ($_GET['delivery'] as $l) | ||
| 919 | + { | ||
| 920 | + if ($l == $delivery['id']) | ||
| 921 | + { | ||
| 922 | + $checked = 'checked=checked'; | ||
| 923 | + break; | ||
| 924 | + } | ||
| 925 | + } | ||
| 926 | + | ||
| 927 | + echo '<div class="line">'; | ||
| 928 | + echo '<input type="checkbox" id="delivery_' . $delivery['id'] . '" name="delivery[]" value="' . $delivery['id'] . '" '.$checked.' onclick="document.form.submit();"/>'; | ||
| 929 | + echo '<label for="delivery_' . $delivery['id'] . '">' . $delivery['title'] . '</label>'; | ||
| 930 | + echo '</div>'; | ||
| 931 | + | ||
| 932 | + $i ++; | ||
| 907 | } | 933 | } |
| 908 | - print ' onclick="document.form.submit();"/><label for="delivery_' . $i . '">' . $row['title'] . '</label>'; | ||
| 909 | - $i ++; | ||
| 910 | - } | 934 | + |
| 935 | + echo '</div>'; | ||
| 936 | + | ||
| 911 | print '</form></div>'; | 937 | print '</form></div>'; |
| 912 | 938 | ||
| 913 | $tim = (time () - 86400); | 939 | $tim = (time () - 86400); |
| @@ -931,13 +957,17 @@ if (! isset ($_GET['action'])) | @@ -931,13 +957,17 @@ if (! isset ($_GET['action'])) | ||
| 931 | // ***** Àäìèí ðåæèì ***** | 957 | // ***** Àäìèí ðåæèì ***** |
| 932 | if (in_array ($_SESSION['admin']['id'], array (1, 19, 20))) | 958 | if (in_array ($_SESSION['admin']['id'], array (1, 19, 20))) |
| 933 | { | 959 | { |
| 934 | - echo " | ||
| 935 | - <div class='status-tabs' style=\"" . $lll . "\" onclick=\"location.href='" . urlQueryChange2 ('stat', "1") . "&page=1'\">Êîðçèíà</div>"; | 960 | + echo '<div id="button-block">'; |
| 936 | 961 | ||
| 937 | - echo " | ||
| 938 | - <div class='status-tabs'> | ||
| 939 | - <a href=\"/order/index.php\" target=\"_blank\" style=\"text-decoration:none; color:#157100\">Ñòàòèñòèêà çàêàçîâ</a> | ||
| 940 | - </div>"; | 962 | + echo " |
| 963 | + <div class='status-tabs' style=\"" . $lll . "\" onclick=\"location.href='" . urlQueryChange2 ('stat', "1") . "&page=1'\">Êîðçèíà</div>"; | ||
| 964 | + | ||
| 965 | + echo " | ||
| 966 | + <div class='status-tabs'> | ||
| 967 | + <a href=\"/order/index.php\" target=\"_blank\" style=\"text-decoration:none; color:#157100\">Ñòàòèñòèêà çàêàçîâ</a> | ||
| 968 | + </div>"; | ||
| 969 | + | ||
| 970 | + echo '</div>'; | ||
| 941 | } | 971 | } |
| 942 | 972 | ||
| 943 | echo " | 973 | echo " |
| @@ -1014,52 +1044,39 @@ if (! isset ($_GET['action'])) | @@ -1014,52 +1044,39 @@ if (! isset ($_GET['action'])) | ||
| 1014 | <td>{$order['tel']}<br/> <a href='/admin.php/sms/?orderID={$order['order_id']}'>Îòïðàâèòü CMC</a></td> | 1044 | <td>{$order['tel']}<br/> <a href='/admin.php/sms/?orderID={$order['order_id']}'>Îòïðàâèòü CMC</a></td> |
| 1015 | <td align='left'>{$order['city']}, {$order['address']}</td> | 1045 | <td align='left'>{$order['city']}, {$order['address']}</td> |
| 1016 | <td>"; | 1046 | <td>"; |
| 1017 | - // if($_SESSION['admin']['group']==1 || $_SESSION['admin']['group']==4){ | ||
| 1018 | - if ($_SESSION['admin']['group'] == 2 and ($order['label'] == 9 or $order['label'] == 10)) | 1047 | + |
| 1048 | + // =============== | ||
| 1049 | + // ==== LABEL ==== | ||
| 1050 | + // =============== | ||
| 1051 | + | ||
| 1052 | + if (in_array ($order['label'], array (9, 10)) && ! in_array ($_SESSION['admin']['id'], array (1, 19, 20))) | ||
| 1019 | { | 1053 | { |
| 1020 | print $order['label']; | 1054 | print $order['label']; |
| 1021 | } | 1055 | } |
| 1022 | else | 1056 | else |
| 1023 | { | 1057 | { |
| 1024 | - echo " <select onChange='if(this.value==9){o=\"&order_ID={$order['order_id']}\"}else{o=\"\";}document.location=\"" . $url_l . "orderID={$order['order_id']}&label=\"+this.value+o;'> "; | ||
| 1025 | - for ($i = 0; $i <= 10; $i++) | 1058 | + echo "<select onChange='if(this.value==9){o=\"&order_ID={$order['order_id']}\"}else{o=\"\";}document.location=\"" . $url_l . "orderID={$order['order_id']}&label=\"+this.value+o;'> "; |
| 1059 | + | ||
| 1060 | + $sql_label = ' | ||
| 1061 | + SELECT * | ||
| 1062 | + FROM `catalogs_orders_label` | ||
| 1063 | + ORDER BY sortorder ASC | ||
| 1064 | + '; | ||
| 1065 | + $result_label = mysql_query ($sql_label) or die (mysql_error ()); | ||
| 1066 | + while ($label = mysql_fetch_assoc ($result_label)) | ||
| 1026 | { | 1067 | { |
| 1027 | // ***** Àäìèí ðåæèì ***** | 1068 | // ***** Àäìèí ðåæèì ***** |
| 1028 | - if (in_array ($i, array (9, 10)) && ! in_array ($_SESSION['admin']['id'], array (1, 19, 20))) | 1069 | + if (in_array ($label['label_id'], array (9, 10)) && ! in_array ($_SESSION['admin']['id'], array (1, 19, 20))) |
| 1029 | { | 1070 | { |
| 1030 | CONTINUE; | 1071 | CONTINUE; |
| 1031 | } | 1072 | } |
| 1032 | 1073 | ||
| 1033 | - if (($_SESSION['admin']['group'] == 2) && ($i == 9 || $i == 10) && ($_SESSION['admin']['id'] != 17)) | ||
| 1034 | - { | ||
| 1035 | - } | ||
| 1036 | - elseif ($i == 10 && $_SESSION['admin']['id'] == 19) | ||
| 1037 | - { | ||
| 1038 | - } | ||
| 1039 | - else | ||
| 1040 | - print '<option value="' . $i . '" ' . (($order['label'] == $i) ? 'selected' : '') . '>' . $i . '</option>'; | ||
| 1041 | - | ||
| 1042 | - | ||
| 1043 | - if ($i == 1) | ||
| 1044 | - { | ||
| 1045 | - print '<option value="110" ' . (($order['label'] == 110) ? 'selected' : '') . '>1.1</option>'; | ||
| 1046 | - } | ||
| 1047 | - if ($i == 5) | ||
| 1048 | - { | ||
| 1049 | - print '<option value="510" ' . (($order['label'] == 510) ? 'selected' : '') . '>5.1</option>'; | ||
| 1050 | - } | ||
| 1051 | - if ($i == 6) | ||
| 1052 | - { | ||
| 1053 | - print '<option value="610" ' . (($order['label'] == 610) ? 'selected' : '') . '>6.1</option>'; | ||
| 1054 | - } | 1074 | + echo '<option value="' . $label['label_id'] . '" ' . (($order['label'] == $label['label_id']) ? 'selected' : '') . '>' . $label['label_id'] . '</option>'; |
| 1055 | } | 1075 | } |
| 1076 | + | ||
| 1056 | echo "</select>"; | 1077 | echo "</select>"; |
| 1057 | } | 1078 | } |
| 1058 | 1079 | ||
| 1059 | - // }else{ | ||
| 1060 | - // print $order['label']; | ||
| 1061 | - // } | ||
| 1062 | - | ||
| 1063 | $s = "select * from catalogs_orders_products where order_id=" . $order['order_id']; | 1080 | $s = "select * from catalogs_orders_products where order_id=" . $order['order_id']; |
| 1064 | $r = mysql_query ($s) or die (mysql_error ()); | 1081 | $r = mysql_query ($s) or die (mysql_error ()); |
| 1065 | $status = array (); | 1082 | $status = array (); |
| @@ -1172,48 +1189,38 @@ if (! isset ($_GET['action'])) | @@ -1172,48 +1189,38 @@ if (! isset ($_GET['action'])) | ||
| 1172 | echo "<input type=\"hidden\" name=\"paid\" value=\"" . $order['paid'] . "\">"; | 1189 | echo "<input type=\"hidden\" name=\"paid\" value=\"" . $order['paid'] . "\">"; |
| 1173 | } | 1190 | } |
| 1174 | 1191 | ||
| 1175 | - echo "</div> | 1192 | + echo "</div>"; |
| 1193 | + | ||
| 1194 | + // =============== | ||
| 1195 | + // ==== LABEL ==== | ||
| 1196 | + // =============== | ||
| 1176 | 1197 | ||
| 1177 | - <div class=info style='float:left;padding-right:20px;width:100px;'> | 1198 | + echo " |
| 1199 | + <div class='info label'> | ||
| 1178 | <label style='width:50px'>Ìåòêà:</label> | 1200 | <label style='width:50px'>Ìåòêà:</label> |
| 1179 | <div class=info>"; | 1201 | <div class=info>"; |
| 1180 | 1202 | ||
| 1181 | - // ////////if($_SESSION['admin']['group']==1 || $_SESSION['admin']['group']==4){ | ||
| 1182 | echo "<select name='label'>"; | 1203 | echo "<select name='label'>"; |
| 1183 | - for ($i = 0; $i <= 10; $i ++) | ||
| 1184 | - { | ||
| 1185 | - // ***** Àäìèí ðåæèì ***** | ||
| 1186 | - if (in_array ($i, array (9, 10)) && ! in_array ($_SESSION['admin']['id'], array (1, 19, 20))) | ||
| 1187 | - { | ||
| 1188 | - CONTINUE; | ||
| 1189 | - } | ||
| 1190 | 1204 | ||
| 1191 | - if (($_SESSION['admin']['group'] == 2) && ($i == 9 || $i == 10) && ($_SESSION['admin']['id'] != 17)) | 1205 | + $sql_label = ' |
| 1206 | + SELECT * | ||
| 1207 | + FROM `catalogs_orders_label` | ||
| 1208 | + ORDER BY sortorder ASC | ||
| 1209 | + '; | ||
| 1210 | + $result_label = mysql_query ($sql_label) or die (mysql_error ()); | ||
| 1211 | + while ($label = mysql_fetch_assoc ($result_label)) | ||
| 1192 | { | 1212 | { |
| 1213 | + // ***** Àäìèí ðåæèì ***** | ||
| 1214 | + if (in_array ($label['label_id'], array (9, 10)) && ! in_array ($_SESSION['admin']['id'], array (1, 19, 20))) | ||
| 1215 | + { | ||
| 1216 | + CONTINUE; | ||
| 1217 | + } | ||
| 1218 | + | ||
| 1219 | + echo '<option value="' . $label['label_id'] . '" ' . (($order['label'] == $label['label_id']) ? 'selected' : '') . '>' . $label['label_id'] . '</option>'; | ||
| 1220 | + | ||
| 1193 | } | 1221 | } |
| 1194 | - elseif ($i == 10 && $_SESSION['admin']['id'] == 19) | ||
| 1195 | - { | ||
| 1196 | - } | ||
| 1197 | - else | ||
| 1198 | - print '<option value="' . $i . '" ' . (($order['label'] == $i) ? 'selected' : '') . '>' . $i . '</option>'; | ||
| 1199 | - if ($i == 1) | ||
| 1200 | - { | ||
| 1201 | - print '<option value="110" ' . (($order['label'] == 110) ? 'selected' : '') . '>1.1</option>'; | ||
| 1202 | - } | ||
| 1203 | - if ($i == 5) | ||
| 1204 | - { | ||
| 1205 | - print '<option value="510" ' . (($order['label'] == 510) ? 'selected' : '') . '>5.1</option>'; | ||
| 1206 | - } | ||
| 1207 | - if ($i == 6) | ||
| 1208 | - { | ||
| 1209 | - print '<option value="610" ' . (($order['label'] == 610) ? 'selected' : '') . '>6.1</option>'; | ||
| 1210 | - } | ||
| 1211 | - } | ||
| 1212 | 1222 | ||
| 1213 | echo "</select>"; | 1223 | echo "</select>"; |
| 1214 | - // //////////}else{ | ||
| 1215 | - // ////////////echo $order['label']; | ||
| 1216 | - // ///} | ||
| 1217 | 1224 | ||
| 1218 | echo " </div> | 1225 | echo " </div> |
| 1219 | </div> | 1226 | </div> |
css/admin.css
| 1 | -BODY,FORM{margin:0px;padding:0px;font-family: Arial, Tahoma, Helvetica, sans-serif;font-size:12px;color:#575757;} | ||
| 2 | -TABLE{font-family:arial;font-size:12px;color:#737373;} | ||
| 3 | -.submit_red{border:1px solid #898987;background-image: url("/img/admin/submit_bg_red.jpg");background-repeat:repeat-x;height:20px;font-family:arial;font-size:11px;color:#ffffff;font-weight:normal;padding-bottom:4px;} | ||
| 4 | -.submit_blue{border:1px solid #898987;background-image: url("/img/admin/submit_bg_blue.jpg");background-repeat:repeat-x;height:20px;font-family:arial;font-size:11px;color:#ffffff;font-weight:normal;padding-bottom:4px;} | ||
| 5 | -.submit_green{border:1px solid #898987;background-image: url("/img/admin/submit_bg_green.jpg");background-repeat:repeat-x;height:20px;font-family:arial;font-size:11px;color:#ffffff;font-weight:normal;padding-bottom:4px;} | ||
| 6 | -.submit_orange{border:1px solid #898987;background-image: url("/img/admin/submit_bg_orange.jpg");background-repeat:repeat-x;height:20px;font-family:arial;font-size:11px;color:#ffffff;font-weight:normal;padding-bottom:4px;} | 1 | +BODY, FORM { |
| 2 | + margin: 0px; | ||
| 3 | + padding: 0px; | ||
| 4 | + font-family: Arial, Tahoma, Helvetica, sans-serif; | ||
| 5 | + font-size: 12px; | ||
| 6 | + color: #575757; | ||
| 7 | +} | ||
| 8 | + | ||
| 9 | +TABLE { | ||
| 10 | + font-family: arial; | ||
| 11 | + font-size: 12px; | ||
| 12 | + color: #737373; | ||
| 13 | +} | ||
| 14 | + | ||
| 15 | +.submit_red { | ||
| 16 | + border: 1px solid #898987; | ||
| 17 | + background-image: url("/img/admin/submit_bg_red.jpg"); | ||
| 18 | + background-repeat: repeat-x; | ||
| 19 | + height: 20px; | ||
| 20 | + font-family: arial; | ||
| 21 | + font-size: 11px; | ||
| 22 | + color: #ffffff; | ||
| 23 | + font-weight: normal; | ||
| 24 | + padding-bottom: 4px; | ||
| 25 | +} | ||
| 7 | 26 | ||
| 8 | -.input_form{border:1px solid #898987;background:#ffffff;background-image: url("/img/admin/input_ten.jpg");background-position:top;background-repeat:repeat-x;font-family:arial;font-size:12px;} | 27 | +.submit_blue { |
| 28 | + border: 1px solid #898987; | ||
| 29 | + background-image: url("/img/admin/submit_bg_blue.jpg"); | ||
| 30 | + background-repeat: repeat-x; | ||
| 31 | + height: 20px; | ||
| 32 | + font-family: arial; | ||
| 33 | + font-size: 11px; | ||
| 34 | + color: #ffffff; | ||
| 35 | + font-weight: normal; | ||
| 36 | + padding-bottom: 4px; | ||
| 37 | +} | ||
| 38 | + | ||
| 39 | +.submit_green { | ||
| 40 | + border: 1px solid #898987; | ||
| 41 | + background-image: url("/img/admin/submit_bg_green.jpg"); | ||
| 42 | + background-repeat: repeat-x; | ||
| 43 | + height: 20px; | ||
| 44 | + font-family: arial; | ||
| 45 | + font-size: 11px; | ||
| 46 | + color: #ffffff; | ||
| 47 | + font-weight: normal; | ||
| 48 | + padding-bottom: 4px; | ||
| 49 | +} | ||
| 50 | + | ||
| 51 | +.submit_orange { | ||
| 52 | + border: 1px solid #898987; | ||
| 53 | + background-image: url("/img/admin/submit_bg_orange.jpg"); | ||
| 54 | + background-repeat: repeat-x; | ||
| 55 | + height: 20px; | ||
| 56 | + font-family: arial; | ||
| 57 | + font-size: 11px; | ||
| 58 | + color: #ffffff; | ||
| 59 | + font-weight: normal; | ||
| 60 | + padding-bottom: 4px; | ||
| 61 | +} | ||
| 62 | + | ||
| 63 | +.input_form { | ||
| 64 | + border: 1px solid #898987; | ||
| 65 | + background: #ffffff; | ||
| 66 | + background-image: url("/img/admin/input_ten.jpg"); | ||
| 67 | + background-position: top; | ||
| 68 | + background-repeat: repeat-x; | ||
| 69 | + font-family: arial; | ||
| 70 | + font-size: 12px; | ||
| 71 | +} | ||
| 72 | + | ||
| 73 | +a:visited { | ||
| 74 | + font-family: arial; | ||
| 75 | + font-size: 12px; | ||
| 76 | + font-weight: normal; | ||
| 77 | + color: #1B5393; | ||
| 78 | + text-decoration: underline; | ||
| 79 | +} | ||
| 80 | + | ||
| 81 | +a:link { | ||
| 82 | + font-family: arial; | ||
| 83 | + font-size: 12px; | ||
| 84 | + font-weight: normal; | ||
| 85 | + color: #1B5393; | ||
| 86 | + text-decoration: underline; | ||
| 87 | +} | ||
| 9 | 88 | ||
| 10 | -a:visited{font-family:arial;font-size:12px;font-weight:normal;color: #1B5393;text-decoration: underline;} | ||
| 11 | -a:link{font-family:arial;font-size:12px;font-weight:normal;color: #1B5393;text-decoration: underline;} | ||
| 12 | /*a:hover {font-family:arial;font-size:12px;font-weight:normal;color:#1B5393;text-decoration: underline;}*/ | 89 | /*a:hover {font-family:arial;font-size:12px;font-weight:normal;color:#1B5393;text-decoration: underline;}*/ |
| 13 | 90 | ||
| 14 | -.bord{background:#1372C6;height:25px;padding-left:5px;padding-right:5px;} | ||
| 15 | -.left_hot{padding-left:15px; padding-right:15px; padding-top:10px;} | 91 | +.bord { |
| 92 | + background: #1372C6; | ||
| 93 | + height: 25px; | ||
| 94 | + padding-left: 5px; | ||
| 95 | + padding-right: 5px; | ||
| 96 | +} | ||
| 16 | 97 | ||
| 17 | -#link1{font-family:arial;font-size:12px;font-weight:bold;color:#ffffff;text-decoration: underline;} | ||
| 18 | -.content_site{border-left:1px solid #6D6C71;padding:7px;} | 98 | +.left_hot { |
| 99 | + padding-left: 15px; | ||
| 100 | + padding-right: 15px; | ||
| 101 | + padding-top: 10px; | ||
| 102 | +} | ||
| 19 | 103 | ||
| 20 | -h1{font-family:arial;font-size:18px;} | 104 | +#link1 { |
| 105 | + font-family: arial; | ||
| 106 | + font-size: 12px; | ||
| 107 | + font-weight: bold; | ||
| 108 | + color: #ffffff; | ||
| 109 | + text-decoration: underline; | ||
| 110 | +} | ||
| 111 | + | ||
| 112 | +.content_site { | ||
| 113 | + border-left: 1px solid #6D6C71; | ||
| 114 | + padding: 7px; | ||
| 115 | +} | ||
| 116 | + | ||
| 117 | +h1 { | ||
| 118 | + font-family: arial; | ||
| 119 | + font-size: 18px; | ||
| 120 | +} | ||
| 121 | + | ||
| 122 | +p { | ||
| 123 | + margin: 0px; | ||
| 124 | +} | ||
| 125 | + | ||
| 126 | +.k_l_bg { | ||
| 127 | + background-image: url('img/admin/k_l_bg.jpg'); | ||
| 128 | + background-repeat: repeat-y; | ||
| 129 | + width: 14px; | ||
| 130 | +} | ||
| 131 | + | ||
| 132 | +.k_t_bg { | ||
| 133 | + background-image: url('img/admin/k_t_bg.jpg'); | ||
| 134 | + background-repeat: repeat-x; | ||
| 135 | + height: 14px; | ||
| 136 | +} | ||
| 21 | 137 | ||
| 22 | -p{margin:0px;} | 138 | +.k_b_bg { |
| 139 | + background-image: url('img/admin/k_b_bg.jpg'); | ||
| 140 | + background-repeat: repeat-x; | ||
| 141 | + height: 14px; | ||
| 142 | +} | ||
| 143 | + | ||
| 144 | +.k_r_bg { | ||
| 145 | + background-image: url('img/admin/k_r_bg.jpg'); | ||
| 146 | + background-repeat: repeat-y; | ||
| 147 | + width: 14px; | ||
| 148 | +} | ||
| 23 | 149 | ||
| 24 | -.k_l_bg{background-image: url('img/admin/k_l_bg.jpg');background-repeat: repeat-y;width:14px;} | ||
| 25 | -.k_t_bg{background-image: url('img/admin/k_t_bg.jpg');background-repeat: repeat-x;height:14px;} | ||
| 26 | -.k_b_bg{background-image: url('img/admin/k_b_bg.jpg');background-repeat: repeat-x;height:14px;} | ||
| 27 | -.k_r_bg{background-image: url('img/admin/k_r_bg.jpg');background-repeat: repeat-y;width:14px;} | 150 | +.questioning { |
| 151 | + border: 1px solid #B4D2ED; | ||
| 152 | + background: #F9FBFE; | ||
| 153 | +} | ||
| 28 | 154 | ||
| 29 | -.questioning{border:1px solid #B4D2ED;background:#F9FBFE;} | ||
| 30 | -.topic{border:1px solid #D1D1D1;background:#EDEDED;padding:5px;} | 155 | +.topic { |
| 156 | + border: 1px solid #D1D1D1; | ||
| 157 | + background: #EDEDED; | ||
| 158 | + padding: 5px; | ||
| 159 | +} | ||
| 31 | 160 | ||
| 32 | -.content_site .H1Title {margin-bottom:20px;} | ||
| 33 | -.H1Title { | 161 | +.content_site .H1Title { |
| 162 | + margin-bottom: 20px; | ||
| 163 | +} | ||
| 164 | + | ||
| 165 | +.H1Title { | ||
| 34 | margin: 0 10px 0 0; | 166 | margin: 0 10px 0 0; |
| 35 | - list-style:none; | ||
| 36 | - font-family: Arial, Helvetica, sans-serif; | ||
| 37 | - font-size: 22px; | ||
| 38 | - color: #ffffff; | ||
| 39 | - padding: 6px 12px; | ||
| 40 | - background: -moz-linear-gradient( | ||
| 41 | - top, | ||
| 42 | - #c1d99e 0%, | ||
| 43 | - #81b52d); | ||
| 44 | - background: -webkit-gradient( | ||
| 45 | - linear, left top, left bottom, | ||
| 46 | - from(#c1d99e), | ||
| 47 | - to(#81b52d)); | ||
| 48 | - border-radius: 5px; | ||
| 49 | - -moz-border-radius: 5px; | ||
| 50 | - -webkit-border-radius: 5px; | ||
| 51 | - border: 1px solid #7db327; | ||
| 52 | - -moz-box-shadow: | ||
| 53 | - 0px 1px 3px rgba(000,000,000,0.5), | ||
| 54 | - inset 0px 0px 1px rgba(255,255,255,1); | ||
| 55 | - -webkit-box-shadow: | ||
| 56 | - 0px 1px 3px rgba(000,000,000,0.5), | ||
| 57 | - inset 0px 0px 1px rgba(255,255,255,1); | ||
| 58 | - text-shadow: | ||
| 59 | - 1px 1px 2px rgba(000,000,000,0.4), | ||
| 60 | - 0px 1px 0px rgba(255,255,255,0.3); | 167 | + list-style: none; |
| 168 | + font-family: Arial, Helvetica, sans-serif; | ||
| 169 | + font-size: 22px; | ||
| 170 | + color: #ffffff; | ||
| 171 | + padding: 6px 12px; | ||
| 172 | + background: -moz-linear-gradient( | ||
| 173 | + top, | ||
| 174 | + #c1d99e 0%, | ||
| 175 | + #81b52d); | ||
| 176 | + background: -webkit-gradient( | ||
| 177 | + linear, left top, left bottom, | ||
| 178 | + from(#c1d99e), | ||
| 179 | + to(#81b52d)); | ||
| 180 | + border-radius: 5px; | ||
| 181 | + -moz-border-radius: 5px; | ||
| 182 | + -webkit-border-radius: 5px; | ||
| 183 | + border: 1px solid #7db327; | ||
| 184 | + -moz-box-shadow: 0px 1px 3px rgba(000, 000, 000, 0.5), | ||
| 185 | + inset 0px 0px 1px rgba(255, 255, 255, 1); | ||
| 186 | + -webkit-box-shadow: 0px 1px 3px rgba(000, 000, 000, 0.5), | ||
| 187 | + inset 0px 0px 1px rgba(255, 255, 255, 1); | ||
| 188 | + text-shadow: 1px 1px 2px rgba(000, 000, 000, 0.4), | ||
| 189 | + 0px 1px 0px rgba(255, 255, 255, 0.3); | ||
| 61 | 190 | ||
| 62 | - } | ||
| 63 | - | 191 | +} |
| 64 | 192 | ||
| 65 | /* | 193 | /* |
| 66 | - =================== | ||
| 67 | - ==== adminMenu ==== | ||
| 68 | - =================== | 194 | + =================== |
| 195 | + ==== adminMenu ==== | ||
| 196 | + =================== | ||
| 69 | */ | 197 | */ |
| 70 | 198 | ||
| 71 | div.adminMenu { | 199 | div.adminMenu { |
| @@ -73,94 +201,202 @@ div.adminMenu { | @@ -73,94 +201,202 @@ div.adminMenu { | ||
| 73 | } | 201 | } |
| 74 | 202 | ||
| 75 | div.adminMenu ul { | 203 | div.adminMenu ul { |
| 76 | - padding: 0; | ||
| 77 | - margin: 0; | ||
| 78 | - background: #4f85bb; | ||
| 79 | - background: -moz-linear-gradient(top, #4f85bb 0%, #4f85bb 100%); | ||
| 80 | - background: -webkit-linear-gradient(top, #4f85bb 0%,#4f85bb 100%); | ||
| 81 | - background: linear-gradient(to bottom, #4f85bb 0%,#4f85bb 100%); | ||
| 82 | - filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#4f85bb', endColorstr='#4f85bb',GradientType=0 ); | 204 | + padding: 0; |
| 205 | + margin: 0; | ||
| 206 | + background: #4f85bb; | ||
| 207 | + background: -moz-linear-gradient(top, #4f85bb 0%, #4f85bb 100%); | ||
| 208 | + background: -webkit-linear-gradient(top, #4f85bb 0%, #4f85bb 100%); | ||
| 209 | + background: linear-gradient(to bottom, #4f85bb 0%, #4f85bb 100%); | ||
| 210 | + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#4f85bb', endColorstr='#4f85bb', GradientType=0); | ||
| 83 | 211 | ||
| 84 | } | 212 | } |
| 85 | 213 | ||
| 86 | -div.adminMenu ul ul li { | ||
| 87 | - border-bottom: 1px solid #6096cc; | 214 | +div.adminMenu ul ul li { |
| 215 | + border-bottom: 1px solid #6096cc; | ||
| 88 | } | 216 | } |
| 89 | 217 | ||
| 90 | div.adminMenu ul ul a { | 218 | div.adminMenu ul ul a { |
| 91 | - padding-left: 20px; | 219 | + padding-left: 20px; |
| 92 | } | 220 | } |
| 93 | 221 | ||
| 94 | div.adminMenu ul li.main-menu { | 222 | div.adminMenu ul li.main-menu { |
| 95 | - font-size: 14px; | ||
| 96 | - background: #2c539e; | ||
| 97 | - background: -moz-linear-gradient(top, #2c539e 0%, #2c539e 100%); | ||
| 98 | - background: -webkit-linear-gradient(top, #2c539e 0%,#2c539e 100%); | ||
| 99 | - background: linear-gradient(to bottom, #2c539e 0%,#2c539e 100%); | ||
| 100 | - filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#2c539e', endColorstr='#2c539e',GradientType=0 ); | 223 | + font-size: 14px; |
| 224 | + background: #2c539e; | ||
| 225 | + background: -moz-linear-gradient(top, #2c539e 0%, #2c539e 100%); | ||
| 226 | + background: -webkit-linear-gradient(top, #2c539e 0%, #2c539e 100%); | ||
| 227 | + background: linear-gradient(to bottom, #2c539e 0%, #2c539e 100%); | ||
| 228 | + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#2c539e', endColorstr='#2c539e', GradientType=0); | ||
| 101 | } | 229 | } |
| 102 | 230 | ||
| 103 | -div.adminMenu ul li { | ||
| 104 | - font-size: 12px; | 231 | +div.adminMenu ul li { |
| 232 | + font-size: 12px; | ||
| 105 | border-radius: 0; | 233 | border-radius: 0; |
| 106 | color: #ffffff; | 234 | color: #ffffff; |
| 107 | text-align: left; | 235 | text-align: left; |
| 108 | list-style: none; | 236 | list-style: none; |
| 109 | - transition: all 0.5s ease 0s; | 237 | + transition: all 0.5s ease 0s; |
| 110 | } | 238 | } |
| 111 | 239 | ||
| 112 | - | ||
| 113 | div.adminMenu ul a { | 240 | div.adminMenu ul a { |
| 114 | padding: 10px; | 241 | padding: 10px; |
| 115 | display: block; | 242 | display: block; |
| 116 | - text-decoration: none; | ||
| 117 | - color: #FFFFFF; | ||
| 118 | - position: relative; | 243 | + text-decoration: none; |
| 244 | + color: #FFFFFF; | ||
| 245 | + position: relative; | ||
| 119 | text-shadow: -1px -1px 2px #4c4c4c; | 246 | text-shadow: -1px -1px 2px #4c4c4c; |
| 120 | } | 247 | } |
| 121 | 248 | ||
| 122 | - | ||
| 123 | div.adminMenu ul li:hover, | 249 | div.adminMenu ul li:hover, |
| 124 | -div.adminMenu .activeMenu { | ||
| 125 | - background: #2c539e; | ||
| 126 | - background: -moz-linear-gradient(top, #001560 0%, #103782 100%); | ||
| 127 | - background: -webkit-linear-gradient(top, #001560 0%,#103782 100%); | ||
| 128 | - background: linear-gradient(to bottom, #001560 0%,#103782 100%); | ||
| 129 | - filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#001560', endColorstr='#103782',GradientType=0 ); | 250 | +div.adminMenu .activeMenu { |
| 251 | + background: #2c539e; | ||
| 252 | + background: -moz-linear-gradient(top, #001560 0%, #103782 100%); | ||
| 253 | + background: -webkit-linear-gradient(top, #001560 0%, #103782 100%); | ||
| 254 | + background: linear-gradient(to bottom, #001560 0%, #103782 100%); | ||
| 255 | + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#001560', endColorstr='#103782', GradientType=0); | ||
| 130 | } | 256 | } |
| 131 | 257 | ||
| 132 | /* | 258 | /* |
| 133 | - =============== | ||
| 134 | - ==== Extra ==== | ||
| 135 | - =============== | 259 | + =============== |
| 260 | + ==== ORDER ==== | ||
| 261 | + =============== | ||
| 262 | +*/ | ||
| 263 | + | ||
| 264 | + .label-block { | ||
| 265 | + column-count: 6; | ||
| 266 | + -webkit-column-count: 6; | ||
| 267 | + -moz-column-count: 6; | ||
| 268 | + column-gap: 20px; | ||
| 269 | + -moz-column-gap: 20px; | ||
| 270 | + -webkit-column-gap: 20px; | ||
| 271 | + } | ||
| 272 | + | ||
| 273 | + .label-block .line { | ||
| 274 | + display: block; | ||
| 275 | + } | ||
| 276 | + | ||
| 277 | + .manager-block { | ||
| 278 | + margin: 15px 0; | ||
| 279 | + } | ||
| 280 | + | ||
| 281 | + .delivery-block { | ||
| 282 | + column-count: 3; | ||
| 283 | + -webkit-column-count: 3; | ||
| 284 | + -moz-column-count: 3; | ||
| 285 | + column-gap: 30px; | ||
| 286 | + -moz-column-gap: 30px; | ||
| 287 | + -webkit-column-gap: 30px; | ||
| 288 | + } | ||
| 289 | + | ||
| 290 | + .delivery-block .line { | ||
| 291 | + display: block; | ||
| 292 | + } | ||
| 293 | + | ||
| 294 | + #button-block { | ||
| 295 | + display: block; | ||
| 296 | + } | ||
| 297 | + | ||
| 298 | + .info.label { | ||
| 299 | + float: left; | ||
| 300 | + padding-right: 20px; | ||
| 301 | + width: 100px; | ||
| 302 | + } | ||
| 303 | + | ||
| 304 | +/* | ||
| 305 | + =============== | ||
| 306 | + ==== Extra ==== | ||
| 307 | + =============== | ||
| 136 | */ | 308 | */ |
| 137 | 309 | ||
| 138 | #Extra .line .label { | 310 | #Extra .line .label { |
| 139 | - text-transform: uppercase; | ||
| 140 | - color: #000; | ||
| 141 | - margin: 0 1px 0 0; | ||
| 142 | - text-align: center; | ||
| 143 | - text-decoration: none; | ||
| 144 | - white-space: nowrap; | ||
| 145 | - width: 100px; | 311 | + text-transform: uppercase; |
| 312 | + color: #000; | ||
| 313 | + margin: 0 1px 0 0; | ||
| 314 | + text-align: center; | ||
| 315 | + text-decoration: none; | ||
| 316 | + white-space: nowrap; | ||
| 317 | + width: 100px; | ||
| 146 | } | 318 | } |
| 147 | 319 | ||
| 148 | #Extra .line > div { | 320 | #Extra .line > div { |
| 149 | display: inline-block; | 321 | display: inline-block; |
| 150 | } | 322 | } |
| 151 | 323 | ||
| 152 | -.td_top {background-color:#296da4; color:#ffffff;} | ||
| 153 | -.td_1 {background-color:#f6f6f6; color:#000000;} | ||
| 154 | -.td_2 {background-color:#e7e7e7; color:#000000;} | ||
| 155 | -.td_3 {color:#ff0000;} | ||
| 156 | -.td_4 {background-color:#67afe9; color:#000000;} | ||
| 157 | -.td_5 {background-color:#e9de67; color:#000000;} | ||
| 158 | -.td_6 {font-weight:bold;} | 324 | +.td_top { |
| 325 | + background-color: #296da4; | ||
| 326 | + color: #ffffff; | ||
| 327 | +} | ||
| 328 | + | ||
| 329 | +.td_1 { | ||
| 330 | + background-color: #f6f6f6; | ||
| 331 | + color: #000000; | ||
| 332 | +} | ||
| 333 | + | ||
| 334 | +.td_2 { | ||
| 335 | + background-color: #e7e7e7; | ||
| 336 | + color: #000000; | ||
| 337 | +} | ||
| 338 | + | ||
| 339 | +.td_3 { | ||
| 340 | + color: #ff0000; | ||
| 341 | +} | ||
| 342 | + | ||
| 343 | +.td_4 { | ||
| 344 | + background-color: #67afe9; | ||
| 345 | + color: #000000; | ||
| 346 | +} | ||
| 347 | + | ||
| 348 | +.td_5 { | ||
| 349 | + background-color: #e9de67; | ||
| 350 | + color: #000000; | ||
| 351 | +} | ||
| 352 | + | ||
| 353 | +.td_6 { | ||
| 354 | + font-weight: bold; | ||
| 355 | +} | ||
| 159 | 356 | ||
| 160 | -.win a{color:red;} | ||
| 161 | -.win{position:absolute;padding:10px;border:1px solid #dbdcdc;background:#f6f6f6;color:#ffffff;width:450px;top:50px;left:50px;z-index:20;color:#666666;} | ||
| 162 | -.close_win{float:right;width:9px;height:9px;background:url('/img/admin/close.png') no-repeat;cursor:pointer;position:absolute;top:5px;right:5px;margin-left:10px;} | 357 | +.win a { |
| 358 | + color: red; | ||
| 359 | +} | ||
| 360 | + | ||
| 361 | +.win { | ||
| 362 | + position: absolute; | ||
| 363 | + padding: 10px; | ||
| 364 | + border: 1px solid #dbdcdc; | ||
| 365 | + background: #f6f6f6; | ||
| 366 | + color: #ffffff; | ||
| 367 | + width: 450px; | ||
| 368 | + top: 50px; | ||
| 369 | + left: 50px; | ||
| 370 | + z-index: 20; | ||
| 371 | + color: #666666; | ||
| 372 | +} | ||
| 163 | 373 | ||
| 164 | -a.button-edit2,a.button-save2{display:block;} | ||
| 165 | -.button-save2,a.button-edit2,a.button-save2{width:78px;height:26px;line-height:26px;border:none;background:url('/img/admin/sub24.jpg') no-repeat;color:#badffc;cursor:pointer;text-align:center;text-decoration:none;margin-bottom:3px;} | 374 | +.close_win { |
| 375 | + float: right; | ||
| 376 | + width: 9px; | ||
| 377 | + height: 9px; | ||
| 378 | + background: url('/img/admin/close.png') no-repeat; | ||
| 379 | + cursor: pointer; | ||
| 380 | + position: absolute; | ||
| 381 | + top: 5px; | ||
| 382 | + right: 5px; | ||
| 383 | + margin-left: 10px; | ||
| 384 | +} | ||
| 385 | + | ||
| 386 | +a.button-edit2, a.button-save2 { | ||
| 387 | + display: block; | ||
| 388 | +} | ||
| 389 | + | ||
| 390 | +.button-save2, a.button-edit2, a.button-save2 { | ||
| 391 | + width: 78px; | ||
| 392 | + height: 26px; | ||
| 393 | + line-height: 26px; | ||
| 394 | + border: none; | ||
| 395 | + background: url('/img/admin/sub24.jpg') no-repeat; | ||
| 396 | + color: #badffc; | ||
| 397 | + cursor: pointer; | ||
| 398 | + text-align: center; | ||
| 399 | + text-decoration: none; | ||
| 400 | + margin-bottom: 3px; | ||
| 401 | +} | ||
| 166 | 402 |