[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gforge-commits] gforge/www/pm ganttpage.php,1.7,1.8
From: |
cbayle |
Subject: |
[Gforge-commits] gforge/www/pm ganttpage.php,1.7,1.8 |
Date: |
Sat, 21 Feb 2004 18:16:29 -0600 |
Update of /cvsroot/gforge/gforge/www/pm
In directory db.perdue.net:/tmp/cvs-serv26815/www/pm
Modified Files:
ganttpage.php
Log Message:
Added window resizing when changing gantt size
Index: ganttpage.php
===================================================================
RCS file: /cvsroot/gforge/gforge/www/pm/ganttpage.php,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- ganttpage.php 19 Feb 2004 23:20:35 -0000 1.7
+++ ganttpage.php 22 Feb 2004 00:16:26 -0000 1.8
@@ -118,6 +118,42 @@
/*
Show the new pop-up boxes to select assigned to and/or status
*/
+ global $_size;
+ if ($_size==640) {
+ $gantt_width=740;
+ $gantt_height=620;
+ } elseif ($_size==1024) {
+ $gantt_width=1084;
+ $gantt_height=920;
+ } elseif ($_size==1600) {
+ $gantt_width=1660;
+ $gantt_height=1340;
+ } else {
+ $gantt_width=860;
+ $gantt_height=740;
+ }
+ //echo "XX $_size $gantt_width $gantt_height XX";
+ ?>
+ <script type="text/javascript">
+<!--
+ function setSize(width,height) {
+ if (window.outerWidth) {
+ window.outerWidth = width;
+ window.outerHeight = height;
+ window.resize();
+ }
+ else if (window.resizeTo) {
+ window.resizeTo(width,height);
+ }
+ else {
+ alert("Not supported.");
+ }
+ }
+ window.setSize(<?php echo $gantt_width; ?>,<?php echo
$gantt_height; ?>);
+//-->
+ </script>
+ <?php
+
echo ' <form action="'. $PHP_SELF
.'?group_id='.$group_id.'&group_project_id='.$group_project_id.'&func=ganttpage"
method="post">
<table width="10%" border="0">
<tr>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gforge-commits] gforge/www/pm ganttpage.php,1.7,1.8,
cbayle <=