Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dev: Refactor the 'quotas' admin controller in the LimeSurvey Yii por…
…t (GCI2011 By Guatam Gupta) git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey_yii@11719 b72ed6b6-b9f8-46b5-92b4-906544132732
- Loading branch information
Pieter Jan Speelmans
committed
Dec 21, 2011
1 parent
23c1955
commit 7c7b959
Showing
11 changed files
with
654 additions
and
652 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,44 @@ | ||
<form action="<?php echo $this->createUrl("admin/quotas/surveyid/$surveyid/subaction/modifyquota");?>" method="post"> | ||
<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#F8F8FF"> | ||
<tr> | ||
<td valign="top"> | ||
<table width="100%" border="0"> | ||
<tbody> | ||
<tr> | ||
<td colspan="2" class="header ui-widget-header"><?php echo $clang->gT("Edit quota");?></td> | ||
</tr> | ||
<tr class="evenrow"> | ||
<td align="right"><blockquote> | ||
<p><strong><?php echo $clang->gT("Quota name");?>:</strong></p> | ||
</blockquote></td> | ||
<td align="left"> <input name="quota_name" type="text" size="30" maxlength="255" value="<?php echo $quotainfo['name'];?>" /></td> | ||
</tr> | ||
<tr class="evenrow"> | ||
<td align="right"><blockquote> | ||
<p><strong><?php echo $clang->gT("Quota limit");?>:</strong></p> | ||
</blockquote></td> | ||
<td align="left"><input name="quota_limit" type="text" size="12" maxlength="8" value="<?php echo $quotainfo['qlimit'];?>" /></td> | ||
</tr> | ||
<tr class="evenrow"> | ||
<td align="right"><blockquote> | ||
<p><strong><?php echo $clang->gT("Quota action");?>:</strong></p> | ||
</blockquote></td> | ||
<td align="left"> <select name="quota_action"> | ||
<option value ="1" '<?php if($quotainfo['action'] == 1) echo "selected"; ?>'><?php echo $clang->gT("Terminate survey");?></option> | ||
<option value ="2" '<?php if($quotainfo['action'] == 2) echo "selected"; ?>'><?php echo $clang->gT("Terminate survey with warning");?></option> | ||
</select></td> | ||
</tr> | ||
<tr class="evenrow"> | ||
<td align="right"><blockquote> | ||
<p><strong><?php echo $clang->gT("Autoload URL");?>:</strong></p> | ||
</blockquote></td> | ||
<td align="left"><input name="autoload_url" type="checkbox" value="1"<?php if($quotainfo['autoload_url'] == "1") {echo " checked";}?> /></td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</td> | ||
</tr> | ||
</table> | ||
<form action="<?php echo $this->createUrl("admin/quotas/surveyid/$iSurveyId/subaction/modifyquota");?>" method="post"> | ||
<div class="ui-tabs ui-widget ui-widget-content ui-corner-all"> | ||
<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#F8F8FF"> | ||
<tr> | ||
<td valign="top"> | ||
<table width="100%" border="0"> | ||
<tbody> | ||
<tr> | ||
<td colspan="2" class="header ui-widget-header"><?php echo $clang->gT("Edit quota");?></td> | ||
</tr> | ||
<tr class="evenrow"> | ||
<td align="right"><blockquote> | ||
<p><strong><?php echo $clang->gT("Quota name");?>:</strong></p> | ||
</blockquote></td> | ||
<td align="left"> <input name="quota_name" type="text" size="30" maxlength="255" value="<?php echo $quotainfo['name'];?>" /></td> | ||
</tr> | ||
<tr class="evenrow"> | ||
<td align="right"><blockquote> | ||
<p><strong><?php echo $clang->gT("Quota limit");?>:</strong></p> | ||
</blockquote></td> | ||
<td align="left"><input name="quota_limit" type="text" size="12" maxlength="8" value="<?php echo $quotainfo['qlimit'];?>" /></td> | ||
</tr> | ||
<tr class="evenrow"> | ||
<td align="right"><blockquote> | ||
<p><strong><?php echo $clang->gT("Quota action");?>:</strong></p> | ||
</blockquote></td> | ||
<td align="left"> <select name="quota_action"> | ||
<option value ="1" '<?php if($quotainfo['action'] == 1) echo "selected"; ?>'><?php echo $clang->gT("Terminate survey");?></option> | ||
<option value ="2" '<?php if($quotainfo['action'] == 2) echo "selected"; ?>'><?php echo $clang->gT("Terminate survey with warning");?></option> | ||
</select></td> | ||
</tr> | ||
<tr class="evenrow"> | ||
<td align="right"><blockquote> | ||
<p><strong><?php echo $clang->gT("Autoload URL");?>:</strong></p> | ||
</blockquote></td> | ||
<td align="left"><input name="autoload_url" type="checkbox" value="1"<?php if($quotainfo['autoload_url'] == "1") {echo " checked";}?> /></td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</td> | ||
</tr> | ||
</table> | ||
</div> | ||
<div id="tabs"> |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<div class="header"><?php echo $clang->gT("Add Answer");?>: <?php echo $clang->gT("Question Selection");?></div><br /> | ||
<div class="messagebox"> | ||
<?php echo $clang->gT("Sorry there are no supported question types in this survey.");?> | ||
<br/><br/><input type="submit" onclick="window.open('<?php echo site_url("admin/quotas/$surveyid");?>', '_top')" value="<?php echo $clang->gT("Continue");?>"/> | ||
<br/><br/><input type="submit" onclick="window.open('<?php echo site_url("admin/quotas/$iSurveyId");?>', '_top')" value="<?php echo $clang->gT("Continue");?>"/> | ||
</div> |
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