Permalink
Browse files

Fixed user groups and changed wording for author in articles

  • Loading branch information...
1 parent f2f8980 commit cf8554dcbffa0f620aeb93cedbe6e1a21f3d454a @ericbarnes ericbarnes committed Aug 10, 2010
View
2 upload/system/68kb/cache/load_addons.cache
@@ -1 +1 @@
-a:4:{s:16:"__cache_contents";a:1:{i:0;O:8:"stdClass":2:{s:16:"module_directory";s:5:"debug";s:11:"module_name";s:5:"debug";}}s:15:"__cache_created";i:1281448338;s:20:"__cache_dependencies";a:0:{}s:15:"__cache_expires";i:1281448398;}
+a:4:{s:16:"__cache_contents";a:1:{i:0;O:8:"stdClass":2:{s:16:"module_directory";s:5:"debug";s:11:"module_name";s:5:"debug";}}s:15:"__cache_created";i:1281449160;s:20:"__cache_dependencies";a:0:{}s:15:"__cache_expires";i:1281449220;}
View
14 upload/system/68kb/language/english/kb_lang.php
@@ -307,25 +307,15 @@
$lang['lang_not_allowed'] = 'You are not allowed to perform this action';
$lang['can_view_site'] = 'Can view site';
$lang['can_access_admin'] = 'Can Access Admin';
-$lang['can_manage_orders'] = 'Can Manage Orders';
-$lang['can_delete_orders'] = 'Can Delete Orders';
-$lang['can_manage_listings'] = 'Can Manage Listings';
-$lang['can_delete_listings'] = 'Can Delete Listings';
-$lang['can_manage_products'] = 'Can Manage Products';
-$lang['can_manage_coupons'] = 'Can Manage Coupons';
+$lang['can_manage_articles'] = 'Can Manage Articles';
+$lang['can_delete_articles'] = 'Can Delete Articles';
$lang['can_manage_users'] = 'Can Manage Users';
$lang['can_manage_categories'] = 'Can Manage Categories';
$lang['can_delete_categories'] = 'Can Delete Categories';
-$lang['can_manage_fields'] = 'Can Manage Fields';
$lang['can_manage_settings'] = 'Can Manage Settings';
$lang['can_manage_utilities'] = 'Can Manage Utilities';
$lang['can_manage_themes'] = 'Can Manage Themes';
-$lang['can_manage_content'] = 'Can Manage Content';
$lang['can_manage_modules'] = 'Can Manage Modules';
-$lang['can_use_modules'] = 'Can Use Modules';
-$lang['can_place_ads'] = 'Can Place Ads';
-$lang['manually_approve_ads'] = 'Manually Approve Ads';
-$lang['can_search'] = 'Can Search';
// ------------------------------------------------------------------------
// Glossary
View
14 upload/system/68kb/modules/kb/views/admin/articles/form.php
@@ -36,7 +36,7 @@
<div class="row1">
<?php echo form_label(lang('lang_short_description'). ':', 'article_short_desc'); ?>
<div class="toolbar"><script type="text/javascript">if(typeof edToolbar=='function') edToolbar('cat_description');</script></div>
- <?php echo form_textarea('article_short_desc', set_value('article_short_desc', @$row['article_short_desc']), 'id="article_short_desc" class="inputtext"'); ?>
+ <?php echo form_textarea('article_short_desc', set_value('article_short_desc', @$row['article_short_desc']), 'id="article_short_desc" class="shortdesc"'); ?>
</div>
<div class="row2">
@@ -50,18 +50,8 @@
</div>
<div class="grid_7 inline">
<?php if ($action == 'edit'): ?>
- <fieldset>
- <legend>General Details</legend>
- <div class="user_box">
- <a href="<?php echo site_url('admin/users/edit/'.$row['article_author']); ?>"><img width="48" height="48" src="<?php echo gravatar($row['user_email'], 'PG', 48); ?>'" class="user_gravatar" /></a>
- <h3><a href="<?php echo site_url('admin/users/edit/'.$row['user_id']); ?>"><?php echo $row['user_username']; ?></a></h3>
- <a href="mailto:<?php echo $row['user_email']; ?>"><?php echo $row['user_email']; ?></a><br />
- <span class="date"><?php echo lang('lang_join_date'); ?>: <?php echo date($this->config->item('short_date_format'), $row['user_join_date']); ?></span>
- <span class="date"><?php echo lang('lang_last_login'); ?>: <?php echo date($this->config->item('short_date_format'), $row['user_last_login']); ?></span><br />
- </div>
- </fieldset>
<div class="row2">
- <label for="article_author"><?php echo lang('lang_username'); ?>:</label>
+ <label for="article_author"><?php echo lang('lang_author'); ?>:</label>
<input type="text" name="article_author" class="search" id="article_author" value="<?php echo set_value('article_author', $username); ?>" /> <span id="loader"><img src="<?php echo $template; ?>images/ajax-loader.gif" /></span>
</div>
<div id="display">
View
32 upload/system/68kb/modules/usergroups/controllers/admin.php
@@ -113,25 +113,15 @@ public function add()
'group_description' => $this->input->post('group_description', TRUE),
'can_view_site' => $this->input->post('can_view_site', TRUE),
'can_access_admin' => $this->input->post('can_access_admin', TRUE),
- 'can_manage_orders' => $this->input->post('can_manage_orders', TRUE),
- 'can_delete_orders' => $this->input->post('can_delete_orders', TRUE),
- 'can_manage_listings' => $this->input->post('can_manage_listings', TRUE),
- 'can_delete_listings' => $this->input->post('can_delete_listings', TRUE),
- 'can_manage_products' => $this->input->post('can_manage_products', TRUE),
- 'can_manage_coupons' => $this->input->post('can_manage_coupons', TRUE),
+ 'can_manage_articles' => $this->input->post('can_manage_articles', TRUE),
+ 'can_delete_articles' => $this->input->post('can_delete_articles', TRUE),
'can_manage_users' => $this->input->post('can_manage_users', TRUE),
'can_manage_categories' => $this->input->post('can_manage_categories', TRUE),
'can_delete_categories' => $this->input->post('can_delete_categories', TRUE),
- 'can_manage_fields' => $this->input->post('can_manage_fields', TRUE),
'can_manage_settings' => $this->input->post('can_manage_settings', TRUE),
'can_manage_utilities' => $this->input->post('can_manage_utilities', TRUE),
'can_manage_themes' => $this->input->post('can_manage_themes', TRUE),
- 'can_manage_content' => $this->input->post('can_manage_content', TRUE),
- 'can_manage_modules' => $this->input->post('can_manage_modules', TRUE),
- 'can_use_modules' => $this->input->post('can_use_modules', TRUE),
- 'can_place_ads' => $this->input->post('can_place_ads', TRUE),
- 'manually_approve_ads' => $this->input->post('manually_approve_ads', TRUE),
- 'can_search' => $this->input->post('can_search', TRUE)
+ 'can_manage_modules' => $this->input->post('can_manage_modules', TRUE)
);
$user_group = $this->usergroups_model->add_group($insert);
@@ -194,25 +184,15 @@ public function edit($group_id = '')
'group_description' => $this->input->post('group_description', TRUE),
'can_view_site' => $this->input->post('can_view_site', TRUE),
'can_access_admin' => $this->input->post('can_access_admin', TRUE),
- 'can_manage_orders' => $this->input->post('can_manage_orders', TRUE),
- 'can_delete_orders' => $this->input->post('can_delete_orders', TRUE),
- 'can_manage_listings' => $this->input->post('can_manage_listings', TRUE),
- 'can_delete_listings' => $this->input->post('can_delete_listings', TRUE),
- 'can_manage_products' => $this->input->post('can_manage_products', TRUE),
- 'can_manage_coupons' => $this->input->post('can_manage_coupons', TRUE),
+ 'can_manage_articles' => $this->input->post('can_manage_articles', TRUE),
+ 'can_delete_articles' => $this->input->post('can_delete_articles', TRUE),
'can_manage_users' => $this->input->post('can_manage_users', TRUE),
'can_manage_categories' => $this->input->post('can_manage_categories', TRUE),
'can_delete_categories' => $this->input->post('can_delete_categories', TRUE),
- 'can_manage_fields' => $this->input->post('can_manage_fields', TRUE),
'can_manage_settings' => $this->input->post('can_manage_settings', TRUE),
'can_manage_utilities' => $this->input->post('can_manage_utilities', TRUE),
'can_manage_themes' => $this->input->post('can_manage_themes', TRUE),
- 'can_manage_content' => $this->input->post('can_manage_content', TRUE),
- 'can_manage_modules' => $this->input->post('can_manage_modules', TRUE),
- 'can_use_modules' => $this->input->post('can_use_modules', TRUE),
- 'can_place_ads' => $this->input->post('can_place_ads', TRUE),
- 'manually_approve_ads' => $this->input->post('manually_approve_ads', TRUE),
- 'can_search' => $this->input->post('can_search', TRUE),
+ 'can_manage_modules' => $this->input->post('can_manage_modules', TRUE)
);
}
View
85 upload/system/68kb/modules/usergroups/views/admin/add.php
@@ -40,68 +40,27 @@
<?php echo form_radio('can_view_site', 'y', $y); ?> <?php echo lang('lang_yes'); ?>
<?php echo form_radio('can_view_site', 'n', $n); ?> <?php echo lang('lang_no'); ?>
</div>
+
<div class="row2 inline">
- <?php echo form_label(lang('can_place_ads'). ':', 'can_place_ads'); ?>
- <?php $y = $n = FALSE; if ($can_place_ads == 'y') $y = TRUE; else $n = TRUE; ?>
- <?php echo form_radio('can_place_ads', 'y', $y); ?> <?php echo lang('lang_yes'); ?>
- <?php echo form_radio('can_place_ads', 'n', $n); ?> <?php echo lang('lang_no'); ?>
- </div>
- <div class="row1 inline">
- <?php echo form_label(lang('manually_approve_ads'). ':', 'manually_approve_ads'); ?>
- <?php $y = $n = FALSE; if ($manually_approve_ads == 'y') $y = TRUE; else $n = TRUE; ?>
- <?php echo form_radio('manually_approve_ads', 'y', $y); ?> <?php echo lang('lang_yes'); ?>
- <?php echo form_radio('manually_approve_ads', 'n', $n); ?> <?php echo lang('lang_no'); ?>
- </div>
- <div class="row2 inline">
- <?php echo form_label(lang('can_search'). ':', 'can_search'); ?>
- <?php $y = $n = FALSE; if ($can_search == 'y') $y = TRUE; else $n = TRUE; ?>
- <?php echo form_radio('can_search', 'y', $y); ?> <?php echo lang('lang_yes'); ?>
- <?php echo form_radio('can_search', 'n', $n); ?> <?php echo lang('lang_no'); ?>
- </div>
-
- <div class="row1 inline">
<?php echo form_label(lang('can_access_admin'). ':', 'can_access_admin'); ?>
<?php $y = $n = FALSE; if ($can_access_admin == 'y') $y = TRUE; else $n = TRUE; ?>
<?php echo form_radio('can_access_admin', 'y', $y); ?> <?php echo lang('lang_yes'); ?>
<?php echo form_radio('can_access_admin', 'n', $n); ?> <?php echo lang('lang_no'); ?>
</div>
+
<div id="admin_options" <?php if ($can_access_admin == 'n') echo 'style="display: none;"'; ?>>
<fieldset>
<div class="row1 inline">
- <?php echo form_label(lang('can_manage_orders'). ':', 'can_manage_orders'); ?>
- <?php $y = $n = FALSE; if ($can_manage_orders == 'y') $y = TRUE; else $n = TRUE; ?>
- <?php echo form_radio('can_manage_orders', 'y', $y); ?> <?php echo lang('lang_yes'); ?>
- <?php echo form_radio('can_manage_orders', 'n', $n); ?> <?php echo lang('lang_no'); ?>
+ <?php echo form_label(lang('can_manage_articles'). ':', 'can_manage_articles'); ?>
+ <?php $y = $n = FALSE; if ($can_manage_articles == 'y') $y = TRUE; else $n = TRUE; ?>
+ <?php echo form_radio('can_manage_articles', 'y', $y); ?> <?php echo lang('lang_yes'); ?>
+ <?php echo form_radio('can_manage_articles', 'n', $n); ?> <?php echo lang('lang_no'); ?>
</div>
<div class="row2 inline">
- <?php echo form_label(lang('can_delete_orders'). ':', 'can_delete_orders'); ?>
- <?php $y = $n = FALSE; if ($can_delete_orders == 'y') $y = TRUE; else $n = TRUE; ?>
- <?php echo form_radio('can_delete_orders', 'y', $y); ?> <?php echo lang('lang_yes'); ?>
- <?php echo form_radio('can_delete_orders', 'n', $n); ?> <?php echo lang('lang_no'); ?>
- </div>
- <div class="row1 inline">
- <?php echo form_label(lang('can_manage_listings'). ':', 'can_manage_listings'); ?>
- <?php $y = $n = FALSE; if ($can_manage_listings == 'y') $y = TRUE; else $n = TRUE; ?>
- <?php echo form_radio('can_manage_listings', 'y', $y); ?> <?php echo lang('lang_yes'); ?>
- <?php echo form_radio('can_manage_listings', 'n', $n); ?> <?php echo lang('lang_no'); ?>
- </div>
- <div class="row2 inline">
- <?php echo form_label(lang('can_delete_listings'). ':', 'can_delete_listings'); ?>
- <?php $y = $n = FALSE; if ($can_delete_listings == 'y') $y = TRUE; else $n = TRUE; ?>
- <?php echo form_radio('can_delete_listings', 'y', $y); ?> <?php echo lang('lang_yes'); ?>
- <?php echo form_radio('can_delete_listings', 'n', $n); ?> <?php echo lang('lang_no'); ?>
- </div>
- <div class="row1 inline">
- <?php echo form_label(lang('can_manage_products'). ':', 'can_manage_products'); ?>
- <?php $y = $n = FALSE; if ($can_manage_products == 'y') $y = TRUE; else $n = TRUE; ?>
- <?php echo form_radio('can_manage_products', 'y', $y); ?> <?php echo lang('lang_yes'); ?>
- <?php echo form_radio('can_manage_products', 'n', $n); ?> <?php echo lang('lang_no'); ?>
- </div>
- <div class="row2 inline">
- <?php echo form_label(lang('can_manage_coupons'). ':', 'can_manage_coupons'); ?>
- <?php $y = $n = FALSE; if ($can_manage_coupons == 'y') $y = TRUE; else $n = TRUE; ?>
- <?php echo form_radio('can_manage_coupons', 'y', $y); ?> <?php echo lang('lang_yes'); ?>
- <?php echo form_radio('can_manage_coupons', 'n', $n); ?> <?php echo lang('lang_no'); ?>
+ <?php echo form_label(lang('can_delete_articles'). ':', 'can_delete_articles'); ?>
+ <?php $y = $n = FALSE; if ($can_delete_articles == 'y') $y = TRUE; else $n = TRUE; ?>
+ <?php echo form_radio('can_delete_articles', 'y', $y); ?> <?php echo lang('lang_yes'); ?>
+ <?php echo form_radio('can_delete_articles', 'n', $n); ?> <?php echo lang('lang_no'); ?>
</div>
<div class="row1 inline">
<?php echo form_label(lang('can_manage_users'). ':', 'can_manage_users'); ?>
@@ -122,47 +81,29 @@
<?php echo form_radio('can_delete_categories', 'n', $n); ?> <?php echo lang('lang_no'); ?>
</div>
<div class="row2 inline">
- <?php echo form_label(lang('can_manage_fields'). ':', 'can_manage_fields'); ?>
- <?php $y = $n = FALSE; if ($can_manage_fields == 'y') $y = TRUE; else $n = TRUE; ?>
- <?php echo form_radio('can_manage_fields', 'y', $y); ?> <?php echo lang('lang_yes'); ?>
- <?php echo form_radio('can_manage_fields', 'n', $n); ?> <?php echo lang('lang_no'); ?>
- </div>
- <div class="row1 inline">
<?php echo form_label(lang('can_manage_settings'). ':', 'can_manage_settings'); ?>
<?php $y = $n = FALSE; if ($can_manage_settings == 'y') $y = TRUE; else $n = TRUE; ?>
<?php echo form_radio('can_manage_settings', 'y', $y); ?> <?php echo lang('lang_yes'); ?>
<?php echo form_radio('can_manage_settings', 'n', $n); ?> <?php echo lang('lang_no'); ?>
</div>
- <div class="row2 inline">
+ <div class="row1 inline">
<?php echo form_label(lang('can_manage_utilities'). ':', 'can_manage_utilities'); ?>
<?php $y = $n = FALSE; if ($can_manage_utilities == 'y') $y = TRUE; else $n = TRUE; ?>
<?php echo form_radio('can_manage_utilities', 'y', $y); ?> <?php echo lang('lang_yes'); ?>
<?php echo form_radio('can_manage_utilities', 'n', $n); ?> <?php echo lang('lang_no'); ?>
</div>
- <div class="row1 inline">
+ <div class="row2 inline">
<?php echo form_label(lang('can_manage_themes'). ':', 'can_manage_themes'); ?>
<?php $y = $n = FALSE; if ($can_manage_themes == 'y') $y = TRUE; else $n = TRUE; ?>
<?php echo form_radio('can_manage_themes', 'y', $y); ?> <?php echo lang('lang_yes'); ?>
<?php echo form_radio('can_manage_themes', 'n', $n); ?> <?php echo lang('lang_no'); ?>
</div>
- <div class="row2 inline">
- <?php echo form_label(lang('can_manage_content'). ':', 'can_manage_content'); ?>
- <?php $y = $n = FALSE; if ($can_manage_content == 'y') $y = TRUE; else $n = TRUE; ?>
- <?php echo form_radio('can_manage_content', 'y', $y); ?> <?php echo lang('lang_yes'); ?>
- <?php echo form_radio('can_manage_content', 'n', $n); ?> <?php echo lang('lang_no'); ?>
- </div>
- <div class="row2 inline">
+ <div class="row1 inline">
<?php echo form_label(lang('can_manage_modules'). ':', 'can_manage_modules'); ?>
<?php $y = $n = FALSE; if ($can_manage_modules == 'y') $y = TRUE; else $n = TRUE; ?>
<?php echo form_radio('can_manage_modules', 'y', $y); ?> <?php echo lang('lang_yes'); ?>
<?php echo form_radio('can_manage_modules', 'n', $n); ?> <?php echo lang('lang_no'); ?>
</div>
- <div class="row1 inline">
- <?php echo form_label(lang('can_use_modules'). ':', 'can_use_modules'); ?>
- <?php $y = $n = FALSE; if ($can_use_modules == 'y') $y = TRUE; else $n = TRUE; ?>
- <?php echo form_radio('can_use_modules', 'y', $y); ?> <?php echo lang('lang_yes'); ?>
- <?php echo form_radio('can_use_modules', 'n', $n); ?> <?php echo lang('lang_no'); ?>
- </div>
</fieldset>
</div>
View
168 upload/system/68kb/modules/usergroups/views/admin/edit.php
@@ -40,24 +40,6 @@
<?php echo form_radio('can_view_site', 'y', $y); ?> <?php echo lang('lang_yes'); ?>
<?php echo form_radio('can_view_site', 'n', $n); ?> <?php echo lang('lang_no'); ?>
</div>
- <div class="row2 inline">
- <?php echo form_label(lang('can_place_ads'). ':', 'can_place_ads'); ?>
- <?php $y = $n = FALSE; if ($can_place_ads == 'y') $y = TRUE; else $n = TRUE; ?>
- <?php echo form_radio('can_place_ads', 'y', $y); ?> <?php echo lang('lang_yes'); ?>
- <?php echo form_radio('can_place_ads', 'n', $n); ?> <?php echo lang('lang_no'); ?>
- </div>
- <div class="row1 inline">
- <?php echo form_label(lang('manually_approve_ads'). ':', 'manually_approve_ads'); ?>
- <?php $y = $n = FALSE; if ($manually_approve_ads == 'y') $y = TRUE; else $n = TRUE; ?>
- <?php echo form_radio('manually_approve_ads', 'y', $y); ?> <?php echo lang('lang_yes'); ?>
- <?php echo form_radio('manually_approve_ads', 'n', $n); ?> <?php echo lang('lang_no'); ?>
- </div>
- <div class="row2 inline">
- <?php echo form_label(lang('can_search'). ':', 'can_search'); ?>
- <?php $y = $n = FALSE; if ($can_search == 'y') $y = TRUE; else $n = TRUE; ?>
- <?php echo form_radio('can_search', 'y', $y); ?> <?php echo lang('lang_yes'); ?>
- <?php echo form_radio('can_search', 'n', $n); ?> <?php echo lang('lang_no'); ?>
- </div>
<div class="row1 inline">
<?php echo form_label(lang('can_access_admin'). ':', 'can_access_admin'); ?>
@@ -67,102 +49,60 @@
</div>
<div id="admin_options" <?php if ($can_access_admin == 'n') echo 'style="display: none;"'; ?>>
<fieldset>
- <div class="row1 inline">
- <?php echo form_label(lang('can_manage_orders'). ':', 'can_manage_orders'); ?>
- <?php $y = $n = FALSE; if ($can_manage_orders == 'y') $y = TRUE; else $n = TRUE; ?>
- <?php echo form_radio('can_manage_orders', 'y', $y); ?> <?php echo lang('lang_yes'); ?>
- <?php echo form_radio('can_manage_orders', 'n', $n); ?> <?php echo lang('lang_no'); ?>
- </div>
- <div class="row2 inline">
- <?php echo form_label(lang('can_delete_orders'). ':', 'can_delete_orders'); ?>
- <?php $y = $n = FALSE; if ($can_delete_orders == 'y') $y = TRUE; else $n = TRUE; ?>
- <?php echo form_radio('can_delete_orders', 'y', $y); ?> <?php echo lang('lang_yes'); ?>
- <?php echo form_radio('can_delete_orders', 'n', $n); ?> <?php echo lang('lang_no'); ?>
- </div>
- <div class="row1 inline">
- <?php echo form_label(lang('can_manage_listings'). ':', 'can_manage_listings'); ?>
- <?php $y = $n = FALSE; if ($can_manage_listings == 'y') $y = TRUE; else $n = TRUE; ?>
- <?php echo form_radio('can_manage_listings', 'y', $y); ?> <?php echo lang('lang_yes'); ?>
- <?php echo form_radio('can_manage_listings', 'n', $n); ?> <?php echo lang('lang_no'); ?>
- </div>
- <div class="row2 inline">
- <?php echo form_label(lang('can_delete_listings'). ':', 'can_delete_listings'); ?>
- <?php $y = $n = FALSE; if ($can_delete_listings == 'y') $y = TRUE; else $n = TRUE; ?>
- <?php echo form_radio('can_delete_listings', 'y', $y); ?> <?php echo lang('lang_yes'); ?>
- <?php echo form_radio('can_delete_listings', 'n', $n); ?> <?php echo lang('lang_no'); ?>
- </div>
- <div class="row1 inline">
- <?php echo form_label(lang('can_manage_products'). ':', 'can_manage_products'); ?>
- <?php $y = $n = FALSE; if ($can_manage_products == 'y') $y = TRUE; else $n = TRUE; ?>
- <?php echo form_radio('can_manage_products', 'y', $y); ?> <?php echo lang('lang_yes'); ?>
- <?php echo form_radio('can_manage_products', 'n', $n); ?> <?php echo lang('lang_no'); ?>
- </div>
- <div class="row2 inline">
- <?php echo form_label(lang('can_manage_coupons'). ':', 'can_manage_coupons'); ?>
- <?php $y = $n = FALSE; if ($can_manage_coupons == 'y') $y = TRUE; else $n = TRUE; ?>
- <?php echo form_radio('can_manage_coupons', 'y', $y); ?> <?php echo lang('lang_yes'); ?>
- <?php echo form_radio('can_manage_coupons', 'n', $n); ?> <?php echo lang('lang_no'); ?>
- </div>
- <div class="row1 inline">
- <?php echo form_label(lang('can_manage_users'). ':', 'can_manage_users'); ?>
- <?php $y = $n = FALSE; if ($can_manage_users == 'y') $y = TRUE; else $n = TRUE; ?>
- <?php echo form_radio('can_manage_users', 'y', $y); ?> <?php echo lang('lang_yes'); ?>
- <?php echo form_radio('can_manage_users', 'n', $n); ?> <?php echo lang('lang_no'); ?>
- </div>
- <div class="row2 inline">
- <?php echo form_label(lang('can_manage_categories'). ':', 'can_manage_categories'); ?>
- <?php $y = $n = FALSE; if ($can_manage_categories == 'y') $y = TRUE; else $n = TRUE; ?>
- <?php echo form_radio('can_manage_categories', 'y', $y); ?> <?php echo lang('lang_yes'); ?>
- <?php echo form_radio('can_manage_categories', 'n', $n); ?> <?php echo lang('lang_no'); ?>
- </div>
- <div class="row1 inline">
- <?php echo form_label(lang('can_delete_categories'). ':', 'can_delete_categories'); ?>
- <?php $y = $n = FALSE; if ($can_delete_categories == 'y') $y = TRUE; else $n = TRUE; ?>
- <?php echo form_radio('can_delete_categories', 'y', $y); ?> <?php echo lang('lang_yes'); ?>
- <?php echo form_radio('can_delete_categories', 'n', $n); ?> <?php echo lang('lang_no'); ?>
- </div>
- <div class="row2 inline">
- <?php echo form_label(lang('can_manage_fields'). ':', 'can_manage_fields'); ?>
- <?php $y = $n = FALSE; if ($can_manage_fields == 'y') $y = TRUE; else $n = TRUE; ?>
- <?php echo form_radio('can_manage_fields', 'y', $y); ?> <?php echo lang('lang_yes'); ?>
- <?php echo form_radio('can_manage_fields', 'n', $n); ?> <?php echo lang('lang_no'); ?>
- </div>
- <div class="row1 inline">
- <?php echo form_label(lang('can_manage_settings'). ':', 'can_manage_settings'); ?>
- <?php $y = $n = FALSE; if ($can_manage_settings == 'y') $y = TRUE; else $n = TRUE; ?>
- <?php echo form_radio('can_manage_settings', 'y', $y); ?> <?php echo lang('lang_yes'); ?>
- <?php echo form_radio('can_manage_settings', 'n', $n); ?> <?php echo lang('lang_no'); ?>
- </div>
- <div class="row2 inline">
- <?php echo form_label(lang('can_manage_utilities'). ':', 'can_manage_utilities'); ?>
- <?php $y = $n = FALSE; if ($can_manage_utilities == 'y') $y = TRUE; else $n = TRUE; ?>
- <?php echo form_radio('can_manage_utilities', 'y', $y); ?> <?php echo lang('lang_yes'); ?>
- <?php echo form_radio('can_manage_utilities', 'n', $n); ?> <?php echo lang('lang_no'); ?>
- </div>
- <div class="row1 inline">
- <?php echo form_label(lang('can_manage_themes'). ':', 'can_manage_themes'); ?>
- <?php $y = $n = FALSE; if ($can_manage_themes == 'y') $y = TRUE; else $n = TRUE; ?>
- <?php echo form_radio('can_manage_themes', 'y', $y); ?> <?php echo lang('lang_yes'); ?>
- <?php echo form_radio('can_manage_themes', 'n', $n); ?> <?php echo lang('lang_no'); ?>
- </div>
- <div class="row2 inline">
- <?php echo form_label(lang('can_manage_content'). ':', 'can_manage_content'); ?>
- <?php $y = $n = FALSE; if ($can_manage_content == 'y') $y = TRUE; else $n = TRUE; ?>
- <?php echo form_radio('can_manage_content', 'y', $y); ?> <?php echo lang('lang_yes'); ?>
- <?php echo form_radio('can_manage_content', 'n', $n); ?> <?php echo lang('lang_no'); ?>
- </div>
- <div class="row2 inline">
- <?php echo form_label(lang('can_manage_modules'). ':', 'can_manage_modules'); ?>
- <?php $y = $n = FALSE; if ($can_manage_modules == 'y') $y = TRUE; else $n = TRUE; ?>
- <?php echo form_radio('can_manage_modules', 'y', $y); ?> <?php echo lang('lang_yes'); ?>
- <?php echo form_radio('can_manage_modules', 'n', $n); ?> <?php echo lang('lang_no'); ?>
- </div>
- <div class="row1 inline">
- <?php echo form_label(lang('can_use_modules'). ':', 'can_use_modules'); ?>
- <?php $y = $n = FALSE; if ($can_use_modules == 'y') $y = TRUE; else $n = TRUE; ?>
- <?php echo form_radio('can_use_modules', 'y', $y); ?> <?php echo lang('lang_yes'); ?>
- <?php echo form_radio('can_use_modules', 'n', $n); ?> <?php echo lang('lang_no'); ?>
- </div>
+ <div class="row1 inline">
+ <?php echo form_label(lang('can_manage_articles'). ':', 'can_manage_articles'); ?>
+ <?php $y = $n = FALSE; if ($can_manage_articles == 'y') $y = TRUE; else $n = TRUE; ?>
+ <?php echo form_radio('can_manage_articles', 'y', $y); ?> <?php echo lang('lang_yes'); ?>
+ <?php echo form_radio('can_manage_articles', 'n', $n); ?> <?php echo lang('lang_no'); ?>
+ </div>
+ <div class="row2 inline">
+ <?php echo form_label(lang('can_delete_articles'). ':', 'can_delete_articles'); ?>
+ <?php $y = $n = FALSE; if ($can_delete_articles == 'y') $y = TRUE; else $n = TRUE; ?>
+ <?php echo form_radio('can_delete_articles', 'y', $y); ?> <?php echo lang('lang_yes'); ?>
+ <?php echo form_radio('can_delete_articles', 'n', $n); ?> <?php echo lang('lang_no'); ?>
+ </div>
+ <div class="row1 inline">
+ <?php echo form_label(lang('can_manage_users'). ':', 'can_manage_users'); ?>
+ <?php $y = $n = FALSE; if ($can_manage_users == 'y') $y = TRUE; else $n = TRUE; ?>
+ <?php echo form_radio('can_manage_users', 'y', $y); ?> <?php echo lang('lang_yes'); ?>
+ <?php echo form_radio('can_manage_users', 'n', $n); ?> <?php echo lang('lang_no'); ?>
+ </div>
+ <div class="row2 inline">
+ <?php echo form_label(lang('can_manage_categories'). ':', 'can_manage_categories'); ?>
+ <?php $y = $n = FALSE; if ($can_manage_categories == 'y') $y = TRUE; else $n = TRUE; ?>
+ <?php echo form_radio('can_manage_categories', 'y', $y); ?> <?php echo lang('lang_yes'); ?>
+ <?php echo form_radio('can_manage_categories', 'n', $n); ?> <?php echo lang('lang_no'); ?>
+ </div>
+ <div class="row1 inline">
+ <?php echo form_label(lang('can_delete_categories'). ':', 'can_delete_categories'); ?>
+ <?php $y = $n = FALSE; if ($can_delete_categories == 'y') $y = TRUE; else $n = TRUE; ?>
+ <?php echo form_radio('can_delete_categories', 'y', $y); ?> <?php echo lang('lang_yes'); ?>
+ <?php echo form_radio('can_delete_categories', 'n', $n); ?> <?php echo lang('lang_no'); ?>
+ </div>
+ <div class="row2 inline">
+ <?php echo form_label(lang('can_manage_settings'). ':', 'can_manage_settings'); ?>
+ <?php $y = $n = FALSE; if ($can_manage_settings == 'y') $y = TRUE; else $n = TRUE; ?>
+ <?php echo form_radio('can_manage_settings', 'y', $y); ?> <?php echo lang('lang_yes'); ?>
+ <?php echo form_radio('can_manage_settings', 'n', $n); ?> <?php echo lang('lang_no'); ?>
+ </div>
+ <div class="row1 inline">
+ <?php echo form_label(lang('can_manage_utilities'). ':', 'can_manage_utilities'); ?>
+ <?php $y = $n = FALSE; if ($can_manage_utilities == 'y') $y = TRUE; else $n = TRUE; ?>
+ <?php echo form_radio('can_manage_utilities', 'y', $y); ?> <?php echo lang('lang_yes'); ?>
+ <?php echo form_radio('can_manage_utilities', 'n', $n); ?> <?php echo lang('lang_no'); ?>
+ </div>
+ <div class="row2 inline">
+ <?php echo form_label(lang('can_manage_themes'). ':', 'can_manage_themes'); ?>
+ <?php $y = $n = FALSE; if ($can_manage_themes == 'y') $y = TRUE; else $n = TRUE; ?>
+ <?php echo form_radio('can_manage_themes', 'y', $y); ?> <?php echo lang('lang_yes'); ?>
+ <?php echo form_radio('can_manage_themes', 'n', $n); ?> <?php echo lang('lang_no'); ?>
+ </div>
+ <div class="row1 inline">
+ <?php echo form_label(lang('can_manage_modules'). ':', 'can_manage_modules'); ?>
+ <?php $y = $n = FALSE; if ($can_manage_modules == 'y') $y = TRUE; else $n = TRUE; ?>
+ <?php echo form_radio('can_manage_modules', 'y', $y); ?> <?php echo lang('lang_yes'); ?>
+ <?php echo form_radio('can_manage_modules', 'n', $n); ?> <?php echo lang('lang_no'); ?>
+ </div>
</fieldset>
</div>
View
5 upload/themes/cp/css/style.css
@@ -471,6 +471,11 @@ input.inputtext {
padding: 5px
}
+textarea.shortdesc {
+ width: 95%;
+ padding: 2px 5px;
+ height: 100px;
+}
textarea.inputtext {
width: 95%;
padding: 2px 5px

0 comments on commit cf8554d

Please sign in to comment.