Version 3.2.3
This commit is contained in:
1 parent
ae5c01cc78
commit
78706903a2
2641 files changed
+228363
-201264
No files matched your search
@@ -2,39 +2,69 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.1.4
|
||||
* IP.Board v3.2.3
|
||||
* ACP permissions skin file
|
||||
* Last Updated: $Date: 2010-05-19 21:06:53 -0400 (Wed, 19 May 2010) $
|
||||
* Last Updated: $Date: 2011-09-02 20:55:33 -0400 (Fri, 02 Sep 2011) $
|
||||
* </pre>
|
||||
*
|
||||
* @author $Author: bfarber $
|
||||
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
|
||||
* @license http://www.invisionpower.com/community/board/license.html
|
||||
* @license This is NULLED!
|
||||
* @package IP.Board
|
||||
* @subpackage Members
|
||||
* @link http://www.invisionpower.com
|
||||
* @link http://hatynka.in
|
||||
* @since 20th February 2002
|
||||
* @version $Rev: 6326 $
|
||||
* @version $Rev: 9450 $
|
||||
*
|
||||
*/
|
||||
|
||||
class cp_skin_permissions extends output
|
||||
class cp_skin_permissions
|
||||
{
|
||||
|
||||
/**
|
||||
* Prevent our main destructor being called by this class
|
||||
*
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
public function __destruct()
|
||||
{
|
||||
}
|
||||
/**
|
||||
* Registry Object Shortcuts
|
||||
*
|
||||
* @var $registry
|
||||
* @var $DB
|
||||
* @var $settings
|
||||
* @var $request
|
||||
* @var $lang
|
||||
* @var $member
|
||||
* @var $memberData
|
||||
* @var $cache
|
||||
* @var $caches
|
||||
*/
|
||||
protected $registry;
|
||||
protected $DB;
|
||||
protected $settings;
|
||||
protected $request;
|
||||
protected $lang;
|
||||
protected $member;
|
||||
protected $memberData;
|
||||
protected $cache;
|
||||
protected $caches;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param object $registry Registry object
|
||||
* @return @e void
|
||||
*/
|
||||
public function __construct( ipsRegistry $registry )
|
||||
{
|
||||
$this->registry = $registry;
|
||||
$this->DB = $this->registry->DB();
|
||||
$this->settings =& $this->registry->fetchSettings();
|
||||
$this->request =& $this->registry->fetchRequest();
|
||||
$this->member = $this->registry->member();
|
||||
$this->memberData =& $this->registry->member()->fetchMemberData();
|
||||
$this->cache = $this->registry->cache();
|
||||
$this->caches =& $this->registry->cache()->fetchCaches();
|
||||
$this->lang = $this->registry->class_localization;
|
||||
}
|
||||
|
||||
/**
|
||||
* Confirmation page that perm set was removed
|
||||
*
|
||||
* @access public
|
||||
* @param string Name
|
||||
* @return string HTML
|
||||
*/
|
||||
@@ -44,10 +74,11 @@ $IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<HTML
|
||||
<div class='tableheaderalt'>{$this->lang->words['per_result']}</div>
|
||||
<table width='100%' align='center'>
|
||||
<div class='acp-box'>
|
||||
<h3>{$this->lang->words['per_result']}</h3>
|
||||
<table class='ipsTable'>
|
||||
<tr>
|
||||
<td class='tablerow1' width='100%' valign='middle'>{$this->lang->words['per_removecustom']}<b>{$name}</b>.</td>
|
||||
<td valign='middle'>{$this->lang->words['per_removecustom']}<b>{$name}</b>.</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
@@ -60,7 +91,6 @@ return $IPBHTML;
|
||||
/**
|
||||
* Show users assigned to the perm mask
|
||||
*
|
||||
* @access public
|
||||
* @param integer Perm mask id
|
||||
* @param string Permission set name
|
||||
* @param array Users with this mask
|
||||
@@ -72,13 +102,13 @@ $IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<HTML
|
||||
<div class='tableborder'>
|
||||
<div class='tableheaderalt'>{$this->lang->words['per_membersusing']}{$set}</div>
|
||||
<div class='acp-box'>
|
||||
<h3>{$this->lang->words['per_membersusing']}{$set}</h3>
|
||||
|
||||
<table width='100%' align='center'>
|
||||
<table class='ipsTable'>
|
||||
<tr>
|
||||
<td class='tablesubheader' width='50%' align='center'>{$this->lang->words['per_userdetail']}</td>
|
||||
<td class='tablesubheader' width='50%' align='center'>{$this->lang->words['per_action']}</td>
|
||||
<th width='50%'>{$this->lang->words['per_userdetail']}</th>
|
||||
<th width='50%'>{$this->lang->words['per_action']}</th>
|
||||
</tr>
|
||||
HTML;
|
||||
|
||||
@@ -93,16 +123,16 @@ foreach( $rows as $r )
|
||||
|
||||
$IPBHTML .= <<<HTML
|
||||
<tr>
|
||||
<td class='tablerow1' width='50%' valign='middle'>
|
||||
<td width='50%' style='vertical-align: top;'>
|
||||
<div style='font-weight:bold;font-size:11px;padding-bottom:6px;margin-bottom:3px;border-bottom:1px solid #000'>{$r['members_display_name']}</div>
|
||||
• {$this->lang->words['per_posts']}{$r['posts']}<br />
|
||||
• {$this->lang->words['per_email']}{$r['email']}
|
||||
{$also_using}
|
||||
</td>
|
||||
|
||||
<td class='tablerow2' width='50%' valign='middle'>
|
||||
<td width='50%' style='vertical-align: top;'>
|
||||
• <a href='{$this->settings['base_url']}{$this->form_code}do=remove_mask&id={$r['member_id']}&pid={$perm_id}' title='{$this->lang->words['per_removethis']}'>{$this->lang->words['per_removethisset']}</a><br />
|
||||
• <a href='{$this->settings['base_url']}{$this->form_code}do=remove_mask&id={$r['member_id']}&pid=all' title='{$this->lang->words['per_removeall']}'>{$this->lang->words['per_removeall']}</a><br /><br />
|
||||
• <a href='{$this->settings['base_url']}{$this->form_code}do=remove_mask&id={$r['member_id']}&pid=all' title='{$this->lang->words['per_removeall']}'>{$this->lang->words['per_removeall']}</a>
|
||||
</td>
|
||||
</tr>
|
||||
HTML;
|
||||
@@ -120,14 +150,15 @@ return $IPBHTML;
|
||||
/**
|
||||
* Permissions matrix
|
||||
*
|
||||
* @access public
|
||||
* @param array Permission names
|
||||
* @param array Compiled grids
|
||||
* @param array Permissions checked
|
||||
* @param array Colors
|
||||
* @param string Type
|
||||
* @param boolean $addOutsideBox Add or not the outside acp-box
|
||||
* @return string HTML
|
||||
*/
|
||||
public function permissionMatrix( $perm_names, $perm_matrix, $perm_checked, $colors )
|
||||
public function permissionMatrix( $perm_names, $perm_matrix, $perm_checked, $colors, $type, $addOutsideBox=true )
|
||||
{
|
||||
$IPBHTML = "";
|
||||
//--starthtml--//
|
||||
@@ -135,90 +166,96 @@ $IPBHTML = "";
|
||||
$cols = count( $perm_names ) + 1;
|
||||
$width = ceil( 83 / count( $perm_names ) );
|
||||
|
||||
$IPBHTML .= <<<HTML
|
||||
$IPBHTML .= $addOutsideBox ? "<div class='acp-box'>" : '';
|
||||
|
||||
<div class='acp-box'>
|
||||
<h3>{$this->lang->words['frm_enterthematrix']}</h3>
|
||||
<script type='text/javascript' src='{$this->settings['js_main_url']}acp.permissions2.js'></script>
|
||||
$IPBHTML .= <<<HTML
|
||||
<!--<h3>{$this->lang->words['frm_enterthematrix']}</h3>-->
|
||||
<script type='text/javascript' src='{$this->settings['js_main_url']}acp.permissions2.js'></script>
|
||||
|
||||
<table class='ipsTable permission_table' id='perm_matrix'>
|
||||
<tr>
|
||||
<th style='width: 13%'> </th>
|
||||
HTML;
|
||||
|
||||
foreach( $perm_names as $k => $v )
|
||||
{
|
||||
$IPBHTML .= <<<HTML
|
||||
<th style='width: {$width}%; text-align: center;'>{$v}</td>
|
||||
HTML;
|
||||
}
|
||||
|
||||
$IPBHTML .= <<<HTML
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='section' colspan='{$cols}'>{$this->lang->words['frm_global']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='off'> </td>
|
||||
HTML;
|
||||
|
||||
$col_num = 0;
|
||||
|
||||
foreach( $perm_names as $k => $v )
|
||||
{
|
||||
$col_num++;
|
||||
$IPBHTML .= <<<HTML
|
||||
<!-- Check an entire column -->
|
||||
<td style='background-color:{$colors[$k]}' class='perm column' id='column_{$col_num}'>
|
||||
{$v}<br />
|
||||
<input type='checkbox' name='perms[{$type}{$k}][*]' id='col_{$col_num}' value='1'{$perm_checked['*'][$k]}>
|
||||
</td>
|
||||
HTML;
|
||||
}
|
||||
|
||||
$IPBHTML .= <<<HTML
|
||||
</tr>
|
||||
HTML;
|
||||
|
||||
$row_num = 0;
|
||||
|
||||
foreach( $perm_matrix as $set => $row )
|
||||
{
|
||||
$set = explode( '%', $set );
|
||||
$row_num++;
|
||||
$col_num = 0;
|
||||
$IPBHTML .= <<<HTML
|
||||
<tr>
|
||||
<td class='section' colspan='{$cols}'><strong>{$set[1]}</strong></td>
|
||||
</tr>
|
||||
<tr id='forum{$type}_row_{$row_num}'>
|
||||
<td class='off'>
|
||||
<input type='button' id='forum_select_row_1_{$row_num}' value='+' class='select_row' />
|
||||
<input type='button' id='forum_select_row_0_{$row_num}' value='–' class='select_row' />
|
||||
</td>
|
||||
HTML;
|
||||
|
||||
foreach( $row as $key => $perm )
|
||||
{
|
||||
$col_num++;
|
||||
$IPBHTML .= <<<HTML
|
||||
<td class='perm' id='clickable_{$col_num}' style='background-color:{$colors[$key]}'>
|
||||
{$perm}<br />
|
||||
<input type='checkbox' name='perms[{$type}{$key}][{$set[0]}]' id='perm_{$row_num}_{$col_num}' value='1'{$perm_checked[$set[0]][$key]}>
|
||||
</td>
|
||||
HTML;
|
||||
}
|
||||
|
||||
<table class='permission_table' id='perm_matrix'>
|
||||
<tr>
|
||||
<th style='width: 13%'> </th>
|
||||
$IPBHTML .= <<<HTML
|
||||
</tr>
|
||||
HTML;
|
||||
foreach( $perm_names as $k => $v )
|
||||
{
|
||||
$IPBHTML .= <<<HTML
|
||||
<th style='width: {$width}%; text-align: center;'>{$v}</td>
|
||||
HTML;
|
||||
}
|
||||
}
|
||||
|
||||
$IPBHTML .= <<<HTML
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='section' colspan='{$cols}'>{$this->lang->words['frm_global']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='off'> </td>
|
||||
HTML;
|
||||
$col_num = 0;
|
||||
foreach( $perm_names as $k => $v )
|
||||
{
|
||||
$col_num++;
|
||||
$IPBHTML .= <<<HTML
|
||||
<!-- Check an entire column -->
|
||||
<td style='background-color:{$colors[$k]}' class='perm column' id='column_{$col_num}'>
|
||||
{$v}<br />
|
||||
<input type='checkbox' name='perms[$k][*]' id='col_{$col_num}' value='1'{$perm_checked['*'][$k]}>
|
||||
</td>
|
||||
HTML;
|
||||
}
|
||||
$IPBHTML .= <<<HTML
|
||||
</tr>
|
||||
HTML;
|
||||
$row_num = 0;
|
||||
|
||||
foreach( $perm_matrix as $set => $row )
|
||||
{
|
||||
$set = explode( '%', $set );
|
||||
$row_num++;
|
||||
$col_num = 0;
|
||||
$IPBHTML .= <<<HTML
|
||||
<tr>
|
||||
<td class='section' colspan='{$cols}'><strong>{$set[1]}</strong></td>
|
||||
</tr>
|
||||
<tr id='forum_row_{$row_num}'>
|
||||
<td class='off'>
|
||||
<input type='button' id='forum_select_row_1_{$row_num}' value=' + ' class='select_row' />
|
||||
<input type='button' id='forum_select_row_0_{$row_num}' value=' – ' class='select_row' />
|
||||
</td>
|
||||
HTML;
|
||||
foreach( $row as $key => $perm )
|
||||
{
|
||||
$col_num++;
|
||||
$IPBHTML .= <<<HTML
|
||||
<td class='perm' id='clickable_{$col_num}' style='background-color:{$colors[$key]}'>
|
||||
{$perm}<br />
|
||||
<input type='checkbox' name='perms[{$key}][{$set[0]}]' id='perm_{$row_num}_{$col_num}' value='1'{$perm_checked[$set[0]][$key]}>
|
||||
</td>
|
||||
HTML;
|
||||
}
|
||||
|
||||
$IPBHTML .= <<<HTML
|
||||
</tr>
|
||||
HTML;
|
||||
}
|
||||
|
||||
$IPBHTML .= <<<HTML
|
||||
</table>
|
||||
</div>
|
||||
$IPBHTML .= <<<HTML
|
||||
</table>
|
||||
|
||||
<script type='text/javascript'>
|
||||
var permissions = new acp.permissions( { 'form': 'adminform', 'table': 'perm_matrix', 'app': 'forum' } );
|
||||
var permissions = new acp.permissions( { 'form': 'adminform', 'table': 'perm_matrix', 'app': 'forum', 'typekey': '{$type}' } );
|
||||
var noShowAlert = false;
|
||||
</script>
|
||||
|
||||
HTML;
|
||||
|
||||
$IPBHTML .= $addOutsideBox ? '</div>' : '';
|
||||
|
||||
//--endhtml--//
|
||||
return $IPBHTML;
|
||||
}
|
||||
@@ -226,7 +263,6 @@ return $IPBHTML;
|
||||
/**
|
||||
* Permission set matrix
|
||||
*
|
||||
* @access public
|
||||
* @param array Perm names
|
||||
* @param array Perm grids
|
||||
* @param array Boxes to check
|
||||
@@ -243,7 +279,7 @@ $IPBHTML = "";
|
||||
if( !is_array( $perm_matrix ) || !count( $perm_matrix ) ){ return ''; }
|
||||
|
||||
$IPBHTML .= <<<HTML
|
||||
<table class='permission_table' id='perm_matrix_{$app}'>
|
||||
<table class='permission_table' id='perm_matrix_{$app}{$type}' style='width: 100%'>
|
||||
HTML;
|
||||
|
||||
if( is_array( $perm_names ) && count( $perm_names ) )
|
||||
@@ -264,8 +300,8 @@ HTML;
|
||||
$IPBHTML .= <<<HTML
|
||||
<td class='perm' style='background-color: {$colors[$key]}; width: {$col_width}%'>
|
||||
|
||||
<input type='button' id='{$app}_select_col_1_{$col_num}' value=' + ' class='select_col' />
|
||||
<input type='button' id='{$app}_select_col_0_{$col_num}' value=' – ' class='select_col' />
|
||||
<input type='button' id='{$app}{$type}_select_col_1_{$col_num}' value='+' class='select_col' />
|
||||
<input type='button' id='{$app}{$type}_select_col_0_{$col_num}' value='–' class='select_col' />
|
||||
</td>
|
||||
HTML;
|
||||
}
|
||||
@@ -290,10 +326,10 @@ $IPBHTML .= <<<HTML
|
||||
<tr>
|
||||
<td style='padding: 0px;'>
|
||||
<table width='100%'>
|
||||
<tr id='{$app}_row_{$row_num}'>
|
||||
<tr id='{$app}{$type}_row_{$row_num}'>
|
||||
<td class='off' style='width: 13%; text-align: right;'>
|
||||
<input type='button' id='{$app}_select_row_1_{$row_num}' value=' + ' class='select_row' />
|
||||
<input type='button' id='{$app}_select_row_0_{$row_num}' value=' – ' class='select_row' />
|
||||
<input type='button' id='{$app}{$type}_select_row_1_{$row_num}' value='+' class='select_row' />
|
||||
<input type='button' id='{$app}{$type}_select_row_0_{$row_num}' value='–' class='select_row' />
|
||||
</td>
|
||||
HTML;
|
||||
|
||||
@@ -309,7 +345,7 @@ foreach( $perm_names as $key => $perm )
|
||||
$IPBHTML .= <<<HTML
|
||||
<td class='perm' style='background-color:{$colors[$key]}; width: {$col_width}%'>
|
||||
{$perm}<br />
|
||||
<input type='checkbox' id='{$app}_{$col_num}_{$row_num}' name='perms[{$app}][{$type}][{$key}][{$set[0]}]' value='1'{$perm_checked[$set[0]][$key]}>
|
||||
<input type='checkbox' id='{$app}{$type}_{$col_num}_{$row_num}' name='perms[{$app}][{$type}][{$key}][{$set[0]}]' value='1'{$perm_checked[$set[0]][$key]}>
|
||||
</td>
|
||||
HTML;
|
||||
}
|
||||
@@ -335,7 +371,7 @@ HTML;
|
||||
$IPBHTML .= <<<HTML
|
||||
</table>
|
||||
<script type='text/javascript'>
|
||||
perms["{$app}"] = new acp.permissions( { 'form': 'adminform', 'table': 'perm_matrix_{$app}', 'app': '{$app}' } );
|
||||
perms["{$app}{$type}"] = new acp.permissions( { 'form': 'adminform', 'table': 'perm_matrix_{$app}{$type}', 'app': '{$app}', 'typekey': '{$type}' } );
|
||||
</script>
|
||||
HTML;
|
||||
|
||||
@@ -346,7 +382,6 @@ return $IPBHTML;
|
||||
/**
|
||||
* Show dialog to advise user to apply group restrictions
|
||||
*
|
||||
* @access public
|
||||
* @return string HTML
|
||||
*/
|
||||
public function groupAdminConfirm( $group_id ) {
|
||||
@@ -355,17 +390,20 @@ $IPBHTML = "";
|
||||
//--starthtml--//
|
||||
|
||||
$IPBHTML .= <<<HTML
|
||||
<!--SKINNOTE: Not yet skinned-->
|
||||
<div class='tableborder'>
|
||||
<div class='tableheaderalt'>{$this->lang->words['sm_configrest']}</div>
|
||||
<div class='tablerow1'>
|
||||
{$this->lang->words['sm_detectacp']}
|
||||
<br /><br />
|
||||
{$this->lang->words['sm_setrestrict']}
|
||||
</div>
|
||||
<div class='tablesubheader' align='center'>
|
||||
<span class='fauxbutton'><a href='{$this->settings['base_url']}&{$this->form_code}'>{$this->lang->words['sm_nothanks']}</a></span>
|
||||
<span class='fauxbutton'><a href='{$this->settings['base_url']}&module=restrictions&section=restrictions&do=acpperms-group-add-complete&entered_group={$group_id}'>{$this->lang->words['sm_yesplease']}</a></span>
|
||||
<div class='acp-box'>
|
||||
<h3>{$this->lang->words['sm_configrest']}</h3>
|
||||
<table class='ipsTable double_pad'>
|
||||
<tr>
|
||||
<td>
|
||||
<strong class='title'>{$this->lang->words['sm_detectacp']}</strong>
|
||||
<br /><br />
|
||||
{$this->lang->words['sm_setrestrict']}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div class='acp-actionbar'>
|
||||
<a class='button' href='{$this->settings['base_url']}&{$this->form_code}'>{$this->lang->words['sm_nothanks']}</a>
|
||||
<a class='button' href='{$this->settings['base_url']}&module=restrictions&section=restrictions&do=acpperms-group-add-complete&entered_group={$group_id}'>{$this->lang->words['sm_yesplease']}</a>
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
@@ -378,7 +416,6 @@ return $IPBHTML;
|
||||
/**
|
||||
* Edit permissions mask
|
||||
*
|
||||
* @access public
|
||||
* @param string Set name
|
||||
* @param array Perm grids
|
||||
* @param integer Id
|
||||
@@ -392,14 +429,14 @@ $IPBHTML = "";
|
||||
$i = 1;
|
||||
|
||||
$IPBHTML .= <<<HTML
|
||||
<script type="text/javascript">
|
||||
<!--<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
document.observe("dom:loaded",function()
|
||||
{
|
||||
ipbAcpTabStrips.register('tab_perms');
|
||||
});
|
||||
//]]>
|
||||
</script>
|
||||
</script>-->
|
||||
|
||||
<div class='section_title'>
|
||||
<h2>{$set_name}</h2>
|
||||
@@ -412,39 +449,48 @@ ipbAcpTabStrips.register('tab_perms');
|
||||
<form action='{$this->settings['base_url']}{$this->form_code}do=do_edit_set&id={$this->request['id']}' method='post' id='adminform'>
|
||||
<input type='hidden' name='_from' value='{$this->request['_from']}' />
|
||||
|
||||
<div class='acp-box'>
|
||||
<h3>{$this->lang->words['per_editset']}</h3>
|
||||
|
||||
<table class='alternate_rows' width='100%'>
|
||||
<div class='acp-box'>
|
||||
<table class='ipsTable double_pad'>
|
||||
<tr>
|
||||
<td>{$this->lang->words['per_setname']}</td>
|
||||
<td><input type='text' class='input' size='30' name='perm_name' value='{$set_name}' /></td>
|
||||
<td class='field_title'><strong class='title'>{$this->lang->words['per_setname']}</strong></td>
|
||||
<td class='field_field'><input type='text' class='input_text' size='30' name='perm_name' value='{$set_name}' /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<br />
|
||||
|
||||
HTML;
|
||||
|
||||
foreach( $apps as $app => $type )
|
||||
foreach( $apps as $app => $types )
|
||||
{
|
||||
$IPBHTML .= <<<HTML
|
||||
<input type='hidden' name='apps[{$app}][{$type}]' value='1' />
|
||||
foreach( $types as $type )
|
||||
{
|
||||
$IPBHTML .= <<<HTML
|
||||
<input type='hidden' name='apps[{$app}][{$type}]' value='1' />
|
||||
HTML;
|
||||
}
|
||||
}
|
||||
|
||||
$IPBHTML .= <<<HTML
|
||||
<input type='hidden' name='_admin_auth_key' value='{$this->registry->adminFunctions->getSecurityKey()}' />
|
||||
<ul id='tab_perms' class='tab_bar no_title'>
|
||||
<div class='acp-box'>
|
||||
<h3>{$this->lang->words['per_editset']}</h3>
|
||||
<input type='hidden' name='_admin_auth_key' value='{$this->registry->adminFunctions->getSecurityKey()}' />
|
||||
<div id='tab_perms' class='ipsTabBar with_left with_right'>
|
||||
<span class='tab_left'>«</span>
|
||||
<span class='tab_right'>»</span>
|
||||
<ul>
|
||||
HTML;
|
||||
foreach( $perm_matricies as $type => $matrix )
|
||||
{
|
||||
if( !$matrix ){ continue; }
|
||||
$IPBHTML .= " <li id='tabtab-MEMBERS|" . $i ."' class=''>" . $type . "</li>";
|
||||
$IPBHTML .= " <li id='tab_members" . $i ."'>" . $type . "</li>";
|
||||
$i++;
|
||||
}
|
||||
|
||||
$IPBHTML .= <<<HTML
|
||||
</ul>
|
||||
</ul>
|
||||
</div>
|
||||
<div id='tab_perms_content'>
|
||||
HTML;
|
||||
|
||||
$i = 1;
|
||||
@@ -453,20 +499,24 @@ foreach( $perm_matricies as $type => $matrix )
|
||||
{
|
||||
if( !$matrix ){ continue; }
|
||||
$IPBHTML .= <<<HTML
|
||||
|
||||
<div id='tabpane-MEMBERS|{$i}'>
|
||||
{$matrix}
|
||||
|
||||
</div>
|
||||
<div id='tab_members{$i}_content' class='ipsTabBar_content'>
|
||||
{$matrix}
|
||||
</div>
|
||||
HTML;
|
||||
$i++;
|
||||
}
|
||||
|
||||
$IPBHTML .= <<<HTML
|
||||
<div class='acp-actionbar'><input type='submit' value='{$this->lang->words['frm_savechanges']}' class='realbutton' /></div>
|
||||
</div>
|
||||
<div class='acp-actionbar'><input type='submit' value='{$this->lang->words['frm_savechanges']}' class='realbutton' /></div>
|
||||
</div>
|
||||
<br style='clear: both' />
|
||||
</form>
|
||||
<br /><br /><br /><br /><br />
|
||||
<br />
|
||||
|
||||
<script type='text/javascript'>
|
||||
jQ("#tab_perms").ipsTabBar({ tabWrap: "#tab_perms_content" });
|
||||
</script>
|
||||
HTML;
|
||||
|
||||
//--endhtml--//
|
||||
@@ -477,7 +527,6 @@ return $IPBHTML;
|
||||
/**
|
||||
* Mask splash page
|
||||
*
|
||||
* @access public
|
||||
* @param array Masks
|
||||
* @param string Dropdown lsit
|
||||
* @return string HTML
|
||||
@@ -495,7 +544,7 @@ $IPBHTML .= <<<HTML
|
||||
<div class='acp-box'>
|
||||
<h3>{$this->lang->words['per_setname']}</h3>
|
||||
|
||||
<table class='alternate_rows' width='100%'>
|
||||
<table class='ipsTable'>
|
||||
<tr>
|
||||
<th width='20%'>{$this->lang->words['per_name']}</th>
|
||||
<th width='15%'>{$this->lang->words['per_usedgroups']}</th>
|
||||
@@ -508,10 +557,10 @@ HTML;
|
||||
foreach( $rows as $r )
|
||||
{
|
||||
$IPBHTML .= <<<HTML
|
||||
<tr>
|
||||
<tr class='ipsControlRow'>
|
||||
<td><strong>{$r['name']}</strong></td>
|
||||
<td>{$r['groups']}</td>
|
||||
<td align='right'>
|
||||
<td>
|
||||
HTML;
|
||||
if ( $r['mems'] > 0 )
|
||||
{
|
||||
@@ -527,27 +576,25 @@ HTML;
|
||||
}
|
||||
$IPBHTML .= <<<HTML
|
||||
</td>
|
||||
<td class='tablerow1' align='center'>
|
||||
<img id="menu{$r['id']}" src='{$this->settings['skin_acp_url']}/_newimages/menu_open.png' alt='{$this->lang->words['per_options']}' class='ipbmenu' />
|
||||
<ul class='acp-menu' id='menu{$r['id']}_menucontent'>
|
||||
<li class='icon edit'><a href='{$this->settings['base_url']}{$this->form_code}do=edit_set_form&id={$r['id']}'>{$this->lang->words['per_editset']}</a></li>
|
||||
<td class='col_buttons'>
|
||||
<ul class='ipsControlStrip'>
|
||||
<li class='i_edit'><a href='{$this->settings['base_url']}{$this->form_code}do=edit_set_form&id={$r['id']}' title='{$this->lang->words['per_editset']}'>{$this->lang->words['per_editset']}</a></li>
|
||||
HTML;
|
||||
|
||||
if ( ! $r['isactive'] )
|
||||
{
|
||||
$IPBHTML .= <<<HTML
|
||||
<li class='icon delete'><a href='#' onclick='return acp.confirmDelete("{$this->settings['base_url']}&{$this->form_code}&do=delete_set&id={$r['id']}");'>{$this->lang->words['per_deleteset']}</a></li>
|
||||
<li class='i_delete'><a href='#' onclick='return acp.confirmDelete("{$this->settings['base_url']}&{$this->form_code}&do=delete_set&id={$r['id']}");' title='{$this->lang->words['per_deleteset']}'>{$this->lang->words['per_deleteset']}</a></li>
|
||||
HTML;
|
||||
}
|
||||
else
|
||||
{
|
||||
$IPBHTML .= <<<HTML
|
||||
<li class='icon delete'>{$this->lang->words['per_inuse']}</li>
|
||||
<li class='i_delete disabled'><a href='#' onclick='return false;' title='{$this->lang->words['per_inuse']}'>{$this->lang->words['per_inuse']}</a></li>
|
||||
HTML;
|
||||
}
|
||||
$IPBHTML .= <<<HTML
|
||||
|
||||
</ul>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
HTML;
|
||||
@@ -565,20 +612,18 @@ $IPBHTML .= <<<HTML
|
||||
<div class='acp-box'>
|
||||
<h3>{$this->lang->words['per_createnew']}</h3>
|
||||
|
||||
<table class='alternate_rows' width='100%'>
|
||||
<table class='ipsTable double_pad'>
|
||||
<tr>
|
||||
<td>{$this->lang->words['per_setname']}</td>
|
||||
<td><input type='text' class='input' size='30' name='new_perm_name' /></td>
|
||||
<td class='field_title'><strong class='title'>{$this->lang->words['per_setname']}</strong></td>
|
||||
<td class='field_field'><input type='text' class='input' size='30' name='new_perm_name' /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{$this->lang->words['per_baseon']}</td>
|
||||
<td><select name='new_perm_copy' class='dropdown'>{$dlist}</select></td>
|
||||
<td class='field_title'><strong class='title'>{$this->lang->words['per_baseon']}</strong></td>
|
||||
<td class='field_field'><select name='new_perm_copy' class='dropdown'>{$dlist}</select></td>
|
||||
</tr>
|
||||
</table>
|
||||
<div class='acp-actionbar'>
|
||||
<div class='centeraction'>
|
||||
<input type='submit' value='{$this->lang->words['per_createbutton']}' class='button primary' />
|
||||
</div>
|
||||
<input type='submit' value='{$this->lang->words['per_createbutton']}' class='button primary' />
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
Reference in new issue
Block a user