Antes commited on 2016-12-20 14:47:30
Showing 4 changed files, with 63 additions and 44 deletions.
... | ... |
@@ -586,6 +586,31 @@ dl.stats dd span, dl.stats dt span |
586 | 586 |
border-bottom-right-radius: 0; |
587 | 587 |
} |
588 | 588 |
|
589 |
+/* Helpdesk table-width*/ |
|
590 |
+.shd_5 { |
|
591 |
+ width: 5%; |
|
592 |
+} |
|
593 |
+.shd_10 { |
|
594 |
+ width: 10%; |
|
595 |
+} |
|
596 |
+.shd_20 { |
|
597 |
+ width: 20%; |
|
598 |
+} |
|
599 |
+.shd_25 { |
|
600 |
+ width: 25%; |
|
601 |
+} |
|
602 |
+.shd_33 { |
|
603 |
+ width: 33%; |
|
604 |
+} |
|
605 |
+.shd_50 { |
|
606 |
+ width: 50%; |
|
607 |
+} |
|
608 |
+.shd_75 { |
|
609 |
+ width: 75%; |
|
610 |
+} |
|
611 |
+ |
|
612 |
+/* Start of responsiveness */ |
|
613 |
+/* This will be moved to its file once it gets more work on it */ |
|
589 | 614 |
@media (max-width: 480px) { |
590 | 615 |
.shd_ticket_rightcolumn, .shd_ticket_leftcolumn { |
591 | 616 |
width: 100%; |
... | ... |
@@ -1,22 +1,25 @@ |
1 |
-#sdAnnouncements |
|
2 |
-{ |
|
3 |
- height: 21.6em; |
|
4 |
- overflow: auto; |
|
1 |
+#sdAnnouncements dt { |
|
2 |
+ padding: 4px 6px 2px 6px; |
|
3 |
+ border-top: 1px solid #bf6900; |
|
5 | 4 |
} |
6 |
-#sdAnnouncements dt |
|
7 |
-{ |
|
8 |
- border-bottom: 1px dashed #000; |
|
5 |
+#sdAnnouncements dt a { |
|
6 |
+ color: #bf6900; |
|
7 |
+ font-weight: bold; |
|
8 |
+ display: block; |
|
9 | 9 |
} |
10 |
-#sdAnnouncements dd |
|
11 |
-{ |
|
12 |
- padding: 0; |
|
13 |
- margin: 0 0 1em 1.5em; |
|
10 |
+#sdAnnouncements dd { |
|
11 |
+ margin: 0; |
|
12 |
+ padding: 6px 12px; |
|
13 |
+ border-top: double #ddd; |
|
14 | 14 |
} |
15 | 15 |
#sd_update_section |
16 | 16 |
{ |
17 | 17 |
margin-top: 10px; |
18 | 18 |
margin-bottom: 10px; |
19 | 19 |
} |
20 |
+#admin_main_section .windowbg { |
|
21 |
+ height: 15em; |
|
22 |
+} |
|
20 | 23 |
#sd_credits |
21 | 24 |
{ |
22 | 25 |
} |
... | ... |
@@ -70,7 +70,7 @@ function template_shd_admin() |
70 | 70 |
', $txt['shd_your_version'], ': |
71 | 71 |
<em id="yourVersion">', SHD_VERSION, '</em><br> |
72 | 72 |
', $txt['shd_current_version'], ': |
73 |
- <em id="sdVersion">??</em><br><br> |
|
73 |
+ <em id="sdVersion">??</em><br> |
|
74 | 74 |
<img src="', $settings['default_images_url'], '/simpledesk/ticket.png" alt="*" class="shd_icon_minihead" /> <strong>', $txt['shd_ticket_information'], ':</strong><br> |
75 | 75 |
', $txt['shd_total_tickets'], ': |
76 | 76 |
<em id="totalTickets"> |
... | ... |
@@ -86,8 +86,10 @@ function template_shd_admin() |
86 | 86 |
// NOTE: This is currently (15/1/10) uncapped, meaning it's just the full list direct from SimpleDesk-Admin.php. |
87 | 87 |
// That gets the data. Up to here how it should be displayed. |
88 | 88 |
echo ' |
89 |
+ <div class="block"> |
|
89 | 90 |
<img src="', $settings['default_images_url'], '/simpledesk/staff.png" alt="*" class="shd_icon_minihead" /> <strong>', $txt['shd_staff_list'], ':</strong> |
90 |
- ', implode(', ', $context['staff']); |
|
91 |
+ ', implode(', ', $context['staff']),' |
|
92 |
+ </div>'; |
|
91 | 93 |
|
92 | 94 |
echo ' |
93 | 95 |
</div> |
... | ... |
@@ -109,8 +111,7 @@ function template_shd_admin() |
109 | 111 |
foreach ($context['shd_credits'] as $section) |
110 | 112 |
{ |
111 | 113 |
echo ' |
112 |
- <div class="roundframe"> |
|
113 |
- <div class="padding"> |
|
114 |
+ <div class="roundframe noup"> |
|
114 | 115 |
', $section['pretext'], ' |
115 | 116 |
<hr>'; |
116 | 117 |
|
... | ... |
@@ -160,13 +161,11 @@ function template_shd_admin() |
160 | 161 |
echo ' |
161 | 162 |
<span class="smalltext"> <img src="', $settings['default_images_url'], '/simpledesk/update.png" alt="*" class="shd_tinyicon" /> ', $txt['shd_former_contributors'], '</span> |
162 | 163 |
</div> |
163 |
- </div> |
|
164 | 164 |
</div>'; |
165 | 165 |
} |
166 | 166 |
|
167 | 167 |
echo ' |
168 |
- </div> |
|
169 |
- <br class="clear" />'; |
|
168 |
+ </div>'; |
|
170 | 169 |
|
171 | 170 |
// The below functions include all the scripts needed from the simpledesk.net site. The language and format are passed for internationalization. |
172 | 171 |
if (empty($modSettings['disable_smf_js'])) |
... | ... |
@@ -347,9 +346,9 @@ function template_shd_show_settings() |
347 | 346 |
else |
348 | 347 |
{ |
349 | 348 |
echo ' |
350 |
- <p class="information"> |
|
349 |
+ <div class="information"> |
|
351 | 350 |
', $config_var['label'], ' |
352 |
- </p>'; |
|
351 |
+ </div>'; |
|
353 | 352 |
} |
354 | 353 |
|
355 | 354 |
continue; |
... | ... |
@@ -360,12 +359,8 @@ function template_shd_show_settings() |
360 | 359 |
{ |
361 | 360 |
$is_open = true; |
362 | 361 |
|
363 |
- if (!isset($context['settings_title'])) |
|
364 |
- echo '<div class="tborder">'; |
|
365 |
- |
|
366 | 362 |
echo ' |
367 | 363 |
<div class="windowbg2"> |
368 |
- <div class="content"> |
|
369 | 364 |
<dl class="settings">'; |
370 | 365 |
} |
371 | 366 |
|
... | ... |
@@ -536,7 +531,6 @@ function template_shd_show_settings() |
536 | 531 |
if ($is_open) |
537 | 532 |
echo ' |
538 | 533 |
</div> |
539 |
- </div> |
|
540 | 534 |
</div>'; |
541 | 535 |
|
542 | 536 |
if (isset($context['admin-dbsc_token'])) |
... | ... |
@@ -546,8 +540,7 @@ function template_shd_show_settings() |
546 | 540 |
echo ' |
547 | 541 |
<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" /> |
548 | 542 |
</form> |
549 |
- </div> |
|
550 |
- <br class="clear" />'; |
|
543 |
+ </div>'; |
|
551 | 544 |
|
552 | 545 |
if (!empty($context['settings_post_javascript'])) |
553 | 546 |
echo ' |
... | ... |
@@ -574,7 +567,6 @@ function template_shd_action_log() |
574 | 567 |
|
575 | 568 |
// The sort stuff here is huge. |
576 | 569 |
echo ' |
577 |
- <div class="tborder"> |
|
578 | 570 |
<div class="cat_bar"> |
579 | 571 |
<h3 class="catbg"> |
580 | 572 |
<span class="floatright smalltext">', $context['page_index'], '</span> |
... | ... |
@@ -651,8 +643,7 @@ function template_shd_action_log() |
651 | 643 |
<span class="smalltext shd_empty_log"><img src="', $settings['default_images_url'], '/simpledesk/delete.png" alt="X" /> <a href="', $scripturl, '?action=admin;area=helpdesk_info;sa=actionlog', $context['url_sort'], $context['url_order'], ';removeall" onclick="return confirm(', JavaScriptEscape(sprintf($txt['shd_admin_actionlog_removeall_confirm'], $context['hoursdisable'])), ');">', $txt['shd_admin_actionlog_removeall'], '</a></span> |
652 | 644 |
</td> |
653 | 645 |
</tr> |
654 |
- </table> |
|
655 |
- </div>'; |
|
646 |
+ </table>'; |
|
656 | 647 |
} |
657 | 648 |
|
658 | 649 |
|
... | ... |
@@ -680,48 +671,48 @@ function template_shd_admin_log() |
680 | 671 |
</div> |
681 | 672 |
<table class="table_grid"> |
682 | 673 |
<tr class="title_bar"> |
683 |
- <td width="38%"> |
|
674 |
+ <td class="shd_33"> |
|
684 | 675 |
<img src="', $settings['default_images_url'], '/simpledesk/action.png" class="shd_smallicon" alt="" /> |
685 | 676 |
<a href="', $scripturl, '?action=admin;area=helpdesk_info;sa=adminlog', $context['sort'] == $sort_types['action'] && !isset($_REQUEST['asc']) ? ';sort=action;asc' : ';sort=action', '"> |
686 | 677 |
', $txt['shd_admin_actionlog_action'], ' |
687 | 678 |
</a> |
688 | 679 |
', ($context['sort'] == $sort_types['action'] ? '<img src="' . $settings['default_images_url'] . '/' . (isset($_REQUEST['asc']) ? 'simpledesk/move_up.png' : 'simpledesk/move_down.png' ). '" alt="" />' : ''), ' |
689 | 680 |
</td> |
690 |
- <td width="20%"> |
|
681 |
+ <td class="shd_20"> |
|
691 | 682 |
<img src="', $settings['default_images_url'], '/simpledesk/time.png" class="shd_smallicon" alt="" /> |
692 | 683 |
<a href="', $scripturl, '?action=admin;area=helpdesk_info;sa=adminlog', $context['sort'] == $sort_types['time'] && !isset($_REQUEST['asc']) ? ';sort=time;asc' : ';sort=time', '"> |
693 | 684 |
', $txt['shd_admin_actionlog_date'], ' |
694 | 685 |
</a> |
695 | 686 |
', ($context['sort'] == $sort_types['time'] ? '<img src="' . $settings['default_images_url'] . '/' . (isset($_REQUEST['asc']) ? 'simpledesk/move_up.png' : 'simpledesk/move_down.png' ). '" alt="" />' : ''), ' |
696 | 687 |
</td> |
697 |
- <td width="16%"> |
|
688 |
+ <td class="shd_20"> |
|
698 | 689 |
<img src="', $settings['default_images_url'], '/simpledesk/user.png" class="shd_smallicon" alt="" /> |
699 | 690 |
<a href="', $scripturl, '?action=admin;area=helpdesk_info;sa=adminlog', $context['sort'] == $sort_types['member'] && !isset($_REQUEST['asc']) ? ';sort=member;asc' : ';sort=member', '"> |
700 | 691 |
', $txt['shd_admin_actionlog_member'], ' |
701 | 692 |
</a> |
702 | 693 |
', ($context['sort'] == $sort_types['member'] ? '<img src="' . $settings['default_images_url'] . '/' . (isset($_REQUEST['asc']) ? 'simpledesk/move_up.png' : 'simpledesk/move_down.png' ). '" alt="" />' : ''), ' |
703 | 694 |
</td> |
704 |
- <td width="16%"> |
|
695 |
+ <td class="shd_10"> |
|
705 | 696 |
<img src="', $settings['default_images_url'], '/simpledesk/position.png" class="shd_smallicon" alt="" /> |
706 | 697 |
<a href="', $scripturl, '?action=admin;area=helpdesk_info;sa=adminlog', $context['sort'] == $sort_types['position'] && !isset($_REQUEST['asc']) ? ';sort=position;asc' : ';sort=position', '"> |
707 | 698 |
', $txt['shd_admin_actionlog_position'], ' |
708 | 699 |
</a> |
709 | 700 |
', ($context['sort'] == $sort_types['position'] ? '<img src="' . $settings['default_images_url'] . '/' . (isset($_REQUEST['asc']) ? 'simpledesk/move_up.png' : 'simpledesk/move_down.png' ). '" alt="" />' : ''), ' |
710 | 701 |
</td> |
711 |
- <td width="10%"> |
|
702 |
+ <td class="shd_10" ', $action['can_remove'] && $context['can_delete'] ? 'colspan="2"' : '','> |
|
712 | 703 |
<img src="', $settings['default_images_url'], '/simpledesk/ip.png" class="shd_smallicon" alt="" /> |
713 | 704 |
<a href="', $scripturl, '?action=admin;area=helpdesk_info;sa=adminlog', $context['sort'] == $sort_types['ip'] && !isset($_REQUEST['asc']) ? ';sort=ip;asc' : ';sort=ip', '"> |
714 | 705 |
', $txt['shd_admin_actionlog_ip'], ' |
715 | 706 |
</a> |
716 | 707 |
', ($context['sort'] == $sort_types['ip'] ? '<img src="' . $settings['default_images_url'] . '/' . (isset($_REQUEST['asc']) ? 'simpledesk/move_up.png' : 'simpledesk/move_down.png' ). '" alt="" />' : ''), ' |
717 | 708 |
</td> |
718 |
- <td width="2%"> </td> |
|
709 |
+ ', $action['can_remove'] && $context['can_delete'] ? '<td class="shd_5"> </td>' : '',' |
|
719 | 710 |
</tr>'; |
720 | 711 |
|
721 | 712 |
if (empty($context['actions'])) |
722 | 713 |
echo ' |
723 | 714 |
<tr class="windowbg"> |
724 |
- <td colspan="7" class="shd_noticket">', $txt['shd_admin_actionlog_none'], '</td> |
|
715 |
+ <td ', $action['can_remove'] && $context['can_delete'] ? 'colspan="6"' : 'colspan="5"',' class="shd_noticket">', $txt['shd_admin_actionlog_none'], '</td> |
|
725 | 716 |
</tr>'; |
726 | 717 |
else |
727 | 718 |
{ |
... | ... |
@@ -733,15 +724,15 @@ function template_shd_admin_log() |
733 | 724 |
<td>', $action['time'], '</td> |
734 | 725 |
<td>', $action['member']['link'], '</td> |
735 | 726 |
<td>', $action['member']['group'], '</td> |
736 |
- <td>', !empty($action['member']['ip']) ? $action['member']['ip'] : $txt['shd_admin_actionlog_hidden'], '</td> |
|
737 |
- <td>', $action['can_remove'] && $context['can_delete'] ? '<a href="' . $scripturl . '?action=admin;area=helpdesk_info;sa=adminlog;remove='. $action['id'] . '"><img src="' . $settings['default_images_url'] . '/simpledesk/delete.png" alt="' . $txt['shd_delete_item'] . '" /></a>' : '', '</td> |
|
727 |
+ <td ', $action['can_remove'] && $context['can_delete'] ? 'colspan="2"' : '','>', !empty($action['member']['ip']) ? $action['member']['ip'] : $txt['shd_admin_actionlog_hidden'], '</td> |
|
728 |
+ ', $action['can_remove'] && $context['can_delete'] ? '<td><a href="' . $scripturl . '?action=admin;area=helpdesk_info;sa=adminlog;remove='. $action['id'] . '"><img src="' . $settings['default_images_url'] . '/simpledesk/delete.png" alt="' . $txt['shd_delete_item'] . '" /></a></td>' : '', ' |
|
738 | 729 |
</tr>'; |
739 | 730 |
} |
740 | 731 |
} |
741 | 732 |
|
742 | 733 |
echo ' |
743 |
- <tr class="titlebg"> |
|
744 |
- <td colspan="7"> |
|
734 |
+ <tr class="windowbg"> |
|
735 |
+ <td ', $action['can_remove'] && $context['can_delete'] ? 'colspan="6"' : 'colspan="5"','> |
|
745 | 736 |
<span class="floatright smalltext">', $context['page_index'], '</span> |
746 | 737 |
<span class="smalltext shd_empty_log"><img src="', $settings['default_images_url'], '/simpledesk/delete.png" alt="X" /> <a href="', $scripturl, '?action=admin;area=helpdesk_info;sa=adminlog', $context['url_sort'], $context['url_order'], ';removeall" onclick="return confirm(', JavaScriptEscape(sprintf($txt['shd_admin_actionlog_removeall_confirm'], $context['daysdisable'])), ');">', $txt['shd_admin_actionlog_removeall'], '</a></span> |
747 | 738 |
</td> |
... | ... |
@@ -769,8 +760,8 @@ function template_shd_support() |
769 | 760 |
<img src="', $settings['default_images_url'], '/simpledesk/edit.png" alt="*" /> ', $txt['shd_admin_support_form_title'], ' |
770 | 761 |
</h3> |
771 | 762 |
</div> |
772 |
- <div class="roundframe noup"> |
|
773 |
- <form action="', $context['shd_support_url'], '" method="post" class="content"> |
|
763 |
+ <div class="windowbg2 noup"> |
|
764 |
+ <form action="', $context['shd_support_url'], '" method="post"> |
|
774 | 765 |
<dl id="post_header"> |
775 | 766 |
<dt><span id="caption_subject">', $txt['subject'], '</span></dt> |
776 | 767 |
<dd><input type="text" name="subject" tabindex="1" size="80" maxlength="80" class="input_text" /></dd> |
... | ... |
@@ -317,7 +317,7 @@ function template_ticket_block() |
317 | 317 |
// $context['current_block'] = the block to display now |
318 | 318 |
|
319 | 319 |
echo ' |
320 |
- <div class="cat_bar shd_cat_bar"> |
|
320 |
+ <div class="cat_bar"> |
|
321 | 321 |
<h3 id="shd_block_', $context['current_block'], '" class="catbg"> |
322 | 322 |
', !empty($context['ticket_blocks'][$context['current_block']]['page_index']) ? '<span class="floatright smalltext">' . $context['ticket_blocks'][$context['current_block']]['page_index'] . '</span>' : '', ' |
323 | 323 |
<img src="', $settings['default_images_url'], '/simpledesk/', $context['ticket_blocks'][$context['current_block']]['block_icon'], '" alt="*" /> |
324 | 324 |