|
@@ -2041,13 +2041,14 @@ function template_viewWarning()
|
|
|
template_load_warning_variables();
|
|
|
|
|
|
echo '
|
|
|
- <div class="title_bar">
|
|
|
- <h3 class="titlebg">
|
|
|
+ <div class="cat_bar">
|
|
|
+ <h3 class="catbg">
|
|
|
<span class="ie6_header floatleft"><img src="', $settings['images_url'], '/icons/profile_sm.png" alt="" class="icon" />
|
|
|
', sprintf($txt['profile_viewwarning_for_user'], $context['member']['name']), '
|
|
|
</span>
|
|
|
</h3>
|
|
|
</div>
|
|
|
+ <p class="description">', $txt['viewWarning_help'], '</p>
|
|
|
<div class="windowbg">
|
|
|
<span class="topslice"><span></span></span>
|
|
|
<div class="content">
|
|
@@ -2165,6 +2166,7 @@ function template_issueWarning()
|
|
|
size = barWidth * (percent/100);
|
|
|
|
|
|
setInnerHTML(document.getElementById(\'warning_text\'), percent + "%");
|
|
|
+ document.getElementById(\'warning_text\').innerHTML = percent + "%";
|
|
|
document.getElementById(\'warning_level\').value = percent;
|
|
|
document.getElementById(\'warning_progress\').style.width = size + "px";
|
|
|
|
|
@@ -2346,66 +2348,14 @@ function template_issueWarning()
|
|
|
<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
|
|
|
<input type="submit" name="save" value="', $context['user']['is_owner'] ? $txt['change_profile'] : $txt['profile_warning_issue'], '" class="button_submit" />
|
|
|
</div>
|
|
|
+ <br class="clear" />
|
|
|
</div>
|
|
|
<span class="botslice"><span></span></span>
|
|
|
</div>
|
|
|
- </form>';
|
|
|
-
|
|
|
-
|
|
|
- echo '<br />
|
|
|
- <div class="cat_bar">
|
|
|
- <h3 class="catbg">
|
|
|
- ', $txt['profile_warning_previous'], '
|
|
|
- </h3>
|
|
|
- </div>
|
|
|
- <table border="0" width="100%" cellspacing="0" cellpadding="5" class="table_grid">
|
|
|
- <thead>
|
|
|
- <tr class="titlebg lefttext">
|
|
|
- <th class="first_th" scope="col" width="20%">', $txt['profile_warning_previous_issued'], '</th>
|
|
|
- <th scope="col" width="30%">', $txt['profile_warning_previous_time'], '</th>
|
|
|
- <th scope="col">', $txt['profile_warning_previous_reason'], '</th>
|
|
|
- <th class="last_th" scope="col" width="6%">', $txt['profile_warning_previous_level'], '</th>
|
|
|
- </tr>
|
|
|
- </thead>
|
|
|
- <tbody>';
|
|
|
-
|
|
|
-
|
|
|
- $alternate = 0;
|
|
|
- foreach ($context['previous_warnings'] as $warning)
|
|
|
- {
|
|
|
- $alternate = !$alternate;
|
|
|
- echo '
|
|
|
- <tr class="', $alternate ? 'windowbg' : 'windowbg2', '">
|
|
|
- <td class="smalltext">', $warning['issuer']['link'], '</td>
|
|
|
- <td class="smalltext">', $warning['time'], '</td>
|
|
|
- <td class="smalltext">
|
|
|
- <div class="floatleft">
|
|
|
- ', $warning['reason'], '
|
|
|
- </div>';
|
|
|
-
|
|
|
- if (!empty($warning['id_notice']))
|
|
|
- echo '
|
|
|
- <div class="floatright">
|
|
|
- <a href="', $scripturl, '?action=moderate;area=notice;nid=', $warning['id_notice'], '" onclick="window.open(this.href, \'\', \'scrollbars=yes,resizable=yes,width=400,height=250\');return false;" target="_blank" class="new_win" title="', $txt['profile_warning_previous_notice'], '"><img src="', $settings['images_url'], '/filter.png" alt="" /></a>
|
|
|
- </div>';
|
|
|
- echo '
|
|
|
- </td>
|
|
|
- <td class="smalltext">', $warning['counter'], '</td>
|
|
|
- </tr>';
|
|
|
- }
|
|
|
-
|
|
|
- if (empty($context['previous_warnings']))
|
|
|
- echo '
|
|
|
- <tr class="windowbg2">
|
|
|
- <td align="center" colspan="4">
|
|
|
- ', $txt['profile_warning_previous_none'], '
|
|
|
- </td>
|
|
|
- </tr>';
|
|
|
+ </form>
|
|
|
+ <br />';
|
|
|
|
|
|
- echo '
|
|
|
- </tbody>
|
|
|
- </table>
|
|
|
- <div class="pagesection">', $txt['pages'], ': ', $context['page_index'], '</div>';
|
|
|
+ template_show_list('view_warnings');
|
|
|
|
|
|
|
|
|
echo '
|