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">
$(function () {
$('#user_home_mainarea_result').accordion();
$('#user_home_mainarea_result').tabs();
});
</script>
@ -62,35 +62,19 @@ $num_activities = 0;
<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>
<a href='#user_home_mainarea_result_issues'>
<?=$this->lang->line('Open issues')?> (<?=$num_issues?>)
</a>
</h3>
<div id="user_home_mainarea_result_issues">
<ul>
<?php
foreach ($issues as $issue)
{
<div id="tabs">
<ul>
<li><a href="#user_home_mainarea_result_issues"> <?=$this->lang->line('Open issues')?> (<?=$num_issues?>) </a></li>
<li><a href="#user_home_mainarea_result_projects"> <?=$this->lang->line('Projects')?> (<?=$num_projects?>) </a></li>
</ul>
<div id="user_home_mainarea_result_issues">
<ul>
<?php
foreach ($issues as $issue)
{
$pro = $issue->projectid;
$xid = $this->converter->AsciiToHex ((string)$issue->id);
@ -105,9 +89,24 @@ foreach ($issues as $issue)
$sum = htmlspecialchars ($issue->summary);
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> <!-- user_home_mainarea_result -->