File: /var/www/ilya/data/www/irkboard.ru/cache/cacheid_1/skin_reports.php
<?php
/*--------------------------------------------------*/
/* FILE GENERATED BY INVISION POWER BOARD 3 */
/* CACHE FILE: Skin set id: 1 */
/* CACHE FILE: Generated: Tue, 18 Aug 2009 18:01:57 GMT */
/* DO NOT EDIT DIRECTLY - THE CHANGES WILL NOT BE */
/* WRITTEN TO THE DATABASE AUTOMATICALLY */
/*--------------------------------------------------*/
class skin_reports_1 {
/**
* Construct
*/
function __construct( ipsRegistry $registry )
{
/* Make object */
$this->registry = $registry;
$this->DB = $this->registry->DB();
$this->settings =& $this->registry->fetchSettings();
$this->request =& $this->registry->fetchRequest();
$this->lang = $this->registry->getClass('class_localization');
$this->member = $this->registry->member();
$this->memberData =& $this->registry->member()->fetchMemberData();
$this->cache = $this->registry->cache();
$this->caches =& $this->registry->cache()->fetchCaches();
}
/* -- basicReportForm --*/
function basicReportForm($name="", $url="", $extra_data="") {
$IPBHTML = "";
$IPBHTML .= "<h2 class='maintitle'>{$this->lang->words['report_basic_title']}</h2>
<div class='generic_bar'></div>
<form action=\"{$this->settings['base_url']}app=core&module=reports&rcom={$this->request['rcom']}&send=1\" method=\"post\" name=\"REPLIER\">
<input type='hidden' name='k' value='{$this->member->form_hash}' />
<div class='post_form'>
<fieldset>
<h3 class='bar'>{$this->lang->words['reporting_title']} <a href=\"{$url}\" title='{$this->lang->words['view_content']}'>{$name}</a></h3>
<ul>
<li class='field'>
<label for='message'>{$this->lang->words['report_basic_enter']}</label>
<textarea id='message' class='input_text' name='message' cols='60' rows='8'></textarea>
</li>
{$extra_data}
</ul>
</fieldset>
<fieldset class='submit'>
<input type=\"submit\" class='input_submit' value=\"{$this->lang->words['report_basic_submit']}\" /> {$this->lang->words['or']} <a href='{$url}' title='{$this->lang->words['cancel']}' class='cancel'>{$this->lang->words['cancel']}</a>
</fieldset>
</div>
</form>";
return $IPBHTML;
}
/* -- config_notif --*/
function config_notif($data="") {
$IPBHTML = "";
$IPBHTML .= "" . $this->registry->getClass('output')->addJSModule("reports", "0" ) . "
<form method=\"post\" action=\"{$this->settings['base_url']}\">
<input type=\"hidden\" name=\"app\" value=\"core\" />
<input type=\"hidden\" name=\"module\" value=\"reports\" />
<input type=\"hidden\" name=\"do\" value=\"save_methods\" />
<input type=\"hidden\" name=\"req\" value=\"1\" />
<input type='hidden' name='k' value='{$this->member->form_hash}' />
<h2 class='maintitle'>{$this->lang->words['report_ajax_tab_notif_meth']}</h2>
<div class='generic_bar'></div>
<div class='post_form'>
<fieldset class='row1'>
<h3 class='bar'>{$this->lang->words['configure_notifications']}</h3>
<ul>
<li class='field checkbox'>
" . (($this->settings['report_pm_enabled'] == 1) ? ("" . (($data['by_pm']==1) ? ("
<input checked='checked' type=\"checkbox\" value=\"1\" id=\"notmet_pm\" name=\"notmet_pm\" class='input_check' />
") : ("
<input type=\"checkbox\" value=\"1\" id=\"notmet_pm\" name=\"notmet_pm\" class='input_check' />
")) . "") : ("
<input disabled='disabled' type=\"checkbox\" value=\"1\" id=\"notmet_pm\" name=\"notmet_pm\" class='input_check' />
")) . "
<label for='notmet_pm'>{$this->lang->words['report_settings_by_pm']}</label>
</li>
<li class='field checkbox'>
" . (($this->settings['report_nemail_enabled'] == 1) ? ("" . (($data['by_email']==1) ? ("
<input checked='checked' type=\"checkbox\" value=\"1\" id=\"notmet_email\" name=\"notmet_email\" class='input_check' />
") : ("
<input type=\"checkbox\" value=\"1\" id=\"notmet_email\" name=\"notmet_email\" class='input_check' />
")) . "") : ("
<input disabled='disabled' type=\"checkbox\" value=\"1\" id=\"notmet_email\" name=\"notmet_email\" class='input_check' />
")) . "
<label for='notmet_email'>{$this->lang->words['report_settings_by_email']}</label>
</li>
</ul>
</fieldset>
<fieldset class='submit'>
<input type=\"submit\" value=\"{$this->lang->words['report_settings_save']}\" class='input_submit' /> {$this->lang->words['or']} <a href='" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "app=core&module=reports&do=index", 'public','' ), "", "" ) . "' title='{$this->lang->words['cancel']}' class='cancel'>{$this->lang->words['cancel']}</a>
</fieldset>
</div>
</form>";
return $IPBHTML;
}
/* -- greenAlertImage --*/
function greenAlertImage() {
$IPBHTML = "";
$IPBHTML .= "<img src='{$this->settings['img_url']}/reports/post_alert_3.png' alt='{$this->lang->words['icon']}' />";
return $IPBHTML;
}
/* -- redAlertImage --*/
function redAlertImage() {
$IPBHTML = "";
$IPBHTML .= "<img src='{$this->settings['img_url']}/reports/post_alert_1.png' alt='{$this->lang->words['icon']}' />";
return $IPBHTML;
}
/* -- reportsIndex --*/
function reportsIndex($reports=array(), $acts="", $pages="", $active=array(), $statuses=array()) {
$IPBHTML = "";
$this->registry->templateStriping['reportsTable'] = array( FALSE, "row1","row2");
$IPBHTML .= "" . $this->registry->getClass('output')->addJSModule("reports", "0" ) . "
<div class='topic_controls'>
{$pages}
<ul class='topic_buttons'>
<li><a href='{$this->settings['base_url']}app=core&module=reports&do=show_methods'><img src='{$this->settings['img_url']}/shield.png' alt='{$this->lang->words['icon']}' /> {$this->lang->words['report_settings_options']}</a></li>
</ul>
</div>
<br />
<form method=\"post\" action=\"{$this->settings['base_url']}app=core&module=reports&do=process&st={$this->request['st']}\">
<input type='hidden' name='k' value='{$this->member->form_hash}' />
<table class='ipb_table report_center' summary='{$this->lang->words['reported_content_summary']}'>
<caption class='maintitle'>{$this->lang->words['list_title']}</caption>
<tr class='header'>
<th scope='col' class='col_r_icon'> </th>
<th scope='col' class='col_r_title'>{$this->lang->words['list_header_title']}</th>
<th scope='col' class='col_r_section'>{$this->lang->words['list_header_section']}</th>
<th scope='col' class='col_r_total short'>{$this->lang->words['list_header_reports']}</th>
<th scope='col' class='col_r_comments short'>{$this->lang->words['list_header_comments']}</th>
<th scope='col' class='col_r_updated'>{$this->lang->words['list_header_updated_by']}</th>
<th scope='col' class='col_r_mod'><input type='checkbox' id='checkAllReports' title='{$this->lang->words['select_all_reports']}' class='input_check' /></th>
</tr>
" . ((count($reports)) ? ("
".$this->__f__73298661a97f2692856f23ceaac24c05($reports,$acts,$pages,$active,$statuses)." ") : ("
<tr>
<td colspan='7' class='no_messages row1'>
{$this->lang->words['no_reports']}
</td>
</tr>
")) . "
</table>
<div id='topic_mod' class='moderation_bar rounded with_action clear'>
<!-- SKINNOTE: Javascript needs moving to JS files -->
<select name=\"newstatus\" id=\"report_actions\">
<option value=\"x\">---</option>
" . (($this->memberData['g_access_cp']) ? ("
<optgroup label=\"{$this->lang->words['report_actions']}\" style=\"font-style: normal;\">
<option value=\"d\">{$this->lang->words['report_option_delete']}</option>
<option value=\"p\">{$this->lang->words['report_option_prune']}</option>
</optgroup>
") : ("")) . "
<optgroup label=\"{$this->lang->words['report_actions_mark_optgroup']}\" style=\"font-style: normal;\">
{$acts}
</optgroup>
</select>
<label for='pruneDayBox' id='pruneDayLabel'>{$this->lang->words['older_than']}</label>
<input type=\"text\" name=\"pruneDays\" id=\"pruneDayBox\" class='input_text' size=\"3\" value=\"\" />
<span id='pruneDayLang'>{$this->lang->words['report_prune_days_box']}</span>
<input type=\"submit\" id='report_mod' class=\"input_submit alt\" value=\"{$this->lang->words['with_selected']}\" />
<script type='text/javascript'>
if( $F('report_actions') != 'p' )
{
$('pruneDayLabel').hide();
$('pruneDayBox').hide();
$('pruneDayLang').hide();
}
</script>
</div>
</form>
<br />
<!-- ACTIVE USERS -->
" . ((is_array( $active ) AND count( $active )) ? ("<div id='topic_stats' class='statistics general_box clearfix'>
<div id='topic_active_users' class='active_users'>
<h2>
" . sprintf( $this->lang->words['active_users_title'], ($active['members'] + $active['anon'] ) ) . "<br />
<span class='desc'>" . sprintf( $this->lang->words['active_users_detail'], $active['members'], $active['guests'], $active['anon'] ) . "</span>
</h2>
<ol>
" . ((is_array( $active['names'] ) AND count( $active['names'] )) ? ("
".$this->__f__6a2e72880b52a0d8560a689aaf560847($reports,$acts,$pages,$active,$statuses)." ") : ("")) . "
</ol>
</div>
</div>") : ("")) . "
<script type='text/javascript'>
ipb.global.registerCheckAll('checkAllReports', 'checkall');
</script>";
return $IPBHTML;
}
function __f__0bc0eb77a2afb7a1202b47fbe776c126($reports=array(), $acts="", $pages="", $active=array(), $statuses=array(),$report='')
{
$_ips___x_retval = '';
foreach( $statuses as $status_id => $status )
{
$_ips___x_retval .= "
<li class='{$status_id} " . (($status_id == $report['status']) ? ("status-selected") : ("")) . "'><a href=\"" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "app=core&module=reports&section=reports&do=process&report_ids[{$report['id']}]={$report['id']}&newstatus={$status_id}&k={$this->member->form_hash}", 'public','' ), "", "" ) . "\" title='{$this->lang->words['change_status_title']}' class='change-status' id='{$report['id']}:{$status_id}'>{$this->lang->words['mark_status_as']} <strong>{$status['title']}</strong></a></li>
";
}
$_ips___x_retval .= '';
return $_ips___x_retval;
}
function __f__73298661a97f2692856f23ceaac24c05($reports=array(), $acts="", $pages="", $active=array(), $statuses=array())
{
$_ips___x_retval = '';
foreach( $reports as $report )
{
$_ips___x_retval .= "
<tr class='" . IPSLib::next( $this->registry->templateStriping["reportsTable"] ) . "'>
<td class='short altrow'>
<a href=\"" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "app=core&module=reports&section=reports&do=process&report_ids[{$report['id']}]={$report['id']}&newstatus=2&k={$this->member->form_hash}", 'public','' ), "", "" ) . "\" title='{$this->lang->words['change_current_status']}' class='ipbmenu' id='change_status-{$report['id']}'><span id=\"rstat-{$report['id']}\">{$report['status_icon']}</span></a>
</td>
<td>
<a href=\"{$this->settings['base_url']}&app=core&module=reports&do=show_report&rid={$report['id']}\" title='{$this->lang->words['view_report']}'>{$report['title']}</a>
" . ((is_array( $statuses ) && count( $statuses )) ? ("
<ul class='ipbmenu_content' id='change_status-{$report['id']}_menucontent'>
".$this->__f__0bc0eb77a2afb7a1202b47fbe776c126($reports,$acts,$pages,$active,$statuses,$report)." </ul>
") : ("")) . "
</td>
<td class='altrow'>
" . (($report['section']['url']) ? ("
<a href=\"{$report['section']['url']}\" title='{$this->lang->words['go_to_section']}'>{$report['section']['title']}</a>
") : ("
{$report['section']['title']}
")) . "
</td>
<td class='short'>{$report['num_reports']}</td>
<td class='short altrow'>{$report['num_comments']}</td>
<td class=''>
<ul class='last_post'>
<li><strong>{$this->lang->words['report_updated']}</strong> " . $this->registry->getClass('class_localization')->getDate($report['date_updated'],"tiny", 0) . "</li>
<li><strong>{$this->lang->words['report_by']}</strong> <a href=\"" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "showuser={$report['updated_by']}", 'public','' ), "{$report['n_updated_seoname']}", "showuser" ) . "\" title='{$this->lang->words['view_member']}'>" . IPSLib::makeNameFormatted( $report['n_updated_by'], $report['member_group_id'] ) . "</a>" . $this->registry->getClass('output')->getTemplate('global')->user_popup($report['updated_by'],$report['n_updated_seoname']) . "</li>
</ul>
</td>
<td class='short altrow'>
<input type='checkbox' id='report_check_{$report['id']}' class='input_check checkall' name='report_ids[]' value='{$report['id']}' />
</td>
</tr>
";
}
$_ips___x_retval .= '';
return $_ips___x_retval;
}
function __f__6a2e72880b52a0d8560a689aaf560847($reports=array(), $acts="", $pages="", $active=array(), $statuses=array())
{
$_ips___x_retval = '';
foreach( $active['names'] as $p => $r )
{
$_ips___x_retval .= "
<li>{$r['p_start']}" . (($r['id']) ? ("<a href='" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "showuser={$r['id']}", 'public','' ), "{$r['seo']}", "showuser" ) . "' title='{$r['p_title']}'>") : ("")) . "{$r['name']}" . (($r['id']) ? ("</a>") : ("")) . "{$r['p_end']}" . (($p + 1 != count( $active['names'] )) ? (",") : ("")) . "</li>
";
}
$_ips___x_retval .= '';
return $_ips___x_retval;
}
/* -- statusIcon --*/
function statusIcon($img, $width, $height) {
$IPBHTML = "";
$IPBHTML .= "<img src='{$this->settings['public_dir']}{$img}' alt='{$this->lang->words['status']}' />";
return $IPBHTML;
}
/* -- viewReport --*/
function viewReport($options=array(), $reports=array(), $comments=array()) {
$IPBHTML = "";
$IPBHTML .= "" . $this->registry->getClass('output')->addJSModule("reports", "0" ) . "
<script type='text/javascript'>
// Editor JS: Only needs to be done once per page
" . $this->registry->getClass('output')->getTemplate('editors')->editorJS() . "
</script>
<div class='message'>
{$this->lang->words['report_about_intro']} " . (($options['class'] == 8) ? ("{$this->lang->words['report_about_pm']} {$options['title']}.
" . ((in_array( $this->memberData['member_group_id'], explode( ',', $this->registry->getClass('reportLibrary')->plugins['messages']->_extra['plugi_messages_add'] ) )) ? ("
<a href='{$options['url']}'>{$this->lang->words['report_join_pm']}</a>
") : ("")) . "") : ("
<a href=\"{$options['url']}\" title=\"{$this->lang->words['report_view_reported']}\">{$options['title']}</a>
")) . "
</div>
<br />
<div class='topic_controls'>
<ul class='topic_buttons'>
<li><a href='" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "app=core&module=reports&section=reports&do=process&report_ids[{$options['rid']}]={$options['rid']}&newstatus=d&k={$this->member->form_hash}", 'public','' ), "", "" ) . "' title='{$this->lang->words['delete_report']}'><img src='{$this->settings['img_url']}/delete.png' alt='{$this->lang->words['icon']}' id='delete_report' /> {$this->lang->words['delete_report']}</a></li>
<li><a href='" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "app=core&module=reports&section=reports&do=process&report_ids[{$options['rid']}]={$options['rid']}&newstatus=2&k={$this->member->form_hash}", 'public','' ), "", "" ) . "' title='{$this->lang->words['change_current_status']}' class='ipbmenu' id='change_status'>{$options['status_icon']} {$this->lang->words['current_status']} <strong>{$options['status_text']}</strong></a></li>
</ul>
</div>
" . ((is_array( $options['statuses'] ) && count( $options['statuses'] )) ? ("
<ul class='ipbmenu_content' id='change_status_menucontent'>
".$this->__f__9645c45e3ef78eb2334c68d94d2a1291($options,$reports,$comments)." </ul>
") : ("")) . "
<br />
<h2 class='maintitle'>{$this->lang->words['reports_h2']}</h2>
<div class='generic_bar'></div>
" . ((is_array($reports) AND count($reports)) ? ("
".$this->__f__7a6c67c31e483b9c2a1f3ff1010a3c5e($options,$reports,$comments)."") : ("")) . "
<br /><hr /><br />
<h2 class='maintitle'>{$this->lang->words['comments_h2']}</h2>
<div class='generic_bar'></div>
" . ((is_array($comments) AND count($comments)) ? ("
".$this->__f__5b7555f0c00c8650cb1a77fc6fb6da91($options,$reports,$comments)."") : ("
<p class='no_messages'>
{$this->lang->words['no_comments_on_report']}
</p>
")) . "
<!-- SKINNOTE: Need to use included editor here -->
" . $this->registry->getClass('output')->addJSModule("editor", "0" ) . "
<br />
<div id='fast_reply' style='display: {$displayData['fast_reply']}'>
<h3 class='maintitle'>{$this->lang->words['add_comment_title']}</h3>
<div class='generic_bar'></div>
<div class='general_box alt'>
<form method=\"post\" action=\"{$this->settings['base_url']}\" name=\"report_comment_submit\" id='report_comment_submit'>
<input type=\"hidden\" id=\"report_rid\" name=\"rid\" value=\"{$options['rid']}\" />
<input type=\"hidden\" name=\"app\" value=\"core\" />
<input type=\"hidden\" name=\"module\" value=\"reports\" />
<input type=\"hidden\" name=\"do\" value=\"save_comment\" />
<input type='hidden' name='{$editor_id}_wysiwyg_used' value='0' />
" . $this->registry->getClass('output')->getTemplate('editors')->editorShell('report_comment', 'comment') . "
<fieldset class='submit'>
<input type='submit' class='input_submit' value='{$this->lang->words['post_button']}' />
</fieldset>
</form>
</div>
</div>
" . $this->registry->getClass('output')->getTemplate('global')->include_lightbox() . "
" . $this->registry->getClass('output')->getTemplate('global')->include_highlighter(1) . "
<script type=\"text/javascript\">
//<![CDATA[
if( $('report_comment_textarea') ){
$('report_comment_textarea').setStyle('height: 70px');
}
ipb.editor_values.set( 'emoticons', \$H({ " . IPSLib::fetchEmoticonsAsJson() . " }) );
ipb.editors[ 'report_comment' ] = new ipb.editor( 'report_comment', USE_RTE );
in_use = 0;
" . (($rte_mode != 1) ? ("
obj = ipb.editors['report_comment'].editor_document;
") : ("
obj = $( ipb.editors['report_comment'].items['text_obj'] );
")) . "
Event.observe( obj, 'click', function(){
if( in_use != 1 ){
$( ipb.editors['report_comment'] ).resize_to( 250 );
in_use = 1;
}
}, true);
//]]>
</script>
</if>";
return $IPBHTML;
}
function __f__9645c45e3ef78eb2334c68d94d2a1291($options=array(), $reports=array(), $comments=array())
{
$_ips___x_retval = '';
foreach( $options['statuses'] as $status_id => $status )
{
$_ips___x_retval .= "
" . (($status_id != $options['status_id']) ? ("
<li><a href=\"" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "app=core&module=reports&section=reports&do=process&report_ids[{$options['rid']}]={$options['rid']}&newstatus={$status_id}&k={$this->member->form_hash}", 'public','' ), "", "" ) . "\" title='{$this->lang->words['change_status_title']}' />{$this->lang->words['mark_status_as']} <strong>{$status['title']}</strong></a></li>
") : ("")) . "
";
}
$_ips___x_retval .= '';
return $_ips___x_retval;
}
function __f__7a6c67c31e483b9c2a1f3ff1010a3c5e($options=array(), $reports=array(), $comments=array())
{
$_ips___x_retval = '';
foreach( $reports as $report )
{
$_ips___x_retval .= "
<div class='post_block topic_summary'>
<h3><a href='" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "showuser={$report['member_id']}", 'public','' ), "{$report['members_seo_name']}", "showuser" ) . "' title='{$this->lang->words['view_member']}'>{$report['members_display_name']}</a>" . $this->registry->getClass('output')->getTemplate('global')->user_popup($report['member_id'], $report['members_seo_name']) . "</h3>
<p class='posted_info'>{$this->lang->words['posted_prefix']} " . $this->registry->getClass('class_localization')->getDate($report['date_reported'],"long", 0) . "</p>
<div class='post_body'>
<div class='post'>{$report['report']}</div>
</div>
</div>
";
}
$_ips___x_retval .= '';
return $_ips___x_retval;
}
function __f__5b7555f0c00c8650cb1a77fc6fb6da91($options=array(), $reports=array(), $comments=array())
{
$_ips___x_retval = '';
foreach( $comments as $comment )
{
$_ips___x_retval .= "
<div class='post_block first hentry report_comment' id='post_id_{$comment['comment_id']}'>
<div class='post_wrap'>
<h3>
" . (($comment['author']['member_id']) ? ("" . (($comment['author']['_online']) ? ("
" . $this->registry->getClass('output')->getReplacement("user_online") . "
") : ("
" . $this->registry->getClass('output')->getReplacement("user_offline") . "
")) . "
<address class=\"author vcard\"><a class=\"url fn\" href='" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "showuser={$comment['author']['member_id']}", 'public','' ), "{$comment['author']['members_seo_name']}", "showuser" ) . "'>{$comment['author']['members_display_name']}</a>" . $this->registry->getClass('output')->getTemplate('global')->user_popup($comment['author']['member_id'], $comment['author']['members_seo_name']) . "</address>") : ("
{$comment['author']['members_display_name']}
")) . "
</h3>
<div class='author_info'>
" . $this->registry->getClass('output')->getTemplate('global')->userInfoPane($comment['author'], $comment['comment_id'], array()) . "
</div>
<div class='post_body'>
<p class='posted_info'>
{$this->lang->words['posted_prefix']} " . $this->registry->getClass('class_localization')->getDate($comment['comment_date'],"long", 0) . "
</p>
<div class='post entry-content'>
{$comment['comment']}
</div>
</div>
<br class='clear' />
</div>
</div>
";
}
$_ips___x_retval .= '';
return $_ips___x_retval;
}
}
/*--------------------------------------------------*/
/* END OF FILE */
/*--------------------------------------------------*/
?>