Skip to content

Commit

Permalink
Fix assessments and _renderHeaderAndMenu method not found error in su…
Browse files Browse the repository at this point in the history
…rveypermission.

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey_yii@11871 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
GautamGupta committed Jan 4, 2012
1 parent 1bb7d9f commit 3c562b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
3 changes: 0 additions & 3 deletions application/controllers/admin/surveypermission.php
Expand Up @@ -208,8 +208,6 @@ function addusergroup($surveyid)
$aViewUrls = array();

$action = $_POST['action'];

$this->_renderHeaderAndMenu($surveyid);
$clang = Yii::app()->lang;

$imageurl = Yii::app()->getConfig('imageurl');
Expand Down Expand Up @@ -362,7 +360,6 @@ function set($surveyid)

$action = $_POST['action'];

$this->_renderHeaderAndMenu($surveyid);
$clang = Yii::app()->lang;
$imageurl = Yii::app()->getConfig('imageurl');
$postuserid = !empty($_POST['uid']) ? $_POST['uid'] : null;
Expand Down
6 changes: 3 additions & 3 deletions application/views/admin/assessments_view.php
Expand Up @@ -38,15 +38,15 @@
<td><?php echo $assess['id'];?></td>
<td>
<?php if (bHasSurveyPermission($surveyid, 'assessments','update')) { ?>
<form method='post' action='<?php echo $this->createUrl("admin/assessments/surveyid/$surveyid");?>'>
<form method='post' action='<?php echo $this->createUrl("admin/assessments/index/surveyid/$surveyid");?>'>
<input type='image' src='<?php echo $imageurl;?>/token_edit.png' alt='<?php $clang->eT("Edit");?>' />
<input type='hidden' name='action' value='assessmentedit' />
<input type='hidden' name='id' value="<?php echo $assess['id'];?>" />
</form>
<?php } ?>

<?php if (bHasSurveyPermission($surveyid, 'assessments','delete')) { ?>
<form method='post' action='<?php echo $this->createUrl("admin/assessments/surveyid/$surveyid");?>'>
<form method='post' action='<?php echo $this->createUrl("admin/assessments/index/surveyid/$surveyid");?>'>
<input type='image' src='<?php echo $imageurl;?>/token_delete.png' alt='<?php $clang->eT("Delete");?>' onclick='return confirm("<?php $clang->eT("Are you sure you want to delete this entry?","js");?>")' />
<input type='hidden' name='action' value='assessmentdelete' />
<input type='hidden' name='id' value='<?php echo $assess['id'];?>' />
Expand All @@ -72,7 +72,7 @@
</tbody></table>

<?php if ((bHasSurveyPermission($surveyid, 'assessments','update') && $actionvalue=="assessmentupdate") || (bHasSurveyPermission($surveyid, 'assessments','create')&& $actionvalue=="assessmentadd")) { ?>
<br /><form method='post' class='form30' id='assessmentsform' name='assessmentsform' action='<?php echo $this->createUrl("admin/assessments/surveyid/$surveyid");?>'>
<br /><form method='post' class='form30' id='assessmentsform' name='assessmentsform' action='<?php echo $this->createUrl("admin/assessments/index/surveyid/$surveyid");?>'>
<div class='header ui-widget-header'><?php echo $actiontitle;?></div>
<ul><li><label><?php $clang->eT("Scope");?></label>
<input type='radio' id='radiototal' name='scope' value='T' <?php
Expand Down

0 comments on commit 3c562b2

Please sign in to comment.