-
Notifications
You must be signed in to change notification settings - Fork 993
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dev: some cleaning, removed unused files, etc.
- Loading branch information
louis
committed
Oct 2, 2015
1 parent
a9ab432
commit 4be43c0
Showing
13 changed files
with
207 additions
and
207 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
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,33 +1,33 @@ | ||
<div class='messagebox'> | ||
<div class='header <?php echo $class;?>'> | ||
<?php echo $title;?> | ||
</div> | ||
<dl> | ||
<?php if(isset($aResult['success']) && is_array($aResult['success'])) {?> | ||
<dt class='success'><?php eT("Success"); ?></dt> | ||
<?php foreach($aResult['success'] as $sSucces) { ?> | ||
<dd><?php echo $sSucces ?></dd> | ||
<?php }?> | ||
<?php } ?> | ||
<?php if(isset($aResult['errors']) && is_array($aResult['errors'])) {?> | ||
<dt class='error'><?php eT("Error"); ?></dt> | ||
<?php foreach($aResult['errors'] as $sError) { ?> | ||
<dd><?php echo $sError ?></dd> | ||
<?php }?> | ||
<?php } ?> | ||
<?php if(isset($aResult['warnings']) && is_array($aResult['warnings'])) {?> | ||
<dt class='warning'><?php eT("Warning"); ?></dt> | ||
<?php foreach($aResult['warnings'] as $sWarning) { ?> | ||
<dd><?php echo $sWarning ?></dd> | ||
<?php }?> | ||
<?php } ?> | ||
</dl> | ||
<?php //echo $message;?> | ||
<?php if(isset($aUrls) && count($aUrls)) {?> | ||
<?php foreach($aUrls as $url){ ?> | ||
<a class='limebutton submit' href='<?php echo $url['link'] ?>'><?php echo $url['text'] ?></a> | ||
<?php } ?> | ||
<?php }else{ ?> | ||
<a class='limebutton submit' href='<?php echo $this->createUrl("admin/responses/sa/browse/surveyid/$iSurveyId"); ?>'><?php eT("Browse responses") ?></a> | ||
<?php } ?> | ||
<div class='header <?php echo $class;?>'> | ||
<?php echo $title;?> | ||
</div> | ||
<dl> | ||
<?php if(isset($aResult['success']) && is_array($aResult['success'])) {?> | ||
<dt class='success'><?php eT("Success"); ?></dt> | ||
<?php foreach($aResult['success'] as $sSucces) { ?> | ||
<dd><?php echo $sSucces ?></dd> | ||
<?php }?> | ||
<?php } ?> | ||
<?php if(isset($aResult['errors']) && is_array($aResult['errors'])) {?> | ||
<dt class='error'><?php eT("Error"); ?></dt> | ||
<?php foreach($aResult['errors'] as $sError) { ?> | ||
<dd><?php echo $sError ?></dd> | ||
<?php }?> | ||
<?php } ?> | ||
<?php if(isset($aResult['warnings']) && is_array($aResult['warnings'])) {?> | ||
<dt class='warning'><?php eT("Warning"); ?></dt> | ||
<?php foreach($aResult['warnings'] as $sWarning) { ?> | ||
<dd><?php echo $sWarning ?></dd> | ||
<?php }?> | ||
<?php } ?> | ||
</dl> | ||
<?php //echo $message;?> | ||
<?php if(isset($aUrls) && count($aUrls)) {?> | ||
<?php foreach($aUrls as $url){ ?> | ||
<a class='limebutton submit' href='<?php echo $url['link'] ?>'><?php echo $url['text'] ?></a> | ||
<?php } ?> | ||
<?php }else{ ?> | ||
<a class='limebutton submit' href='<?php echo $this->createUrl("admin/responses/sa/browse/surveyid/$iSurveyId"); ?>'><?php eT("Browse responses") ?></a> | ||
<?php } ?> | ||
</div> |
Empty file.
Empty file.
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 |
---|---|---|
@@ -1,35 +1,35 @@ | ||
<div class="side-body col-lg-8"> | ||
<div class="row"> | ||
<div class="col-lg-12 content-right"> | ||
<h3> | ||
<?php eT("Survey quota");?>: <?php eT("Add answer");?> | ||
</h3> | ||
<div class="row"> | ||
<div class="col-lg-12 content-right"> | ||
<h3> | ||
<?php eT("Survey quota");?>: <?php eT("Add answer");?> | ||
</h3> | ||
|
||
|
||
<div class="jumbotron message-box"> | ||
<h2><?php echo sprintf(gT("New answer for quota '%s'"), $quota_name);?></h2> | ||
<p class="lead"> | ||
<?php eT("Select question");?>: | ||
</p> | ||
<?php echo CHtml::form(array("admin/quotas/sa/new_answer/surveyid/{$iSurveyId}/subaction/new_answer_two"), 'post'); ?> | ||
<p> | ||
<select name="quota_qid" size="15"> | ||
<?php foreach ($newanswer_result as $questionlisting) { ?> | ||
<option value="<?php echo $questionlisting['qid'];?>"> | ||
<?php echo $questionlisting['title'];?>: <?php echo strip_tags(substr($questionlisting['question'],0,40));?> | ||
</option> | ||
<?php } ?> | ||
</select> | ||
<input type="hidden" name="sid" value="'.$iSurveyId.'" /> | ||
<input type="hidden" name="action" value="quotas" /> | ||
<input type="hidden" name="subaction" value="new_answer_two" /> | ||
<input type="hidden" name="quota_id" value="<?php echo sanitize_int($_POST['quota_id']);?>" /> | ||
</p> | ||
<p> | ||
<input name="submit" type="submit" class="submit btn btn-default" value="<?php eT("Next");?>" /> | ||
</p> | ||
</form> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="jumbotron message-box"> | ||
<h2><?php echo sprintf(gT("New answer for quota '%s'"), $quota_name);?></h2> | ||
<p class="lead"> | ||
<?php eT("Select question");?>: | ||
</p> | ||
<?php echo CHtml::form(array("admin/quotas/sa/new_answer/surveyid/{$iSurveyId}/subaction/new_answer_two"), 'post'); ?> | ||
<p> | ||
<select name="quota_qid" size="15"> | ||
<?php foreach ($newanswer_result as $questionlisting) { ?> | ||
<option value="<?php echo $questionlisting['qid'];?>"> | ||
<?php echo $questionlisting['title'];?>: <?php echo strip_tags(substr($questionlisting['question'],0,40));?> | ||
</option> | ||
<?php } ?> | ||
</select> | ||
<input type="hidden" name="sid" value="'.$iSurveyId.'" /> | ||
<input type="hidden" name="action" value="quotas" /> | ||
<input type="hidden" name="subaction" value="new_answer_two" /> | ||
<input type="hidden" name="quota_id" value="<?php echo sanitize_int($_POST['quota_id']);?>" /> | ||
</p> | ||
<p> | ||
<input name="submit" type="submit" class="submit btn btn-default" value="<?php eT("Next");?>" /> | ||
</p> | ||
</form> | ||
</div> | ||
</div> | ||
</div> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,47 @@ | ||
<div class="side-body col-lg-8"> | ||
<div class="row"> | ||
<div class="col-lg-12 content-right"> | ||
<h3> | ||
<?php eT("Survey quota");?>: <?php eT("Add answer");?> | ||
</h3> | ||
<div class="row"> | ||
<div class="col-lg-12 content-right"> | ||
<h3> | ||
<?php eT("Survey quota");?>: <?php eT("Add answer");?> | ||
</h3> | ||
|
||
<?php if (count($question_answers) == $x): ?> | ||
<div class="jumbotron message-box"> | ||
<h2><?php eT("All answers are already selected in this quota.");?></h2> | ||
<p> | ||
<input class="btn btn-lg btn-success" type="submit" onclick="window.open('<?php echo $this->createUrl("admin/quotas/sa/index/surveyid/$iSurveyId");?>', '_top')" value="<?php eT("Continue");?>"/> | ||
</p> | ||
</div> | ||
<?php else:?> | ||
<div class="jumbotron message-box"> | ||
<h2><?php echo sprintf(gT("New answer for quota '%s'"), $quota_name);?></h2> | ||
<p class="lead"><?php eT("Select Answer");?>:</p> | ||
<?php echo CHtml::form(array("admin/quotas/sa/insertquotaanswer/surveyid/{$iSurveyId}"), 'post', array('#'=>'quota_'.sanitize_int($_POST['quota_id']))); ?> | ||
<p> | ||
<select name="quota_anscode" size="15"> | ||
<?php | ||
while (list($key,$value) = each($question_answers)) | ||
{ | ||
if (!isset($value['rowexists'])) echo '<option value="'.$key.'">'.strip_tags(substr($value['Display'],0,40)).'</option>'; | ||
} | ||
?> | ||
</select> | ||
</p> | ||
<p> | ||
<?php if (count($question_answers) == $x): ?> | ||
<div class="jumbotron message-box"> | ||
<h2><?php eT("All answers are already selected in this quota.");?></h2> | ||
<p> | ||
<input class="btn btn-lg btn-success" type="submit" onclick="window.open('<?php echo $this->createUrl("admin/quotas/sa/index/surveyid/$iSurveyId");?>', '_top')" value="<?php eT("Continue");?>"/> | ||
</p> | ||
</div> | ||
<?php else:?> | ||
<div class="jumbotron message-box"> | ||
<h2><?php echo sprintf(gT("New answer for quota '%s'"), $quota_name);?></h2> | ||
<p class="lead"><?php eT("Select Answer");?>:</p> | ||
<?php echo CHtml::form(array("admin/quotas/sa/insertquotaanswer/surveyid/{$iSurveyId}"), 'post', array('#'=>'quota_'.sanitize_int($_POST['quota_id']))); ?> | ||
<p> | ||
<select name="quota_anscode" size="15"> | ||
<?php | ||
while (list($key,$value) = each($question_answers)) | ||
{ | ||
if (!isset($value['rowexists'])) echo '<option value="'.$key.'">'.strip_tags(substr($value['Display'],0,40)).'</option>'; | ||
} | ||
?> | ||
</select> | ||
</p> | ||
<p> | ||
|
||
<input class="btn btn-lg btn-success" name="submit" type="submit" class="submit btn btn-default" value="<?php eT("Next");?>" /> | ||
<input type="hidden" name="sid" value="<?php echo $iSurveyId;?>" /> | ||
<input type="hidden" name="action" value="quotas" /> | ||
<input type="hidden" name="subaction" value="insertquotaanswer" /> | ||
<input type="hidden" name="quota_qid" value="<?php echo sanitize_int($_POST['quota_qid']);?>" /> | ||
<input type="hidden" name="quota_id" value="<?php echo sanitize_int($_POST['quota_id']);?>" /> | ||
<br/> | ||
<?php eT("Save this, then create another:");?> | ||
<input type="checkbox" name="createanother"> | ||
</p> | ||
</form> | ||
</div> | ||
<?php endif;?> | ||
</div> | ||
</div> | ||
<input class="btn btn-lg btn-success" name="submit" type="submit" class="submit btn btn-default" value="<?php eT("Next");?>" /> | ||
<input type="hidden" name="sid" value="<?php echo $iSurveyId;?>" /> | ||
<input type="hidden" name="action" value="quotas" /> | ||
<input type="hidden" name="subaction" value="insertquotaanswer" /> | ||
<input type="hidden" name="quota_qid" value="<?php echo sanitize_int($_POST['quota_qid']);?>" /> | ||
<input type="hidden" name="quota_id" value="<?php echo sanitize_int($_POST['quota_id']);?>" /> | ||
<br/> | ||
<?php eT("Save this, then create another:");?> | ||
<input type="checkbox" name="createanother"> | ||
</p> | ||
</form> | ||
</div> | ||
<?php endif;?> | ||
</div> | ||
</div> | ||
</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
Oops, something went wrong.