Skip to content

Commit

Permalink
More HTML cleanup
Browse files Browse the repository at this point in the history
git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey_ci@11077 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
c-schmitz committed Oct 1, 2011
1 parent d2f8b90 commit 600d49d
Show file tree
Hide file tree
Showing 3 changed files with 339 additions and 340 deletions.
24 changes: 12 additions & 12 deletions application/views/admin/super/footer.php
@@ -1,19 +1,19 @@
</div>
<div class='footer'>
<div style='float:left;width:110px;text-align:left;'><img alt='LimeSurvey - <?php echo $clang->gT("Online Manual");?>' title='LimeSurvey - <?php echo $clang->gT("Online Manual");?>' src='<?php echo $imageurl;?>/docs.png' onclick="window.open('<?php echo $url;?>')" onmouseover="document.body.style.cursor='pointer'" onmouseout="document.body.style.cursor='auto'" /></div>
<div style='float:right;'><img alt='<?php echo $clang->gT("Support this project - Donate to "); ?>LimeSurvey' title='<?php echo $clang->gT("Support this project - Donate to "); ?>LimeSurvey!' src='<?php echo $imageurl;?>/donate.png' onclick="window.open('http://www.donate.limesurvey.org')" onmouseover="document.body.style.cursor='pointer'" onmouseout="document.body.style.cursor='auto'" /></div>
<div class='subtitle'><a class='subtitle' title='<?php echo $clang->gT("Visit our website!"); ?>' href='http://www.limesurvey.org' target='_blank'>LimeSurvey</a><br /><?php echo $versiontitle." ".$versionnumber." ".$buildtext;?></div>
<div style='float:left;width:110px;text-align:left;'><a href='http://docs.limesurvey.org'><img alt='LimeSurvey - <?php echo $clang->gT("Online Manual");?>' title='LimeSurvey - <?php echo $clang->gT("Online Manual");?>' src='<?php echo $imageurl;?>/docs.png' width="25" height="25"/></a></div>
<div style='float:right;'><a href='http://donate.limesurvey.org'><img alt='<?php echo $clang->gT("Support this project - Donate to "); ?>LimeSurvey' title='<?php echo $clang->gT("Support this project - Donate to "); ?>LimeSurvey!' src='<?php echo $imageurl;?>/donate.png' width="107" height="25"/></a></div>
<div class='subtitle'><a class='subtitle' title='<?php echo $clang->gT("Visit our website!"); ?>' href='http://www.limesurvey.org' target='_blank'>LimeSurvey</a><br /><?php echo $versiontitle." ".$versionnumber." ".$buildtext;?></div>
</div>
<?php
if(isset($js_admin_includes))
{
foreach ($js_admin_includes as $jsinclude)
{
?>
<script type="text/javascript" src="<?php echo $jsinclude;?>"></script>
<?php
}
}
if(isset($js_admin_includes))
{
foreach ($js_admin_includes as $jsinclude)
{
?>
<script type="text/javascript" src="<?php echo $jsinclude;?>"></script>
<?php
}
}
?>
</body>
</html>
@@ -1,56 +1,56 @@
<strong><?php echo $clang->gT("Question group"); ?></strong>&nbsp;
<span class='basic'><?php echo $grow['group_name']; ?> (<?php echo $clang->gT("ID"); ?>:<?php echo $gid; ?>)</span>
</div>
<div class='menubar-main'>
<div class='menubar-left'>
<span class='basic'><?php echo $grow['group_name']; ?> (<?php echo $clang->gT("ID"); ?>:<?php echo $gid; ?>)</span>
</div>
<div class='menubar-main'>
<div class='menubar-left'>

<img src='<?php echo $this->config->item('imageurl'); ?>/blank.gif' alt='' width='54' height='20' />
<img src='<?php echo $this->config->item('imageurl'); ?>/blank.gif' alt='' width='54' height='20' />

<?php if(bHasSurveyPermission($surveyid,'surveycontent','update'))
<?php if(bHasSurveyPermission($surveyid,'surveycontent','update'))
{ ?>
<img src='<?php echo $this->config->item('imageurl'); ?>/seperator.gif' alt='' />
<a href="#" onclick="window.open('<?php echo site_url("survey/action/previewgroup/sid/$surveyid/gid/$gid/");?>','_blank')"
title="<?php echo $clang->gTview("Preview current question group"); ?>">
<img src='<?php echo $this->config->item('imageurl'); ?>/preview.png' alt='<?php echo $clang->gT("Preview current question group"); ?>' name='PreviewGroup' /></a>
<img src='<?php echo $this->config->item('imageurl'); ?>/seperator.gif' alt='' />
<a href="#" onclick="window.open('<?php echo site_url("survey/action/previewgroup/sid/$surveyid/gid/$gid/");?>','_blank')"
title="<?php echo $clang->gTview("Preview current question group"); ?>">
<img src='<?php echo $this->config->item('imageurl'); ?>/preview.png' alt='<?php echo $clang->gT("Preview current question group"); ?>' name='PreviewGroup' width="40" height="40"/></a>
<?php }
else{ ?>
<img src='<?php echo $this->config->item('imageurl'); ?>/seperator.gif' alt='' />
<img src='<?php echo $this->config->item('imageurl'); ?>/seperator.gif' alt='' />
<?php } ?>



<?php if(bHasSurveyPermission($surveyid,'surveycontent','update'))
<?php if(bHasSurveyPermission($surveyid,'surveycontent','update'))
{ ?>
<img src='<?php echo $this->config->item('imageurl'); ?>/seperator.gif' alt='' />
<a href="#" onclick="window.open('<?php echo site_url('admin/questiongroup/edit/'.$surveyid.'/'.$gid); ?>','_top')"
title="<?php echo $clang->gTview("Edit current question group"); ?>">
<img src='<?php echo $this->config->item('imageurl'); ?>/edit.png' alt='<?php echo $clang->gT("Edit current question group"); ?>' name='EditGroup' /></a>
<img src='<?php echo $this->config->item('imageurl'); ?>/seperator.gif' alt='' />
<a href="#" onclick="window.open('<?php echo site_url('admin/questiongroup/edit/'.$surveyid.'/'.$gid); ?>','_top')"
title="<?php echo $clang->gTview("Edit current question group"); ?>">
<img src='<?php echo $this->config->item('imageurl'); ?>/edit.png' alt='<?php echo $clang->gT("Edit current question group"); ?>' name='EditGroup' width="40" height="40"/></a>
<?php } ?>


<?php
<?php
if (bHasSurveyPermission($surveyid,'surveycontent','delete'))
{
if ((($sumcount4 == 0 && $activated != "Y") || $activated != "Y"))
{
if (is_null($condarray))
{ ?>

<a href='#' onclick="if (confirm('<?php echo $clang->gT("Deleting this group will also delete any questions and answers it contains. Are you sure you want to continue?","js"); ?>')) {<?php echo get2post(site_url('admin/questiongroup/delete')."?action=delgroup&amp;sid=$surveyid&amp;gid=$gid"); ?>}"
title="<?php echo $clang->gTview("Delete current question group"); ?>">
<img src='<?php echo $this->config->item('imageurl'); ?>/delete.png' alt='<?php echo $clang->gT("Delete current question group"); ?>' name='DeleteWholeGroup' title='' /></a>
<a href='#' onclick="if (confirm('<?php echo $clang->gT("Deleting this group will also delete any questions and answers it contains. Are you sure you want to continue?","js"); ?>')) {<?php echo get2post(site_url('admin/questiongroup/delete')."?action=delgroup&amp;sid=$surveyid&amp;gid=$gid"); ?>}"
title="<?php echo $clang->gTview("Delete current question group"); ?>">
<img src='<?php echo $this->config->item('imageurl'); ?>/delete.png' alt='<?php echo $clang->gT("Delete current question group"); ?>' name='DeleteWholeGroup' title='' width="40" height="40"/></a>

<?php }
else
{ ?>
<a href='$scriptname?sid=$surveyid&amp;gid=$gid' onclick="alert('<?php echo $clang->gT("Impossible to delete this group because there is at least one question having a condition on its content","js"); ?>')"
title="<?php echo $clang->gTview("Delete current question group"); ?>">
<img src='<?php echo $this->config->item('imageurl'); ?>/delete_disabled.png' alt='<?php echo $clang->gT("Delete current question group"); ?>' name='DeleteWholeGroup' /></a>
<a href='$scriptname?sid=$surveyid&amp;gid=$gid' onclick="alert('<?php echo $clang->gT("Impossible to delete this group because there is at least one question having a condition on its content","js"); ?>')"
title="<?php echo $clang->gTview("Delete current question group"); ?>">
<img src='<?php echo $this->config->item('imageurl'); ?>/delete_disabled.png' alt='<?php echo $clang->gT("Delete current question group"); ?>' name='DeleteWholeGroup' width="40" height="40"/></a>
<?php }
}
else
{ ?>
<img src='<?php echo $this->config->item('imageurl'); ?>/blank.gif' alt='' width='40' />
<img src='<?php echo $this->config->item('imageurl'); ?>/blank.gif' alt='' width='40' />
<?php }
}

Expand All @@ -60,140 +60,140 @@
if(bHasSurveyPermission($surveyid,'surveycontent','export'))
{ ?>

<a href='<?php echo site_url("admin/export/group/$surveyid/$gid");?>' title="<?php echo $clang->gTview("Export this question group"); ?>" >
<img src='<?php echo $this->config->item('imageurl'); ?>/dumpgroup.png' title='' alt='<?php echo $clang->gT("Export this question group"); ?>' name='ExportGroup' /></a>
<a href='<?php echo site_url("admin/export/group/$surveyid/$gid");?>' title="<?php echo $clang->gTview("Export this question group"); ?>" >
<img src='<?php echo $this->config->item('imageurl'); ?>/dumpgroup.png' title='' alt='<?php echo $clang->gT("Export this question group"); ?>' name='ExportGroup' width="40" height="40"/></a>
<?php }




if(bHasSurveyPermission($surveyid,'surveycontent','update'))
{ ?>
<img src='<?php echo $this->config->item('imageurl'); ?>/seperator.gif' alt='' />
<?php if($activated != "Y" && getQuestionSum($surveyid, $gid) > 1)
<img src='<?php echo $this->config->item('imageurl'); ?>/seperator.gif' alt='' />
<?php if($activated != "Y" && getQuestionSum($surveyid, $gid) > 1)
{ ?>

<a href='<?php echo site_url("admin/question/order/".$surveyid."/".$gid); ?>' title="<?php echo $clang->gTview("Change Question Order"); ?>" >
<img src='<?php echo $this->config->item('imageurl'); ?>/reorder.png' alt='<?php echo $clang->gT("Change Question Order"); ?>' name='updatequestionorder' /></a>
<a href='<?php echo site_url("admin/question/order/".$surveyid."/".$gid); ?>' title="<?php echo $clang->gTview("Change Question Order"); ?>" >
<img src='<?php echo $this->config->item('imageurl'); ?>/reorder.png' alt='<?php echo $clang->gT("Change Question Order"); ?>' name='updatequestionorder' width="40" height="40"/></a>
<?php }
else
{ ?>
<img src='<?php echo $this->config->item('imageurl'); ?>/blank.gif' alt='' width='40' />
<img src='<?php echo $this->config->item('imageurl'); ?>/blank.gif' alt='' width='40' />
<?php }
} ?>
} ?>

</div>
<div class='menubar-right'>
<span class="boxcaption"><?php echo $clang->gT("Questions"); ?>:</span><select class="listboxquestions" name='qid'
</div>
<div class='menubar-right'>
<span class="boxcaption"><?php echo $clang->gT("Questions"); ?>:</span><select class="listboxquestions" name='qid'
onchange="window.open(this.options[this.selectedIndex].value, '_top')">

<?php echo getQuestions($surveyid,$gid,$qid); ?>
</select>
</select>




<span class='arrow-wrapper'>
<span class='arrow-wrapper'>
<?php if ($QidPrev != "")
{ ?>
{ ?>

<a href='<?php echo site_url("admin/survey/view/".$surveyid."/".$gid."/".$QidPrev); ?>'>
<img src='<?php echo $this->config->item('imageurl'); ?>/previous_20.png' title='' alt='<?php echo $clang->gT("Previous question"); ?>'
name='questionprevious'/></a>
<?php }
else
{ ?>
<img src='<?php echo $this->config->item('imageurl'); ?>/previous_20.png' title='' alt='<?php echo $clang->gT("Previous question"); ?>'
name='questionprevious' width="20" height="20"/></a>
<?php }
else
{ ?>

<img src='<?php echo $this->config->item('imageurl'); ?>/previous_disabled_20.png' title='' alt='<?php echo $clang->gT("No previous question"); ?>'
name='noquestionprevious' />
<?php } ?>
name='noquestionprevious' width="20" height="20"/>
<?php } ?>



<?php if ($QidNext != "")
{ ?>
{ ?>

<a href='<?php echo site_url("admin/survey/view/".$surveyid."/".$gid."/".$QidNext); ?>'>
<img src='<?php echo $this->config->item('imageurl'); ?>/next_20.png' title='' alt='<?php echo $clang->gT("Next question"); ?>'
name='questionnext' /> </a>
<?php }
else
{ ?>
<img src='<?php echo $this->config->item('imageurl'); ?>/next_20.png' title='' alt='<?php echo $clang->gT("Next question"); ?>'
name='questionnext' width="20" height="20"/> </a>
<?php }
else
{ ?>

<img src='<?php echo $this->config->item('imageurl'); ?>/next_disabled_20.png' title='' alt='<?php echo $clang->gT("No next question"); ?>'
name='noquestionnext' />
<?php } ?>
</span>
name='noquestionnext' width="20" height="20"/>
<?php } ?>
</span>





<?php if ($activated == "Y")
<?php if ($activated == "Y")
{ ?>
<a href='#'>
<a href='#'>
<img src='<?php echo $this->config->item('imageurl'); ?>/add_disabled.png' title='' alt='<?php echo $clang->gT("Disabled").' - '.$clang->gT("This survey is currently active."); ?>'
name='AddNewQuestion' onclick="window.open('', '_top')" /></a>
name='AddNewQuestion' onclick="window.open('', '_top')" width="40" height="40"/></a>
<?php }
elseif(bHasSurveyPermission($surveyid,'surveycontent','create'))
{ ?>
<a href='<?php echo site_url("admin/question/newquestion/".$surveyid."/".$gid); ?>'
<a href='<?php echo site_url("admin/question/newquestion/".$surveyid."/".$gid); ?>'
title="<?php echo $clang->gTview("Add New Question to Group"); ?>" >
<img src='<?php echo $this->config->item('imageurl'); ?>/add.png' title='' alt='<?php echo $clang->gT("Add New Question to Group"); ?>'
name='AddNewQuestion' onclick="window.open('', '_top')" /></a>
name='AddNewQuestion' onclick="window.open('', '_top')" width="40" height="40"/></a>
<?php } ?>




<img src='<?php echo $this->config->item('imageurl'); ?>/seperator.gif' alt='' />
<img src='<?php echo $this->config->item('imageurl'); ?>/seperator.gif' alt='' />

<img src='<?php echo $this->config->item('imageurl'); ?>/blank.gif' width='18' alt='' />
<input id='MinimizeGroupWindow' type='image' src='<?php echo $this->config->item('imageurl'); ?>/minus.gif' title='
<img src='<?php echo $this->config->item('imageurl'); ?>/blank.gif' width='18' alt='' />
<input id='MinimizeGroupWindow' type='image' src='<?php echo $this->config->item('imageurl'); ?>/minus.gif' title='
<?php echo $clang->gT("Hide Details of this Group"); ?>' alt='<?php echo $clang->gT("Hide Details of this Group"); ?>' name='MinimizeGroupWindow' />
<input type='image' id='MaximizeGroupWindow' src='<?php echo $this->config->item('imageurl'); ?>/plus.gif' title='
<input type='image' id='MaximizeGroupWindow' src='<?php echo $this->config->item('imageurl'); ?>/plus.gif' title='
<?php echo $clang->gT("Show Details of this Group"); ?>' alt='<?php echo $clang->gT("Show Details of this Group"); ?>' name='MaximizeGroupWindow' />
<?php if (!$qid)
<?php if (!$qid)
{ ?>
<input type='image' src='<?php echo $this->config->item('imageurl'); ?>/close.gif' title='
<input type='image' src='<?php echo $this->config->item('imageurl'); ?>/close.gif' title='
<?php echo $clang->gT("Close this Group"); ?>' alt='<?php echo $clang->gT("Close this Group"); ?>' name='CloseSurveyWindow'
onclick="window.open('<?php echo site_url("admin/survey/view/".$surveyid); ?>', '_top')" />
<?php }
else
{ ?>
<img src='<?php echo $this->config->item('imageurl'); ?>/blank.gif' alt='' width='18' />
<img src='<?php echo $this->config->item('imageurl'); ?>/blank.gif' alt='' width='18' />
<?php } ?>
</div></div>
</div>
</div></div>
</div>




<table id='groupdetails' <?php echo $gshowstyle; ?> ><tr ><td width='20%' align='right'><strong>
<table id='groupdetails' <?php echo $gshowstyle; ?> ><tr ><td width='20%' align='right'><strong>
<?php echo $clang->gT("Title"); ?>:</strong></td>
<td align='left'>
<?php echo $grow['group_name']; ?> (<?php echo $grow['gid']; ?>)</td></tr>
<tr><td valign='top' align='right'><strong>
<?php echo $clang->gT("Description:"); ?></strong></td><td align='left'>
<?php if (trim($grow['description'])!='') {
<td align='left'>
<?php echo $grow['group_name']; ?> (<?php echo $grow['gid']; ?>)</td></tr>
<tr><td valign='top' align='right'><strong>
<?php echo $clang->gT("Description:"); ?></strong></td><td align='left'>
<?php if (trim($grow['description'])!='') {
templatereplace($grow['description']);
echo LimeExpressionManager::GetLastPrettyPrintExpression();
} ?>
</td></tr>
} ?>
</td></tr>

<?php if (!is_null($condarray))
{ ?>
<tr><td align='right'><strong>
<?php if (!is_null($condarray))
{ ?>
<tr><td align='right'><strong>
<?php echo $clang->gT("Questions with conditions to this group"); ?>:</strong></td>
<td valign='bottom' align='left'>
<?php foreach ($condarray[$gid] as $depgid => $deprow)
<td valign='bottom' align='left'>
<?php foreach ($condarray[$gid] as $depgid => $deprow)
{
foreach ($deprow['conditions'] as $depqid => $depcid)
{

$listcid=implode("-",$depcid);?>
<a href='#' onclick="window.open('admin.php?sid=<?php echo $surveyid; ?>&amp;gid=<?php echo $depgid; ?>&amp;qid=<?php echo $depqid; ?>&amp;action=conditions&amp;markcid=<?php echo implode("-",$depcid); ?>','_top')">[QID: <?php echo $depqid; ?>]</a>
<a href='#' onclick="window.open('admin.php?sid=<?php echo $surveyid; ?>&amp;gid=<?php echo $depgid; ?>&amp;qid=<?php echo $depqid; ?>&amp;action=conditions&amp;markcid=<?php echo implode("-",$depcid); ?>','_top')">[QID: <?php echo $depqid; ?>]</a>
<?php }
} ?>
</td></tr>
<?php } ?>
} ?>
</td></tr>
<?php } ?>

0 comments on commit 600d49d

Please sign in to comment.