-
Notifications
You must be signed in to change notification settings - Fork 986
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Complete user group controller with all actions completed.
git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey_ci@10478 b72ed6b6-b9f8-46b5-92b4-906544132732
- Loading branch information
1 parent
fa85e35
commit 5d836a1
Showing
10 changed files
with
810 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<div class='header ui-widget-header'><?php echo $clang->gT("Add User Group"); ?></div> | ||
<form action='<?php echo site_url("admin/usergroups/add"); ?>' id='usergroupform' class='form30' method='post'> | ||
<ul> | ||
<li><label for='group_name'><?php echo $clang->gT("Name:"); ?></label> | ||
<input type='text' size='50' id='group_name' name='group_name' /> | ||
<font color='red' face='verdana' size='1'> <?php echo $clang->gT("Required"); ?></font></li> | ||
<li><label for='group_description'><?php echo $clang->gT("Description:"); ?></label> | ||
<textarea cols='50' rows='4' id='group_description' name='group_description'></textarea></li> | ||
</ul><p><input type='submit' value='<?php echo $clang->gT("Add Group"); ?>' /> | ||
<input type='hidden' name='action' value='usergroupindb' /> | ||
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<div class='header ui-widget-header'><?php echo sprintf($clang->gT("Editing user group (Owner: %s)"),$this->session->userdata('user')); ?></div> | ||
<form action='<?php echo site_url("admin/usergroups/edit/".$ugid); ?>' id='usergroupform' class='form30' name='usergroupform' method='post'> | ||
<ul> | ||
<li><label for='name'><?php echo $clang->gT("Name:"); ?></label> | ||
<input type='text' size='50' maxlength='20' id='name' name='name' value="<?php echo $esrow['name']; ?>" /></li> | ||
<li><label for='description'><?php echo $clang->gT("Description:"); ?></label> | ||
<textarea cols='50' rows='4' id='description' name='description'><?php echo $esrow['description']; ?></textarea></li> | ||
<ul><p><input type='submit' value='<?php echo $clang->gT("Update User Group"); ?>' /> | ||
<input type='hidden' name='action' value='editusergroupindb' /> | ||
<input type='hidden' name='owner_id' value='<?php echo $this->session->userdata('loginID'); ?>' /> | ||
<input type='hidden' name='ugid' value='<?php echo $ugid; ?>' /> | ||
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<div class='header ui-widget-header'><?php echo $clang->gT("Mail to all Members"); ?></div> | ||
<form action='<?php echo site_url("admin/usergroups/mail/".$ugid); ?>' class='form30' id='usergroupform' name='usergroupform' method='post'><ul> | ||
<li><label for='copymail'><?php echo $clang->gT("Send me a copy:"); ?></label> | ||
<input id='copymail' name='copymail' type='checkbox' class='checkboxbtn' value='1' /></li> | ||
<li><label for='subject'><?php echo $clang->gT("Subject:"); ?></label> | ||
<input type='text' id='subject' size='50' name='subject' value='' /></li> | ||
<li><label for='body'><?php echo $clang->gT("Message:"); ?></label> | ||
<textarea cols='50' rows='4' id='body' name='body'></textarea></li> | ||
</ul><p><input type='submit' value='<?php echo $clang->gT("Send"); ?>' /> | ||
<input type='reset' value='<?php echo $clang->gT("Reset"); ?>' /><br /> | ||
<input type='hidden' name='action' value='mailsendusergroup' /> | ||
<input type='hidden' name='ugid' value='<?php echo $ugid; ?>' /> | ||
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
<div class='menubar'> | ||
<div class='menubar-title ui-widget-header'> | ||
<strong><?php echo $clang->gT("User Group"); ?></strong> | ||
<?php if($ugid && $grpresultcount > 0) | ||
{ | ||
echo "{$grow['name']}"; | ||
} ?> | ||
|
||
|
||
</div> | ||
<div class='menubar-main'> | ||
<div class='menubar-left'> | ||
<img src='<?php echo $this->config->item('imageurl'); ?>/blank.gif' alt='' width='55' height='20' /> | ||
<img src='<?php echo $this->config->item('imageurl'); ?>/seperator.gif' alt='' /> | ||
|
||
<?php if($ugid && $grpresultcount > 0) | ||
{ ?> | ||
<a href="#" onclick="window.location='<?php echo site_url("admin/usergroups/mail/".$ugid); ?>'" | ||
title='<?php echo $clang->gTview("Mail to all Members"); ?>'> | ||
<img src='<?php echo $this->config->item('imageurl'); ?>/invite.png' alt='<?php echo $clang->gT("Mail to all Members"); ?>' name='MailUserGroup' /></a> | ||
<?php } | ||
else | ||
{ ?> | ||
<img src='<?php echo $this->config->item('imageurl'); ?>/blank.gif' alt='' width='40' height='20' /> | ||
<?php } ?> | ||
<img src='<?php echo $this->config->item('imageurl'); ?>/blank.gif' alt='' width='78' height='20' /> | ||
<img src='<?php echo $this->config->item('imageurl'); ?>/seperator.gif' alt='' /> | ||
|
||
<?php if($ugid && $grpresultcount > 0 && | ||
$this->session->userdata('loginID') == $grow['owner_id']) | ||
{ ?> | ||
<a href="#" onclick="window.location='<?php echo site_url("admin/usergroups/edit/".$ugid); ?>'" | ||
title='<?php echo $clang->gTview("Edit Current User Group"); ?>'> | ||
<img src='<?php echo $this->config->item('imageurl'); ?>/edit.png' alt='<?php echo $clang->gT("Edit Current User Group"); ?>' name='EditUserGroup' /></a> | ||
<?php } | ||
else | ||
{ ?> | ||
<img src='<?php echo $this->config->item('imageurl'); ?>/blank.gif' alt='' width='40' height='20' /> | ||
<?php } | ||
|
||
if($ugid && $grpresultcount > 0 && | ||
$this->session->userdata('loginID') == $grow['owner_id']) | ||
{ ?> | ||
|
||
<a href='#' onclick="if (confirm('<?php echo $clang->gT("Are you sure you want to delete this entry?","js"); ?>')) {<?php echo get2post(site_url('admin/usergroups/delete')."?action=delusergroup&ugid=$ugid"); ?>}" | ||
title='<?php echo $clang->gTview("Delete Current User Group"); ?>'> | ||
<img src='<?php echo $this->config->item('imageurl'); ?>/delete.png' alt='<?php echo $clang->gT("Delete Current User Group"); ?>' name='DeleteUserGroup' /></a> | ||
<?php } | ||
else | ||
{ ?> | ||
<img src='<?php echo $this->config->item('imageurl'); ?>/blank.gif' alt='' width='40' height='20' /> | ||
<?php } ?> | ||
<img src='<?php echo $this->config->item('imageurl'); ?>/blank.gif' alt='' width='92' height='20' /> | ||
<img src='<?php echo $this->config->item('imageurl'); ?>/seperator.gif' alt='' /> | ||
</div> | ||
<div class='menubar-right'> | ||
<font class="boxcaption"><?php echo $clang->gT("User Groups"); ?>:</font> <select name='ugid' | ||
onchange="window.location=this.options[this.selectedIndex].value"> | ||
<?php echo getusergrouplist($ugid,'optionlist'); ?> | ||
</select> | ||
<?php if ($this->session->userdata('USER_RIGHT_SUPERADMIN') == 1) | ||
{ ?> | ||
<a href='<?php echo site_url("admin/usergroups/add"); ?>' | ||
title='<?php echo $clang->gTview("Add New User Group"); ?>'> | ||
<img src='<?php echo $this->config->item('imageurl'); ?>/add.png' alt='<?php echo $clang->gT("Add New User Group"); ?>' | ||
name='AddNewUserGroup' onclick="window.location=''" /></a> | ||
<?php } ?> | ||
<img src='<?php echo $this->config->item('imageurl'); ?>/seperator.gif' alt='' /> | ||
<img src='<?php echo $this->config->item('imageurl'); ?>/blank.gif' alt='' width='82' height='20' /> | ||
</div></div> | ||
</div> | ||
<p style='margin:0;font-size:1px;line-height:1px;height:1px;'> </p> |