function html_summary($proj) { global $nr_of_shortlog_lines; $repopath = get_repo_path($proj); html_summary_title(); html_desc($repopath); if (!isset($_GET['t']) && !isset($_GET['b'])) { html_shortlog($proj, $nr_of_shortlog_lines); } else { html_shortlog($proj, 4); } }
function html_summary($proj) { $str = ''; $str .= '<div class="gitsummary">'; if (isset($_GET['a']) && $_GET['a'] == 'listheads') { $str .= html_title("Heads" . html_ahref(array('p' => $proj), '[Summary]')); $str .= html_listheads($proj); } else { $repo = get_repo_path($proj); $branches = git_parse($repo, 'branches'); $bmenu = "<ul id=\"ddmenu\">\n<li>Branches\n<ul>\n"; foreach ($branches as $b => $h) { $a = html_ahref(array('p' => $proj, 'h' => $b), $b); $bmenu .= "<li>{$a}</li>\n"; } $bmenu .= "</ul></li>"; $bmenu .= <<<EOF \t\t\t\t<li>Menu2 \t\t\t\t\t<ul> \t\t\t\t\t\t<li><a href="#">HTML Drop Down</a></li> \t\t\t\t\t\t<li><a href="#">DHTML Menu</a></li> \t\t\t\t\t\t<li><a href="#">JavaScript DropDown</a></li> \t\t\t\t\t\t<li><a href="#">Cascading Menu</a></li> \t\t\t\t\t\t<li><a href="#">CSS Horizontal Menu</a></li> \t\t\t\t\t</ul> \t\t\t\t</li> \t\t\t\t<li>Menu3 \t\t\t\t\t<ul> \t\t\t\t\t\t<li><a href="#">ASP Dropdown</a></li> \t\t\t\t\t\t<li><a href="#">Pulldown menu</a></li> \t\t\t\t\t\t<li><a href="#">AJAX Drop Submenu</a></li> \t\t\t\t\t\t<li><a href="#">DIV Cascading Menu</a></li> \t\t\t\t\t</ul> \t\t\t\t</li> \t\t\t</ul> EOF; #$str .= html_title("Summary" . html_ahref(array('p'=>$proj, 'a'=>'listheads'), '[Heads]') . $bmenu); $str .= html_title($bmenu); $head = $_GET['h']; if (!isset($head)) { $head = 'master'; } if (!isset($_GET['c'])) { $str .= html_shortlog($proj, $head, 400, $_GET['sk']); } else { $str .= html_logmsg($proj, $_GET['c']); } } $str .= '</div>'; return $str; }