changed the user home view from accordian to tabs

This commit is contained in:
hyung-hwan 2014-05-06 13:08:27 +00:00
parent 11ee99c799
commit 61a825cad1

View File

@ -14,7 +14,7 @@
<script type="text/javascript"> <script type="text/javascript">
$(function () { $(function () {
$('#user_home_mainarea_result').accordion(); $('#user_home_mainarea_result').tabs();
}); });
</script> </script>
@ -62,35 +62,19 @@ $num_activities = 0;
<div id="user_home_mainarea_result"> <div id="user_home_mainarea_result">
<h3>
<a href='#user_home_mainarea_result_projects'>
<?=$this->lang->line('Projects')?> (<?=$num_projects?>)
</a>
</h3>
<div id="user_home_mainarea_result_projects">
<ul>
<?php
foreach ($projects as $project)
{
$cap = "{$project->name} ({$project->id})";
$anc = anchor ("project/home/{$project->id}", htmlspecialchars($cap));
$sum = htmlspecialchars ($project->summary);
print "<li>{$anc} - {$sum}</li>";
}
?>
</ul>
</div>
<h3> <div id="tabs">
<a href='#user_home_mainarea_result_issues'>
<?=$this->lang->line('Open issues')?> (<?=$num_issues?>) <ul>
</a> <li><a href="#user_home_mainarea_result_issues"> <?=$this->lang->line('Open issues')?> (<?=$num_issues?>) </a></li>
</h3> <li><a href="#user_home_mainarea_result_projects"> <?=$this->lang->line('Projects')?> (<?=$num_projects?>) </a></li>
<div id="user_home_mainarea_result_issues"> </ul>
<ul>
<?php <div id="user_home_mainarea_result_issues">
foreach ($issues as $issue) <ul>
{ <?php
foreach ($issues as $issue)
{
$pro = $issue->projectid; $pro = $issue->projectid;
$xid = $this->converter->AsciiToHex ((string)$issue->id); $xid = $this->converter->AsciiToHex ((string)$issue->id);
@ -105,9 +89,24 @@ foreach ($issues as $issue)
$sum = htmlspecialchars ($issue->summary); $sum = htmlspecialchars ($issue->summary);
print "<li>{$pro} {$anc} {$type} {$status} - {$sum}</li>"; print "<li>{$pro} {$anc} {$type} {$status} - {$sum}</li>";
} }
?> ?>
</ul> </ul>
</div>
<div id="user_home_mainarea_result_projects">
<ul>
<?php
foreach ($projects as $project)
{
$cap = "{$project->name} ({$project->id})";
$anc = anchor ("project/home/{$project->id}", htmlspecialchars($cap));
$sum = htmlspecialchars ($project->summary);
print "<li>{$anc} - {$sum}</li>";
}
?>
</ul>
</div>
</div> </div>
</div> <!-- user_home_mainarea_result --> </div> <!-- user_home_mainarea_result -->