tutos-commits Mailing List for TUTOS (Page 15)
Projects / CRM / PLM / Calendar / Tasks / SCRUM / Test / Inventory
Brought to you by:
gokohnert
You can subscribe to this list here.
2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(13) |
Aug
(214) |
Sep
(144) |
Oct
(22) |
Nov
(22) |
Dec
(93) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
(25) |
Feb
(31) |
Mar
(92) |
Apr
(70) |
May
(103) |
Jun
(130) |
Jul
(265) |
Aug
(325) |
Sep
(233) |
Oct
(244) |
Nov
(261) |
Dec
(157) |
2003 |
Jan
(101) |
Feb
(135) |
Mar
(148) |
Apr
(164) |
May
(53) |
Jun
(116) |
Jul
(149) |
Aug
(126) |
Sep
(45) |
Oct
(109) |
Nov
(36) |
Dec
(61) |
2004 |
Jan
(131) |
Feb
(236) |
Mar
(278) |
Apr
(259) |
May
(92) |
Jun
(110) |
Jul
(150) |
Aug
(64) |
Sep
(141) |
Oct
(141) |
Nov
(146) |
Dec
(65) |
2005 |
Jan
(70) |
Feb
(77) |
Mar
(129) |
Apr
(153) |
May
(161) |
Jun
(63) |
Jul
(42) |
Aug
(16) |
Sep
(30) |
Oct
(3) |
Nov
(8) |
Dec
(40) |
2006 |
Jan
(114) |
Feb
(16) |
Mar
(12) |
Apr
(15) |
May
(4) |
Jun
(9) |
Jul
(69) |
Aug
(27) |
Sep
(12) |
Oct
(80) |
Nov
(62) |
Dec
(41) |
2007 |
Jan
(34) |
Feb
(2) |
Mar
(38) |
Apr
(82) |
May
(61) |
Jun
(37) |
Jul
(16) |
Aug
(64) |
Sep
(7) |
Oct
(52) |
Nov
(18) |
Dec
(28) |
2008 |
Jan
(168) |
Feb
(26) |
Mar
(27) |
Apr
(19) |
May
(10) |
Jun
(58) |
Jul
(58) |
Aug
(91) |
Sep
(14) |
Oct
(23) |
Nov
(56) |
Dec
(38) |
2009 |
Jan
(58) |
Feb
(90) |
Mar
(204) |
Apr
(90) |
May
(27) |
Jun
(177) |
Jul
(116) |
Aug
(53) |
Sep
(42) |
Oct
(120) |
Nov
(51) |
Dec
(58) |
2010 |
Jan
(117) |
Feb
(231) |
Mar
(163) |
Apr
(90) |
May
(40) |
Jun
(139) |
Jul
(49) |
Aug
(118) |
Sep
(25) |
Oct
(80) |
Nov
(102) |
Dec
(99) |
2011 |
Jan
(176) |
Feb
(42) |
Mar
(60) |
Apr
(52) |
May
(30) |
Jun
(29) |
Jul
(27) |
Aug
(16) |
Sep
(51) |
Oct
(70) |
Nov
(63) |
Dec
(58) |
2012 |
Jan
(28) |
Feb
(26) |
Mar
(7) |
Apr
(12) |
May
(41) |
Jun
(61) |
Jul
(59) |
Aug
(38) |
Sep
(30) |
Oct
(28) |
Nov
(14) |
Dec
(31) |
2013 |
Jan
(24) |
Feb
(54) |
Mar
(45) |
Apr
(22) |
May
(35) |
Jun
(8) |
Jul
(18) |
Aug
(38) |
Sep
(11) |
Oct
(8) |
Nov
(19) |
Dec
(20) |
2014 |
Jan
(20) |
Feb
(22) |
Mar
(4) |
Apr
(6) |
May
(13) |
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
(6) |
2015 |
Jan
|
Feb
(1) |
Mar
(4) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
(1) |
2016 |
Jan
(4) |
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
(2) |
Aug
(4) |
Sep
(1) |
Oct
(1) |
Nov
(1) |
Dec
|
2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(3) |
Jul
(8) |
Aug
(13) |
Sep
(12) |
Oct
|
Nov
|
Dec
|
2018 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2019 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
2020 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(2) |
2021 |
Jan
|
Feb
(1) |
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <gok...@us...> - 2013-03-04 12:40:16
|
Revision: 992 http://sourceforge.net/p/tutos/code/992 Author: gokohnert Date: 2013-03-04 12:40:11 +0000 (Mon, 04 Mar 2013) Log Message: ----------- session lists for memcache stroed sessions / new ldap auth userdomain arg Modified Paths: -------------- trunk/php/admin/memcache.php trunk/php/admin_show.php trunk/php/config_default.pinc trunk/php/permission.p3 Modified: trunk/php/admin/memcache.php =================================================================== --- trunk/php/admin/memcache.php 2013-03-04 10:05:01 UTC (rev 991) +++ trunk/php/admin/memcache.php 2013-03-04 12:40:11 UTC (rev 992) @@ -1,6 +1,6 @@ <?php /** - * Copyright 2001 - 2012 by Gero Kohnert + * Copyright 2001 - 2013 by Gero Kohnert * * SVN Info $Id$ * $Author$ @@ -9,6 +9,8 @@ * @module memcache * @package BASE */ +$tutos['files'][__FILE__] = '$Rev$'; + $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; Modified: trunk/php/admin_show.php =================================================================== --- trunk/php/admin_show.php 2013-03-04 10:05:01 UTC (rev 991) +++ trunk/php/admin_show.php 2013-03-04 12:40:11 UTC (rev 992) @@ -273,22 +273,11 @@ } /** - * + * print a headline in the sessions info */ - Function Sessions_Info() { - global $lang,$tutos; - - $r = ''; - $n = new TUTOS_Date_Time(); - - $ts = $n->getTimeStamp(); - - $handle = opendir($tutos[sessionpath]); - if (! $handle ) { - return; - } - - // Sessions + Function Sessions_HeadLine() { + global $lang; + $r = ''; $r .= "<tr>\n"; $r .= " <th colspan=\"9\">Sessions</th>\n"; $r .= "</tr>\n"; @@ -303,103 +292,152 @@ $r .= $this->orderHeader('', $lang['ClientBrowser'], '', 1); $r .= $this->orderHeader('', $lang['AdminKillSession'], '', 1); $r .= "</tr>\n"; + return $r; + } - $line = 0; - while (false !== ($file = readdir($handle))) { - if ( ! preg_match("#^sess_#", $file) ) { - continue; - } - $filename = $tutos[sessionpath] .'/'. $file; - if ( filesize($filename) == 0 ) { - continue; - } - if ( ! is_readable($filename) ) { - continue; - } + /** + * print a line in the sessions info + */ + Function Sessions_Line($data,$id) { + global $lang,$tutos; - $x = fopen($filename, 'r+b'); - $contents = fread($x, filesize($filename)); + $n = new TUTOS_Date_Time(); + $ts = $n->getTimeStamp(); - fclose($x); + $r = ''; + if (!isset($data['userid'])) { + return; + } + if (!isset($data['username'])) { + return; + } + if (!isset($data['path'])) { + $data['path'] ="?"; + } + if (!isset($data['client'])) { + $data['client'] ="?"; + } + if (!isset($data['server'])) { + $data['server'] ="?"; + } + if ($data['dbnr'] != $this->dbconn->db->id) { + return; + } + $r .= $this->OverviewRowStart($this->line); + $r .= ' <td class="over_l">'; + $r .= makelink('address_show.php?id='.$data['userid'], $data['username']) ."</td>\n"; + $r .= ' <td class="over_l">'. $data['path'] ."</td>\n"; + $r .= ' <td class="over_l">'. $data['server'] ."</td>\n"; - $data = unserialize_session($contents); + $ago = ($ts - $data['lastseen']); + $x1 = $ago%60; // remaining seconds + $x2 = floor($ago/60)%60; // minutes; + $x3 = floor($ago/3600); // hours + $age = sprintf('%d:%02d:%02d', $x3, $x2, $x1); - if (!isset($data['userid'])) { - continue; + $r .= ' <td class="over_r">'. $age." ago</td>\n"; + + $x1 = $data['lasthost']; + $x2 = $x1; + + if (($tutos['resolve_host'] == 1) && strstr($x1, '.') && !strstr($x1, ' ')) { + $x2 = '<br />('; + $x2 .= @gethostbyaddr($x1); + $x2 .= ')'; + } else if ( (ini_get('allow_url_fopen') == 1) && + ($tutos['resolve_host'] == 2) && + strstr($x1, '.') && + !strstr($x1, ' ')) { + // see http://perishablepress.com/code-snippets/#code-snippets_php + $url = 'http://api.hostip.info/get_html.php?ip='.$x1; + $contents = file_get_contents($url); + $values = preg_split("#[\n|\r]#", $contents); + $count = count($values); + + $x2 = ''; + $pre = '<br>'; + for ($i = 0; $i < $count; $i++) { + if (strstr($values[$i], 'IP:')) continue; + if ($i != $count-1) { + $x2 .= $pre.myriconv($values[$i]); + } } - if (!isset($data['username'])) { - continue; - } - if (!isset($data['path'])) { - $data['path'] ="?"; - } - if (!isset($data['client'])) { - $data['client'] ="?"; - } - if (!isset($data['server'])) { - $data['server'] ="?"; - } - if ($data['dbnr'] != $this->dbconn->db->id) { - continue; - } - $r .= $this->OverviewRowStart($line); - $r .= ' <td class="over_l">'; - $r .= makelink('address_show.php?id='.$data['userid'], $data['username']) ."</td>\n"; - $r .= ' <td class="over_l">'. $data['path'] ."</td>\n"; - $r .= ' <td class="over_l">'. $data['server'] ."</td>\n"; + } - $ago = ($ts - $data['lastseen']); - $x1 = $ago%60; // remaining seconds - $x2 = floor($ago/60)%60; // minutes; - $x3 = floor($ago/3600); // hours - $age = sprintf('%d:%02d:%02d', $x3, $x2, $x1); - $r .= ' <td class="over_r">'. $age." ago</td>\n"; + if ($tutos[debug] != 0) + $x1l = makelink('admin_show.php?mode=logfile&filter='.$x1, $x1); + else + $x1l = $x1; + $r .= ' <td class="over_l">'. $x1l.($x2 != $x1 ? $x2:"") ."</td>\n"; + $r .= ' <td>'. $data['client'] ." </td>\n"; - $x1 = $data['lasthost']; - $x2 = $x1; + $u = addUrlParameter($this->link2, "action=kill"); + $u = addUrlParameter($u, 'mark='.$id); - if (($tutos['resolve_host'] == 1) && strstr($x1, '.') && !strstr($x1, ' ')) { - $x2 = '<br />('; - $x2 .= @gethostbyaddr($x1); - $x2 .= ')'; - } else if ( (ini_get('allow_url_fopen') == 1) && - ($tutos['resolve_host'] == 2) && - strstr($x1, '.') && - !strstr($x1, ' ')) { - // see http://perishablepress.com/code-snippets/#code-snippets_php - $url = 'http://api.hostip.info/get_html.php?ip='.$x1; - $contents = file_get_contents($url); - $values = preg_split("#[\n|\r]#", $contents); - $count = count($values); + $r .= ' <td align="center"> '. makelink($u, 'kill') ."</td>\n"; + $r .= $this->OverviewRowEnd($this->line++); + return $r; + } - $x2 = ''; - $pre = '<br>'; - for ($i = 0; $i < $count; $i++) { - if (strstr($values[$i], 'IP:')) continue; - if ($i != $count-1) { - $x2 .= $pre.myriconv($values[$i]); - } + /** + * + */ + Function Sessions_Info() { + global $lang,$tutos; + + $this->line = 0; + + $r = ''; + + if (ini_get('session.save_handler') == 'files') { + $handle = opendir($tutos[sessionpath]); + if (! $handle ) { + return; + } + // Sessions + $r .= $this->Sessions_Headline(); + while (false !== ($file = readdir($handle))) { + if ( ! preg_match("#^sess_#", $file) ) { + continue; } - } + $filename = $tutos[sessionpath] .'/'. $file; + if ( filesize($filename) == 0 ) { + continue; + } + if ( ! is_readable($filename) ) { + continue; + } + $x = fopen($filename, 'r+b'); + $contents = fread($x, filesize($filename)); + fclose($x); - if ($tutos[debug] != 0) - $x1l = makelink('admin_show.php?mode=logfile&filter='.$x1, $x1); - else - $x1l = $x1; - $r .= ' <td class="over_l">'. $x1l.($x2 != $x1 ? $x2:"") ."</td>\n"; - $r .= ' <td>'. $data['client'] ." </td>\n"; + $data = unserialize_session($contents); + $r .= $this->Sessions_Line($data,$file); + } - $u = addUrlParameter($this->link2, "action=kill"); - $u = addUrlParameter($u, 'mark='.$file); + $r .= $this->SubTableEnd(); + $r .= "</td></tr>\n"; + closedir($handle); + } else if (ini_get('session.save_handler') == 'memcache') { + $r .= $this->Sessions_Headline(); + $y = array(); + $x = $tutos['memcache']->get('sessions'); + $d = $tutos['memcache']->get(array_keys($x)); + foreach ($d as $key => $data) { + $r .= $this->Sessions_Line(unserialize_session($data),$key); + unset($x[$key]); + $y[$key] = $data; + } + foreach ($x as $key => $data) { + $d = $tutos['memcache']->delete($key); + } + $tutos['memcache']->set('sessions',$y); + $r .= $this->SubTableEnd(); + $r .= "</td></tr>\n"; + } - $r .= ' <td align="center"> '. makelink($u, 'kill') ."</td>\n"; - $r .= $this->OverviewRowEnd($line++); - } - $r .= $this->SubTableEnd(); - $r .= "</td></tr>\n"; - closedir($handle); return $r; } @@ -732,7 +770,6 @@ $r .= $this->login_info(); $r .= "<tr><td colspan=\"9\"> </td></tr>\n"; $r .= $this->Sessions_Info(); - $r .= $this->DataTableEnd(); return $r; } Modified: trunk/php/config_default.pinc =================================================================== --- trunk/php/config_default.pinc 2013-03-04 10:05:01 UTC (rev 991) +++ trunk/php/config_default.pinc 2013-03-04 12:40:11 UTC (rev 992) @@ -241,6 +241,9 @@ $tutos[ldapauthserver]['port'] = 389; $tutos[ldapauthserver]['basedn'] = "ou=mail,ou=user,o=cvf"; $tutos[ldapauthserver]['userdn'] = "uid"; +// the userdomain part is always added to the giiven username before binding to ldap +// example $tutos[ldapauthserver]['userdomain'] = "@tutos.org"; +$tutos[ldapauthserver]['userdomain'] = ''; // Use a filter to find user. Uncomment and modify if needed // The only available replacement is %u for user login name #$tutos[ldapauthserver]['filter'] = "(&(uid=%u)(resources=tutos))"; @@ -769,10 +772,10 @@ // // The TUTOS Version number // -$tutos[version] = '1.9.20130303'; +$tutos[version] = '1.9.20130304'; // ### Local Variables: *** ### mode:iso-accents *** ### coding:utf-8 *** ### End: *** -?> \ No newline at end of file +?> Modified: trunk/php/permission.p3 =================================================================== --- trunk/php/permission.p3 2013-03-04 10:05:01 UTC (rev 991) +++ trunk/php/permission.p3 2013-03-04 12:40:11 UTC (rev 992) @@ -453,7 +453,15 @@ //dterror_log('new session '."\n", 3, $tutos[errlog]); $tutos['SESSID'] = session_id(); $userid = -1; - + // store session id + if (ini_get('session.save_handler') == 'memcache') { + $x = $tutos['memcache']->get('sessions'); + if ($x === false) { + $x = array(); + } + $x[session_id()] = 1; + $tutos['memcache']->set('sessions',$x); + } $dbnr = $auth[0]->getDatabaseNr(); $dbconn = DB_Open($dbnr); if ($dbconn == null) { @@ -707,34 +715,49 @@ Function remove_sessionfiles () { global $tutos; - $handle = opendir($tutos[sessionpath]); - if (! $handle ){ - return; + if (ini_get('session.save_handler') == 'memcache') { + $x = $tutos['memcache']->get('sessions'); + $y = array(); + $d = $tutos['memcache']->get(array_keys($x)); + foreach ($d as $key => $data) { + unset($x[$key]); + $y[$key] = $data; + } + foreach ($x as $key => $data) { + $d = $tutos['memcache']->delete($key); + } + $tutos['memcache']->set('sessions',$y); } - while (false !== ($file = readdir($handle))) { - if ( !preg_match('#^sess_#',$file) && !preg_match('#^tutosfile#',$file) ) { - continue; + if (ini_get('session.save_handler') == 'files') { + $handle = opendir($tutos[sessionpath]); + if (! $handle ){ + return; } + while (false !== ($file = readdir($handle))) { + if ( !preg_match('#^sess_#',$file) && !preg_match('#^tutosfile#',$file) ) { + continue; + } - $filename = $tutos[sessionpath] ."/". $file; + $filename = $tutos[sessionpath] ."/". $file; - if ( ! is_writeable($filename) ) continue; + if ( ! is_writeable($filename) ) continue; - $age = time() - filemtime($filename); - if ( preg_match('#^sess_#',$file) ) { - if ($age < (2* $tutos['timetolive'] * 60)) { - continue; + $age = time() - filemtime($filename); + if ( preg_match('#^sess_#',$file) ) { + if ($age < (2* $tutos['timetolive'] * 60)) { + continue; + } } - } - if ( preg_match('#^tutosfile#',$file) ) { - if ( $age < 60 ) { - continue; + if ( preg_match('#^tutosfile#',$file) ) { + if ( $age < 60 ) { + continue; + } } + // echo $filename." ".date ("F d Y H:i:s.", filemtime($filename))." ". $age/3600 ."<br>\n"; + unlink($filename); } - // echo $filename." ".date ("F d Y H:i:s.", filemtime($filename))." ". $age/3600 ."<br>\n"; - unlink($filename); + closedir($handle); } - closedir($handle); } /** This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gok...@us...> - 2013-03-04 10:05:09
|
Revision: 991 http://sourceforge.net/p/tutos/code/991 Author: gokohnert Date: 2013-03-04 10:05:01 +0000 (Mon, 04 Mar 2013) Log Message: ----------- ldap fix Modified Paths: -------------- trunk/php/auth/auth_db.pinc trunk/php/auth/auth_ldap.pinc trunk/php/auth/auth_pam.pinc trunk/php/permission.p3 Modified: trunk/php/auth/auth_db.pinc =================================================================== --- trunk/php/auth/auth_db.pinc 2013-03-04 05:22:56 UTC (rev 990) +++ trunk/php/auth/auth_db.pinc 2013-03-04 10:05:01 UTC (rev 991) @@ -48,7 +48,7 @@ function ready() { global $tutos; - dterror_log('ready db '."\n", 3, $tutos[errlog]); + //dterror_log('ready db '."\n", 3, $tutos[errlog]); if ( $this->getuname() != "" && $this->getpw() != "" ) { return true; @@ -75,7 +75,7 @@ return $r; } - dterror_log('check db '.$this->getuname()."\n", 3, $tutos[errlog]); + //dterror_log('check db '.$this->getuname()."\n", 3, $tutos[errlog]); $q = 'SELECT a.* ,p.*,p.id as u_id ,p.creator as cr_a, p.creation as cr_t FROM '. $this->dbconn->prefix .$table['address'][name].' a, '. $this->dbconn->prefix .$table['people'][name].' p'; $q .= ' WHERE p.login = '. $this->dbconn->String($this->getuname()) ; Modified: trunk/php/auth/auth_ldap.pinc =================================================================== --- trunk/php/auth/auth_ldap.pinc 2013-03-04 05:22:56 UTC (rev 990) +++ trunk/php/auth/auth_ldap.pinc 2013-03-04 10:05:01 UTC (rev 991) @@ -99,7 +99,7 @@ function ready() { global $tutos; - dterror_log('ready ldap '."\n", 3, $tutos[errlog]); + //dterror_log('ready ldap '."\n", 3, $tutos[errlog]); if ( ($this->getuname() != '') && ($this->getpw() != '') ) { return true; @@ -165,8 +165,17 @@ /* In this case, we try to bind the LDAP server with the given * user/passwd pair */ - $dn = $tutos[ldapauthserver]["userdn"]."=".$this->getuname().",". $tutos[ldapauthserver]["basedn"]; - + $dn = ''; + if ($tutos[ldapauthserver]['userdn'] != '') { + $dn .= $tutos[ldapauthserver]['userdn'].'='; + } + $dn .= $this->getuname(); + if ($tutos[ldapauthserver]['userdomain'] != '') { + $dn .= $tutos[ldapauthserver]['userdomain']; + } + if ($tutos[ldapauthserver]['basedn'] != '') { + $dn .= ",". $tutos[ldapauthserver]['basedn']; + } // echo $dn; dterror_log('-> bind ldap |'.$dn.'|'.$this->getpw()."|\n", 3, $tutos[errlog]); $res = ldap_bind($ds,$dn,$this->getpw()); @@ -210,15 +219,6 @@ } } // We found a potential candidate. Use him. - - $current_user= new tutos_user($this->dbconn); - $current_user->read_result($result,0); - $result->free(); - - @ldap_unbind($ds); - @ldap_close($ds); - - return; } else { /* In this case we have to bind to the LDAP server either anonymously * or with a granted account, and fetch the LDAP crypted (or not) @@ -316,11 +316,15 @@ // We create the user only when the ldap auth // has succeeded - $current_user= new tutos_user($this->dbconn); - $current_user->read_result($result,0); - $result->free(); - return; } + + @ldap_unbind($ds); + @ldap_close($ds); + + $current_user= new tutos_user($this->dbconn); + $current_user->read_result($result,0); + $result->free(); + return true; } } ?> \ No newline at end of file Modified: trunk/php/auth/auth_pam.pinc =================================================================== --- trunk/php/auth/auth_pam.pinc 2013-03-04 05:22:56 UTC (rev 990) +++ trunk/php/auth/auth_pam.pinc 2013-03-04 10:05:01 UTC (rev 991) @@ -102,10 +102,9 @@ return $r; } - $query = - "SELECT p.*, a.* , p.id as u_id, p.creator as cr_a, p.creation as cr_t FROM ". $this->dbconn->prefix ."people p, ". $this->dbconn->prefix ."addresses a ". - "WHERE login = ". $this->dbconn->String($this->getuname()). - " AND p.adr_id = a.id"; + $query = 'SELECT a.* ,p.*,p.id as u_id ,p.creator as cr_a, p.creation as cr_t FROM '. $this->dbconn->prefix .$table['address'][name].' a, '. $this->dbconn->prefix .$table['people'][name].' p'; + $query .= " WHERE p.login = ". $this->dbconn->String($this->getuname()); + $query .= " AND p.adr_id = a.id"; $result = $this->dbconn->Exec($query); @@ -138,6 +137,8 @@ // we have been checked against pam so changing passwords is not possible $_SESSION['pwl'] = false; $_SESSION['pwc'] = false; + + return true; } } ?> \ No newline at end of file Modified: trunk/php/permission.p3 =================================================================== --- trunk/php/permission.p3 2013-03-04 05:22:56 UTC (rev 990) +++ trunk/php/permission.p3 2013-03-04 10:05:01 UTC (rev 991) @@ -101,13 +101,11 @@ ini_set('apc.cache_by_default',false); } $tutos['apccache'] = 1; -} else { - if ( count($tutos[memcache_hosts]) && class_exists("memcache")) { - $tutos['memcache'] = new memcache(); - $a = count($tutos[memcache_hosts]); - foreach($tutos[memcache_hosts] as $h) { - $tutos['memcache']->addServer($h,11211,true,$a--); - } +} else if ( count($tutos[memcache_hosts]) && class_exists("memcache")) { + $tutos['memcache'] = new memcache(); + $a = count($tutos[memcache_hosts]); + foreach($tutos[memcache_hosts] as $h) { + $tutos['memcache']->addServer($h,11211,true,$a--); } } @@ -503,12 +501,12 @@ $failed = true; /** - if ($dbconn == null) { - $auth[0]->login_form($_SERVER['SCRIPT_NAME'],$auth,'No such database 2'); - } + if ($dbconn == null) { + $auth[0]->login_form($_SERVER['SCRIPT_NAME'],$auth,'No such database 2'); + } */ foreach ($auth as $i => $a) { - dterror_log('check '.$i."\n", 3, $tutos[errlog]); + //dterror_log('check '.$i."\n", 3, $tutos[errlog]); $a->init($dbconn); $r = $a->check(); if ( true === $r ) { @@ -795,9 +793,9 @@ $t2 = ' OR (t.adr_id='.$user_id.')'; } $query = 'SELECT DISTINCT i.* FROM ('.$query.') AS i' - .' left join '.$dbconn->prefix .'acl a on (i.'.$id_name.' = a.obj_id) ' - .$t1 - . 'WHERE (a.perm is null OR a.perm>='.$tutos[seeok].')' - .' AND ((a.adr_id is null) OR (a.adr_id='.$user_id.') OR (a.adr_id=0) OR (a.adr_id < 0)'. $t2 .' )'; + .' left join '.$dbconn->prefix .'acl a on (i.'.$id_name.' = a.obj_id) ' + .$t1 + . 'WHERE (a.perm is null OR a.perm>='.$tutos[seeok].')' + .' AND ((a.adr_id is null) OR (a.adr_id='.$user_id.') OR (a.adr_id=0) OR (a.adr_id < 0)'. $t2 .' )'; } ?> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gok...@us...> - 2013-03-04 05:22:59
|
Revision: 990 http://sourceforge.net/p/tutos/code/990 Author: gokohnert Date: 2013-03-04 05:22:56 +0000 (Mon, 04 Mar 2013) Log Message: ----------- fix again Modified Paths: -------------- trunk/php/auth/auth_ldap.pinc Modified: trunk/php/auth/auth_ldap.pinc =================================================================== --- trunk/php/auth/auth_ldap.pinc 2013-03-03 19:27:43 UTC (rev 989) +++ trunk/php/auth/auth_ldap.pinc 2013-03-04 05:22:56 UTC (rev 990) @@ -123,8 +123,7 @@ dterror_log('check ldap '.$this->getuname()."\n", 3, $tutos[errlog]); - $query = "SELECT p.*, a.*,p.id as u_id FROM ". $this->dbconn->prefix . $table['people'][name].' p,'; - $query .= $this->dbconn->prefix . $table['address'][name].' a'; + $query = 'SELECT a.* ,p.*,p.id as u_id ,p.creator as cr_a, p.creation as cr_t FROM '. $this->dbconn->prefix .$table['address'][name].' a, '. $this->dbconn->prefix .$table['people'][name].' p'; $query .= " WHERE p.login = ". $this->dbconn->String($this->getuname()); $query .= " AND p.adr_id = a.id"; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gok...@us...> - 2013-03-03 19:27:46
|
Revision: 989 http://sourceforge.net/p/tutos/code/989 Author: gokohnert Date: 2013-03-03 19:27:43 +0000 (Sun, 03 Mar 2013) Log Message: ----------- stor session in memcache / disable non cookie sessions / automated test extended Modified Paths: -------------- trunk/php/config_default.pinc trunk/php/permission.p3 trunk/php/user_new.php trunk/php/webelements.p3 trunk/test.sh Modified: trunk/php/config_default.pinc =================================================================== --- trunk/php/config_default.pinc 2013-03-03 10:48:33 UTC (rev 988) +++ trunk/php/config_default.pinc 2013-03-03 19:27:43 UTC (rev 989) @@ -769,7 +769,7 @@ // // The TUTOS Version number // -$tutos[version] = '1.9.20130301'; +$tutos[version] = '1.9.20130303'; // ### Local Variables: *** ### mode:iso-accents *** Modified: trunk/php/permission.p3 =================================================================== --- trunk/php/permission.p3 2013-03-03 10:48:33 UTC (rev 988) +++ trunk/php/permission.p3 2013-03-03 19:27:43 UTC (rev 989) @@ -119,19 +119,29 @@ } } -// We do that ourself +// Cookie lifetime is double lifetime of login seesion +@ini_set("session.cookie_lifetime",(2 * 60 * $tutos['timetolive'])); +@ini_set("session.gc_maxlifetime",(2 * 60 * $tutos['timetolive'])); +@ini_set("session.gc_probability",50); +// Secure Session Handling @ini_set("session.use_trans_sid","off"); - +@ini_set("session.cookie_httponly","on"); +@ini_set("session.use_only_cookies","on"); @ini_set("session.bug_compat_warn","off"); // use files to save session data -@ini_set('session.save_handler','files'); +if ( ($tutos['memcache'] != null) && (MEMCACHE_HAVE_SESSION == 1) ) { + @ini_set('session.save_handler','memcache'); + session_save_path("tcp://".$tutos[memcache_hosts][0].":11211?persistent=1&weight=1&timeout=1&retry_interval=15"); +} else { + @ini_set('session.save_handler','files'); + session_save_path($tutos[sessionpath]); +} @ini_set('mbstring.func_overload','1'); // // On Server Clusters (LoadBalancing) you should // change savepath to some path all your servers share // -session_save_path($tutos[sessionpath]); session_name('TUTOS'); include_once 'mail.pinc'; @@ -141,10 +151,6 @@ // Compress Output ini_set('zlib.output_compression','On'); -// Cookie lifetime is double lifetime of login seesion -ini_set("session.cookie_lifetime",(2 * 60 * $tutos['timetolive'])); -ini_set("session.gc_maxlifetime",(2 * 60 * $tutos['timetolive'])); -ini_set("session.gc_probability",50); $max_vars1 = ini_get('suhosin.post.max_vars'); if (isset($max_vars1) && is_numeric($max_vars1) && $max_vars1 < 512) { @@ -192,7 +198,7 @@ @session_cache_limiter('public'); if (session_id() == '') { $xxxx = @session_start(); - if (!$xxxx) error_log("session_start failed\n", 3, $tutos[errlog]); + if (!$xxxx) dterror_log("session_start failed\n", 3, $tutos[errlog]); } // TODO: check ! @@ -395,8 +401,12 @@ if ( isset($_COOKIE['TUTOS']) ) { $tutos['SESSID'] = $_COOKIE['TUTOS']; - } elseif ( isset($_REQUEST['TUTOS']) ) { - $tutos['SESSID'] = $_REQUEST['TUTOS']; + // dterror_log('cookie session '."\n", 3, $tutos[errlog]); + session_id($tutos['SESSID']); + // } elseif ( isset($_REQUEST['TUTOS']) ) { + // $tutos['SESSID'] = $_REQUEST['TUTOS']; + // dterror_log('arg session '."\n", 3, $tutos[errlog]); + // session_id($tutos['SESSID']); } // no mailing possible so sending password is also not possible @@ -427,13 +437,10 @@ } if ( isset($tutos['SESSID']) && (isset($_SESSION['userid']) && $_SESSION['userid'] != -1) ) { + //if ( isset($tutos['SESSID']) ) { // there is a session - session_id($tutos['SESSID']); - if ( isset ($_SESSION['userid']) ) { - $userid = $_SESSION['userid']; - } else { - $userid = -1; - } + // dterror_log('has session '."\n", 3, $tutos[errlog]); + $userid = $_SESSION['userid']; if ( isset ($_SESSION['dbnr']) ) { $dbnr = $_SESSION['dbnr']; } else { @@ -445,6 +452,7 @@ $dbconn = DB_Open($dbnr); $current_user= new tutos_user($dbconn); } else { + //dterror_log('new session '."\n", 3, $tutos[errlog]); $tutos['SESSID'] = session_id(); $userid = -1; @@ -495,9 +503,9 @@ $failed = true; /** - if ($dbconn == null) { - $auth[0]->login_form($_SERVER['SCRIPT_NAME'],$auth,'No such database 2'); - } + if ($dbconn == null) { + $auth[0]->login_form($_SERVER['SCRIPT_NAME'],$auth,'No such database 2'); + } */ foreach ($auth as $i => $a) { dterror_log('check '.$i."\n", 3, $tutos[errlog]); @@ -787,9 +795,9 @@ $t2 = ' OR (t.adr_id='.$user_id.')'; } $query = 'SELECT DISTINCT i.* FROM ('.$query.') AS i' - .' left join '.$dbconn->prefix .'acl a on (i.'.$id_name.' = a.obj_id) ' - .$t1 - . 'WHERE (a.perm is null OR a.perm>='.$tutos[seeok].')' - .' AND ((a.adr_id is null) OR (a.adr_id='.$user_id.') OR (a.adr_id=0) OR (a.adr_id < 0)'. $t2 .' )'; + .' left join '.$dbconn->prefix .'acl a on (i.'.$id_name.' = a.obj_id) ' + .$t1 + . 'WHERE (a.perm is null OR a.perm>='.$tutos[seeok].')' + .' AND ((a.adr_id is null) OR (a.adr_id='.$user_id.') OR (a.adr_id=0) OR (a.adr_id < 0)'. $t2 .' )'; } ?> \ No newline at end of file Modified: trunk/php/user_new.php =================================================================== --- trunk/php/user_new.php 2013-03-03 10:48:33 UTC (rev 988) +++ trunk/php/user_new.php 2013-03-03 19:27:43 UTC (rev 989) @@ -514,6 +514,7 @@ Function prepare() { global $msg,$tutos,$lang,$table; + $this->name = $lang['UserCreate']; $this->obj = new tutos_user($this->dbconn); $this->obj->email_1 = ""; if ( isset($_GET['id']) ) { @@ -567,8 +568,6 @@ if ( $this->obj->uid != -1 ) { $this->name = $lang['UserModify'] .": ". $this->obj->login; - } else { - $this->name = $lang['UserCreate']; } if (isset($_GET['login'])) { @@ -659,4 +658,4 @@ <!-- SVN Info $Id$ $Author$ ---> +--> \ No newline at end of file Modified: trunk/php/webelements.p3 =================================================================== --- trunk/php/webelements.p3 2013-03-03 10:48:33 UTC (rev 988) +++ trunk/php/webelements.p3 2013-03-03 19:27:43 UTC (rev 989) @@ -1158,12 +1158,15 @@ $pre = $pre2; } - if ( (isset($tutos['SESSID'])) && (!isset($_COOKIE['TUTOS'])) ) { - if ( session_id() != '' ) { - $href .= $pre . session_name() .'='. session_id(); - $pre = $pre2; - } - } + /** + if ( (isset($tutos['SESSID'])) && (!isset($_COOKIE['TUTOS'])) ) { + if ( session_id() != '' ) { + //$href .= $pre . session_name() .'='. session_id(); + $href .= $pre . SID; + $pre = $pre2; + } + } + */ return $href . $add; } @@ -1191,12 +1194,13 @@ if ( isset($_REQUEST['ss']) && ($_REQUEST['ss'] != '') ) { $r .= ' <input type="hidden" name="ss" value="'. $_REQUEST['ss'] ."\" />\n"; } - - if ( (isset($tutos['SESSID'])) && (!isset($_COOKIE['TUTOS'])) ) { - if ( SID != '' ) { - $r .= ' <input type="hidden" name="'. session_name() .'" value="'. session_id() ."\" />\n"; - } - } + /** + if ( (isset($tutos['SESSID'])) && (!isset($_COOKIE['TUTOS'])) ) { + if ( SID != '' ) { + $r .= ' <input type="hidden" name="'. session_name() .'" value="'. session_id() ."\" />\n"; + } + } + */ return $r; } Modified: trunk/test.sh =================================================================== --- trunk/test.sh 2013-03-03 10:48:33 UTC (rev 988) +++ trunk/test.sh 2013-03-03 19:27:43 UTC (rev 989) @@ -50,9 +50,8 @@ CHECKURI=http://validator.w3.org/check?uri= CHECKURI2=http://schneegans.de/sv/?url= CHECKURI3=http://www.validome.org/validate/?uri= -SNAP=kwebdesktop -SNAP=khtml2png2 -SNAP="CutyCapt --min-width=1024" +#SNAP=kwebdesktop +#SNAP=khtml2png2 #SNAPLINE=xvfb-run --server-args="-screen 0, 1024x768x24" ./CutyCapt --url=... --out=... # # Check a output @@ -140,6 +139,9 @@ cp $OUT2 $OUT2.login.html rm -f $OUT2 +SID=`cat $COOKIES | tail -1 | cut -f 7` +SNAP="CutyCapt --min-width=1024 --header=COOKIE:TUTOS=$SID" + URLS=" acl_overview.php?lg=$LG acl_new.php?id=$ADR&lg=$LG @@ -203,7 +205,7 @@ message_overview.php?lg=$LG message_del.php?lg=$LG minical.php?lg=$LG - minitimer.php?lg=$LG + minitimer.php?lg=$LG&f=start module_overview.php?lg=$LG mytutos.php?lg=$LG mytutos.php?id=$NOID&lg=$LG @@ -345,6 +347,14 @@ mailbox/mailbox_show.php?lg=$LG mailbox/mail_show.php?lg=$LG mailbox/mail_select.php?lg=$LG + module_template/AAA_select.php?lg=$LG + module_template/AAA_overview.php?lg=$LG + module_template/AAA_show.php?lg=$LG + module_template/AAA_show.php?lg=$LG&id=$NOID + module_template/AAA_new.php?lg=$LG + module_template/AAA_show.php?lg=$LG&id=$NOID + module_template/AAA_ins.php?lg=$LG + module_template/AAA_config.php?lg=$LG note/note_ins.php?lg=$LG note/note_select.php?lg=$LG note/note_overview.php?name=demo&reftype=0&lg=$LG @@ -424,6 +434,7 @@ stc/stc_show.php?lg=$LG stc/stc_show.php?id=$NOID&lg=$LG search/global_select.php?lg=$LG + search/global_overview.php?lg=$LG&name=test stuff/stuff_ins.php?lg=$LG stuff/stuff_select.php?lg=$LG stuff/stuff_overview.php?lg=$LG @@ -507,7 +518,8 @@ # Check # wget -a $OUT -O $OUT2 "$CHECKURI$URL2/$U&uname=$USER&pw=$PW&dbnr=$DBNR" # grep -i congrat $OUT2 - $SNAP --url="$URL/$U&uname=$USER&pw=$PW&dbnr=$DBNR" --out="tmp/$U.png" +# $SNAP --url="$URL/$U&uname=$USER&pw=$PW&dbnr=$DBNR" --out="tmp/$U.png" + $SNAP --url="$URL/$U" --out="tmp/$U.png" rm -f $OUT2 done @@ -524,8 +536,11 @@ rm -f $OUT2 done +# RELOGIN wget --save-cookies $COOKIES -a $OUT -O $OUT2 "$URL/mytutos.php?uname=$USER&pw=$PW&dbnr=$DBNR" check_output mytutos.php $OUT2 +SID=`cat $COOKIES | tail -1 | cut -f 7` +SNAP="CutyCapt --min-width=1024 --header=COOKIE:TUTOS=$SID" # Create product wget --load-cookies=$COOKIES --save-cookies=$COOKIES -a $OUT -O $OUT2 \ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gok...@us...> - 2013-03-03 10:48:35
|
Revision: 988 http://sourceforge.net/p/tutos/code/988 Author: gokohnert Date: 2013-03-03 10:48:33 +0000 (Sun, 03 Mar 2013) Log Message: ----------- automated tests / realted fixes Modified Paths: -------------- trunk/php/company_new.php trunk/php/database_overview.php trunk/php/database_show.php trunk/php/department_ins.php trunk/php/location.pinc trunk/php/product_ins.php trunk/test.sh Modified: trunk/php/company_new.php =================================================================== --- trunk/php/company_new.php 2013-03-03 10:47:47 UTC (rev 987) +++ trunk/php/company_new.php 2013-03-03 10:48:33 UTC (rev 988) @@ -145,6 +145,7 @@ $this->obj = new company($this->dbconn); $this->loc = new location($this->dbconn); + $this->name = $lang['CompanyCreate']; if ( isset($_GET['id']) && ($_GET['id'] != "-1" )) { $this->obj = $this->obj->read($_GET['id'],$this->obj); if (!is_object($this->obj)) { @@ -154,7 +155,6 @@ } $this->name = $lang['CompanyModify'] .": ".myentities( $this->obj->getFullName()); } else { - $this->name = $lang['CompanyCreate']; if ( !$this->user->feature_ok(useaddressbook,PERM_NEW) ) { $msg = addLine($msg,sprintf($lang['Err0054'],$lang[$this->obj->getType()])); $this->stop = true; @@ -226,4 +226,4 @@ <!-- SVN Info $Id$ $Author$ ---> +--> \ No newline at end of file Modified: trunk/php/database_overview.php =================================================================== --- trunk/php/database_overview.php 2013-03-03 10:47:47 UTC (rev 987) +++ trunk/php/database_overview.php 2013-03-03 10:48:33 UTC (rev 988) @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2010 by Gero Kohnert + * Copyright 1999 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -16,11 +16,15 @@ * @license GPL2 * @link http://www.tutos.org */ +$tutos['files'][__FILE__] = '$Rev$'; + require_once 'webelements.p3'; require_once 'permission.p3'; // Check if user is allowed to use it check_user(); + +$tutos['mobileok'] = 1; loadmodules("database","overview"); loadlayout(); @@ -42,16 +46,21 @@ $result->free(); return $r; } + $this->flds = 5; + $r .= $this->header; $r .= $this->OverviewTableStart(); - $r .= "<thead>\n"; - $r .= "<tr>\n"; + $r .= $this->OverviewHeadStart(); + $r .= $this->OverviewHeadLineStart(); $r .= $this->orderHeader("dbalias",$lang['AdminDBAlias'],$this->link2); $r .= $this->orderHeader("name",$lang['AdminDBName'],$this->link2); $r .= $this->orderHeader("prefix",$lang['AdminDBPrefix'],$this->link2); $r .= $this->orderHeader("dbhost",$lang['AdminDBHost'],$this->link2); $r .= $this->orderHeader("dbtype",$lang['AdminDBType'],$this->link2); - $r .= "</tr>\n"; - $r .= "</thead>\n"; + $r .= show_custom_overview_headers($this,'note',$this->link2); + // $r .= $this->MassUpdateHeader(); + $r .= $this->OverviewHeadLineEnd(); + $r .= $this->OverviewHeadEnd(); + $r .= $this->OverviewBodyStart(); if ( $this->start == -1 ) { $a = $n - $tutos['maxshow']; @@ -62,7 +71,6 @@ $end = $this->start + $tutos['maxshow']; } - $r .= "<tbody>\n"; $line = 0; while ( ($a < $n) && ($a < $end) ) { $c = new database($this->dbconn); @@ -73,28 +81,31 @@ } $r .= $this->OverviewRowStart($line); - $r .= "<td valign=\"top\">". $c->alias ." </td>"; - $r .= "<td valign=\"top\">". $c->getLink($c->name) ."</td>"; - $r .= "<td valign=\"top\">". $c->prefix ." </td>"; - $r .= "<td valign=\"top\">". $c->host ." </td>"; - $r .= "<td valign=\"top\">". $c->tlist[$c->type] ."</td>"; + $r .= $this->OverviewRowBlock($c->alias,'over_l'); + $r .= $this->OverviewRowBlock($c->getLink($c->name),'over_l'); + $r .= $this->OverviewRowBlock($c->prefix,'over_l'); + $r .= $this->OverviewRowBlock($c->host,'over_l'); + $r .= $this->OverviewRowBlock($c->tlist[$c->type],'over_l'); $r .= $this->OverviewRowEnd($line++); unset($c); } - $r .= "</tbody>\n"; - - $r .= $this->list_navigation($this->link1,4,$this->start,$a,$n); + $r .= $this->OverviewBodyEnd(); + $r .= $this->OverviewFootStart(); + $r .= $this->list_navigation($this->link1,$this->flds,$this->start,$a,$n); + $r .= $this->OverviewFootEnd(); $r .= $this->OverviewTableEnd(); return $r; } + /** * prepare */ Function prepare() { global $msg,$lang; - $this->name = $lang['DBOverview']; + $this->name = $lang['DBOverview']; $this->css_class = 'overviewbox'; + $this->header = ''; $this->link1 = "database_overview.php"; $this->q = "SELECT * FROM ". $this->dbconn->prefix ."tutos_dbs"; Modified: trunk/php/database_show.php =================================================================== --- trunk/php/database_show.php 2013-03-03 10:47:47 UTC (rev 987) +++ trunk/php/database_show.php 2013-03-03 10:48:33 UTC (rev 988) @@ -1,6 +1,6 @@ <?php /** - * Copyright 2001 - 2011 by Gero Kohnert + * Copyright 2001 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -16,6 +16,8 @@ * @link http://www.tutos.org * */ +$tutos['files'][__FILE__] = '$Rev$'; + require_once 'webelements.p3'; require_once 'permission.p3'; @@ -96,32 +98,34 @@ $r .= $this->showdata($this->obj->repository,3); } - $r .= "</tr><tr>\n"; - $r .= $this->showfield($lang['CfgLogo']); - $r .= $this->showdata('<span class="missing">'.$this->obj->logo.'</span> (deprecated go '.makelink('admin/main_config.php','here').')',3); + $r .= "</tr>\n"; + /** + $r .= "<tr>\n"; + $r .= $this->showfield($lang['CfgLogo']); + $r .= $this->showdata('<span class="missing">'.$this->obj->logo.'</span> (deprecated go '.makelink('admin/main_config.php','here').')',3); - $r .= "</tr><tr>\n"; - $r .= $this->showfield($lang['CfgLogoLink']); - $r .= $this->showdata('<span class="missing">'.$this->obj->logolink.'</span> (deprecated go '.makelink('admin/main_config.php','here').')',3); + $r .= "</tr><tr>\n"; + $r .= $this->showfield($lang['CfgLogoLink']); + $r .= $this->showdata('<span class="missing">'.$this->obj->logolink.'</span> (deprecated go '.makelink('admin/main_config.php','here').')',3); - $r .= "</tr><tr>\n"; - $r .= $this->showfield($lang['CfgBugAutoName']); - $r .= $this->showdata('<span class="missing">'.$this->obj->bugautoname.'</span> (deprecated go '.makelink('bugtracking/bug_config.php','here').')',3); + $r .= "</tr><tr>\n"; + $r .= $this->showfield($lang['CfgBugAutoName']); + $r .= $this->showdata('<span class="missing">'.$this->obj->bugautoname.'</span> (deprecated go '.makelink('bugtracking/bug_config.php','here').')',3); - $r .= "</tr><tr>\n"; - $r .= $this->showfield($lang['CfgInvAutoName']); - $r .= $this->showdata('<span class="missing">'.$this->obj->invautoname.'</span> (deprecated go '.makelink('invoice/invoice_config.php','here').')',3); + $r .= "</tr><tr>\n"; + $r .= $this->showfield($lang['CfgInvAutoName']); + $r .= $this->showdata('<span class="missing">'.$this->obj->invautoname.'</span> (deprecated go '.makelink('invoice/invoice_config.php','here').')',3); - $r .= "</tr><tr>\n"; - $r .= $this->showfield($lang['CfgTaskAutoName']); - $r .= $this->showdata('<span class="missing">'.$this->obj->taskautoname.'</span> (deprecated go '.makelink('admin/main_config.php','here').')',3); + $r .= "</tr><tr>\n"; + $r .= $this->showfield($lang['CfgTaskAutoName']); + $r .= $this->showdata('<span class="missing">'.$this->obj->taskautoname.'</span> (deprecated go '.makelink('admin/main_config.php','here').')',3); - $r .= "</tr><tr>\n"; - $r .= $this->showfield($lang['CfgVATlist']); - $r .= $this->showdata('<span class="missing">'.$this->obj->vatlist.'</span> (deprecated go '.makelink('admin/main_config.php','here').')',3); + $r .= "</tr><tr>\n"; + $r .= $this->showfield($lang['CfgVATlist']); + $r .= $this->showdata('<span class="missing">'.$this->obj->vatlist.'</span> (deprecated go '.makelink('admin/main_config.php','here').')',3); - $r .= "</tr>\n"; - + $r .= "</tr>\n"; + */ // Show additional custom fields $r .= show_custom_fields($this,$this->obj->gettype(),$this->obj,4); Modified: trunk/php/department_ins.php =================================================================== --- trunk/php/department_ins.php 2013-03-03 10:47:47 UTC (rev 987) +++ trunk/php/department_ins.php 2013-03-03 10:48:33 UTC (rev 988) @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2012 by Gero Kohnert + * Copyright 1999 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -13,6 +13,8 @@ * @module department_ins * @package department */ +$tutos['files'][__FILE__] = '$Rev$'; + require_once 'webelements.p3'; require_once 'permission.p3'; @@ -60,9 +62,11 @@ $x = check_field($_POST['cfn'],"cfn","cl","c"); $d->setCompany($x->id); } -} -if ( isset($_POST['cid']) ) { +} else if ( isset($_POST['cid']) ) { $d->setCompany($_POST['cid']); +} else { + $msg = addLine($msg,sprintf($lang['Err0009'],$lang['Company'])); + $gotourl = addBadField($gotourl,'cfn',true); } // Check for duplicate name @@ -88,8 +92,6 @@ $msg = addLine($msg,$lmsg); } -$d->setName($name); -$d->c_id = $d->company->id; // // Parse additional custom fields @@ -102,6 +104,8 @@ if ( $msg == '' ) { $dbconn->Begin("WORK"); + $d->c_id = $d->company->id; + $d->setName($name); $msg = addLine($msg,$d->save()); $l->adr_id = $d->id; $l->ref = $d; Modified: trunk/php/location.pinc =================================================================== --- trunk/php/location.pinc 2013-03-03 10:47:47 UTC (rev 987) +++ trunk/php/location.pinc 2013-03-03 10:48:33 UTC (rev 988) @@ -539,7 +539,7 @@ if (isset($_POST['company']) && !empty($_POST['company'])) { $this->used = true; } - } else if ( $_POST['c_id'] != -1 ) { + } else if ( isset($_POST['c_id']) && ($_POST['c_id'] != -1) ) { if ( strstr($_POST['c_id'],'--') ) { $c = explode("--",$_POST['c_id']); } else { @@ -563,7 +563,7 @@ } } $this->setDepartment(check_field($dep_tmp,"department","dl","d")); - } else if ( $_POST['d_id'] != -1 ) { + } else if (isset($_POST['d_id']) && ($_POST['d_id'] != -1) ) { if ( strstr($_POST['d_id'],'--') ) { $c = explode("--",$_POST['d_id']); } else { Modified: trunk/php/product_ins.php =================================================================== --- trunk/php/product_ins.php 2013-03-03 10:47:47 UTC (rev 987) +++ trunk/php/product_ins.php 2013-03-03 10:48:33 UTC (rev 988) @@ -92,9 +92,12 @@ $m = getObject($dbconn,$_POST['r1id']); $p->setRole($m,$_POST['role1'],$_POST['r1desc']); } -$gotourl= addUrlParameter($gotourl,"role1=". $_POST['role1'],true); -$gotourl= addUrlParameter($gotourl,"r1desc=". UrlEncode($_POST['r1desc']),true); - +if ( isset($_POST['role1']) ) { + $gotourl= addUrlParameter($gotourl,"role1=". $_POST['role1'],true); +} +if ( isset($_POST['r1desc']) ) { + $gotourl= addUrlParameter($gotourl,"r1desc=". UrlEncode($_POST['r1desc']),true); +} // Add given Product Role if ( isset($_POST['r2fn']) ) { $m = check_field($_POST['r2fn'],"r2fn","r2l",$tutos[rolecheck][$_POST['role2']]); @@ -106,10 +109,13 @@ $m = getObject($dbconn,$_POST['r2id']); $p->setRole($m,$_POST['role2'],$_POST['r2desc']); } -$gotourl= addUrlParameter($gotourl,"role2=". $_POST['role2'],true); -$gotourl= addUrlParameter($gotourl,"r2desc=". UrlEncode($_POST['r2desc']),true); +if ( isset($_POST['role2']) ) { + $gotourl= addUrlParameter($gotourl,"role2=". $_POST['role2'],true); +} +if ( isset($_POST['r2desc']) ) { + $gotourl= addUrlParameter($gotourl,"r2desc=". UrlEncode($_POST['r2desc']),true); +} - // Check if at least one manager exists if ( count($p->role[1]) < 1 ) { $msg = addLine($msg,sprintf($lang['Err0009'],$lang['ProdRole'][PROD_ROLE_MANAGER])); Modified: trunk/test.sh =================================================================== --- trunk/test.sh 2013-03-03 10:47:47 UTC (rev 987) +++ trunk/test.sh 2013-03-03 10:48:33 UTC (rev 988) @@ -20,10 +20,12 @@ URL=http://$HOST/tutosdev/php PW=tutos ADR=1003 + LG=de else URL=$1 PW=`cat tmp/pw` ADR=`cat tmp/adr_id` + LG=en fi @@ -50,7 +52,7 @@ CHECKURI3=http://www.validome.org/validate/?uri= SNAP=kwebdesktop SNAP=khtml2png2 -SNAP=CutyCapt +SNAP="CutyCapt --min-width=1024" #SNAPLINE=xvfb-run --server-args="-screen 0, 1024x768x24" ./CutyCapt --url=... --out=... # # Check a output @@ -139,352 +141,357 @@ rm -f $OUT2 URLS=" - acl_overview.php - acl_new.php?id=$ADR - acl_show.php?id=$ADR - acl_show.php?id=$NOID - address_ins.php - address_del.php - address_select.php - address_select.php?ext=1 - address_overview.php?name= - address_show.php - address_show.php?id=$ADR - address_show.php?id=$NOID - address_new.php - address_new.php?id=$NOID - address_new.php?id=$ADR - address_show.php?format=vcard&id=$ADR - admin_show.php - admin_sync.php - app_ins.php - app_select.php - app_select.php?ext=1 - app_new.php - app_new.php?id=$NOID - app_new_r.php - app_new_r.php?id=$NOID - app_overview.php - app_show.php - app_show.php?id=$NOID - calendar.php - calendar.php?team[]=$ADR - calendar_week.php - calendar_day.php - company_ins.php - company_new.php - company_new.php?id=$ADR - company_new.php?id=$NOID - company_overview.php?name= - company_show.php - company_show.php?id=$ADR - company_show.php?id=$NOID - database_ins.php - database_del.php - database_show.php?id=0 - database_show.php?id=$NOID - database_new.php?id=0 - database_new.php?id=$NOID - database_overview.php - department_ins.php - department_new.php - department_new.php?id=$NOID - department_show.php - department_show.php?id=$NOID - help.php?p=glossary - history_show.php?id=$ADR - history_show.php?id=$NOID - history_select.php - message_overview.php - message_del.php - minical.php - minitimer.php - module_overview.php - mytutos.php - mytutos.php?id=$NOID - mail_new.php?subject=TEST&watch=$ADR - product_ins.php - product_select.php - product_select.php?ext=1 - product_role_ins.php - product_role_new.php - product_role_new.php?id=$NOID - product_new.php - product_new.php?id=$NOID - product_show.php - product_show.php?id=$NOID - product_overview.php?name=t - product_overview.php?format=stat - product_overview.php?rid[]=1000 - res_cal.php?id=$ADR - res_cal_select.php - sales_forecast.php - sales_forecast.php?format=stat - task_ins.php - task_select.php - task_new.php - task_new.php?id=$NOID - task_show.php - task_show.php?id=$NOID - task_overview.php?id=$ADR - task_overview.php?id=$NOID - team_ins.php - team_select.php - team_overview.php?name= - team_new.php - team_new.php?id=$NOID - team_show.php - team_show.php?id=$NOID - user_ins.php - user_del.php - user_new.php - user_new.php?id=$NOID - user_new.php?id=$ADR - user_new.php?uid=$NOID - user_new.php?uid=$ADR - user_overview.php - admin/backup.php?dbnr=$NOID - admin/backup.php?dbnr=$DBNR - admin/create_config.php - admin/crontab_maker.php - admin/customize_show.php - admin/table_custom_show.php - admin/main_config.php - admin/phpinfo.php - admin/update.php?id=$NOID - bugtracking/bug_ins.php - bugtracking/bug_select.php - bugtracking/bug_select.php?ext=1 - bugtracking/bug_new.php - bugtracking/bug_new.php?id=$NOID - bugtracking/bug_show.php - bugtracking/bug_show.php?id=$NOID - bugtracking/bug_overview.php?name= - bugtracking/bug_overview.php?format=stat - bugtracking/bug_overview.php?format=excel - bugtracking/bug_overview.php?solverid=$ADR - bugtracking/bug_overview.php?solverid=$NOID - bugtracking/bug_config.php - checklist/checklist_ins.php - checklist/checklist_overview.php - checklist/checklist_new.php - checklist/checklist_new.php?id=$NOID - checklist/checklist_show.php - checklist/checklist_show.php?id=$NOID - checklist/checkfield_new.php - checklist/checkfield_new.php?id=$NOID - checklist/checkfield_show.php - checklist/checkfield_show.php?id=$NOID - counter/counter_overview.php - counter/counter_overview.php?id=$ADR - counter/counter_show.php - counter/counter_show.php?id=$ADR - counter/counter_show.php?id=$NOID - doctracker/doc_new.php - doctracker/doc_ins.php - doctracker/doc_show.php - doctracker/doc_show.php?id=$NOID - doctracker/doc_select.php - doctracker/doc_select.php?ext=1 - doctracker/doc_overview.php - drawboard/drawboard_overview.php - expense/expense_ins.php - expense/expense_select.php - expense/expense_new.php - expense/expense_new.php?id=$NOID - expense/expense_new.php?link_id=$ADR - expense/expense_show.php - expense/expense_show.php?id=$NOID - expense/expense_overview.php?name=&reftype=0 - fax/fax_new.php?a=$ADR&nr=123; - fax/fax_new.php?a=$NOID; - file/file_config.php - file/file_ins.php - file/file_del.php - file/file_select.php - file/file_select.php?ext=1 - file/file_show.php - file/file_show.php?id=$NOID - file/file_new.php - file/file_new.php?id=$NOID - file/file_new.php?link_id=$ADR - file/file_new.php?link_id=$NOID - file/file_overview.php - group/group_ins.php - group/group_select.php + acl_overview.php?lg=$LG + acl_new.php?id=$ADR&lg=$LG + acl_show.php?id=$ADR&lg=$LG + acl_show.php?id=$NOID&lg=$LG + acl_ins.php?lg=$LG + address_ins.php?lg=$LG + address_del.php?lg=$LG + address_select.php?lg=$LG + address_select.php?ext=1&lg=$LG + address_overview.php?name=&lg=$LG + address_show.php?lg=$LG + address_show.php?id=$ADR&lg=$LG + address_show.php?id=$NOID&lg=$LG + address_new.php?lg=$LG + address_new.php?id=$NOID&lg=$LG + address_new.php?id=$ADR&lg=$LG + address_show.php?format=vcard&id=$ADR&lg=$LG + admin_show.php?lg=$LG + admin_show.php?lg=$LG&mode=debugfile + admin_show.php?lg=$LG&mode=logfile + admin_sync.php?lg=$LG + app_ins.php?lg=$LG + app_select.php?lg=$LG + app_select.php?ext=1&lg=$LG + app_new.php?lg=$LG + app_new.php?id=$NOID&lg=$LG + app_new_r.php?lg=$LG + app_new_r.php?id=$NOID&lg=$LG + app_overview.php?lg=$LG + app_show.php?lg=$LG + app_show.php?id=$NOID&lg=$LG + calendar.php?lg=$LG + calendar.php?team[]=$ADR&lg=$LG + calendar_week.php?lg=$LG + calendar_day.php?lg=$LG + company_ins.php?lg=$LG + company_new.php?lg=$LG + company_new.php?id=$ADR&lg=$LG + company_new.php?id=$NOID&lg=$LG + company_overview.php?name=&lg=$LG + company_show.php?lg=$LG + company_show.php?id=$ADR&lg=$LG + company_show.php?id=$NOID&lg=$LG + database_ins.php?lg=$LG + database_del.php?lg=$LG + database_show.php?id=0&lg=$LG + database_show.php?id=$NOID&lg=$LG + database_new.php?id=0&lg=$LG + database_new.php?id=$NOID&lg=$LG + database_overview.php?lg=$LG + department_ins.php?lg=$LG + department_new.php?lg=$LG + department_new.php?id=$NOID&lg=$LG + department_show.php?lg=$LG + department_show.php?id=$NOID&lg=$LG + help.php?p=glossary?lg=$LG + history_show.php?id=$ADR&lg=$LG + history_show.php?id=$NOID&lg=$LG + history_select.php?lg=$LG + message_overview.php?lg=$LG + message_del.php?lg=$LG + minical.php?lg=$LG + minitimer.php?lg=$LG + module_overview.php?lg=$LG + mytutos.php?lg=$LG + mytutos.php?id=$NOID&lg=$LG + mail_new.php?subject=TEST&watch=$ADR&lg=$LG + product_ins.php?lg=$LG + product_select.php?lg=$LG + product_select.php?ext=1&lg=$LG + product_role_ins.php?lg=$LG + product_role_new.php?lg=$LG + product_role_new.php?id=$NOID&lg=$LG + product_new.php?lg=$LG + product_new.php?id=$NOID&lg=$LG + product_show.php?lg=$LG + product_show.php?id=$NOID&lg=$LG + product_overview.php?name=t&lg=$LG + product_overview.php?format=stat&lg=$LG + product_overview.php?rid[]=$ADR&lg=$LG + res_cal.php?id=$ADR&lg=$LG + res_cal_select.php?lg=$LG + sales_forecast.php?lg=$LG + sales_forecast.php?format=stat&lg=$LG + task_ins.php?lg=$LG + task_select.php?lg=$LG + task_new.php?lg=$LG + task_new.php?id=$NOID&lg=$LG + task_show.php?lg=$LG + task_show.php?id=$NOID&lg=$LG + task_overview.php?id=$ADR&lg=$LG + task_overview.php?id=$NOID&lg=$LG + team_ins.php?lg=$LG + team_select.php?lg=$LG + team_overview.php?name=&lg=$LG + team_new.php?lg=$LG + team_new.php?id=$NOID&lg=$LG + team_show.php?lg=$LG + team_show.php?id=$NOID&lg=$LG + user_ins.php?lg=$LG + user_del.php?lg=$LG + user_new.php?lg=$LG + user_new.php?id=$NOID&lg=$LG + user_new.php?id=$ADR&lg=$LG + user_new.php?uid=$NOID&lg=$LG + user_new.php?uid=$ADR&lg=$LG + user_overview.php?lg=$LG + admin/backup.php?dbnr=$NOID&lg=$LG + admin/backup.php?dbnr=$DBNR&lg=$LG + admin/create_config.php?lg=$LG + admin/crontab_maker.php?lg=$LG + admin/customize_show.php?lg=$LG + admin/table_custom_show.php?lg=$LG + admin/main_config.php?lg=$LG + admin/phpinfo.php?lg=$LG + admin/update.php?id=$NOID&lg=$LG + bugtracking/bug_ins.php?lg=$LG + bugtracking/bug_select.php?lg=$LG + bugtracking/bug_select.php?ext=1&lg=$LG + bugtracking/bug_new.php?lg=$LG + bugtracking/bug_new.php?id=$NOID&lg=$LG + bugtracking/bug_show.php?lg=$LG + bugtracking/bug_show.php?id=$NOID&lg=$LG + bugtracking/bug_overview.php?name=&lg=$LG + bugtracking/bug_overview.php?format=stat&lg=$LG + bugtracking/bug_overview.php?format=excel&lg=$LG + bugtracking/bug_overview.php?solverid=$ADR&lg=$LG + bugtracking/bug_overview.php?solverid=$NOID&lg=$LG + bugtracking/bug_config.php?lg=$LG + checklist/checklist_ins.php?lg=$LG + checklist/checklist_overview.php?lg=$LG + checklist/checklist_new.php?lg=$LG + checklist/checklist_new.php?id=$NOID&lg=$LG + checklist/checklist_show.php?lg=$LG + checklist/checklist_show.php?id=$NOID&lg=$LG + checklist/checkfield_new.php?lg=$LG + checklist/checkfield_new.php?id=$NOID&lg=$LG + checklist/checkfield_show.php?lg=$LG + checklist/checkfield_show.php?id=$NOID&lg=$LG + counter/counter_overview.php?lg=$LG + counter/counter_overview.php?id=$ADR&lg=$LG + counter/counter_show.php?lg=$LG + counter/counter_show.php?id=$ADR&lg=$LG + counter/counter_show.php?id=$NOID&lg=$LG + doctracker/doc_new.php?lg=$LG + doctracker/doc_ins.php?lg=$LG + doctracker/doc_show.php?lg=$LG + doctracker/doc_show.php?id=$NOID&lg=$LG + doctracker/doc_select.php?lg=$LG + doctracker/doc_select.php?ext=1&lg=$LG + doctracker/doc_overview.php?lg=$LG + drawboard/drawboard_overview.php?lg=$LG + expense/expense_ins.php?lg=$LG + expense/expense_select.php?lg=$LG + expense/expense_new.php?lg=$LG + expense/expense_new.php?id=$NOID&lg=$LG + expense/expense_new.php?link_id=$ADR&lg=$LG + expense/expense_show.php?lg=$LG + expense/expense_show.php?id=$NOID&lg=$LG + expense/expense_overview.php?name=&reftype=0&lg=$LG + fax/fax_new.php?a=$ADR&nr=123;&lg=$LG + fax/fax_new.php?a=$NOID;&lg=$LG + file/file_config.php?lg=$LG + file/file_ins.php?lg=$LG + file/file_del.php?lg=$LG + file/file_select.php?lg=$LG + file/file_select.php?ext=1&lg=$LG + file/file_show.php?lg=$LG + file/file_show.php?id=$NOID&lg=$LG + file/file_new.php?lg=$LG + file/file_new.php?id=$NOID&lg=$LG + file/file_new.php?link_id=$ADR&lg=$LG + file/file_new.php?link_id=$NOID&lg=$LG + file/file_overview.php?lg=$LG + group/group_ins.php?lg=$LG + group/group_select.php?lg=$LG group/group_overview.php - group/group_show.php - group/group_show.php?id=$ADR - group/group_show.php?id=$NOID - group/group_new.php - group/group_new.php?id=$ADR - group/group_new.php?id=$NOID - installation/installation_ins.php - installation/installation_select.php - installation/installation_new.php - installation/installation_new.php?id=$NOID - installation/installation_show.php - installation/installation_show.php?id=$NOID - installation/installation_overview.php - invoice/invoice_ins.php - invoice/invoice_select.php - invoice/invoice_select.php?ext=1 - invoice/invoice_overview.php - invoice/invoice_show.php - invoice/invoice_show.php?id=$NOID - invoice/invoice_new.php - invoice/invoice_new.php?id=$NOID - invoice/invoice_config.php - mailbox/mailbox_new.php?parent=$ADR - mailbox/mailbox_ins.php - mailbox/mailbox_show.php - mailbox/mail_show.php - mailbox/mail_select.php - note/note_ins.php - note/note_select.php - note/note_overview.php?name=demo&reftype=0 - note/note_overview.php?link_id=$ADR - note/note_show.php - note/note_show.php?id=$NOID - note/note_new.php?link_id=$ADR - note/note_new.php?id=$NOID - rate/rate_ins.php - rate/rate_select.php - rate/rate_select.php?ext=1 - rate/rate_show.php - rate/rate_show.php?id=$NOID - rate/rate_new.php - rate/rate_new.php?link_id=$ADR - rate/rate_new.php?id=$NOID - rate/rate_overview.php?name=&reftype=0 - reminder/reminder_ins.php - reminder/reminder_select.php - reminder/reminder_show.php - reminder/reminder_show.php?id=$NOID - reminder/reminder_new.php?link_id=$ADR - reminder/reminder_new.php?link_id=$NOID - reminder/reminder_new.php?id=$NOID - reminder/reminder_new.php - report-engine/report_select.php - report-engine/report_overview.php?class=address&type=show&id=$ADR - report-engine/report_overview.php?class=address&type=show&id=$NOID - requirements/req_new.php - requirements/req_new.php?id=$NOID - requirements/req_ins.php - requirements/req_show.php - requirements/req_show.php?id=$NOID - requirements/req_select.php - requirements/req_select.php?ext=1 - requirements/req_overview.php - resource/resource_new.php - resource/resource_new.php?id=$NOID - resource/resource_ins.php - resource/resource_show.php - resource/resource_show.php?id=$NOID - resource/resource_select.php - resource/resource_overview.php?name= - riskmanagement/risk_new.php - riskmanagement/risk_new.php?id=$NOID - riskmanagement/risk_ins.php - riskmanagement/risk_show.php - riskmanagement/risk_show.php?id=NOID - riskmanagement/risk_select.php - riskmanagement/risk_select.php?ext=1 - riskmanagement/risk_overview.php - rss/rss_ins.php - rss/rss_new.php - rss/rss_overview.php - rss/rss_show.php - rss/rss_show.php?id=$NOID - scrum/scrum_config.php - scrum/log_ajax.php - scrum/log_ins.php - scrum/log_new.php - scrum/log_new.php?mode=manage_s - scrum/log_new.php?mode=manage_p - scrum/log_new.php?mode=manage_w - scrum/log_show.php - scrum/log_show.php?id=$NOID - scrum/log_select.php - scrum/log_overview.php - scrum/sprint_ins.php - scrum/sprint_new.php - scrum/sprint_show.php - scrum/sprint_show.php?id=$NOID - scrum/sprint_select.php - scrum/sprint_overview.php - stc/stc_ins.php - stc/stc_new.php - stc/stc_overview.php - stc/stc_show.php - stc/stc_show.php?id=$NOID - search/global_select.php - stuff/stuff_ins.php - stuff/stuff_select.php - stuff/stuff_overview.php - stuff/stuff_new.php - stuff/stuff_new.php?id=$NOID - stuff/stuff_show.php - stuff/stuff_show.php?id=$NOID - stuff/stuff_config.php - subversion/svn_config.php - subversion/svn_new.php - subversion/svn_ins.php - subversion/svn_show.php - subversion/svn_overview.php - testmanager/testcase_new.php - testmanager/testcase_ins.php - testmanager/testcase_show.php - testmanager/testcase_show.php?id=$NOID - testmanager/testcase_select.php - testmanager/testcase_select.php?ext=1 - testmanager/testcase_overview.php - testmanager/testsuite_new.php - testmanager/testsuite_ins.php - testmanager/testsuite_show.php - testmanager/testsuite_show.php?id=$NOID - testmanager/testsuite_select.php - testmanager/testsuite_select.php?ext=1 - testmanager/testsuite_overview.php - testmanager/testrun_new.php - testmanager/testrun_ins.php - testmanager/testrun_show.php - testmanager/testrun_show.php?id=$NOID - testmanager/testrun_select.php - testmanager/testrun_select.php?ext=1 - testmanager/testrun_overview.php - ticker/ticker_overview.php - timetrack/timetrack_ins.php - timetrack/timetrack_new.php - timetrack/timetrack_new.php?id=$NOID - timetrack/timetrack_new.php?lid=$NOID - timetrack/timetrack_new.php?mode=1&lid=$NOID - timetrack/timetrack_select.php - timetrack/timetrack_overview.php?worker=$ADR - timetrack/timetrack_overview.php?worker=$NOID - timetrack/timetrack_config.php - url/url_ins.php - url/url_select.php - url/url_overview.php?name= - url/url_overview.php?link_id=-2 - url/url_new.php?link_id=$ADR - url/url_new.php?id=$NOID - url/urlcat_show.php - url/urlcat_show.php?id=NOID - url/urlcat_new.php - url/urlcat_new.php?id=NOID - watchlist/watchlist_overview.php?id=$ADR - admin/restore.php?dbnr=$NOID - admin/restore.php?dbnr=$DBNR - admin/scheme.php - admin/update.php - subversion/svn_check.php - subversion/svn_access.php + group/group_show.php?lg=$LG + group/group_show.php?id=$ADR&lg=$LG + group/group_show.php?id=$NOID&lg=$LG + group/group_new.php?lg=$LG + group/group_new.php?id=$ADR&lg=$LG + group/group_new.php?id=$NOID&lg=$LG + installation/installation_ins.php?lg=$LG + installation/installation_select.php?lg=$LG + installation/installation_new.php?lg=$LG + installation/installation_new.php?id=$NOID&lg=$LG + installation/installation_show.php?lg=$LG + installation/installation_show.php?id=$NOID&lg=$LG + installation/installation_overview.php?lg=$LG + invoice/invoice_ins.php?lg=$LG + invoice/invoice_select.php?lg=$LG + invoice/invoice_select.php?ext=1&lg=$LG + invoice/invoice_overview.php?lg=$LG + invoice/invoice_show.php?lg=$LG + invoice/invoice_show.php?id=$NOID&lg=$LG + invoice/invoice_new.php?lg=$LG + invoice/invoice_new.php?id=$NOID&lg=$LG + invoice/invoice_config.php?lg=$LG + mailbox/mailbox_new.php?parent=$ADR&lg=$LG + mailbox/mailbox_ins.php?lg=$LG + mailbox/mailbox_show.php?lg=$LG + mailbox/mail_show.php?lg=$LG + mailbox/mail_select.php?lg=$LG + note/note_ins.php?lg=$LG + note/note_select.php?lg=$LG + note/note_overview.php?name=demo&reftype=0&lg=$LG + note/note_overview.php?link_id=$ADR&lg=$LG + note/note_show.php?lg=$LG + note/note_show.php?id=$NOID&lg=$LG + note/note_new.php?link_id=$ADR&lg=$LG + note/note_new.php?id=$NOID&lg=$LG + rate/rate_ins.php?lg=$LG + rate/rate_select.php?lg=$LG + rate/rate_select.php?ext=1&lg=$LG + rate/rate_show.php?lg=$LG + rate/rate_show.php?id=$NOID&lg=$LG + rate/rate_new.php?lg=$LG + rate/rate_new.php?link_id=$ADR&lg=$LG + rate/rate_new.php?id=$NOID&lg=$LG + rate/rate_overview.php?name=&reftype=0&lg=$LG + reminder/reminder_ins.php?lg=$LG + reminder/reminder_select.php?lg=$LG + reminder/reminder_show.php?lg=$LG + reminder/reminder_show.php?id=$NOID&lg=$LG + reminder/reminder_new.php?link_id=$ADR&lg=$LG + reminder/reminder_new.php?link_id=$NOID&lg=$LG + reminder/reminder_new.php?id=$NOID&lg=$LG + reminder/reminder_new.php?lg=$LG + report-engine/report_select.php?lg=$LG + report-engine/report_overview.php?class=address&type=show&id=$ADR&lg=$LG + report-engine/report_overview.php?class=address&type=show&id=$NOID&lg=$LG + requirements/req_new.php?lg=$LG + requirements/req_new.php?id=$NOID&lg=$LG + requirements/req_ins.php?lg=$LG + requirements/req_show.php?lg=$LG + requirements/req_show.php?id=$NOID&lg=$LG + requirements/req_select.php?lg=$LG + requirements/req_select.php?ext=1&lg=$LG + requirements/req_overview.php?lg=$LG + resource/resource_new.php?lg=$LG + resource/resource_new.php?id=$NOID&lg=$LG + resource/resource_ins.php?lg=$LG + resource/resource_show.php?lg=$LG + resource/resource_show.php?id=$NOID&lg=$LG + resource/resource_select.php?lg=$LG + resource/resource_overview.php?name=&lg=$LG + riskmanagement/risk_new.php?lg=$LG + riskmanagement/risk_new.php?id=$NOID&lg=$LG + riskmanagement/risk_ins.php?lg=$LG + riskmanagement/risk_show.php?lg=$LG + riskmanagement/risk_show.php?id=NOID&lg=$LG + riskmanagement/risk_select.php?lg=$LG + riskmanagement/risk_select.php?ext=1&lg=$LG + riskmanagement/risk_overview.php?lg=$LG + rss/rss_ins.php?lg=$LG + rss/rss_new.php?lg=$LG + rss/rss_overview.php?lg=$LG + rss/rss_show.php?lg=$LG + rss/rss_show.php?id=$NOID&lg=$LG + scrum/scrum_config.php?lg=$LG + scrum/log_ajax.php?lg=$LG + scrum/log_ins.php?lg=$LG + scrum/log_new.php?lg=$LG + scrum/log_new.php?mode=manage_s&lg=$LG + scrum/log_new.php?mode=manage_p&lg=$LG + scrum/log_new.php?mode=manage_w&lg=$LG + scrum/log_show.php?lg=$LG + scrum/log_show.php?id=$NOID&lg=$LG + scrum/log_select.php?lg=$LG + scrum/log_overview.php?lg=$LG + scrum/sprint_ins.php?lg=$LG + scrum/sprint_new.php?lg=$LG + scrum/sprint_show.php?lg=$LG + scrum/sprint_show.php?id=$NOID&lg=$LG + scrum/sprint_select.php?lg=$LG + scrum/sprint_overview.php?lg=$LG + stc/stc_ins.php?lg=$LG + stc/stc_new.php?lg=$LG + stc/stc_overview.php?lg=$LG + stc/stc_show.php?lg=$LG + stc/stc_show.php?id=$NOID&lg=$LG + search/global_select.php?lg=$LG + stuff/stuff_ins.php?lg=$LG + stuff/stuff_select.php?lg=$LG + stuff/stuff_overview.php?lg=$LG + stuff/stuff_new.php?lg=$LG + stuff/stuff_new.php?id=$NOID&lg=$LG + stuff/stuff_show.php?lg=$LG + stuff/stuff_show.php?id=$NOID&lg=$LG + stuff/stuff_config.php?lg=$LG + subversion/svn_config.php?lg=$LG + subversion/svn_new.php?lg=$LG + subversion/svn_ins.php?lg=$LG + subversion/svn_show.php?lg=$LG + subversion/svn_overview.php?lg=$LG + testmanager/testcase_new.php?lg=$LG + testmanager/testcase_ins.php?lg=$LG + testmanager/testcase_show.php?lg=$LG + testmanager/testcase_show.php?id=$NOID&lg=$LG + testmanager/testcase_select.php?lg=$LG + testmanager/testcase_select.php?ext=1&lg=$LG + testmanager/testcase_overview.php?lg=$LG + testmanager/testsuite_new.php?lg=$LG + testmanager/testsuite_ins.php?lg=$LG + testmanager/testsuite_show.php?lg=$LG + testmanager/testsuite_show.php?id=$NOID&lg=$LG + testmanager/testsuite_select.php?lg=$LG + testmanager/testsuite_select.php?ext=1&lg=$LG + testmanager/testsuite_overview.php?lg=$LG + testmanager/testrun_new.php?lg=$LG + testmanager/testrun_ins.php?lg=$LG + testmanager/testrun_show.php?lg=$LG + testmanager/testrun_show.php?id=$NOID&lg=$LG + testmanager/testrun_select.php?lg=$LG + testmanager/testrun_select.php?ext=1&lg=$LG + testmanager/testrun_overview.php?lg=$LG + ticker/ticker_overview.php?lg=$LG + timetrack/timetrack_ins.php?lg=$LG + timetrack/timetrack_new.php?lg=$LG + timetrack/timetrack_new.php?id=$NOID&lg=$LG + timetrack/timetrack_new.php?lid=$NOID&lg=$LG + timetrack/timetrack_new.php?mode=1&lid=$NOID&lg=$LG + timetrack/timetrack_select.php?lg=$LG + timetrack/timetrack_overview.php?worker=$ADR&lg=$LG + timetrack/timetrack_overview.php?worker=$NOID&lg=$LG + timetrack/timetrack_config.php?lg=$LG + url/url_ins.php?lg=$LG + url/url_select.php?lg=$LG + url/url_overview.php?name=&lg=$LG + url/url_overview.php?link_id=-2&lg=$LG + url/url_new.php?link_id=$ADR&lg=$LG + url/url_new.php?id=$NOID&lg=$LG + url/urlcat_show.php?lg=$LG + url/urlcat_show.php?id=NOID&lg=$LG + url/urlcat_new.php?lg=$LG + url/urlcat_new.php?id=NOID&lg=$LG + watchlist/watchlist_overview.php?adr=$ADR&lg=$LG + watchlist/watchlist_overview.php?id=$ADR&lg=$LG + watchlist/watchlist_overview.php?id=$NOID&lg=$LG + admin/restore.php?dbnr=$NOID&lg=$LG + admin/restore.php?dbnr=$DBNR&lg=$LG + admin/scheme.php?lg=$LG + admin/update.php?lg=$LG + subversion/svn_check.php?lg=$LG + subversion/svn_access.php?lg=$LG " URLS2=" -admin/backup.php -check.php -rss/news.php +admin/backup.php?lg=$LG +check.php?lg=$LG +rss/news.php?lg=$LG " for U in $URLS; do This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gok...@us...> - 2013-03-03 10:47:51
|
Revision: 987 http://sourceforge.net/p/tutos/code/987 Author: gokohnert Date: 2013-03-03 10:47:47 +0000 (Sun, 03 Mar 2013) Log Message: ----------- homepage pics update Modified Paths: -------------- trunk/homepage/address.png trunk/homepage/file.png Modified: trunk/homepage/address.png =================================================================== (Binary files differ) Modified: trunk/homepage/file.png =================================================================== (Binary files differ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gok...@us...> - 2013-03-02 08:28:56
|
Revision: 986 http://sourceforge.net/p/tutos/code/986 Author: gokohnert Date: 2013-03-02 08:28:53 +0000 (Sat, 02 Mar 2013) Log Message: ----------- homepage pics update Modified Paths: -------------- trunk/homepage/bugtrack.png trunk/homepage/calendar.png trunk/homepage/foot1.html.inc trunk/homepage/head1.html.inc trunk/homepage/index.html trunk/homepage/installations.png trunk/homepage/product.png trunk/homepage/timetrack2.png Modified: trunk/homepage/bugtrack.png =================================================================== (Binary files differ) Modified: trunk/homepage/calendar.png =================================================================== (Binary files differ) Modified: trunk/homepage/foot1.html.inc =================================================================== --- trunk/homepage/foot1.html.inc 2013-03-01 21:26:59 UTC (rev 985) +++ trunk/homepage/foot1.html.inc 2013-03-02 08:28:53 UTC (rev 986) @@ -26,7 +26,8 @@ </form> <br /> - <script type="text/javascript" src="" rel="nofollow">http://www.ohloh.net/p/351/widgets/project_partner_badge.js"></script> + <!-- <script type="text/javascript" src="-->" rel="nofollow">http://www.ohloh.net/p/351/widgets/project_partner_badge.js"></script>--> + <script type="text/javascript" src="" rel="nofollow">http://www.ohloh.net/p/351/widgets/project_thin_badge.js"></script> </center></td> <td> Modified: trunk/homepage/head1.html.inc =================================================================== --- trunk/homepage/head1.html.inc 2013-03-01 21:26:59 UTC (rev 985) +++ trunk/homepage/head1.html.inc 2013-03-02 08:28:53 UTC (rev 986) @@ -2,12 +2,12 @@ <!-- start of head 1 --> </head> <body bgcolor="white"> -<table cellspacing="0" cellpadding="2" width="100%" border="0"> -<tr> - <td width="5%" class="headline" colspan="2" rowspan="3" align="left"> - <a class="nodeco" href="http://www.tutos.org"><img border="0" src="../html/tutos_small.gif" alt="LOGO" /></a></td> - <td width="90%" class="headline"><font size="-2"> </font></td> - <td width="5%" class="headline" rowspan="3" align="right"> </td> -</tr><tr> - <td class="headline" align="center"><b><font size="+2"> -<!-- end of head 1 --> + <table cellspacing="0" cellpadding="2" width="100%" border="0"> + <tr> + <td width="5%" class="headline" colspan="2" rowspan="3" align="left"> +<a class="nodeco" href="http://www.tutos.org"><img border="0" src="../html/tutos_small.png" alt="LOGO" /></a></td> + <td width="90%" class="headline"><font size="-2"> </font></td> + <td width="5%" class="headline" rowspan="3" align="right"> </td> + </tr><tr> + <td class="headline" align="center"><b><font size="+2"> + <!-- end of head 1 --> \ No newline at end of file Modified: trunk/homepage/index.html =================================================================== --- trunk/homepage/index.html 2013-03-01 21:26:59 UTC (rev 985) +++ trunk/homepage/index.html 2013-03-02 08:28:53 UTC (rev 986) @@ -10,7 +10,7 @@ <center> <p /> <p /> -<img border="0" src="../html/tutos.gif" alt="TUTOS" /> +<img border="0" src="../html/tutos_full.png" alt="TUTOS" /> <br /><b><font size="3">LATEST RELEASE IS 1.9.20121228</font></b> </center> <!--#include file="foot1.html.inc" --> Modified: trunk/homepage/installations.png =================================================================== (Binary files differ) Modified: trunk/homepage/product.png =================================================================== (Binary files differ) Modified: trunk/homepage/timetrack2.png =================================================================== (Binary files differ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gok...@us...> - 2013-03-01 21:27:02
|
Revision: 985 http://sourceforge.net/p/tutos/code/985 Author: gokohnert Date: 2013-03-01 21:26:59 +0000 (Fri, 01 Mar 2013) Log Message: ----------- automated tests / realted fixes Modified Paths: -------------- trunk/html/new2_layout.css trunk/php/auth/auth_cmdline.pinc trunk/php/location.pinc trunk/php/product_role_new.php trunk/php/scrum/log_ins.php trunk/php/subversion/svn_access.php trunk/php/subversion/svn_check.php trunk/php/task_ins.php trunk/php/ticker/rsslib.pinc trunk/php/timetrack/timetrack_ins.php trunk/test.sh Modified: trunk/html/new2_layout.css =================================================================== --- trunk/html/new2_layout.css 2013-03-01 12:29:33 UTC (rev 984) +++ trunk/html/new2_layout.css 2013-03-01 21:26:59 UTC (rev 985) @@ -127,7 +127,7 @@ margin-left: 0px; margin-right: 0px; line-height: 105%; - white-space: nowrap; +/** white-space: nowrap; */ vertical-align: top; text-align: left; } Modified: trunk/php/auth/auth_cmdline.pinc =================================================================== --- trunk/php/auth/auth_cmdline.pinc 2013-03-01 12:29:33 UTC (rev 984) +++ trunk/php/auth/auth_cmdline.pinc 2013-03-01 21:26:59 UTC (rev 985) @@ -28,6 +28,9 @@ } function getParameter($x) { + if (!isset($_SERVER['argc'])) { + return ''; + } for ($i = 0 ; $i < $_SERVER['argc']; $i++ ) { if ($_SERVER['argv'][$i] == "-".$x) { $r = $_SERVER['argv'][$i+1]; @@ -35,7 +38,7 @@ return $r; } } - return ""; + return ''; } /** @@ -53,12 +56,40 @@ } /** + * ready for check + */ + function ready() { + global $tutos; + + dterror_log('ready cmdline '."\n", 3, $tutos[errlog]); + + if ( $this->getuname() != "" && $this->getpw() != "" ) { + return true; + } + return false; + } + + /** * Check for permmision * using a DB query */ function check() { global $current_user,$lang; + // ready ? + if ( ! $this->ready() ) { + /* No Username or no password supplied */ + if ( free_login($this->dbconn) ) { + return $current_user; + } + // logmessage("missing uname or pw "); + $r[0] = ''; + $r[1] = $lang['Err0025']; + return $r; + } + + dterror_log('check cmdline '.$this->getuname()."\n", 3, $tutos[errlog]); + $q = "SELECT a.* ,p.*,p.id as u_id, p.creator as cr_a, p.creation as cr_t FROM ". $this->dbconn->prefix ."addresses a, ". $this->dbconn->prefix ."people p "; $q .= " WHERE p.login = ". $this->dbconn->String($this->getuname()); $q .= " AND p.pw = ". $this->dbconn->Password($this->getpw()) ." AND p.adr_id = a.id"; Modified: trunk/php/location.pinc =================================================================== --- trunk/php/location.pinc 2013-03-01 12:29:33 UTC (rev 984) +++ trunk/php/location.pinc 2013-03-01 21:26:59 UTC (rev 985) @@ -10,6 +10,7 @@ * $Author$ */ $tutos['files'][__FILE__] = '$Rev$'; + require_once 'company.pinc'; require_once 'department.pinc'; @@ -529,7 +530,7 @@ } // Check Company - if ( !isset($_POST['c_id']) ) { + if ( !isset($_POST['c_id']) && isset($_POST['company']) ) { if ($this->company->getFullName() == $_POST['company']) { $gotourl= addUrlParameter($gotourl,'cl[]='. $this->company->id,true); } else { @@ -538,22 +539,20 @@ if (isset($_POST['company']) && !empty($_POST['company'])) { $this->used = true; } - } else { - if ( $_POST['c_id'] != -1 ) { - if ( strstr($_POST['c_id'],'--') ) { - $c = explode("--",$_POST['c_id']); - } else { - $c[0] = $_POST['c_id']; - $c[1] = -1; - } - $this->SetCompany($this->company->read($c[0],$this->company)); - $gotourl= addUrlParameter($gotourl,'cl[]='. $this->company->id,true); - $this->used = true; - $locid = $c[1]; + } else if ( $_POST['c_id'] != -1 ) { + if ( strstr($_POST['c_id'],'--') ) { + $c = explode("--",$_POST['c_id']); + } else { + $c[0] = $_POST['c_id']; + $c[1] = -1; } + $this->SetCompany($this->company->read($c[0],$this->company)); + $gotourl= addUrlParameter($gotourl,'cl[]='. $this->company->id,true); + $this->used = true; + $locid = $c[1]; } // Check Department - if ( !isset($_POST['d_id']) ) { + if ( !isset($_POST['d_id']) && isset($_POST['department']) ) { $dep_tmp = trim($_POST['department']); if ( strlen($dep_tmp) && strstr($dep_tmp," / ") == FALSE ) { $dep_tmp = ' / ' . $dep_tmp; @@ -564,20 +563,17 @@ } } $this->setDepartment(check_field($dep_tmp,"department","dl","d")); - } else { - if ( $_POST['d_id'] != -1 ) { - if ( strstr($_POST['d_id'],'--') ) { - $c = explode("--",$_POST['d_id']); - } else { - $c[0] = $_POST['d_id']; - $c[1] = -1; - } - $this->department = new Department($this->dbconn); - $this->SetDepartment($this->department->read($c[0],$this->department)); - $gotourl= addUrlParameter($gotourl,"dl[]=". $this->department->id,true); - $locid = $c[1]; + } else if ( $_POST['d_id'] != -1 ) { + if ( strstr($_POST['d_id'],'--') ) { + $c = explode("--",$_POST['d_id']); + } else { + $c[0] = $_POST['d_id']; + $c[1] = -1; } - # $this->used = true; + $this->department = new Department($this->dbconn); + $this->SetDepartment($this->department->read($c[0],$this->department)); + $gotourl= addUrlParameter($gotourl,"dl[]=". $this->department->id,true); + $locid = $c[1]; } Modified: trunk/php/product_role_new.php =================================================================== --- trunk/php/product_role_new.php 2013-03-01 12:29:33 UTC (rev 984) +++ trunk/php/product_role_new.php 2013-03-01 21:26:59 UTC (rev 985) @@ -46,8 +46,8 @@ continue; } $r .= " <option value=\"". $role ."\"". - ($role == $tutos[defaultrole] ? " selected" : "") .">". - myentities($lang['ProdRole'][$role]) ."</option>\n"; + ($role == $tutos[defaultrole] ? " selected" : "") .">". + myentities($lang['ProdRole'][$role]) ."</option>\n"; } $r .= " </select>\n"; $r .= " </td>\n"; @@ -187,6 +187,8 @@ $this->obj->r1 = new tutos_user($this->dbconn); $this->obj->r1 = $this->obj->r1->read($this->rid[0],$this->obj->r1); + } else { + $this->stop = true; } if ( (($this->obj->id < 0) || ($this->template)) && !$this->user->feature_ok(useprojects,PERM_NEW) ) { @@ -229,4 +231,4 @@ <!-- SVN Info $Id$ $Author$ ---> +--> \ No newline at end of file Modified: trunk/php/scrum/log_ins.php =================================================================== --- trunk/php/scrum/log_ins.php 2013-03-01 12:29:33 UTC (rev 984) +++ trunk/php/scrum/log_ins.php 2013-03-01 21:26:59 UTC (rev 985) @@ -15,6 +15,8 @@ * @module log_ins * @package scrum */ +$tutos['files'][__FILE__] = '$Rev$'; + $tutos['base'] = '../..'; ini_set('include_path','..'); require_once 'webelements.p3'; @@ -199,14 +201,15 @@ $dbconn->Commit("WORK"); } else { // create or change just the object - $cap = trim($_POST['cap']); - - $gotourl= addUrlParameter($gotourl,"cap=". UrlEncode($cap),true); - if ( !checkHHMM($cap) && !checkfloat($cap) ) { - $msg = addLine($msg,sprintf($lang['Err0009'],$lang['ScrumLogRCap'])); - $gotourl = addBadField($gotourl,'cap',true); - } else { - $obj->setRCap($cap); + if (isset($_POST['cap'])) { + $cap = trim($_POST['cap']); + $gotourl= addUrlParameter($gotourl,"cap=". UrlEncode($cap),true); + if ( !checkHHMM($cap) && !checkfloat($cap) ) { + $msg = addLine($msg,sprintf($lang['Err0009'],$lang['ScrumLogRCap'])); + $gotourl = addBadField($gotourl,'cap',true); + } else { + $obj->setRCap($cap); + } } if (is_object($pref)) { $obj->p_id = $pref->id; Modified: trunk/php/subversion/svn_access.php =================================================================== --- trunk/php/subversion/svn_access.php 2013-03-01 12:29:33 UTC (rev 984) +++ trunk/php/subversion/svn_access.php 2013-03-01 21:26:59 UTC (rev 985) @@ -1,6 +1,6 @@ <?php /** - * Copyright 2000 - 2011 by Gero Kohnert + * Copyright 2000 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -10,6 +10,8 @@ * @module note_notify * @package svn */ +$tutos['files'][__FILE__] = '$Rev$'; + $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; @@ -145,7 +147,7 @@ } if ( ($id == -1) && ($search == '') ) { - echo "FAILED use id or search argument"; + echo "FAILED use id or search argument\n"; exit -1; } @@ -153,6 +155,10 @@ $x = getObject($dbconn,$id); $master = new dummy($dbconn); + if (!is_object($x)) { + echo "nothing found for ". $id ."\n"; + exit -1; + } if ($x->getType() == 'svn') { // just for this svn path $master->list[usesvn][] = $x; @@ -184,9 +190,12 @@ $r = ''; +if (count($master->list) == 0) { + echo "nothing found\n"; + exit -1; +} - foreach ($master->list[usesvn] as $svn) { $svn->read_reference(); $svn->getLocalRepoPath(); Modified: trunk/php/subversion/svn_check.php =================================================================== --- trunk/php/subversion/svn_check.php 2013-03-01 12:29:33 UTC (rev 984) +++ trunk/php/subversion/svn_check.php 2013-03-01 21:26:59 UTC (rev 985) @@ -1,6 +1,6 @@ <?php /** - * Copyright 2000 - 2011 by Gero Kohnert + * Copyright 2000 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -12,6 +12,8 @@ * @module note_notify * @package svn */ +$tutos['files'][__FILE__] = '$Rev$'; + $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; @@ -47,10 +49,10 @@ loadmodule('bugtracking'); if (!isset($_GET['repo'])) { - die ('Missining Argument repo='); + die ('Missining Argument repo='."\n"); } if (!isset($_GET['trans'])) { - die ('Missining Argument trans='); + die ('Missining Argument trans='."\n"); } $msg = ''; Modified: trunk/php/task_ins.php =================================================================== --- trunk/php/task_ins.php 2013-03-01 12:29:33 UTC (rev 984) +++ trunk/php/task_ins.php 2013-03-01 21:26:59 UTC (rev 985) @@ -90,32 +90,40 @@ $gotourl= addUrlParameter($gotourl,'nogantt='. UrlEncode($nogantt),true); $t->setNoGantt($nogantt); -$volume = trim($_POST['volume']); -if ( !checkHHMM($volume,false) && !checkfloat($volume,false) ) { - $msg = addLine($msg,sprintf($lang['Err0017'],$lang['TaskVolumeFull'])); - $gotourl = addBadField($gotourl,'volume',true); -} else { - $gotourl= addUrlParameter($gotourl,"volume=". UrlEncode($_POST['volume']),true); +$volume = 0; +if (isset($_POST['volume'])) { + $volume = trim($_POST['volume']); + if ( !checkHHMM($volume,false) && !checkfloat($volume,false) ) { + $msg = addLine($msg,sprintf($lang['Err0017'],$lang['TaskVolumeFull'])); + $gotourl = addBadField($gotourl,'volume',true); + } else { + $gotourl= addUrlParameter($gotourl,"volume=". UrlEncode($_POST['volume']),true); + } } -$volume_done = trim($_POST['volume_done']); -if ( !checkHHMM($volume_done,false) && !checkfloat($volume_done,false) ) { - $msg = addLine($msg,sprintf($lang['Err0009'],$lang['TaskVolumeDone'])); - $gotourl = addBadField($gotourl,'volume_done',true); -} else { - $volume_done = sprintf('%.3f',$volume_done); - $gotourl= addUrlParameter($gotourl,"volume_done=". my_number_format($volume_done,3),true); +$volume_done = 0; +if (isset($_POST['volume_done'])) { + $volume_done = trim($_POST['volume_done']); + if ( !checkHHMM($volume_done,false) && !checkfloat($volume_done,false) ) { + $msg = addLine($msg,sprintf($lang['Err0009'],$lang['TaskVolumeDone'])); + $gotourl = addBadField($gotourl,'volume_done',true); + } else { + $volume_done = sprintf('%.3f',$volume_done); + $gotourl= addUrlParameter($gotourl,"volume_done=". my_number_format($volume_done,3),true); + } } -$volume_todo = trim($_POST['volume_todo']); -if ( (!checkHHMM($volume_todo) && !checkfloat($volume_todo) ) - || ($volume_todo < 0 && $volume_todo != -1.0)) { - $msg = addLine($msg,sprintf($lang['Err0009'],$lang['TaskVolumeTodo'])); - $gotourl = addBadField($gotourl,'volume_todo',true); -} else { - $gotourl= addUrlParameter($gotourl,'volume_todo='. my_number_format($volume_todo,3),true); +$volume_todo = 0; +if (isset($_POST['volume_todo'])) { + $volume_todo = trim($_POST['volume_todo']); + if ( (!checkHHMM($volume_todo) && !checkfloat($volume_todo) ) + || ($volume_todo < 0 && $volume_todo != -1.0)) { + $msg = addLine($msg,sprintf($lang['Err0009'],$lang['TaskVolumeTodo'])); + $gotourl = addBadField($gotourl,'volume_todo',true); + } else { + $gotourl= addUrlParameter($gotourl,'volume_todo='. my_number_format($volume_todo,3),true); + } } - // // EMAIL // @@ -180,7 +188,7 @@ case "user": case "address": { $hasrole = $f == $o->id; - break; + break; } case "company": { $hasrole = $f == $o->id; Modified: trunk/php/ticker/rsslib.pinc =================================================================== --- trunk/php/ticker/rsslib.pinc 2013-03-01 12:29:33 UTC (rev 984) +++ trunk/php/ticker/rsslib.pinc 2013-03-01 21:26:59 UTC (rev 985) @@ -84,6 +84,9 @@ $r = ''; $regs = array(); preg_match('#.*<item>(.*)</item>.*#ims',$item.'</item>',$regs); + if (!isset($regs[1])) { + return $r; + } $item = $regs[1]; $regs = array(); Modified: trunk/php/timetrack/timetrack_ins.php =================================================================== --- trunk/php/timetrack/timetrack_ins.php 2013-03-01 12:29:33 UTC (rev 984) +++ trunk/php/timetrack/timetrack_ins.php 2013-03-01 21:26:59 UTC (rev 985) @@ -14,6 +14,8 @@ * @module timetrack_ins * @package timetrack */ +$tutos['files'][__FILE__] = '$Rev$'; + $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; @@ -141,10 +143,10 @@ } // volume -if ( $tt->t_start->notime == 1 ) { +if ( ($tt->t_start->notime == 1) && isset($_POST['volume']) ) { // the worked time $volume = trim($_POST['volume']); - $gotourl= addUrlParameter($gotourl,"volume=". UrlEncode($_POST['volume']),true); + $gotourl= addUrlParameter($gotourl,"volume=". UrlEncode($volume),true); if ( !checkHHMM($volume,false) && !checkfloat($volume,false) ) { $msg = addLine($msg,sprintf($lang['Err0009'],$lang['TaskVolumeDone'])); $gotourl = addBadField($gotourl,'volume',true); @@ -154,36 +156,41 @@ } // distance if ( isset($_POST['distance']) && $_POST['distance'] != "" ) { - $gotourl= addUrlParameter($gotourl,"distance=".UrlEncode($_POST['distance']),true); + $distance = trim($_POST['distance']); + $gotourl= addUrlParameter($gotourl,"distance=".UrlEncode($distance),true); - if ( !checkfloat($_POST['distance'],false) ) { + if ( !checkfloat($distance,false) ) { $msg = addLine($msg,sprintf($lang['Err0009'],$lang['Distance'])); $gotourl = addBadField($gotourl,'distance',true); } else { - $tt->setDistance($_POST['distance']); + $tt->setDistance($distance); } } // volume todo if ( isset($_POST['volume_todo']) && $_POST['volume_todo'] != "" ) { - $gotourl= addUrlParameter($gotourl,"volume_todo=".UrlEncode($_POST['volume_todo']),true); - $vt = $_POST['volume_todo']; + $vt = trim($_POST['volume_todo']); + $gotourl= addUrlParameter($gotourl,"volume_todo=".UrlEncode($vt),true); if ( !checkHHMM($vt,false) && !checkfloat($vt,false) ) { - $msg = addLLine($msg,sprintf($lang['Err0009'],$lang['TaskVolumeTodo'])); + $msg = addLine($msg,sprintf($lang['Err0009'],$lang['TaskVolumeTodo'])); $gotourl = addBadField($gotourl,'volume_todo',true); } else { $tt->setVolumeTodo($vt); } } -if ( !checkfloat($_POST['cph'],true) ) { - $msg = addLine($msg,sprintf($lang['Err0017'],$lang['TTcph'])); - $gotourl = addBadField($gotourl,'cph',true); -} else { - $gotourl= addUrlParameter($gotourl,"cph=". UrlEncode($_POST['cph']),true); - $tt->setCph($_POST['cph']); +if ( isset($_POST['cph']) && $_POST['cph'] != "" ) { + $cph = trim($_POST['cph']); + if ( !checkfloat($cph,true) ) { + $msg = addLine($msg,sprintf($lang['Err0017'],$lang['TTcph'])); + $gotourl = addBadField($gotourl,'cph',true); + } else { + $gotourl= addUrlParameter($gotourl,"cph=". UrlEncode($cph),true); + $tt->setCph($_POST['cph']); + } } + // currency if ( isset($_POST['currency']) ) { $tt->setCurrency($_POST['currency']); Modified: trunk/test.sh =================================================================== --- trunk/test.sh 2013-03-01 12:29:33 UTC (rev 984) +++ trunk/test.sh 2013-03-01 21:26:59 UTC (rev 985) @@ -5,7 +5,7 @@ # # Testsuite # -# Copyright 2008 - 2010 by Gero Kohnert +# Copyright 2008 - 2013 by Gero Kohnert # (see html/copyright.html for License) # # automated testing @@ -15,11 +15,18 @@ # $Header: /cvsroot/tutos/tutos/test.sh,v 1.25 2011/01/19 19:54:59 gokohnert Exp $ # -HOST=`hostname` -URL=http://$HOST/tutosdev/php -URL=http://localhost/tutos/php -URL2=http://demo.tutos.org/tutosdev/php +if [ "X$1" = "X" ]; then + HOST=`hostname` + URL=http://$HOST/tutosdev/php + PW=tutos + ADR=1003 +else + URL=$1 + PW=`cat tmp/pw` + ADR=`cat tmp/adr_id` +fi + # LOGFILE OUT=tutos_private/log/test.log @@ -32,12 +39,10 @@ # set this to an adress id -ADR=1015 NOID=99999 NOID=XXxx USER=superuser -PW=tutos DBNR=0 CHECKURI=http://validator.w3.org/check?uri= @@ -486,7 +491,7 @@ touch $OUT2 wget --load-cookies=$COOKIES --save-cookies=$COOKIES -a $OUT -O $OUT2 $URL/$U check_output $U $OUT2 - # check for syntax with php lint + # check for syntax with php lint C=`echo $U | egrep ".php$"` R=$? if [ "$R" = "0" ]; then @@ -495,6 +500,7 @@ # Check # wget -a $OUT -O $OUT2 "$CHECKURI$URL2/$U&uname=$USER&pw=$PW&dbnr=$DBNR" # grep -i congrat $OUT2 + $SNAP --url="$URL/$U&uname=$USER&pw=$PW&dbnr=$DBNR" --out="tmp/$U.png" rm -f $OUT2 done @@ -621,7 +627,11 @@ wget --load-cookies=$COOKIES --save-cookies=$COOKIES -a $OUT -O $OUT2 $URL/logout.php check_output logout.php $OUT2 -diff tutos_private/log/debug.out tmp/test.out > test_diff.txt +echo "DEBUG OUT DIFF" > test_diff.txt +echo "==============" >> test_diff.txt +diff tutos_private/log/debug.out tmp/test.out >> test_diff.txt +echo "DEBUG LOG DIFF" >> test_diff.txt +echo "==============" >> test_diff.txt diff tutos_private/log/debug.out.log tmp/test.out.log >> test_diff.txt rm -f tmp/test.out tmp/test.out.log This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gok...@us...> - 2013-03-01 12:29:41
|
Revision: 984 http://sourceforge.net/p/tutos/code/984 Author: gokohnert Date: 2013-03-01 12:29:33 +0000 (Fri, 01 Mar 2013) Log Message: ----------- refactored focus handling Modified Paths: -------------- trunk/.htaccess trunk/Makefile trunk/php/Date.pinc trunk/php/acl_new.php trunk/php/address_new.php trunk/php/address_select.php trunk/php/admin/create_config.php trunk/php/admin/customize_show.php trunk/php/app_new.php trunk/php/app_new_r.php trunk/php/app_select.php trunk/php/bugtracking/bug_new.php trunk/php/bugtracking/bug_select.php trunk/php/bugtracking/demodata.p3 trunk/php/checklist/checkfield_new.php trunk/php/checklist/checklist_new.php trunk/php/company_new.php trunk/php/config_default.pinc trunk/php/database_new.php trunk/php/department_new.php trunk/php/doctracker/doc_new.php trunk/php/doctracker/doc_select.php trunk/php/expense/expense_new.php trunk/php/expense/expense_select.php trunk/php/file/file_new.php trunk/php/file/file_select.php trunk/php/group/group2_new.php trunk/php/group/group_new.php trunk/php/group/group_select.php trunk/php/history_select.php trunk/php/installation/installation_new.php trunk/php/installation/installation_select.php trunk/php/invoice/invoice_select.php trunk/php/layout/mobile_layout.pinc trunk/php/layout/new_base.pinc trunk/php/login.pinc trunk/php/mail_new.php trunk/php/mailbox/mail_select.php trunk/php/mailbox/mailbox_new.php trunk/php/map24/map_select.php trunk/php/mapquest/map_select.php trunk/php/module_template/AAA_new.php trunk/php/module_template/AAA_select.php trunk/php/note/note_new.php trunk/php/note/note_select.php trunk/php/product_new.php trunk/php/product_role_new.php trunk/php/product_select.php trunk/php/rate/rate_new.php trunk/php/rate/rate_select.php trunk/php/reminder/reminder_new.php trunk/php/reminder/reminder_select.php trunk/php/res_cal_select.php trunk/php/resource/resource_new.php trunk/php/resource/resource_select.php trunk/php/scrum/log_new.php trunk/php/scrum/log_select.php trunk/php/scrum/sprint_new.php trunk/php/scrum/sprint_select.php trunk/php/stuff/stuff_new.php trunk/php/stuff/stuff_select.php trunk/php/subversion/svn_new.php trunk/php/task_new.php trunk/php/task_select.php trunk/php/team_new.php trunk/php/team_select.php trunk/php/testmanager/testcase_new.php trunk/php/testmanager/testcase_select.php trunk/php/testmanager/testrun_new.php trunk/php/testmanager/testrun_select.php trunk/php/testmanager/testsuite_new.php trunk/php/testmanager/testsuite_select.php trunk/php/timetrack/timetrack_new.php trunk/php/timetrack/timetrack_select.php trunk/php/url/url.pinc trunk/php/url/url_new.php trunk/php/url/url_select.php trunk/php/url/urlcat_new.php trunk/php/user_new.php trunk/php/watchlist/watchlist_new.php trunk/php/xml/xml_new.php Added Paths: ----------- trunk/libs/fckeditor/.htaccess Modified: trunk/.htaccess =================================================================== --- trunk/.htaccess 2013-02-28 15:33:41 UTC (rev 983) +++ trunk/.htaccess 2013-03-01 12:29:33 UTC (rev 984) @@ -37,6 +37,17 @@ #<DirectoryMatch .*/tutos/.*\.svn/.*> # Deny From All #</DirectoryMatch> +<IfModule mod_ssl.c> +# SSLRequireSSL +# SSLVerifyClient require +# SSLVerifyClient optional +# SSLVerifyClient optional_no_ca +# SSLVerifyDepth 10 +# SSLOptions +FakeBasicAuth +StdEnvVars +</IfModule> +#AuthType Basic +#AuthName TUTOS +#Require valid-user AddType application/x-httpd-php .pinc AddType application/x-httpd-php .p3 Modified: trunk/Makefile =================================================================== --- trunk/Makefile 2013-02-28 15:33:41 UTC (rev 983) +++ trunk/Makefile 2013-03-01 12:29:33 UTC (rev 984) @@ -76,7 +76,8 @@ $(LIBS_FREEMIND) \ $(LIBS_JPGRAPH) \ $(LIBS_FCKEDITOR) \ - $(LIBS_PHPBARCODE) + $(LIBS_PHPBARCODE) \ + $(LIBS_GOOGLE) SUBDIRS = localization admin bugtracking checklist counter doctracker expense file group installation invoice ldap mailbox module_template note palm phpweather rate reminder report-engine resource rss scrum subversion stc stuff timetrack testmanager ticker url watchlist xml @@ -307,6 +308,11 @@ # LIBS_BASE = libs/.htaccess +LIBS_GOOGLE = $(wildcard libs/google-api-php-client/src/*) \ + libs/google-api-php-client/LICENSE \ + libs/google-api-php-client/README \ + libs/google-api-php-client/NOTICE + LIBS_FPDF = $(wildcard libs/fpdf/*.php) \ $(wildcard libs/fpdf/font/*.php) \ libs/fpdf/tutorial/logo.png \ @@ -337,6 +343,7 @@ libs/jpgraph/TUTOS-README LIBS_FCKEDITOR = \ + libs/fckeditor/.htaccess \ libs/fckeditor/TUTOS-README \ libs/fckeditor/tutosconfig.js @@ -433,6 +440,7 @@ html/LICENSE_bgiframe.txt \ html/motd_default.html \ html/js/jquery.min.js \ + html/js/jquery-migrate-1.1.1.js \ html/js/jquery.mobile.min.js \ html/js/jquery.bt.min.js \ html/js/jquery.bgiframe.min.js \ Added: trunk/libs/fckeditor/.htaccess =================================================================== --- trunk/libs/fckeditor/.htaccess (rev 0) +++ trunk/libs/fckeditor/.htaccess 2013-03-01 12:29:33 UTC (rev 984) @@ -0,0 +1,12 @@ +# +# This file is part of TUTOS +# +# +# $Id: .htaccess,v 1.16 2011/02/11 05:31:54 gokohnert Exp $ +# +# Allow fckeditor to work +# +<Files ~ "\.(html|js|xml|css|gif)$"> + Order allow,deny + Allow from all +</Files> Modified: trunk/php/Date.pinc =================================================================== --- trunk/php/Date.pinc 2013-02-28 15:33:41 UTC (rev 983) +++ trunk/php/Date.pinc 2013-03-01 12:29:33 UTC (rev 984) @@ -540,7 +540,7 @@ $this->orig = "TS"; $this->format = "TS"; $this->ts_def = $ts; - if ( ($current_user->offset != 0) && ($notz == 0) ) { + if ( ($notz == 0) && (isset($current_user)) && ($current_user->offset != 0) ) { $this->ts_def -= $current_user->offset; } } Modified: trunk/php/acl_new.php =================================================================== --- trunk/php/acl_new.php 2013-02-28 15:33:41 UTC (rev 983) +++ trunk/php/acl_new.php 2013-03-01 12:29:33 UTC (rev 984) @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2012 by Gero Kohnert + * Copyright 1999 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -10,6 +10,8 @@ * @module acl_show * @package acl */ +$tutos['files'][__FILE__] = '$Rev$'; + require_once 'webelements.p3'; require_once 'permission.p3'; @@ -415,4 +417,4 @@ <!-- SVN Info $Id$ $Author$ ---> \ No newline at end of file +--> Modified: trunk/php/address_new.php =================================================================== --- trunk/php/address_new.php 2013-02-28 15:33:41 UTC (rev 983) +++ trunk/php/address_new.php 2013-03-01 12:29:33 UTC (rev 984) @@ -1,11 +1,13 @@ <?php /** - * Copyright 1999 - 2012 by Gero Kohnert + * Copyright 1999 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; version 2 of the License. */ +$tutos['files'][__FILE__] = '$Rev$'; + require_once 'webelements.p3'; require_once 'permission.p3'; @@ -210,7 +212,7 @@ $r .= $this->DataTableEnd(); $r .= $this->getHidden(); $r .= hiddenFormElements(); - $r .= $this->setfocus("adrnew.lname"); + $r .= $this->setfocus('lname'); $r .= $this->markBadFields(); $r .= "</form>\n"; $r .= $lang['FldsRequired'] ."\n"; @@ -565,4 +567,4 @@ <!-- SVN Info $Id$ $Author$ ---> \ No newline at end of file +--> Modified: trunk/php/address_select.php =================================================================== --- trunk/php/address_select.php 2013-02-28 15:33:41 UTC (rev 983) +++ trunk/php/address_select.php 2013-03-01 12:29:33 UTC (rev 984) @@ -139,7 +139,7 @@ $r .= url::getFastSelect($this); } - $r .= $this->setfocus("adrsearch1.name"); + $r .= $this->setfocus('name'); return $r; } @@ -214,4 +214,4 @@ <!-- SVN Info $Id$ $Author$ ---> \ No newline at end of file +--> Modified: trunk/php/admin/create_config.php =================================================================== --- trunk/php/admin/create_config.php 2013-02-28 15:33:41 UTC (rev 983) +++ trunk/php/admin/create_config.php 2013-03-01 12:29:33 UTC (rev 984) @@ -14,6 +14,7 @@ * @module scheme * @package BASE */ +$tutos['files'][__FILE__] = '$Rev$'; define ('Xdbtype',0); define ('Xdbname',1); @@ -451,10 +452,11 @@ $r .= hiddenFormElements(); $r .= $this->getHidden(); $r .= "</form>\n"; - $r .= $this->setfocus("confignew.name"); + $r .= $this->setfocus('name'); $r .= $lang['FldsRequired'] ."\n"; return $r; } + /** * prepare */ Modified: trunk/php/admin/customize_show.php =================================================================== --- trunk/php/admin/customize_show.php 2013-02-28 15:33:41 UTC (rev 983) +++ trunk/php/admin/customize_show.php 2013-03-01 12:29:33 UTC (rev 984) @@ -13,6 +13,8 @@ * @module customize * @package BASE */ +$tutos['files'][__FILE__] = '$Rev$'; + $tutos['base'] = "../.."; ini_set("include_path",".."); include 'webelements.p3'; @@ -156,7 +158,7 @@ $r .= $this->getHidden(); $r .= $this->markBadFields(); $r .= "</form>\n"; - $r .= $this->setfocus("customize_select.mod"); + $r .= $this->setfocus('mod'); $r .= "<br />\n"; Modified: trunk/php/app_new.php =================================================================== --- trunk/php/app_new.php 2013-02-28 15:33:41 UTC (rev 983) +++ trunk/php/app_new.php 2013-03-01 12:29:33 UTC (rev 984) @@ -13,6 +13,7 @@ * @package appointment */ $tutos['files'][__FILE__] = '$Rev$'; + require_once 'webelements.p3'; require_once 'permission.p3'; require_once 'appointment.pinc'; @@ -221,7 +222,7 @@ $r .= $this->getHidden(); $r .= $this->markBadFields(); $r .= "</form>\n"; - $r .= $this->setfocus("appnew.descr"); + $r .= $this->setfocus('descr'); $r .= $lang['FldsRequired'] ."\n"; $r .= "<script language='JavaScript'>\n"; $r .= " SwitchTimeSelector();\n"; @@ -371,4 +372,4 @@ <!-- SVN Info $Id$ $Author$ ---> \ No newline at end of file +--> Modified: trunk/php/app_new_r.php =================================================================== --- trunk/php/app_new_r.php 2013-02-28 15:33:41 UTC (rev 983) +++ trunk/php/app_new_r.php 2013-03-01 12:29:33 UTC (rev 984) @@ -12,6 +12,8 @@ * @module app_new_r * @package appointment */ +$tutos['files'][__FILE__] = '$Rev$'; + require_once 'webelements.p3'; require_once 'permission.p3'; require_once 'appointment.pinc'; @@ -203,7 +205,7 @@ $r .= $this->markBadFields(); $r .= "</form>\n"; $r .= $lang['FldsRequired'] ."\n"; - $r .= $this->setfocus("appnewr.descr"); + $r .= $this->setfocus('descr'); $r .= "<script language='JavaScript'>\n"; $r .= " SwitchTimeSelector();\n"; $r .= "</script>\n"; @@ -343,4 +345,4 @@ <!-- SVN Info $Id$ $Author$ ---> \ No newline at end of file +--> Modified: trunk/php/app_select.php =================================================================== --- trunk/php/app_select.php 2013-02-28 15:33:41 UTC (rev 983) +++ trunk/php/app_select.php 2013-03-01 12:29:33 UTC (rev 984) @@ -92,7 +92,7 @@ $r .= url::getFastSelect($this); } - $r .= $this->setfocus("appsearch.name"); + $r .= $this->setfocus('name'); return $r; } @@ -139,4 +139,4 @@ <!-- SVN Info $Id$ $Author$ ---> \ No newline at end of file +--> Modified: trunk/php/bugtracking/bug_new.php =================================================================== --- trunk/php/bugtracking/bug_new.php 2013-02-28 15:33:41 UTC (rev 983) +++ trunk/php/bugtracking/bug_new.php 2013-03-01 12:29:33 UTC (rev 984) @@ -11,6 +11,7 @@ * @package bug */ $tutos['files'][__FILE__] = '$Rev$'; + $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; @@ -303,7 +304,7 @@ $r .= $this->getHidden(); $r .= $this->markBadFields(); $r .= "</form>\n"; - $r .= $this->setfocus("bugnew.short1"); + $r .= $this->setfocus('short1'); $r .= $lang['FldsRequired'] ."\n"; @@ -400,4 +401,4 @@ <!-- SVN Info $Id$ $Author$ ---> \ No newline at end of file +--> Modified: trunk/php/bugtracking/bug_select.php =================================================================== --- trunk/php/bugtracking/bug_select.php 2013-02-28 15:33:41 UTC (rev 983) +++ trunk/php/bugtracking/bug_select.php 2013-03-01 12:29:33 UTC (rev 984) @@ -11,6 +11,7 @@ * @package bug */ $tutos['files'][__FILE__] = '$Rev$'; + $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; @@ -115,7 +116,7 @@ $r .= url::getFastSelect($this); } - $r .= $this->setfocus("bugsearch.name"); + $r .= $this->setfocus('name'); return $r; } @@ -183,4 +184,4 @@ <!-- SVN Info $Id$ $Author$ ---> \ No newline at end of file +--> Modified: trunk/php/bugtracking/demodata.p3 =================================================================== --- trunk/php/bugtracking/demodata.p3 2013-02-28 15:33:41 UTC (rev 983) +++ trunk/php/bugtracking/demodata.p3 2013-03-01 12:29:33 UTC (rev 984) @@ -1,6 +1,6 @@ <?php /** - * Copyright 2004 - 2010 by Gero Kohnert + * Copyright 2004 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -15,6 +15,7 @@ * @module demodata * @package bug */ +$tutos['files'][__FILE__] = '$Rev$'; foreach ($demodata as $i => $f) { if ( ($f->gettype() == "product") @@ -23,14 +24,13 @@ ) { $b1 = new bug($this->obj); - $b1->parent = &$f; + $b1->setParent($f); $b1->setName("auto"); $b1->state = (($cnt+2) % 4) + 1; $b1->class = (($cnt+1) % 4) + 1; $b1->short = "too slow"; $b1->bughist[0] = new bugdata($this->obj); $b1->bughist[0]->description = $f->getFullName() ." is too slow"; - $b1->parent = &$f; $b1->creator = &$u[$cnt % $ucnt]; $b1->solver = $a[$cnt % $acnt]; $msg .= $b1->save(); @@ -45,14 +45,13 @@ $x->save(); $b2 = new bug($this->obj); - $b2->parent = &$f; + $b2->setParent($f); $b2->setName("auto"); $b2->state = ($cnt % 4) + 1; $b2->class = (($cnt+1) % 4) + 1; $b2->short = "too fast"; $b2->bughist[0] = new bugdata($this->obj); $b2->bughist[0]->description = "too fast"; - $b2->parent = &$f; $b2->creator = &$u[$cnt % $ucnt]; $b2->solver = $a[$cnt % $acnt]; $msg .= $b2->save(); @@ -72,7 +71,7 @@ unset($b2); unset($x); } - } +} Modified: trunk/php/checklist/checkfield_new.php =================================================================== --- trunk/php/checklist/checkfield_new.php 2013-02-28 15:33:41 UTC (rev 983) +++ trunk/php/checklist/checkfield_new.php 2013-03-01 12:29:33 UTC (rev 984) @@ -11,6 +11,7 @@ * $Author$ * */ +$tutos['files'][__FILE__] = '$Rev$'; $tutos['base'] = "../.."; ini_set("include_path",".."); @@ -105,7 +106,7 @@ $r .= $this->getHidden(); $r .= $this->markBadFields(); $r .= "</form>\n"; - $r .= $this->setfocus("checkfieldnew.name"); + $r .= $this->setfocus('name'); $r .= $lang['FldsRequired'] ."\n"; return $r; } @@ -197,4 +198,4 @@ <!-- SVN Info $Id$ $Author$ ---> \ No newline at end of file +--> Modified: trunk/php/checklist/checklist_new.php =================================================================== --- trunk/php/checklist/checklist_new.php 2013-02-28 15:33:41 UTC (rev 983) +++ trunk/php/checklist/checklist_new.php 2013-03-01 12:29:33 UTC (rev 984) @@ -14,6 +14,8 @@ * @module checklist_new * @package checklist */ +$tutos['files'][__FILE__] = '$Rev$'; + $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; @@ -101,7 +103,7 @@ $r .= $this->getHidden(); $r .= $this->markBadFields(); $r .= "</form>\n"; - $r .= $this->setfocus("checklistnew.name"); + $r .= $this->setfocus('name'); $r .= $lang['FldsRequired'] ."\n"; return $r; } @@ -189,4 +191,4 @@ <!-- SVN Info $Id$ $Author$ ---> \ No newline at end of file +--> Modified: trunk/php/company_new.php =================================================================== --- trunk/php/company_new.php 2013-02-28 15:33:41 UTC (rev 983) +++ trunk/php/company_new.php 2013-03-01 12:29:33 UTC (rev 984) @@ -89,7 +89,7 @@ $r .= $this->getHidden(); $r .= $this->markBadFields(); $r .= "</form>\n"; - $r .= $this->setfocus("cmpadd.name"); + $r .= $this->setfocus('name'); $r .= $lang['FldsRequired'] ."\n"; return $r; } @@ -226,4 +226,4 @@ <!-- SVN Info $Id$ $Author$ ---> \ No newline at end of file +--> Modified: trunk/php/config_default.pinc =================================================================== --- trunk/php/config_default.pinc 2013-02-28 15:33:41 UTC (rev 983) +++ trunk/php/config_default.pinc 2013-03-01 12:29:33 UTC (rev 984) @@ -97,7 +97,7 @@ // Relative paths start at [tutoshome]/ // Path starting with /is from filesytem root // -$tutos[repository][0] = 'repository'; +$tutos[repository][0] = 'tutos_private/repository'; // // This is the url that TUTOS will put into generated links in mails etc. // The URL should point to the top of the installed system like @@ -769,7 +769,7 @@ // // The TUTOS Version number // -$tutos[version] = '1.9.20130222'; +$tutos[version] = '1.9.20130301'; // ### Local Variables: *** ### mode:iso-accents *** Modified: trunk/php/database_new.php =================================================================== --- trunk/php/database_new.php 2013-02-28 15:33:41 UTC (rev 983) +++ trunk/php/database_new.php 2013-03-01 12:29:33 UTC (rev 984) @@ -1,11 +1,13 @@ <?php /** - * Copyright 2001 - 2012 by Gero Kohnert + * Copyright 2001 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; version 2 of the License. */ +$tutos['files'][__FILE__] = '$Rev$'; + require_once 'webelements.p3'; require_once 'permission.p3'; @@ -145,9 +147,9 @@ $r .= $lang['FldsRequired'] ."\n"; if ( ($this->obj->id > 1000) || ($this->obj->id == -1) ) { - $r .= $this->setfocus("dbadd.name"); + $r .= $this->setfocus('name'); } else { - $r .= $this->setfocus("dbadd.home"); + $r .= $this->setfocus('home'); } return $r; } @@ -235,4 +237,4 @@ <!-- SVN Info $Id$ $Author$ ---> \ No newline at end of file +--> Modified: trunk/php/department_new.php =================================================================== --- trunk/php/department_new.php 2013-02-28 15:33:41 UTC (rev 983) +++ trunk/php/department_new.php 2013-03-01 12:29:33 UTC (rev 984) @@ -81,7 +81,7 @@ $r .= $this->getHidden(); $r .= $this->markBadFields(); $r .= "</form>\n"; - $r .= $this->setfocus("depadd.name"); + $r .= $this->setfocus('name'); $r .= $lang['FldsRequired'] ."\n"; return $r; } @@ -211,4 +211,4 @@ <!-- SVN Info $Id$ $Author$ ---> \ No newline at end of file +--> Modified: trunk/php/doctracker/doc_new.php =================================================================== --- trunk/php/doctracker/doc_new.php 2013-02-28 15:33:41 UTC (rev 983) +++ trunk/php/doctracker/doc_new.php 2013-03-01 12:29:33 UTC (rev 984) @@ -10,6 +10,8 @@ * @module doc_new * @package doctracker */ +$tutos['files'][__FILE__] = '$Rev$'; + $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; @@ -156,7 +158,7 @@ $r .= $this->markBadFields(); $r .= "</form>\n"; $r .= $lang['FldsRequired'] ."\n"; - $r .= $this->setfocus("docadd.short"); + $r .= $this->setfocus('short'); return $r; } @@ -293,4 +295,4 @@ <!-- SVN Info $Id$ $Author$ ---> \ No newline at end of file +--> Modified: trunk/php/doctracker/doc_select.php =================================================================== --- trunk/php/doctracker/doc_select.php 2013-02-28 15:33:41 UTC (rev 983) +++ trunk/php/doctracker/doc_select.php 2013-03-01 12:29:33 UTC (rev 984) @@ -11,6 +11,7 @@ * @package doctracker */ $tutos['files'][__FILE__] = '$Rev$'; + $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; @@ -90,7 +91,7 @@ $r .= url::getFastSelect($this); } - $r .= $this->setfocus("docsearch.name"); + $r .= $this->setfocus('name'); return $r; } @@ -127,4 +128,4 @@ <!-- SVN Info $Id$ $Author$ ---> \ No newline at end of file +--> Modified: trunk/php/expense/expense_new.php =================================================================== --- trunk/php/expense/expense_new.php 2013-02-28 15:33:41 UTC (rev 983) +++ trunk/php/expense/expense_new.php 2013-03-01 12:29:33 UTC (rev 984) @@ -10,6 +10,8 @@ * @module expense_new * @package expense */ +$tutos['files'][__FILE__] = '$Rev$'; + $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; @@ -210,7 +212,7 @@ $r .= $this->getHidden(); $r .= $this->markBadFields(); $r .= "</form>\n"; - $r .= $this->setfocus("expensenew.name"); + $r .= $this->setfocus('name'); $r .= $lang['FldsRequired'] ."\n"; return $r; } @@ -324,4 +326,4 @@ <!-- SVN Info $Id$ $Author$ ---> \ No newline at end of file +--> Modified: trunk/php/expense/expense_select.php =================================================================== --- trunk/php/expense/expense_select.php 2013-02-28 15:33:41 UTC (rev 983) +++ trunk/php/expense/expense_select.php 2013-03-01 12:29:33 UTC (rev 984) @@ -10,6 +10,8 @@ * $Author$ * */ +$tutos['files'][__FILE__] = '$Rev$'; + $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; @@ -99,7 +101,7 @@ $r .= url::getFastSelect($this); } - $r .= $this->setfocus("expensesearch.name"); + $r .= $this->setfocus('name'); return $r; } @@ -183,4 +185,4 @@ <!-- SVN Info $Id$ $Author$ ---> \ No newline at end of file +--> Modified: trunk/php/file/file_new.php =================================================================== --- trunk/php/file/file_new.php 2013-02-28 15:33:41 UTC (rev 983) +++ trunk/php/file/file_new.php 2013-03-01 12:29:33 UTC (rev 984) @@ -10,6 +10,8 @@ * @module file_new * @package file */ +$tutos['files'][__FILE__] = '$Rev$'; + $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; @@ -36,7 +38,7 @@ $r = ''; $this->width = 4; - $r .= "<form id=\"fileadd\" name=\"fileadd\" enctype=\"multipart/form-data\" method=\"post\" action=\"file_ins.php\">\n"; + $r .= '<form id="fileadd" name="fileadd" enctype="multipart/form-data" method="post" action="file_ins.php">'."\n"; if ( $this->obj->id > 0 ) { $this->addHidden('Xid',$this->obj->id); @@ -196,7 +198,7 @@ $r .= $this->markBadFields(); $r .= "</form>\n"; $r .= $lang['FldsRequired'] ."\n"; - $r .= $this->setfocus("fileadd.name"); + $r .= $this->setfocus('name'); if ( ($this->obj->id > 0) || count($this->obj->links) == 0 ) { @@ -344,4 +346,4 @@ <!-- SVN Info $Id$ $Author$ ---> \ No newline at end of file +--> Modified: trunk/php/file/file_select.php =================================================================== --- trunk/php/file/file_select.php 2013-02-28 15:33:41 UTC (rev 983) +++ trunk/php/file/file_select.php 2013-03-01 12:29:33 UTC (rev 984) @@ -10,6 +10,8 @@ * @module file_select * @package file */ +$tutos['files'][__FILE__] = '$Rev$'; + $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; @@ -84,7 +86,7 @@ $r .= url::getFastSelect($this); } - $r .= $this->setfocus("filesearch.name"); + $r .= $this->setfocus('name'); return $r; } @@ -126,4 +128,4 @@ <!-- SVN Info $Id$ $Author$ ---> \ No newline at end of file +--> Modified: trunk/php/group/group2_new.php =================================================================== --- trunk/php/group/group2_new.php 2013-02-28 15:33:41 UTC (rev 983) +++ trunk/php/group/group2_new.php 2013-03-01 12:29:33 UTC (rev 984) @@ -12,6 +12,8 @@ * @module group_new * @package group */ +$tutos['files'][__FILE__] = '$Rev$'; + $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; @@ -70,7 +72,7 @@ $r .= $this->getHidden(); $r .= $this->markBadFields(); $r .= "</form>\n"; - $r .= $this->setfocus('group2add.comment'); + $r .= $this->setfocus('comment'); $r .= $lang['FldsRequired'] ."\n"; return $r; } Modified: trunk/php/group/group_new.php =================================================================== --- trunk/php/group/group_new.php 2013-02-28 15:33:41 UTC (rev 983) +++ trunk/php/group/group_new.php 2013-03-01 12:29:33 UTC (rev 984) @@ -12,6 +12,8 @@ * @module group_new * @package group */ +$tutos['files'][__FILE__] = '$Rev$'; + $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; @@ -72,7 +74,7 @@ $r .= $this->getHidden(); $r .= $this->markBadFields(); $r .= "</form>\n"; - $r .= $this->setfocus("groupnew.name"); + $r .= $this->setfocus('name'); $r .= $lang['FldsRequired'] ."\n"; return $r; } @@ -143,4 +145,4 @@ <!-- SVN Info $Id$ $Author$ ---> \ No newline at end of file +--> Modified: trunk/php/group/group_select.php =================================================================== --- trunk/php/group/group_select.php 2013-02-28 15:33:41 UTC (rev 983) +++ trunk/php/group/group_select.php 2013-03-01 12:29:33 UTC (rev 984) @@ -1,6 +1,6 @@ <?php /** - * Copyright 2001 - 2012 by Gero Kohnert + * Copyright 2001 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -10,6 +10,8 @@ * @module group_select * @package group */ +$tutos['files'][__FILE__] = '$Rev$'; + $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; @@ -57,7 +59,7 @@ } - $r .= $this->setfocus('groupsearch.name'); + $r .= $this->setfocus('name'); return $r; } @@ -100,4 +102,4 @@ <!-- SVN Info $Id$ $Author$ ---> \ No newline at end of file +--> Modified: trunk/php/history_select.php =================================================================== --- trunk/php/history_select.php 2013-02-28 15:33:41 UTC (rev 983) +++ trunk/php/history_select.php 2013-03-01 12:29:33 UTC (rev 984) @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2012 by Gero Kohnert + * Copyright 1999 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -10,6 +10,8 @@ * @module history_select * @package BASE */ +$tutos['files'][__FILE__] = '$Rev: 968 $'; + require_once 'webelements.p3'; require_once 'permission.p3'; @@ -83,7 +85,7 @@ $r .= url::getFastSelect($this); } - $r .= $this->setfocus('hsearch.name'); + $r .= $this->setfocus('name'); return $r; } @@ -127,4 +129,4 @@ <!-- SVN Info $Id: app_select.php 564 2012-03-28 20:38:20Z gokohnert $ $Author: gokohnert $ ---> \ No newline at end of file +--> Modified: trunk/php/installation/installation_new.php =================================================================== --- trunk/php/installation/installation_new.php 2013-02-28 15:33:41 UTC (rev 983) +++ trunk/php/installation/installation_new.php 2013-03-01 12:29:33 UTC (rev 984) @@ -148,7 +148,7 @@ $r .= $this->getHidden(); $r .= $this->markBadFields(); $r .= "</form>\n"; - $r .= $this->setfocus("instadd.desc"); + $r .= $this->setfocus('desc'); $r .= $lang['FldsRequired'] ."\n"; return $r; } @@ -264,4 +264,4 @@ <!-- SVN Info $Id$ $Author$ ---> \ No newline at end of file +--> Modified: trunk/php/installation/installation_select.php =================================================================== --- trunk/php/installation/installation_select.php 2013-02-28 15:33:41 UTC (rev 983) +++ trunk/php/installation/installation_select.php 2013-03-01 12:29:33 UTC (rev 984) @@ -11,6 +11,7 @@ * @package installation */ $tutos['files'][__FILE__] = '$Rev$'; + $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; @@ -92,7 +93,7 @@ $r .= url::getFastSelect($this); } - $r .= $this->setfocus("installationsearch.name"); + $r .= $this->setfocus('name'); return $r; } @@ -152,4 +153,4 @@ <!-- SVN Info $Id$ $Author$ ---> \ No newline at end of file +--> Modified: trunk/php/invoice/invoice_select.php =================================================================== --- trunk/php/invoice/invoice_select.php 2013-02-28 15:33:41 UTC (rev 983) +++ trunk/php/invoice/invoice_select.php 2013-03-01 12:29:33 UTC (rev 984) @@ -11,6 +11,8 @@ * @module invoice_select * @package invoice */ +$tutos['files'][__FILE__] = '$Rev$'; + $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; @@ -90,7 +92,7 @@ $r .= url::getFastSelect($this); } - $r .= $this->setfocus("invsearch1.name"); + $r .= $this->setfocus('name'); return $r; } @@ -141,4 +143,4 @@ <!-- SVN Info $Id$ $Author$ ---> \ No newline at end of file +--> Modified: trunk/php/layout/mobile_layout.pinc =================================================================== --- trunk/php/layout/mobile_layout.pinc 2013-02-28 15:33:41 UTC (rev 983) +++ trunk/php/layout/mobile_layout.pinc 2013-03-01 12:29:33 UTC (rev 984) @@ -1099,7 +1099,13 @@ */ function setfocus($fld) { global $tutos; - $tutos['pagescript'] .= 'document.'. $fld .".focus();\n"; + $tutos['pagescript'] .= " +try { + $('#".$fld."').focus(); +} +catch(e) { +} +"; return ''; } Modified: trunk/php/layout/new_base.pinc =================================================================== --- trunk/php/layout/new_base.pinc 2013-02-28 15:33:41 UTC (rev 983) +++ trunk/php/layout/new_base.pinc 2013-03-01 12:29:33 UTC (rev 984) @@ -346,9 +346,9 @@ */ function setfocus($fld) { global $tutos; - $tutos['pagescript'] .= ' + $tutos['pagescript'] .= " try { - document.'. $fld .".focus(); + $('#".$fld."').focus(); } catch(e) { } Modified: trunk/php/login.pinc =================================================================== --- trunk/php/login.pinc 2013-02-28 15:33:41 UTC (rev 983) +++ trunk/php/login.pinc 2013-03-01 12:29:33 UTC (rev 984) @@ -75,7 +75,7 @@ $r .= $this->showdata($x[1],$this->width -1); $r .= $this->ContentRowEnd(); if ($x[2] != '') { - $r .= $this->setFocus("loginform.".$x[2]); + $r .= $this->setFocus($x[2]); } } @@ -99,7 +99,7 @@ $r .= $this->showdata($x[1],$this->width -1); $r .= $this->ContentRowEnd(); if ($x[2] != '') { - $r .= $this->setFocus("loginform.".$x[2]); + $r .= $this->setFocus($x[2]); } } Modified: trunk/php/mail_new.php =================================================================== --- trunk/php/mail_new.php 2013-02-28 15:33:41 UTC (rev 983) +++ trunk/php/mail_new.php 2013-03-01 12:29:33 UTC (rev 984) @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2012 by Gero Kohnert + * Copyright 1999 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -15,6 +15,8 @@ * @module mail_new * @package mail */ +$tutos['files'][__FILE__] = '$Rev$'; + require_once 'webelements.p3'; require_once 'permission.p3'; @@ -145,7 +147,7 @@ $r .= $this->getHidden(); $r .= $this->markBadFields(); $r .= "</form>\n"; - $r .= $this->setfocus("mailnew.body"); + $r .= $this->setfocus('body'); # $r .= $this->obj->info($this,$this->format,0); return $r; } Modified: trunk/php/mailbox/mail_select.php =================================================================== --- trunk/php/mailbox/mail_select.php 2013-02-28 15:33:41 UTC (rev 983) +++ trunk/php/mailbox/mail_select.php 2013-03-01 12:29:33 UTC (rev 984) @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2012 by Gero Kohnert + * Copyright 1999 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -10,6 +10,8 @@ * @module mailbox_select * @package mailbox */ +$tutos['files'][__FILE__] = '$Rev$'; + $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; @@ -53,7 +55,7 @@ $r .= $this->getHidden(); $r .= "</form>\n"; - $r .= $this->setfocus("mailsearch.search"); + $r .= $this->setfocus('search'); return $r; } /** @@ -116,4 +118,4 @@ <!-- SVN Info $Id$ $Author$ ---> \ No newline at end of file +--> Modified: trunk/php/mailbox/mailbox_new.php =================================================================== --- trunk/php/mailbox/mailbox_new.php 2013-02-28 15:33:41 UTC (rev 983) +++ trunk/php/mailbox/mailbox_new.php 2013-03-01 12:29:33 UTC (rev 984) @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2012 by Gero Kohnert + * Copyright 1999 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -10,6 +10,8 @@ * @module mailbox_new * @package mailbox */ +$tutos['files'][__FILE__] = '$Rev$'; + $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; @@ -138,7 +140,7 @@ $r .= $this->getHidden(); $r .= $this->markBadFields(); $r .= "</form>\n"; - $r .= $this->setfocus("mailboxnew.host"); + $r .= $this->setfocus('host'); $r .= $lang['FldsRequired'] ."\n"; return $r; } @@ -201,4 +203,4 @@ <!-- SVN Info $Id$ $Author$ ---> \ No newline at end of file +--> Modified: trunk/php/map24/map_select.php =================================================================== --- trunk/php/map24/map_select.php 2013-02-28 15:33:41 UTC (rev 983) +++ trunk/php/map24/map_select.php 2013-03-01 12:29:33 UTC (rev 984) @@ -10,6 +10,8 @@ * @module map_select * @package address */ +$tutos['files'][__FILE__] = '$Rev$'; + $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; @@ -79,7 +81,7 @@ $r .= $this->getHidden(); $r .= "</form>\n"; $r .= "</center>\n"; - $r .= $this->setfocus("mapselect.country"); + $r .= $this->setfocus('country'); return $r; } /** @@ -133,4 +135,4 @@ $l = new Map_show($current_user); $l->display(); $dbconn->Close(); -?> \ No newline at end of file +?> Modified: trunk/php/mapquest/map_select.php =================================================================== --- trunk/php/mapquest/map_select.php 2013-02-28 15:33:41 UTC (rev 983) +++ trunk/php/mapquest/map_select.php 2013-03-01 12:29:33 UTC (rev 984) @@ -10,6 +10,8 @@ * @module map_select * @package address */ +$tutos['files'][__FILE__] = '$Rev$'; + $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; @@ -70,7 +72,7 @@ $r .= "</form>\n"; $r .= $this->getHidden(); - $r .= $this->setfocus("mapselect.country"); + $r .= $this->setfocus('country'); return $r; } /** @@ -124,4 +126,4 @@ $l = new Map_show($current_user); $l->display(); $dbconn->Close(); -?> \ No newline at end of file +?> Modified: trunk/php/module_template/AAA_new.php =================================================================== --- trunk/php/module_template/AAA_new.php 2013-02-28 15:33:41 UTC (rev 983) +++ trunk/php/module_template/AAA_new.php 2013-03-01 12:29:33 UTC (rev 984) @@ -1,6 +1,6 @@ <?php /** - * Copyright 2009 - 2012 by Gero Kohnert + * Copyright 2009 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -12,6 +12,8 @@ * @module AAA_new * @package AAA */ +$tutos['files'][__FILE__] = '$Rev$'; + $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; @@ -83,7 +85,7 @@ $r .= $this->markBadFields(); $r .= '</form>'."\n"; - $r .= $this->setfocus('AAAnew.name'); + $r .= $this->setfocus('name'); $r .= $lang['FldsRequired'] ."\n"; return $r; @@ -143,4 +145,4 @@ <!-- SVN Info $Id$ $Author$ ---> \ No newline at end of file +--> Modified: trunk/php/module_template/AAA_select.php =================================================================== --- trunk/php/module_template/AAA_select.php 2013-02-28 15:33:41 UTC (rev 983) +++ trunk/php/module_template/AAA_select.php 2013-03-01 12:29:33 UTC (rev 984) @@ -76,7 +76,7 @@ $r .= url::getFastSelect($this); } - $r .= $this->setfocus("AAAsearch.name"); + $r .= $this->setfocus('name'); return $r; } @@ -111,4 +111,4 @@ <!-- SVN Info $Id$ $Author$ ---> \ No newline at end of file +--> Modified: trunk/php/note/note_new.php =================================================================== --- trunk/php/note/note_new.php 2013-02-28 15:33:41 UTC (rev 983) +++ trunk/php/note/note_new.php 2013-03-01 12:29:33 UTC (rev 984) @@ -11,6 +11,7 @@ * @package note */ $tutos['files'][__FILE__] = '$Rev$'; + $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; @@ -97,7 +98,7 @@ $r .= $this->getHidden(); $r .= $this->markBadFields(); $r .= "</form>\n"; - $r .= $this->setfocus("notenew.name"); + $r .= $this->setfocus('name'); $r .= $lang['FldsRequired'] ."\n"; return $r; } @@ -177,4 +178,4 @@ <!-- SVN Info $Id$ $Author$ ---> \ No newline at end of file +--> Modified: trunk/php/note/note_select.php =================================================================== --- trunk/php/note/note_select.php 2013-02-28 15:33:41 UTC (rev 983) +++ trunk/php/note/note_select.php 2013-03-01 12:29:33 UTC (rev 984) @@ -9,6 +9,7 @@ * */ $tutos['files'][__FILE__] = '$Rev$'; + $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; @@ -88,7 +89,7 @@ $r .= url::getFastSelect($this); } - $r .= $this->setfocus("notesearch.name"); + $r .= $this->setfocus('name'); return $r; } @@ -171,4 +172,4 @@ <!-- SVN Info $Id$ $Author$ ---> \ No newline at end of file +--> Modified: trunk/php/product_new.php =================================================================== --- trunk/php/product_new.php 2013-02-28 15:33:41 UTC (rev 983) +++ trunk/php/product_new.php 2013-03-01 12:29:33 UTC (rev 984) @@ -14,13 +14,16 @@ * @package product */ $tutos['files'][__FILE__] = '$Rev$'; + require_once 'webelements.p3'; require_once 'permission.p3'; + +/* Check if user is allowed to use it */ +check_user(); + require_once 'appointment.pinc'; require_once 'product.pinc'; -/* Check if user is allowed to use it */ -check_user(); loadmodules('product','new'); loadlayout(); @@ -244,7 +247,7 @@ $r .= $this->getHidden(); $r .= $this->markBadFields(); $r .= "</form>\n"; - $r .= $this->setfocus("productadd.name"); + $r .= $this->setfocus('name'); $r .= $lang['FldsRequired'] ."\n"; return $r; } @@ -388,4 +391,4 @@ <!-- SVN Info $Id$ $Author$ ---> \ No newline at end of file +--> Modified: trunk/php/product_role_new.php =================================================================== --- trunk/php/product_role_new.php 2013-02-28 15:33:41 UTC (rev 983) +++ trunk/php/product_role_new.php 2013-03-01 12:29:33 UTC (rev 984) @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2012 by Gero Kohnert + * Copyright 1999 - 2013 by Gero Kohnert * cloning option added by Michal Salaban 2003 * * create a new product_role or modify/clone an existing one @@ -137,7 +137,7 @@ $r .= hiddenFormElements(); $r .= $this->getHidden(); $r .= "</form>\n"; - $r .= $this->setfocus("productroleadd.role1"); + $r .= $this->setfocus('role1'); return $r; } @@ -229,4 +229,4 @@ <!-- SVN Info $Id$ $Author$ ---> \ No newline at end of file +--> Modified: trunk/php/product_select.php =================================================================== --- trunk/php/product_select.php 2013-02-28 15:33:41 UTC (rev 983) +++ trunk/php/product_select.php 2013-03-01 12:29:33 UTC (rev 984) @@ -9,6 +9,8 @@ * @modulegroup product * @module select */ +$tutos['files'][__FILE__] = '$Rev$'; + require_once 'webelements.p3'; require_once 'permission.p3'; @@ -106,7 +108,7 @@ $r .= url::getFastSelect($this); } - $r .= $this->setfocus('prodsearch1.name'); + $r .= $this->setfocus('name'); return $r; } @@ -182,4 +184,4 @@ <!-- SVN Info $Id$ $Author$ ---> \ No newline at end of file +--> Modified: trunk/php/rate/rate_new.php =================================================================== --- trunk/php/rate/rate_new.php 2013-02-28 15:33:41 UTC (rev 983) +++ trunk/php/rate/rate_new.php 2013-03-01 12:29:33 UTC (rev 984) @@ -1,6 +1,6 @@ <?php /** - * Copyright 2000 - 2012 by Gero Kohnert and ecosoft + * Copyright 2000 - 2013 by Gero Kohnert and ecosoft * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -10,6 +10,8 @@ * @module rate_new * @package rate */ +$tutos['files'][__FILE__] = '$Rev$'; + $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; @@ -125,7 +127,7 @@ $r .= $this->getHidden(); $r .= $this->markBadFields(); $r .= "</form>\n"; - $r .= $this->setfocus("ratenew.name"); + $r .= $this->setfocus('name'); $r .= $lang['FldsRequired'] ."\n"; return $r; } @@ -203,4 +205,4 @@ <!-- SVN Info $Id$ $Author$ ---> \ No newline at end of file +--> Modified: trunk/php/rate/rate_select.php =================================================================== --- trunk/php/rate/rate_select.php 2013-02-28 15:33:41 UTC (rev 983) +++ trunk/php/rate/rate_select.php 2013-03-01 12:29:33 UTC (rev 984) @@ -7,6 +7,8 @@ * Free Software Foundation; version 2 of the License. * */ +$tutos['files'][__FILE__] = '$Rev$'; + $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; @@ -73,7 +75,7 @@ $r .= url::getFastSelect($this); } - $r .= $this->setfocus("ratesearch.name"); + $r .= $this->setfocus('name'); return $r; } @@ -154,4 +156,4 @@ <!-- SVN Info $Id$ $Author$ ---> \ No newline at end of file +--> Modified: trunk/php/reminder/reminder_new.php =================================================================== --- trunk/php/reminder/reminder_new.php 2013-02-28 15:33:41 UTC (rev 983) +++ trunk/php/reminder/reminder_new.php 2013-03-01 12:29:33 UTC (rev 984) @@ -1,6 +1,6 @@ <?php /** - * Copyright 2004 - 2012 by Gero Kohnert + * Copyright 2004 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -12,6 +12,8 @@ * @module reminder_new * @package reminder */ +$tutos['files'][__FILE__] = '$Rev$'; + $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; @@ -162,7 +164,7 @@ $r .= hiddenFormElements(); $r .= $this->getHidden(); $r .= "</form>\n"; - $r .= $this->setfocus("rmnew.to"); + $r .= $this->setfocus('to'); $r .= $lang['FldsRequired'] ."\n"; return $r; } @@ -252,4 +254,4 @@ <!-- SVN Info $Id$ $Author$ ---> \ No newline at end of file +--> Modified: trunk/php/reminder/reminder_select.php =================================================================== --- trunk/php/reminder/reminder_select.php 2013-02-28 15:33:41 UTC (rev 983) +++ trunk/php/reminder/reminder_select.php 2013-03-01 12:29:33 UTC (rev 984) @@ -11,6 +11,7 @@ * @package reminder */ $tutos['files'][__FILE__] = '$Rev$'; + $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; @@ -86,7 +87,7 @@ $r .= url::getFastSelect($this); } - $r .= $this->setfocus('remindersearch.name'); + $r .= $this->setfocus('name'); return $r; } @@ -122,4 +123,4 @@ <!-- SVN Info $Id$ $Author$ ---> \ No newline at end of file +--> Modified: trunk/php/res_cal_select.php =================================================================== --- trunk/php/res_cal_select.php 2013-02-28 15:33:41 UTC (rev 983) +++ trunk/php/res_cal_select.php 2013-03-01 12:29:33 UTC (rev 984) @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2012 by Gero Kohnert + * Copyright 1999 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -10,6 +10,7 @@ * @module res_cal_select * @package res_cal */ +$tutos['files'][__FILE__] = '$Rev$'; require_once 'webelements.p3'; require_once 'permission.p3'; @@ -25,31 +26,27 @@ Function info() { global $lang; - $this->width = 3; + $this->width = 2; $r = ''; $r .= "<form id=\"res_cal_sel\" name=\"res_cal_sel\" method=\"get\" action=\"res_cal.php\">\n"; $r.= $this->SelectTableStart(); $this->addHidden("ext",0); $r .= $this->headline($lang['ResCal']. ' '.(is_object($this->base) ? $this->base->getLink():'')); - $r .= "<tr>\n"; - $r .= " <td>\n"; - $r .= ' <input name="f[]" value="'. usecalendar .'" type="checkbox" '.($this->do[usecalendar] ? 'checked="checked"':'').' />'. $lang['Calendar']."\n"; - $r .= " </td>\n"; - $r .= " <td align=\"left\" colspan=\"2\">\n"; + $r .= $this->ContentRowStart(); + $r .= $this->showdata('<input name="f[]" value="'. usecalendar .'" type="checkbox" '.($this->do[usecalendar] ? 'checked="checked"':'').' />'. $lang['Calendar']); + $r .= " <td align=\"left\">\n"; $r .= " <select name=\"c[]\" multiple=\"multiple\">\n"; foreach ($lang['AppLoc'] as $i => $f ) { $r .= ' <option value="'.$i.'"'.(in_array($i,$this->do2[usecalendar]) ? ' selected="selected"':'').'>'. myentities($f) ."</option>\n"; } $r .= " </select>\n"; $r .= " </td>\n"; - $r .= "</tr>\n"; + $r .= $this->ContentRowEnd(); - $r .= "<tr>\n"; - $r .= " <td>\n"; - $r .= ' <input name="f[]" value="'. usetaskmanagement .'" type="checkbox" '.($this->do[usetaskmanagement] ? 'checked="checked"':'').' />'. $lang['Tasks']."\n"; - $r .= " </td>\n"; - $r .= " <td align=\"left\" colspan=\"2\">\n"; + $r .= $this->ContentRowStart(); + $r .= $this->showdata('<input name="f[]" value="'. usetaskmanagement .'" type="checkbox" '.($this->do[usetaskmanagement] ? 'checked="checked"':'').' />'. $lang['Tasks']); + $r .= " <td align=\"left\">\n"; $r .= " <select name=\"t[]\" multiple=\"multiple\">\n"; foreach ($lang['TaskStates'] as $i => $f) { $r .= ' <option value="'.$i.'"'.(in_array($i,$this->do2[usetaskmanagement]) ? ' selected="selected"':'').'>'. myentities($f) ."</option>\n"; @@ -58,13 +55,11 @@ $r .= ' <br /><input id="tm" name="tm" value="1" type="checkbox"'.($this->do_tm ? ' checked="checked"':'').' /><label for="tm">+'.$lang['TaskMilestone'].'</label>'."\n"; $r .= ' <br /><input id="tv" name="tv" value="1" type="checkbox"'.($this->do_tv ? ' checked="checked"':'').' /><label for="tv">+'.$lang['TaskVolumeFull'].' = 0</label>'."\n"; $r .= " </td>\n"; - $r .= "</tr>\n"; + $r .= $this->ContentRowEnd(); - $r .= "<tr>\n"; - $r .= " <td>\n"; - $r .= ' <input name="f[]" value="'. useprojects .'" type="checkbox" '.($this->do[useprojects] ? 'checked="checked"':'').' />'. $lang['Product']."\n"; - $r .= " </td>\n"; - $r .= " <td align=\"left\" colspan=\"2\">\n"; + $r .= $this->ContentRowStart(); + $r .= $this->showdata('<input name="f[]" value="'. useprojects .'" type="checkbox" '.($this->do[useprojects] ? 'checked="checked"':'').' />'. $lang['Product']); + $r .= " <td align=\"left\">\n"; $r .= " <select name=\"p[]\" multiple=\"multiple\">\n"; foreach ($lang['ProdStates'] as $i => $f) { if ($i >= 0) @@ -72,15 +67,13 @@ } $r .= " </select>\n"; $r .= " </td>\n"; - $r .= "</tr>\n"; + $r .= $this->ContentRowEnd(); - $r .= "<tr>\n"; - $r .= " <td>\n"; - $r .= " <input type=\"submit\" value=\"". $lang['Search'] ."\" title=\"". $lang['SearchForProd'] ."\" />\n"; - $r .= " </td>\n"; - $r .= "</tr>\n"; + $r .= $this->ContentRowStart(); + $r .= $this->showdata('<input type="submit" value="'. $lang['Search'] .'" title="'. $lang['SearchForProd'] .'" />',2); + $r .= $this->ContentRowEnd(); - $r.= $this->SelectTableEnd(); + $r .= $this->SelectTableEnd(); $r .= hiddenFormElements(); $r .= $this->getHidden(); $r .= "</form>\n"; @@ -89,9 +82,10 @@ if (class_exists('url')) { $r .= url::getFastSelect($this); } - # $r .= $this->setfocus("res_cal_sel.name"); + # $r .= $this->setfocus('name'); return $r; } + /** * prepare */ Modified: trunk/php/resource/resource_new.php =================================================================== --- trunk/php/resource/resource_new.php 2013-02-28 15:33:41 UTC (rev 983) +++ trunk/php/resource/resource_new.php 2013-03-01 12:29:33 UTC (rev 984) @@ -1,6 +1,6 @@ <?php /** - * Copyright 2001 - 2012 by Gero Kohnert + * Copyright 2001 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -10,6 +10,8 @@ * @module resource_new * @package resource */ +$tutos['files'][__FILE__] = '$Rev$'; + $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; @@ -69,7 +71,7 @@ $r .= $this->getHidden(); $r .= $this->markBadFields(); $r .= "</form>\n"; - $r .= $this->setfocus("resnew.name"); + $r .= $this->setfocus('name'); $r .= $lang['FldsRequired'] ."\n"; return $r; } @@ -136,4 +138,4 @@ <!-- SVN Info $Id$ $Author$ ---> \ No newline at end of file +--> Modified: trunk/php/resource/resource_select.php =================================================================== --- trunk/php/resource/resource_select.php 2013-02-28 15:33:41 UTC (rev 983) +++ trunk/php/resource/resource_select.php 2013-03-01 12:29:33 UTC (rev 984) @@ -73,7 +73,7 @@ $r .= url::getFastSelect($this); } - $r .= $this->setfocus('ressearch.name'); + $r .= $this->setfocus('name'); return $r; } @@ -112,4 +112,4 @@ <!-- SVN Info $Id$ $Author$ ---> \ No newline at end of file +--> Modified: trunk/php/scrum/log_new.php =================================================================== --- trunk/php/scrum/log_new.php 2013-02-28 15:33:41 UTC (rev 983) +++ trunk/php/scrum/log_new.php 2013-03-01 12:29:33 UTC (rev 984) @@ -1,6 +1,6 @@ <?php /** - * Copyright 2000 - 2012 by Gero Kohnert + * Copyright 2000 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -11,6 +11,7 @@ * @package scrum */ $tutos['files'][__FILE__] = '$Rev$'; + $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; @@ -871,7 +872,7 @@ $r .= hiddenFormElements(); $r .= $this->markBadFields(); $r .= '</form>'; - $r .= $this->setfocus("lognew.name"); + $r .= $this->setfocus('name'); return $r; } @@ -1032,4 +1033,4 @@ <!-- SVN Info $Id$ $Author$ ---> \ No newline at end of file +--> Modified: trunk/php/scrum/log_select.php =================================================================== --- trunk/php/scrum/log_select.php 2013-02-28 15:33:41 UTC (rev 983) +++ trunk/php/scrum/log_select.php 2013-03-01 12:29:33 UTC (rev 984) @@ -11,6 +11,7 @@ * @package scrum */ $tutos['files'][__FILE__] = '$Rev$'; + $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; @@ -107,7 +108,7 @@ $r .= url::getFastSelect($this); } - $r .= $this->setfocus('logsearch.name'); + $r .= $this->setfocus('name'); return $r; } @@ -148,4 +149,4 @@ <!-- SVN Info $Id$ $Author$ ---> \ No newline at end of file +--> Modified: trunk/php/scrum/sprint_new.php =================================================================== --- trunk/php/scrum/sprint_new.php 2013-02-28 15:33:41 UTC (rev 983) +++ trunk/php/scrum/sprint_new.php 2013-03-01 12:29:33 UTC (rev 984) @@ -1,6 +1,6 @@ <?php /** - * Copyright 2000 - 2012 by Gero Kohnert + * Copyright 2000 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -10,6 +10,8 @@ * @module sprint_new * @package scrum */ +$tutos['files'][__FILE__] = '$Rev$'; + $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; @@ -155,7 +157,7 @@ $r .= $this->getHidden(); $r .= $this->markBadFields(); $r .= "</form>\n"; - $r .= $this->setfocus("sprintnew.name"); + $r .= $this->setfocus('name'); $r .= $lang['FldsRequired'] ."\n"; return $r; } @@ -292,4 +294,4 @@ <!-- SVN Info $Id$ $Author$ ---> \ No newline at end of file +--> Modified: trunk/php/scrum/sprint_select.php =================================================================== --- trunk/php/scrum/sprint_select.php 2013-02-28 15:33:41 UTC (rev 983) +++ trunk/php/scrum/sprint_select.php 2013-03-01 12:29:33 UTC (rev 984) @@ -10,6 +10,8 @@ * @module sprint_select * @package scrum */ +$tutos['files'][__FILE__] = '$Rev$'; + $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; @@ -85,7 +87,7 @@ $r .= url::getFastSelect($this); } - $r .= $this->setfocus('sprintsearch.name'); + $r .= $this->setfocus('name'); return $r; } @@ -120,4 +122,4 @@ <!-- SVN Info $Id$ $Author$ ---> \ No newline at end of file +--> Modified: trunk/php/stuff/stuff_new.php =================================================================== --- trunk/php/stuff/stuff_new.php 2013-02-28 15:33:41 UTC (rev 983) +++ trunk/php/stuff/stuff_new.php 2013-03-01 12:29:33 UTC (rev 984) @@ -1,17 +1,19 @@ <?php /** - * Copyright 2004 - 2012 by Gero Kohnert + * Copyright 2004 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; version 2 of the License. * - * Iventory + * Inventory * * @modulegroup stuff * @module stuff_new * @package stuff */ +$tutos['files'][__FILE__] = '$Rev$'; + $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; @@ -136,7 +138,7 @@ $r .= $this->getHidden(); $r .= $this->markBadFields(); $r .= "</form>\n"; - $r .= $this->setfocus("stuffnew.name"); + $r .= $this->setfocus('name'); $r .= $lang['FldsRequired'] ."\n"; return $r; } @@ -225,4 +227,4 @@ <!-- SVN Info $Id$ $Author$ ---> \ No newline at end of file +--> Modified: trunk/php/stuff/stuff_select.php =================================================================== --- trunk/php/stuff/stuff_select.php 2013-02-28 15:33:41 UTC (rev 983) +++ trunk/php/stuff/stuff_select.php 2013-03-01 12:29:33 UTC (rev 984) @@ -8,6 +8,7 @@ * */ $tutos['files'][__FILE__] = '$Rev$'; + $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; @@ -108,7 +109,7 @@ $r .= url::getFastSelect($this); } - $r .= $this->setfocus('stuffsearch.name'); + $r .= $this->setfocus('name'); return $r; } @@ -153,4 +154,4 @@ <!-- SVN Info $Id$ $Author$ ---> \ No newline at end of file +--> Modified: trunk/php/subversion/svn_new.php =================================================================== --- trunk/php/subversion/svn_new.php 2013-02-28 15:33:41 UTC (rev 983) +++ trunk/php/subversion/svn_new.php 2013-03-01 12:29:33 UTC (rev 984) @@ -1,6 +1,6 @@ <?php /** - * Copyright 2000 - 2012 by Gero Kohnert + * Copyright 2000 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -10,6 +10,8 @@ * @module svn_new * @package svn */ +$tutos['files'][__FILE__] = '$Rev$'; + $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; @@ -93,7 +95,7 @@ $r .= $this->getHidden(); $r .= $this->markBadFields(); $r .= "</form>\n"; - $r .= $this->setfocus("notenew.name"); + $r .= $this->setfocus('name'); $r .= $lang['FldsRequired'] ."\n"; return $r; @@ -185,4 +187,4 @@ <!-- SVN Info $Id$ $Author$ ---> \ No newline at end of file +--> Modified: trunk/php/task_new.php =================================================================== --- trunk/php/task_new.php 2013-02-28 15:33:41 UTC (rev 983) +++ trunk/php/task_new.php 2013-03-01 12:29:33 UTC (rev 984) @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2012 by Gero Kohnert + * Copyright 1999 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -10,6 +10,8 @@ * @module... [truncated message content] |
From: <gok...@us...> - 2013-02-28 15:33:45
|
Revision: 983 http://sourceforge.net/p/tutos/code/983 Author: gokohnert Date: 2013-02-28 15:33:41 +0000 (Thu, 28 Feb 2013) Log Message: ----------- mobile and responsive updates Modified Paths: -------------- trunk/php/layout/layout_base.pinc trunk/php/layout/new_base.pinc trunk/php/note/note_show.php trunk/php/stuff/stuff_show.php trunk/php/subversion/svn_show.php Modified: trunk/php/layout/layout_base.pinc =================================================================== --- trunk/php/layout/layout_base.pinc 2013-02-28 15:16:56 UTC (rev 982) +++ trunk/php/layout/layout_base.pinc 2013-02-28 15:33:41 UTC (rev 983) @@ -704,7 +704,7 @@ /** * shows data */ - Function showdata($text,$cols = 1) { + Function showdata($text,$cols = 1,$class = '') { return $text; } Modified: trunk/php/layout/new_base.pinc =================================================================== --- trunk/php/layout/new_base.pinc 2013-02-28 15:16:56 UTC (rev 982) +++ trunk/php/layout/new_base.pinc 2013-02-28 15:33:41 UTC (rev 983) @@ -333,9 +333,9 @@ /** * shows data */ - Function showdata($text,$cols = 1) { + Function showdata($text,$cols = 1,$class = '') { $r = ''; - $r .= '<td colspan="'. $cols .'" class="data">'; + $r .= '<td colspan="'. $cols .'" class="data'.($class != '' ? ' '.$class:'').'">'; $r .= ( $text == '' ? ' ' : $text); $r .= "</td>\n"; return $r; Modified: trunk/php/note/note_show.php =================================================================== --- trunk/php/note/note_show.php 2013-02-28 15:16:56 UTC (rev 982) +++ trunk/php/note/note_show.php 2013-02-28 15:33:41 UTC (rev 983) @@ -11,6 +11,7 @@ * @package note */ $tutos['files'][__FILE__] = '$Rev$'; + $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; @@ -39,31 +40,31 @@ $r = ''; $r .= $this->DataTableStart(); $r .= $this->headline_gui(); - $r .= $this->CreatorInfoLine($this->obj,4); + $r .= $this->CreatorInfoLine($this->obj,$this->width); $r .= $this->ContentRowStart(); $r .= $this->showfield($lang['NoteName']); - $r .= "<td colspan=\"3\"><b><font size=\"+1\">". myentities($this->obj->name) ."</font></b></td>"; + $r .= $this->showdata('<b><font size="+1">'. myentities($this->obj->name) .'</font></b>',$this->width -1); $r .= $this->ContentRowEnd(); $r .= $this->ContentRowStart(); $r .= $this->showfield($lang['NoteEventType']); - $r .= $this->showdata($this->obj->getEventType()); + $r .= $this->showdata($this->obj->getEventType(),$this->width -1); $r .= $this->ContentRowEnd(); $r .= $this->ContentRowStart(); $r .= $this->showfield($lang['NoteReference']); - $r .= $this->showdata($lang[$this->obj->ref->getType()].' '.$this->obj->getRefLink(),3); + $r .= $this->showdata($lang[$this->obj->ref->getType()].' '.$this->obj->getRefLink(),$this->width -1); $r .= $this->ContentRowEnd(); if ( $this->obj->remember->notime != 1 ) { $r .= $this->ContentRowStart(); $r .= $this->showfield($lang['NoteRemember']); - $r .= '<td colspan="3">'. $this->obj->remember->getDateTime() ."</td>"; + $r .= $this->showdata($this->obj->remember->getDateTime(),$this->width -1); $r .= $this->ContentRowEnd(); } $r .= $this->ContentRowStart(); - $r .= ' <td colspan="4" class="pre"><pre>'. format_txt($this->obj,$this->obj->note) ."</pre></td>"; + $r .= $this->showdata('<pre>'. format_txt($this->obj,$this->obj->note) .'</pre>',$this->width,'pre'); $r .= $this->ContentRowEnd(); // Show additional custom fields Modified: trunk/php/stuff/stuff_show.php =================================================================== --- trunk/php/stuff/stuff_show.php 2013-02-28 15:16:56 UTC (rev 982) +++ trunk/php/stuff/stuff_show.php 2013-02-28 15:33:41 UTC (rev 983) @@ -32,7 +32,7 @@ if ($tutos[phpbarcodepath] != "") { if (file_exists($tutos['base'] ."/". $tutos[phpbarcodepath].'/php-barcode.php')) { -# include_once $tutos['base'] ."/". $tutos[phpbarcodepath].'/php-barcode.php'; + # include_once $tutos['base'] ."/". $tutos[phpbarcodepath].'/php-barcode.php'; } else { $tutos[phpbarcodepath] = ''; } @@ -89,7 +89,7 @@ $r .= $this->ContentRowStart(); $r .= $this->showfield($lang['StuffPurchaseDate']); - $r .= " <td>". $this->obj->p_date->GetLinkDate() ."</td>\n"; + $r .= $this->showdata($this->obj->p_date->GetLinkDate()); $r .= $this->showfield($lang['StuffPrice']); $x= array($this->obj->price,$this->obj->currency); Modified: trunk/php/subversion/svn_show.php =================================================================== --- trunk/php/subversion/svn_show.php 2013-02-28 15:16:56 UTC (rev 982) +++ trunk/php/subversion/svn_show.php 2013-02-28 15:33:41 UTC (rev 983) @@ -1,6 +1,6 @@ <?php /** - * Copyright 2000 - 2012 by Gero Kohnert + * Copyright 2000 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -13,6 +13,8 @@ * @module note_show * @package svn */ +$tutos['files'][__FILE__] = '$Rev$'; + $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; @@ -21,6 +23,8 @@ // Check if user is allowed to use it check_user(); + +$tutos['mobileok'] = 1; loadmodules('svn','show'); loadmodule('svn'); loadlayout(); @@ -50,17 +54,17 @@ $r .= $this->ContentRowStart(); $r .= $this->showfield($lang['SVNName']); - $r .= $this->showdata($this->obj->getFullName(),2); + $r .= $this->showdata($this->obj->getFullName(),$this->width -1); $r .= $this->ContentRowEnd(); $r .= $this->ContentRowStart(); $r .= $this->showfield($lang['SVNReference']); - $r .= $this->showdata($this->obj->getRefLink(),2); + $r .= $this->showdata($this->obj->getRefLink(),$this->width -1); $r .= $this->ContentRowEnd(); $r .= $this->ContentRowStart(); $r .= $this->showfield($lang['SVNURI']); - $r .= '<td colspan="2"><b><font size="+1">'. myentities($this->obj->uri) ."</font></b></td>"; + $r .= $this->showdata('<b><font size="+1">'. myentities($this->obj->uri) .'</font></b>',$this->width -1); $r .= $this->ContentRowEnd(); $x = $this->obj->retrieve_dir($this->path); @@ -78,9 +82,7 @@ $url = addUrlParameter($url,'path='.Base64_Encode($i)); $url = addUrlParameter($url,'rev='.$this->obj->rev); $r .= $this->ContentRowStart(); - $r .= '<td colspan="3">'; - $r .= makelink($url,$icon.' '.$name); - $r .= '</td>'; + $r .= $this->showdata(makelink($url,$icon.' '.$name),$this->width); $r .= $this->ContentRowEnd(); } $r .= $this->DataTableEnd(); @@ -121,27 +123,27 @@ $r .= $this->ContentRowStart(); $r .= $this->showfield($lang['SVNName']); - $r .= $this->showdata($this->obj->getFullName(),2); + $r .= $this->showdata($this->obj->getFullName(),$this->width -1); $r .= $this->ContentRowEnd(); $r .= $this->ContentRowStart(); $r .= $this->showfield($lang['SVNReference']); - $r .= $this->showdata($this->obj->getRefLink(),2); + $r .= $this->showdata($this->obj->getRefLink(),$this->width -1); $r .= $this->ContentRowStart(); $r .= $this->ContentRowEnd(); $r .= $this->showfield($lang['SVNURI']); - $r .= $this->showdata('<b><font size="+1">'. myentities($this->obj->uri) .'</font></b>',3); + $r .= $this->showdata('<b><font size="+1">'. myentities($this->obj->uri) .'</font></b>',$this->width -1); $r .= $this->ContentRowEnd(); $r .= $this->ContentRowStart(); $r .= $this->showfield($lang['SVNDesc']); - $r .= $this->showdata('<pre>'. wordwrap(urlReplace($this->obj->desc),80) .'</pre>',3); + $r .= $this->showdata('<pre>'. wordwrap(urlReplace($this->obj->desc),80) .'</pre>',$this->width -1); $r .= $this->ContentRowEnd(); $r .= $this->ContentRowStart(); $r .= $this->showfield($lang['SVNNeedLog']); - $r .= $this->showdata(($this->obj->needlog == 1 ? $lang['yes']:$lang['no']),3); + $r .= $this->showdata(($this->obj->needlog == 1 ? $lang['yes']:$lang['no']),$this->width -1); $r .= $this->ContentRowEnd(); $r .= $this->obj->getMoreInfo($this,$this->width); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gok...@us...> - 2013-02-28 15:17:03
|
Revision: 982 http://sourceforge.net/p/tutos/code/982 Author: gokohnert Date: 2013-02-28 15:16:56 +0000 (Thu, 28 Feb 2013) Log Message: ----------- debug version Modified Paths: -------------- trunk/php/auth/auth_ldap.pinc Modified: trunk/php/auth/auth_ldap.pinc =================================================================== --- trunk/php/auth/auth_ldap.pinc 2013-02-28 09:25:27 UTC (rev 981) +++ trunk/php/auth/auth_ldap.pinc 2013-02-28 15:16:56 UTC (rev 982) @@ -16,10 +16,7 @@ require_once 'auth.pinc'; -# -# Globally diable PWLOST SUPPORT -# -$tutos[pwlostsupport] = 0; +define('LDAP_OPT_DIAGNOSTIC_MESSAGE', 0x0032); /** * Authentification base class @@ -39,6 +36,7 @@ // $this->pwlostsupport = false; $this->pwchangesupport = false; + $tutos[pwlostsupport] = 0; } /** @@ -171,6 +169,7 @@ $dn = $tutos[ldapauthserver]["userdn"]."=".$this->getuname().",". $tutos[ldapauthserver]["basedn"]; // echo $dn; + dterror_log('-> bind ldap |'.$dn.'|'.$this->getpw()."|\n", 3, $tutos[errlog]); $res = ldap_bind($ds,$dn,$this->getpw()); if( ! $res ) { @@ -178,6 +177,14 @@ ReadLang($lang); $r[0] = " (error ". $errno ." "; $r[0] .= ldap_err2str($errno) .")"; + $extended_error = ''; + if (ldap_get_option($ds, LDAP_OPT_DIAGNOSTIC_MESSAGE, $extended_error)) { + $r[0] .= ' / '.$extended_error; + } + $extended_error = ''; + if (ldap_get_option($ds, LDAP_OPT_ERROR_STRING, $extended_error)) { + $r[0] .= ' / '.$extended_error; + } $r[1] = $r[0]; $r[2] = $lang['Err0027']; return $r; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gok...@us...> - 2013-02-28 09:25:33
|
Revision: 981 http://sourceforge.net/p/tutos/code/981 Author: gokohnert Date: 2013-02-28 09:25:27 +0000 (Thu, 28 Feb 2013) Log Message: ----------- mobile and responsive updates Modified Paths: -------------- trunk/html/mobile_layout.css trunk/php/app_overview.php trunk/php/app_show.php trunk/php/company_show.php trunk/php/department_show.php trunk/php/expense/expense_overview.php trunk/php/expense/expense_show.php trunk/php/group/group_show.php trunk/php/installation/installation_show.php trunk/php/invoice/invoice_show.php trunk/php/layout/layout_base.pinc trunk/php/layout/mobile_layout.pinc trunk/php/product_overview.php trunk/php/product_show.php trunk/php/stuff/stuff_overview.php trunk/php/task_show.php trunk/php/team_overview.php trunk/php/team_show.php trunk/php/testmanager/testcase_show.php trunk/php/testmanager/testrun_overview.php trunk/php/testmanager/testrun_show.php trunk/php/testmanager/testsuite_show.php Modified: trunk/html/mobile_layout.css =================================================================== --- trunk/html/mobile_layout.css 2013-02-28 05:19:33 UTC (rev 980) +++ trunk/html/mobile_layout.css 2013-02-28 09:25:27 UTC (rev 981) @@ -53,6 +53,11 @@ /* multiline */ .over_ml { } +.dinfo { + font-size: .7em; + color: rgba(0,0,0,0.5); + font-weight: normal; +} UL.ui-listview LI { border-bottom: 1px solid silver; Modified: trunk/php/app_overview.php =================================================================== --- trunk/php/app_overview.php 2013-02-28 05:19:33 UTC (rev 980) +++ trunk/php/app_overview.php 2013-02-28 09:25:27 UTC (rev 981) @@ -76,6 +76,7 @@ $r .= $this->MassUpdateHeader(); $r .= $this->OverviewHeadLineEnd(); $r .= $this->OverviewHeadEnd(); + $r .= $this->OverviewBodyStart(); if ( $this->start == -1 ) { $a = $n - $tutos['maxshow']; @@ -95,7 +96,7 @@ } $f->read_participants(); $r .= $this->OverviewRowStart($line); - $r .= $this->OverviewRowBlock($f->getLink($a),'over_r'); + $r .= $this->OverviewRowBlock($f->getLink($a),'title over_r'); if ( $f->t_ignore == 0) { $r .= $this->OverviewRowBlock($f->start->getDateTime(),'over_l'); @@ -145,7 +146,8 @@ $r .= $this->OverviewRowEnd($line++); unset($f); } - + $r .= $this->OverviewBodyEnd(); + $r .= $this->OverviewFootStart(); $r .= $this->list_navigation($this->link1,$this->flds + $tutos[massupdate],$this->start,$a,$n); if ( $tutos[massupdate] == 1 ) { @@ -157,7 +159,7 @@ $r .= "</select>\n"; $r .= $this->UpdateRowEnd(2); } - + $r .= $this->OverviewFootEnd(); $r .= $this->OverviewTableEnd(); $r .= $this->actionformEnd("app_overview.php"); $this->result->free(); Modified: trunk/php/app_show.php =================================================================== --- trunk/php/app_show.php 2013-02-28 05:19:33 UTC (rev 980) +++ trunk/php/app_show.php 2013-02-28 09:25:27 UTC (rev 981) @@ -19,11 +19,15 @@ require_once 'webelements.p3'; require_once 'permission.p3'; + +// Check if user is allowed to use it +check_user(); + require_once 'appointment.pinc'; require_once 'product.pinc'; -// Check if user is allowed to use it -check_user(); + +$tutos['mobileok'] = 1; loadmodules('appointment','show'); loadlayout(); @@ -57,10 +61,10 @@ return $r; } - $this->width = 3; + $this->width = 4; $r .= $this->DataTableStart(); $r .= $this->headline_gui(); - $r .= $this->CreatorInfoLine($this->obj,4); + $r .= $this->CreatorInfoLine($this->obj,$this->width); $r .= $this->ContentRowStart(); if ( $this->obj->repeat == 0 ) { @@ -70,20 +74,18 @@ } $dinfo = GetDaysInfo( $this->obj->start->getTimeStamp() ); - + $d = ''; if ( ($this->obj->t_ignore != 0) || ($this->obj->repeat != 0) ) { - # $r .= $this->showdata($this->obj->start->getDate(),2); - $r .= $this->showdata($this->obj->start->getLinkDate(),2); + $d .= $this->obj->start->getLinkDate(); } else { - # $r .= $this->showdata($this->obj->start->getDateTime(),2); - $r .= $this->showdata($this->obj->start->getLinkDateTime(),2); + $d .= $this->obj->start->getLinkDateTime(); } - - $r .= "<td><span class=\"dinfo\">"; if ( isset ($dinfo[Desc]) ) { - $r .= $dinfo[Desc]; + $d .= "<div class=\"dinfo\">"; + $d .= $dinfo[Desc]; + $d .= "</div>\n"; } - $r .= "</span> </td>\n"; + $r .= $this->showdata($d,$this->width -1); $r .= $this->ContentRowEnd(); $r .= $this->ContentRowStart(); @@ -93,23 +95,22 @@ $r .= $this->showfield($lang['AppLastDate']); } $dinfo = GetDaysInfo( $this->obj->end->getTimeStamp() ); - + $d = ''; if ( ($this->obj->t_ignore != 0) || ($this->obj->repeat != 0) ) { if ( ($this->obj->repeat != 0) && ($this->obj->r_ignore == 1) ) { - $r .= $this->showdata($lang['AppNoLastDate'],2); + $d .= $lang['AppNoLastDate']; } else { - # $r .= $this->showdata($this->obj->end->getDate(),2); - $r .= $this->showdata($this->obj->end->getLinkDate(),2); + $d .= $this->obj->end->getLinkDate(); } } else { - # $r .= $this->showdata($this->obj->end->getDateTime(),2); - $r .= $this->showdata($this->obj->end->getLinkDateTime(),2); + $d .= $this->obj->end->getLinkDateTime(); } - $r .= "<td><span class=\"dinfo\">"; if ( isset ($dinfo[Desc]) ) { - $r .= $dinfo[Desc]; + $d .= "<div class=\"dinfo\">"; + $d .= $dinfo[Desc]; + $d .= "</div>\n"; } - $r .= "</span> </td>\n"; + $r .= $this->showdata($d,$this->width -1); $r .= $this->ContentRowEnd(); if ( $this->obj->repeat != 0 ) { @@ -123,32 +124,32 @@ } $r .= $this->ContentRowStart(); $r .= $this->showfield($lang['AppRepeatType']); - $r .= " <td colspan=\"3\">\n"; + $d = ''; if ( $this->obj->repeat == APP_REP_WEEK ) { $wd = strftime("Day%w",$this->obj->start->getTimeStamp()); - $r .= sprintf($lang['AppRepeatInfo1'],$lang[$wd]); + $d .= sprintf($lang['AppRepeatInfo1'],$lang[$wd]); } if ( $this->obj->repeat == APP_REP_MONTH ) { - $r .= strftime($lang['AppRepeatInfo2'],$this->obj->start->getTimeStamp()); + $d .= strftime($lang['AppRepeatInfo2'],$this->obj->start->getTimeStamp()); } if ( $this->obj->repeat == APP_REP_YEAR ) { - $r .= strftime($lang['AppRepeatInfo3'],$this->obj->start->getTimeStamp()); + $d .= strftime($lang['AppRepeatInfo3'],$this->obj->start->getTimeStamp()); } if ( $this->obj->repeat == APP_REP_DAY ) { - $r .= $lang['AppRepeatInfo4']; + $d .= $lang['AppRepeatInfo4']; } - $r .= " </td>\n"; + $r .= $this->showdata($d,$this->width -1); $r .= $this->ContentRowEnd(); } $r .= $this->ContentRowStart(); $r .= $this->showfield($lang['Location2']); - $r .= $this->showdata($this->obj->getLocation(),3); + $r .= $this->showdata($this->obj->getLocation(),$this->width -1); $r .= $this->ContentRowEnd(); if ( $this->obj->remember > 0 ) { $r .= $this->ContentRowStart(); $r .= $this->showfield("reminder at"); - $r .= $this->showdata($lang['AppRemind'][$this->obj->remember],3); + $r .= $this->showdata($lang['AppRemind'][$this->obj->remember],$this->width -1); $r .= $this->ContentRowEnd(); } @@ -156,7 +157,7 @@ $r .= $this->ContentRowStart(); $r .= $this->showfield($lang['Description']); $descr = preg_replace("#\n#","<br />",myentities($this->obj->descr)); - $r .= $this->showdata(urlReplace($descr,0),3); + $r .= $this->showdata(urlReplace($descr,0),$this->width -1); $r .= $this->ContentRowEnd(); } @@ -186,20 +187,20 @@ } else { $r .= $this->showfield($lang['VisitFrom']); } - $r .= $this->showdata($this->obj->visitor->getLink(),3); + $r .= $this->showdata($this->obj->visitor->getLink(),$this->width -1); $r .= $this->ContentRowEnd(); } if ( $this->user->feature_ok(useprojects,PERM_SEE) ) { if ( is_object($this->obj->product) ) { $r .= $this->ContentRowStart(); $r .= $this->showfield($lang['Reference']); - $r .= $this->showdata($this->obj->product->getLink(),3); + $r .= $this->showdata($this->obj->product->getLink(),$this->width -1); $r .= $this->ContentRowEnd(); } } // References to modules - $r .= show_module_infolists($this->user,$this->obj,4,$this->format); - $r .= $this->obj->getHistoryLink(4); + $r .= show_module_infolists($this->user,$this->obj,$this->width,$this->format); + $r .= $this->getHistoryLink(); $r .= $this->DataTableEnd(); return $r; } Modified: trunk/php/company_show.php =================================================================== --- trunk/php/company_show.php 2013-02-28 05:19:33 UTC (rev 980) +++ trunk/php/company_show.php 2013-02-28 09:25:27 UTC (rev 981) @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2012 by Gero Kohnert + * Copyright 1999 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -10,6 +10,8 @@ * @module company_show * @package company */ +$tutos['files'][__FILE__] = '$Rev$'; + require_once 'webelements.p3'; require_once 'permission.p3'; @@ -115,7 +117,7 @@ // References to modules $r .= show_module_infolists($this->user,$this->obj,$cols,$this->format); - $r .= $this->obj->getHistoryLink($cols); + $r .= $this->getHistoryLink(); $r .= $this->DataTableEnd(); return $r; } Modified: trunk/php/department_show.php =================================================================== --- trunk/php/department_show.php 2013-02-28 05:19:33 UTC (rev 980) +++ trunk/php/department_show.php 2013-02-28 09:25:27 UTC (rev 981) @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2012 by Gero Kohnert + * Copyright 1999 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -10,6 +10,8 @@ * @module department_show * @package department */ +$tutos['files'][__FILE__] = '$Rev$'; + require_once 'webelements.p3'; require_once 'permission.p3'; @@ -96,7 +98,7 @@ // References to modules $r .= show_module_infolists($this->user,$this->obj,$cols,$this->format); - $r .= $this->obj->getHistoryLink($cols); + $r .= $this->getHistoryLink(); $r .= $this->DataTableEnd(); return $r; } Modified: trunk/php/expense/expense_overview.php =================================================================== --- trunk/php/expense/expense_overview.php 2013-02-28 05:19:33 UTC (rev 980) +++ trunk/php/expense/expense_overview.php 2013-02-28 09:25:27 UTC (rev 981) @@ -274,7 +274,7 @@ } $r .= "</td>\n"; $r .= ' <td colspan="'.($this->flds - $this->preflds)."\"> </td>\n"; - $r .= $this->OverviewRowEnd(); + $r .= $this->OverviewRowEnd(0); if ( $tutos[massupdate] == 1 ) { $r .= $this->UpdateRowStart($this->flds-1); Modified: trunk/php/expense/expense_show.php =================================================================== --- trunk/php/expense/expense_show.php 2013-02-28 05:19:33 UTC (rev 980) +++ trunk/php/expense/expense_show.php 2013-02-28 09:25:27 UTC (rev 981) @@ -11,6 +11,7 @@ * @package expense */ $tutos['files'][__FILE__] = '$Rev$'; + $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; @@ -49,75 +50,74 @@ $r .= $this->ContentRowStart(); $r .= $this->showfield($lang['ExpenseName']); - $r .= "<td colspan=\"3\"><b><font size=\"+1\">". myentities($this->obj->name) ."</font></b></td>"; + $r .= $this->showdata('<b><font size="+1">'. myentities($this->obj->name) .'</font></b>',$this->width -1); $r .= $this->ContentRowEnd(); $r .= $this->ContentRowStart(); $r .= $this->showfield($lang['ExpenseReference']); - $r .= $this->showdata($this->obj->getRefLink(),3); + $r .= $this->showdata($this->obj->getRefLink(),$this->width -1); $r .= $this->ContentRowEnd(); if (is_object($this->obj->supplier)) { $r .= $this->ContentRowStart(); $r .= $this->showfield($lang['ExpenseSupplier']); - $r .= $this->showdata($this->obj->supplier->getLink(),3); + $r .= $this->showdata($this->obj->supplier->getLink(),$this->width -1); $r .= $this->ContentRowEnd(); } $r .= $this->ContentRowStart(); $r .= $this->showfield($lang['ExpenseAddress']); - $r .= $this->showdata($this->obj->getAdrRefLink(),3); + $r .= $this->showdata($this->obj->getAdrRefLink(),$this->width -1); $r .= $this->ContentRowEnd(); - $r .= $this->showfield_data_row($this->obj,$table['expense']['category'],3,1); - $r .= $this->showfield_data_row($this->obj,$table['expense']['reason'],3,1); - $r .= $this->showfield_data_row($this->obj,$table['expense']['people'],3,1); - $r .= $this->showfield_data_row($this->obj,$table['expense']['quantity'],3,1); + $r .= $this->showfield_data_row($this->obj,$table['expense']['category'],$this->width -1,1); + $r .= $this->showfield_data_row($this->obj,$table['expense']['reason'],$this->width -1,1); + $r .= $this->showfield_data_row($this->obj,$table['expense']['people'],$this->width -1,1); + $r .= $this->showfield_data_row($this->obj,$table['expense']['quantity'],$this->width -1,1); $r .= $this->ContentRowStart(); $r .= $this->showfield($lang['ExpenseGAmount']); $r .= $this->showdata(number_format($this->obj->gamount,2,$lang['DecPoint'],$lang['ThousandPoint']) - ." ". myentities($this->obj->currency),3); + ." ". myentities($this->obj->currency),$this->width -1); $r .= $this->ContentRowEnd(); $r .= $this->ContentRowStart(); $r .= $this->showfield($lang['ExpenseITax']); $r .= $this->showdata(my_number_format($this->obj->GetTax(),2) - .' '. myentities($this->obj->currency),2); - $r .= $this->showdata('('. myentities($this->obj->itax) .' %)'); + .' '. myentities($this->obj->currency).'  ('.myentities($this->obj->itax).' %)',$this->width-1); $r .= $this->ContentRowEnd(); $r .= $this->ContentRowStart(); $r .= $this->showfield($lang['ExpenseDeduction']); $r .= $this->showdata(number_format($this->obj->deduction,2,$lang['DecPoint'],$lang['ThousandPoint']) - ." ". myentities($this->obj->currency),3); + ." ". myentities($this->obj->currency),$this->width -1); $r .= $this->ContentRowEnd(); $r .= $this->ContentRowStart(); $r .= $this->showfield($lang['ExpenseNAmount']); - $r .= "<td colspan=\"3\"><b>". number_format($this->obj->getNetAmount(),2,$lang['DecPoint'],$lang['ThousandPoint']) - ." ". myentities($this->obj->currency) ."</b></td>"; + $r .= $this->showdata('<b>'. number_format($this->obj->getNetAmount(),2,$lang['DecPoint'],$lang['ThousandPoint']) + .' '. myentities($this->obj->currency) .'</b>',$this->width -1); $r .= $this->ContentRowEnd(); - $r .= $this->showfield_data_row($this->obj,$table['expense']['t_start'],3,1); - $r .= $this->showfield_data_row($this->obj,$table['expense']['t_end'],3,1); - $r .= $this->showfield_data_row($this->obj,$table['expense']['mop'],3,1); - $r .= $this->showfield_data_row($this->obj,$table['expense']['city'],3,1); + $r .= $this->showfield_data_row($this->obj,$table['expense']['t_start'],$this->width -1,1); + $r .= $this->showfield_data_row($this->obj,$table['expense']['t_end'],$this->width -1,1); + $r .= $this->showfield_data_row($this->obj,$table['expense']['mop'],$this->width -1,1); + $r .= $this->showfield_data_row($this->obj,$table['expense']['city'],$this->width -1,1); $r .= $this->ContentRowStart(); $r .= $this->showfield($lang['Country']); - $r .= $this->showdata(myentities($lang['countrycde'][$this->obj->country] ." (". $this->obj->country .")"),3); + $r .= $this->showdata(myentities($lang['countrycde'][$this->obj->country] ." (". $this->obj->country .")"),$this->width -1); $r .= $this->ContentRowEnd(); - $r .= $this->showfield_data_row($this->obj,$table['expense']['ccentre'],3,1); - $r .= $this->showfield_data_row($this->obj,$table['expense']['description'],3,1); + $r .= $this->showfield_data_row($this->obj,$table['expense']['ccentre'],$this->width -1,1); + $r .= $this->showfield_data_row($this->obj,$table['expense']['description'],$this->width -1,1); // Show additional custom fields - $r .= show_custom_fields($this,$this->obj->gettype(),$this->obj,4); + $r .= show_custom_fields($this,$this->obj->gettype(),$this->obj,$this->width); // References to modules - $r .= show_module_infolists($this->user,$this->obj,4); - $r .= $this->obj->getHistoryLink(4); + $r .= show_module_infolists($this->user,$this->obj,$this->width); + $r .= $this->getHistoryLink(); $r .= $this->DataTableEnd(); return $r; Modified: trunk/php/group/group_show.php =================================================================== --- trunk/php/group/group_show.php 2013-02-28 05:19:33 UTC (rev 980) +++ trunk/php/group/group_show.php 2013-02-28 09:25:27 UTC (rev 981) @@ -15,7 +15,6 @@ */ $tutos['files'][__FILE__] = '$Rev$'; -$tutos['files'][__FILE__] = '$Rev$'; $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; @@ -250,7 +249,7 @@ $r .= $this->showdata(count($this->obj->member),$this->width-1); $r .= $this->ContentRowEnd(); - $r .= $this->obj->getHistoryLink($this->width); + $r .= $this->getHistoryLink(); $r .= $this->DataTableEnd(); if ( count($this->obj->member) > 0 ) { @@ -270,6 +269,7 @@ $r .= $this->orderHeader('created',$lang['created'],$this->link2); $r .= $this->OverviewHeadLineEnd(); $r .= $this->OverviewHeadEnd(); + $r .= $this->OverviewBodyStart(); $line = 1; $url = 'group/group2_new.php?id='.$this->obj->id; @@ -333,6 +333,7 @@ $r .= $this->OverviewRowBlock($f[2]->getDate(),'over_l'); $r .= $this->OverviewRowEnd($line++); } + $r .= $this->OverviewBodyEnd(); $r .= $this->OverviewTableEnd(); } return $r; Modified: trunk/php/installation/installation_show.php =================================================================== --- trunk/php/installation/installation_show.php 2013-02-28 05:19:33 UTC (rev 980) +++ trunk/php/installation/installation_show.php 2013-02-28 09:25:27 UTC (rev 981) @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2012 by Gero Kohnert + * Copyright 1999 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -10,6 +10,8 @@ * @module installation_show * @package installation */ +$tutos['files'][__FILE__] = '$Rev$'; + $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; @@ -47,7 +49,7 @@ } else { $d = '<i>'. $lang['HistoryDeleted'] .'</i>'; } - $r .= $this->showdata($d,3); + $r .= $this->showdata($d,$this->width -1); $r .= $this->ContentRowEnd(); $r .= $this->ContentRowStart(); @@ -59,14 +61,14 @@ } else { $d = " "; } - $r .= $this->showdata($d,3); + $r .= $this->showdata($d,$this->width -1); $r .= $this->ContentRowEnd(); - $r .= $this->showfield_data_row($this->obj,$table['installation']['description'],3,1); - $r .= $this->showfield_data_row($this->obj,$table['installation']['version'],3,1); - $r .= $this->showfield_data_row($this->obj,$table['installation']['serial'],3,1); - $r .= $this->showfield_data_row($this->obj,$table['installation']['key_1'],3,1); - $r .= $this->showfield_data_row($this->obj,$table['installation']['key_2'],3,1); + $r .= $this->showfield_data_row($this->obj,$table['installation']['description'],$this->width -1,1); + $r .= $this->showfield_data_row($this->obj,$table['installation']['version'],$this->width -1,1); + $r .= $this->showfield_data_row($this->obj,$table['installation']['serial'],$this->width -1,1); + $r .= $this->showfield_data_row($this->obj,$table['installation']['key_1'],$this->width -1,1); + $r .= $this->showfield_data_row($this->obj,$table['installation']['key_2'],$this->width -1,1); $r .= $this->ContentRowStart(); $r .= $this->showfield($lang['InstalledBy']); @@ -93,14 +95,14 @@ $x= array($this->obj->money,$this->obj->currency); $r .= $this->ContentRowStart(); $r .= $this->showfield($lang['Money']); - $r .= $this->showdata(handle('money',$x,my_number_format($this->obj->money,2) ." <b>". $this->obj->currency ."</b>"),3); + $r .= $this->showdata(handle('money',$x,my_number_format($this->obj->money,2) ." <b>". $this->obj->currency ."</b>"),$this->width -1); $r .= $this->ContentRowEnd(); // Show additional custom fields - $r .= show_custom_fields($this,$this->obj->gettype(),$this->obj,4); + $r .= show_custom_fields($this,$this->obj->gettype(),$this->obj,$this->width); // References to modules - $r .= show_module_infolists($this->user,$this->obj,4); - $r .= $this->obj->getHistoryLink(4); + $r .= show_module_infolists($this->user,$this->obj,$this->width); + $r .= $this->getHistoryLink(); $r .= $this->DataTableEnd(); return $r; } Modified: trunk/php/invoice/invoice_show.php =================================================================== --- trunk/php/invoice/invoice_show.php 2013-02-28 05:19:33 UTC (rev 980) +++ trunk/php/invoice/invoice_show.php 2013-02-28 09:25:27 UTC (rev 981) @@ -1,6 +1,6 @@ <?php /** - * Copyright 2002 - 2012 by Gero Kohnert + * Copyright 2002 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -15,6 +15,8 @@ * @module invoice_show * @package invoice */ +$tutos['files'][__FILE__] = '$Rev$'; + $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; @@ -73,6 +75,7 @@ $this->obj->exportXMLHeader(strlen($r)); return $r; } + $this->width = 8; $r .= $this->DataTableStart(); $r .= "<tr>\n"; $r .= ' <th colspan="7">'. sprintf($lang['Showing'],$lang[$this->obj->getType()]) ."</th>\n"; @@ -142,13 +145,13 @@ if ( $this->obj->state == INV_STATE_PAYED ) { $r .= $this->ContentRowStart(); $r .= $this->showfieldc($lang['InvDatePayed']); - $r .= $this->showdata($this->obj->datefinish->getDate(),7); + $r .= $this->showdata($this->obj->datefinish->getDate(),$this->width -1); $r .= $this->ContentRowEnd(); } if ( $this->obj->state == INV_STATE_CANCELLED ) { $r .= $this->ContentRowStart(); $r .= $this->showfieldc($lang['InvDateCancel']); - $r .= $this->showdata($this->obj->datefinish->getDate(),7); + $r .= $this->showdata($this->obj->datefinish->getDate(),$this->width -1); $r .= $this->ContentRowEnd(); } @@ -189,13 +192,14 @@ $r .= "</tr>\n"; // Show additional custom fields - $r .= show_custom_fields($this,$this->obj->gettype(),$this->obj,8); + $r .= show_custom_fields($this,$this->obj->gettype(),$this->obj,$this->width); // References to modules - $r .= show_module_infolists($this->user,$this->obj,8,$this->format); - $r .= $this->obj->getHistoryLink(8); + $r .= show_module_infolists($this->user,$this->obj,$this->width,$this->format); + $r .= $this->getHistoryLink(); $r .= $this->DataTableEnd(); return $r; } + /** * prepare */ Modified: trunk/php/layout/layout_base.pinc =================================================================== --- trunk/php/layout/layout_base.pinc 2013-02-28 05:19:33 UTC (rev 980) +++ trunk/php/layout/layout_base.pinc 2013-02-28 09:25:27 UTC (rev 981) @@ -781,7 +781,7 @@ $r .= $this->showdata('## unsupported TS type/field ## '.$tarr[type].'/'.$tarr['field'] .'/'.$tarr['ftype'],$colsd); } } else if ($tarr[type] == 'float' && is_numeric($obj->$tarr['field']) ) { - $r .= $this->showdata(my_number_format($obj->$tarr['field'],2)); + $r .= $this->showdata(my_number_format($obj->$tarr['field'],2),$colsd); } else if ($tarr['ftype'] == 'Boolean' ) { $r .= $this->showdata(($obj->$tarr['field'] ? $lang['yes']:$lang['no']),$colsd); } else if ($tarr[type] == 'ID_TYPE' && is_numeric($obj->$tarr['field']) ) { @@ -1072,13 +1072,13 @@ } if ( $this->user->feature_ok(usehistory,PERM_SEE) ) { if ($this->width > 0) { - $r .= "<tr class=\"historyline\">\n"; + $r .= $this->ContentRowStart('historyline'); $r .= ' <td colspan="'. $this->width .'"><br />'; } $r .= makelink('history_show.php?id='. $this->obj->id,$lang['HistoryLink'],sprintf($lang['HistoryLinkI'],$this->obj->getFullname())); if ($this->width > 0) { $r .= "</td>\n"; - $r .= "</tr>\n"; + $r .= $this->ContentRowEnd(); } } return $r; Modified: trunk/php/layout/mobile_layout.pinc =================================================================== --- trunk/php/layout/mobile_layout.pinc 2013-02-28 05:19:33 UTC (rev 980) +++ trunk/php/layout/mobile_layout.pinc 2013-02-28 09:25:27 UTC (rev 981) @@ -202,14 +202,14 @@ */ function OverviewHeaderStart($class = '') { $this->blk_cnt = 0; - return '<tr>'."\n"; + return '<thead><tr>'."\n"; } /** * end a overview header row */ function OverviewHeaderEnd() { - return '</tr>'."\n"; + return '</tr></thead>'."\n"; } Modified: trunk/php/product_overview.php =================================================================== --- trunk/php/product_overview.php 2013-02-28 05:19:33 UTC (rev 980) +++ trunk/php/product_overview.php 2013-02-28 09:25:27 UTC (rev 981) @@ -236,6 +236,7 @@ } $r .= $this->OverviewHeadLineEnd(); $r .= $this->OverviewHeadEnd(); + $r .= $this->OverviewBodyStart(); if ( $this->format == "paper" ) { $a = 0; @@ -358,6 +359,8 @@ unset($p); $a++; } + $r .= $this->OverviewBodyEnd(); + $r .= $this->OverviewFootStart(); $r .= $this->list_navigation($this->link1,$flds,$this->start,$a,$n); @@ -434,6 +437,7 @@ $r .= $this->UpdateRowEnd(1); } + $r .= $this->OverviewFootEnd(); $r .= $this->OverviewTableEnd(); if ( $this->pshow['checkbox'] ) { $r .= $this->actionformEnd("product_overview.php"); Modified: trunk/php/product_show.php =================================================================== --- trunk/php/product_show.php 2013-02-28 05:19:33 UTC (rev 980) +++ trunk/php/product_show.php 2013-02-28 09:25:27 UTC (rev 981) @@ -12,6 +12,8 @@ * @module product_show * @package product */ +$tutos['files'][__FILE__] = '$Rev$'; + require_once 'webelements.p3'; require_once 'permission.p3'; @@ -56,7 +58,7 @@ } $n++; } - $r .= $this->showdata($x,3); + $r .= $this->showdata($x,$this->width -1); $r .= $this->ContentRowEnd(); } return $r; @@ -78,10 +80,10 @@ $this->width = 4; $r .= $this->DataTableStart(); $r .= $this->headline_gui(); - $r .= $this->CreatorInfoLine($this->obj,4); + $r .= $this->CreatorInfoLine($this->obj,$this->width); - $r .= $this->showfield_data_row($this->obj,$table['product']['name'],3,1); - $r .= $this->showfield_data_row($this->obj,$table['product']['version'],3,1); + $r .= $this->showfield_data_row($this->obj,$table['product']['name'],$this->width -1,1); + $r .= $this->showfield_data_row($this->obj,$table['product']['version'],$this->width -1,1); $r .= $this->ContentRowStart(); $r .= $this->showfield($lang['ProdState']); @@ -100,9 +102,9 @@ $r .= $this->showrole($role); } - $r .= $this->showfield_data_row($this->obj,$table['product']['description'],3,1); - $r .= $this->showfield_data_row($this->obj,$table['product']['desc1'],3,1); - $r .= $this->showfield_data_row($this->obj,$table['product']['desc2'],3,1); + $r .= $this->showfield_data_row($this->obj,$table['product']['description'],$this->width -1,1); + $r .= $this->showfield_data_row($this->obj,$table['product']['desc1'],$this->width -1,1); + $r .= $this->showfield_data_row($this->obj,$table['product']['desc2'],$this->width -1,1); // Classification for ( $cl = 1;$cl <= $this->obj->classes; $cl++) { @@ -118,7 +120,7 @@ $x .= $f . "<br />\n"; } } - $r .= $this->showdata($x,3); + $r .= $this->showdata($x,$this->width -1); $r .= $this->ContentRowEnd(); } } @@ -150,12 +152,12 @@ $r .= $this->showdata($this->obj->p_end->GetLinkDate()); $r .= $this->ContentRowEnd(); } - $r .= $this->showfield_data_row($this->obj,$table['product']['path'],3,1); + $r .= $this->showfield_data_row($this->obj,$table['product']['path'],$this->width -1,1); // Show additional custom fields - $r .= show_custom_fields($this,$this->obj->gettype(),$this->obj,4); + $r .= show_custom_fields($this,$this->obj->gettype(),$this->obj,$this->width); - $r .= appointment::infolist($this->user,$this->obj,4,$this->format); + $r .= appointment::infolist($this->user,$this->obj,$this->width,$this->format); if ( $this->user->feature_ok(usetaskmanagement,PERM_SEE) ) { $this->obj->readTasks(); @@ -217,14 +219,14 @@ $n++; } - $r .= $this->showdata($d,3); + $r .= $this->showdata($d,$this->width -1); $r .= $this->ContentRowEnd(); } } - $r .= product::infolist($this->user,$this->obj,4,$this->format); + $r .= product::infolist($this->user,$this->obj,$this->width,$this->format); // References to modules - $r .= show_module_infolists($this->user,$this->obj,4,$this->format); + $r .= show_module_infolists($this->user,$this->obj,$this->width,$this->format); if ( $this->format != "paper" ) { $r .= $this->getHistoryLink(); Modified: trunk/php/stuff/stuff_overview.php =================================================================== --- trunk/php/stuff/stuff_overview.php 2013-02-28 05:19:33 UTC (rev 980) +++ trunk/php/stuff/stuff_overview.php 2013-02-28 09:25:27 UTC (rev 981) @@ -367,7 +367,7 @@ } $r .= "</td>\n"; $r .= ' <td colspan="'.($this->flds + $tutos[massupdate] - 8)."\"> </td>\n"; - $r .= $this->OverviewRowEnd(); + $r .= $this->OverviewRowEnd(0); $r .= $this->list_navigation($this->link1,$this->flds + $tutos[massupdate],$this->start,$a,$n); Modified: trunk/php/task_show.php =================================================================== --- trunk/php/task_show.php 2013-02-28 05:19:33 UTC (rev 980) +++ trunk/php/task_show.php 2013-02-28 09:25:27 UTC (rev 981) @@ -47,7 +47,7 @@ $r .= $this->headline_gui(); $r .= $this->CreatorInfoLine($this->obj,4); - $r .= $this->showfield_data_row($this->obj,$table['task']['autoname'],3,1); + $r .= $this->showfield_data_row($this->obj,$table['task']['autoname'],$this->width -1,1); $r .= $this->ContentRowStart(); $r .= $this->showfield($lang['TaskName']); @@ -60,13 +60,13 @@ if ($this->obj->milestone > 0) { $r .= $this->ContentRowStart(); $r .= $this->showfield($lang['TaskMilestone']); - $r .= $this->showdata($lang['yes'],3); + $r .= $this->showdata($lang['yes'],$this->width -1); $r .= $this->ContentRowEnd(); } if ($this->obj->nogantt > 0) { $r .= $this->ContentRowStart(); $r .= $this->showfield($lang['TaskNoGantt']); - $r .= $this->showdata($lang['yes'],3); + $r .= $this->showdata($lang['yes'],$this->width -1); $r .= $this->ContentRowEnd(); } @@ -82,7 +82,7 @@ $d .= $pre.$this->obj->worker[$i]->getLink(); $pre = "<br />\n"; } - $r .= $this->showdata($d,3); + $r .= $this->showdata($d,$this->width -1); $r .= $this->ContentRowEnd(); } if (count($this->obj->tasklinks) > 0) { @@ -97,7 +97,7 @@ $d .= $pre.$lang['HistoryDeleted']; $pre = "<br />\n"; } - $r .= $this->showdata($d,3); + $r .= $this->showdata($d,$this->width -1); $r .= $this->ContentRowEnd(); } @@ -116,11 +116,11 @@ unset($x); $pre = " → "; } - $r .= $this->showdata($d,3); + $r .= $this->showdata($d,$this->width -1); $r .= $this->ContentRowEnd(); } - $r .= $this->showfield_data_row($this->obj,$table['task']['description'],3,1); + $r .= $this->showfield_data_row($this->obj,$table['task']['description'],$this->width -1,1); $r .= $this->ContentRowStart(); $r .= $this->showfield($lang['TaskSched']); @@ -144,12 +144,12 @@ if( $this->obj->volume_todo != -1 ) { $r .= $this->ContentRowStart(); $r .= $this->showfield($lang['TaskVolumeTodo']); - $r .= $this->showdata(hour_format($this->obj->volume_todo).' '.$lang['hours'],3); + $r .= $this->showdata(hour_format($this->obj->volume_todo).' '.$lang['hours'],$this->width -1); $r .= $this->ContentRowEnd(); } // Show additional custom fields - $r .= show_custom_fields($this,$this->obj->gettype(),$this->obj,4); + $r .= show_custom_fields($this,$this->obj->gettype(),$this->obj,$this->width); $this->obj->readTasks(); if ( count($this->obj->tasklist) > 0 ) { @@ -182,7 +182,7 @@ } $d .= "<br />\n"; } - $r .= $this->showdata($d,3); + $r .= $this->showdata($d,$this->width -1); $r .= $this->ContentRowEnd(); } if ( count($this->obj->pretasklist) > 0 ) { @@ -194,12 +194,12 @@ $d .= $pre. $f->getLink(); $pre .= "<br />\n"; } - $r .= $this->showdata($d,3); + $r .= $this->showdata($d,$this->width -1); $r .= $this->ContentRowEnd(); } // References to modules - $r .= show_module_infolists($this->user,$this->obj,4,$this->format); + $r .= show_module_infolists($this->user,$this->obj,$this->width,$this->format); $r .= $this->getHistoryLink(); $r .= $this->DataTableEnd(); Modified: trunk/php/team_overview.php =================================================================== --- trunk/php/team_overview.php 2013-02-28 05:19:33 UTC (rev 980) +++ trunk/php/team_overview.php 2013-02-28 09:25:27 UTC (rev 981) @@ -12,6 +12,7 @@ * @package team */ $tutos['files'][__FILE__] = '$Rev$'; + require_once 'webelements.p3'; require_once 'permission.p3'; @@ -54,10 +55,6 @@ } $n = count($tlist); $this->result->free(); - if ( 0 == $n) { - $r .= $this->error( $lang['Err0048'] ); - return $r; - } $r .= $this->header; $this->flds = 3; @@ -72,6 +69,7 @@ $r .= $this->MassUpdateHeader(); $r .= $this->OverviewHeadLineEnd(); $r .= $this->OverviewHeadEnd(); + $r .= $this->OverviewBodyStart(); if ( $this->start == -1 ) { $a = $n - $tutos['maxshow']; @@ -88,7 +86,7 @@ $r .= $this->OverviewRowStart($line); $x = $this->mark_filter(myentities($t->getFullName()),'name'); - $r .= $this->OverviewRowBlock(makeLink($t->getUrl(),$x),'over_l'); + $r .= $this->OverviewRowBlock(makeLink($t->getUrl(),$x),'title over_l'); if (is_object($t->owner)) { $r .= $this->OverviewRowBlock($t->owner->getLink(),'over_l'); @@ -101,6 +99,8 @@ $r .= $this->OverviewRowEnd($line++); $a++; } + $r .= $this->OverviewBodyEnd(); + $r .= $this->OverviewFootStart(); $r .= $this->list_navigation($this->link1,$this->flds + $tutos[massupdate],$this->start,$a,$n); @@ -118,6 +118,7 @@ $r .= $this->UpdateRowEnd(2); } + $r .= $this->OverviewFootEnd(); $r .= $this->OverviewTableEnd(); $r .= $this->actionformEnd("team_overview.php"); return $r; @@ -202,7 +203,11 @@ $this->result = $this->dbconn->Exec($this->q); $n = $this->result->numrows(); if ( 0 == $n) { - $this->redirect = "team_select.php?msg=". UrlEncode($lang['Err0048']); + $msg = addLine($msg,$lang['Err0048']); + $this->redirect = 'team_select.php'; + if (isset($_REQUEST['ext']) && ($_REQUEST['ext'] == 1) ) { + $this->redirect = addUrlParameter($this->redirect,'ext=1',true); + } $this->result->free(); } else if ( ($this->format == "html") && ($this->result->numrows() == 1) ) { $b = new team($this->dbconn); Modified: trunk/php/team_show.php =================================================================== --- trunk/php/team_show.php 2013-02-28 05:19:33 UTC (rev 980) +++ trunk/php/team_show.php 2013-02-28 09:25:27 UTC (rev 981) @@ -13,6 +13,8 @@ * @module team_show * @package team */ +$tutos['files'][__FILE__] = '$Rev$'; + require_once 'webelements.p3'; require_once 'permission.p3'; @@ -177,50 +179,58 @@ $r .= $this->headline_gui(); $r .= $this->CreatorInfoLine($this->obj,$this->width); - $r .= $this->showfield_data_row($this->obj,$table['team']['name'],1,1); - $r .= $this->showfield_data_row($this->obj,$table['team']['comment'],1,1); - $r .= $this->showfield_data_row($this->obj,$table['team']['hidden'],1,1); + $r .= $this->showfield_data_row($this->obj,$table['team']['name'],$this->width -1,1); + $r .= $this->showfield_data_row($this->obj,$table['team']['comment'],$this->width -1,1); + $r .= $this->showfield_data_row($this->obj,$table['team']['hidden'],$this->width -1,1); $r .= $this->ContentRowStart(); $r .= $this->showfield($lang['TeamManager']); if (is_object($this->obj->owner) && $this->obj->owner->gettype() == 'address') { - $r .= $this->showdata($this->obj->owner->getMailLink(),1); + $r .= $this->showdata($this->obj->owner->getMailLink(),$this->width -1); } else { - $r .= $this->showdata("",1); + $r .= $this->showdata("",$this->width -1); } $r .= $this->ContentRowEnd(); - $r .= $this->showfield_data_row($this->obj,$table['team']['email'],1,1); + $r .= $this->showfield_data_row($this->obj,$table['team']['email'],$this->width -1,1); - $r .= team::infolist($this->user,$this->obj,2,$this->format); + $r .= team::infolist($this->user,$this->obj,$this->width,$this->format); // Show additional custom fields - $r .= show_custom_fields($this,$this->obj->gettype(),$this->obj,2); + $r .= show_custom_fields($this,$this->obj->gettype(),$this->obj,$this->width); - $r .= $this->ContentRowStart(); - $r .= " <th colspan=\"2\">". $lang['TeamMember'] ."(". count($this->obj->member) .")</th>\n"; - $r .= $this->ContentRowStart(); + $r .= product::infolist($this->user,$this->obj,$this->width,$this->format); + $r .= show_module_infolists($this->user,$this->obj,$this->width,$this->format); + $r .= $this->getHistoryLink(); + $r .= $this->DataTableEnd(); + $line = 0; usort($this->obj->member,"member_sort"); + $r .= $this->OverviewTableStart(); + $r .= $this->OverviewHeadStart(); + $r .= $this->OverviewHeadLineStart(); + $r .= " <th colspan=\"2\">". $lang['TeamMember'] ."(". count($this->obj->member) .")</th>\n"; + $r .= $this->OverviewHeadLineEnd(); + $r .= $this->OverviewHeadEnd(); + $r .= $this->OverviewBodyStart(); + foreach ($this->obj->member as $obj) { $r .= $this->OverviewRowStart($line); if ($obj->getType() == "team") { - $r .= "<td colspan=\"2\">". $lang[$obj->getType()]." ".$obj->getLink() ."</td>\n"; + $r .= $this->OverviewRowBlock($lang[$obj->getType()].' '.$obj->getLink(),'title over_l'); + $r .= $this->OverviewRowBlock('',''); } else { - $r .= "<td>". $obj->getLink() ."</td>\n"; - $r .= "<td>". handle('email',$obj->default_email(),myentities($obj->default_email())) ."</td>\n"; + $r .= $this->OverviewRowBlock($obj->getLink(),'title over_l'); + $r .= $this->OverviewRowBlock(handle('email',$obj->default_email(),myentities($obj->default_email())),'over_l'); } $r .= $this->OverviewRowEnd($line++); } + $r .= $this->OverviewBodyEnd(); + $r .= $this->OverviewTableEnd(); - $r .= product::infolist($this->user,$this->obj,2,$this->format); - $r .= show_module_infolists($this->user,$this->obj,2,$this->format); - - $r .= $this->obj->getHistoryLink(2); - $r .= $this->DataTableEnd(); return $r; } Modified: trunk/php/testmanager/testcase_show.php =================================================================== --- trunk/php/testmanager/testcase_show.php 2013-02-28 05:19:33 UTC (rev 980) +++ trunk/php/testmanager/testcase_show.php 2013-02-28 09:25:27 UTC (rev 981) @@ -11,6 +11,7 @@ * @package testcase */ $tutos['files'][__FILE__] = '$Rev$'; + $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; @@ -122,13 +123,11 @@ // show where we use this testcase $r .= testcase::infolist($this->user,$this->obj,4,$this->format); // Show additional custom fields - $r .= show_custom_fields($this,$this->obj->gettype(),$this->obj,4); + $r .= show_custom_fields($this,$this->obj->gettype(),$this->obj,$this->width); // References to modules - $r .= show_module_infolists($this->user,$this->obj,4); - $r .= $this->obj->getHistoryLink(4); - - + $r .= show_module_infolists($this->user,$this->obj,$this->width); + $r .= $this->getHistoryLink(); $r .= $this->DataTableEnd(); return $r; } Modified: trunk/php/testmanager/testrun_overview.php =================================================================== --- trunk/php/testmanager/testrun_overview.php 2013-02-28 05:19:33 UTC (rev 980) +++ trunk/php/testmanager/testrun_overview.php 2013-02-28 09:25:27 UTC (rev 981) @@ -179,7 +179,7 @@ } $r .= ' </table></td>'; $r .= ' <td colspan="'.$poststat.'"></td>'; - $r .= $this->OverviewRowEnd(); + $r .= $this->OverviewRowEnd(0); } if ( $tutos[massupdate] == 1 ) { $r .= $this->UpdateRowStart($this->flds-1); Modified: trunk/php/testmanager/testrun_show.php =================================================================== --- trunk/php/testmanager/testrun_show.php 2013-02-28 05:19:33 UTC (rev 980) +++ trunk/php/testmanager/testrun_show.php 2013-02-28 09:25:27 UTC (rev 981) @@ -1,6 +1,6 @@ <?php /** - * Copyright 2000 - 2012 by Gero Kohnert + * Copyright 2000 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -10,6 +10,8 @@ * @module testrun_show * @package testrun */ +$tutos['files'][__FILE__] = '$Rev$'; + $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; @@ -320,16 +322,16 @@ } // Show additional custom fields - $r .= show_custom_fields($this,$this->obj->gettype(),$this->obj,4); + $r .= show_custom_fields($this,$this->obj->gettype(),$this->obj,$this->width); // References to modules - $r .= show_module_infolists($this->user,$this->obj,4); + $r .= show_module_infolists($this->user,$this->obj,$this->width); // show the whole thing if(is_object($this->obj->run)) { $r .= $this->obj->printrow($this,$this->obj->run,4,null); } - $r .= $this->obj->getHistoryLink(4); + $r .= $this->getHistoryLink(); $r .= $this->DataTableEnd(); return $r; } @@ -436,4 +438,4 @@ <!-- SVN Info $Id$ $Author$ ---> +--> \ No newline at end of file Modified: trunk/php/testmanager/testsuite_show.php =================================================================== --- trunk/php/testmanager/testsuite_show.php 2013-02-28 05:19:33 UTC (rev 980) +++ trunk/php/testmanager/testsuite_show.php 2013-02-28 09:25:27 UTC (rev 981) @@ -337,22 +337,22 @@ if ($this->obj->activ == 1) { $r .= $this->ContentRowStart(); $r .= $this->showfield($lang['TestsuiteStats']); - $r .= $this->showdata($this->obj->getStats(),3); + $r .= $this->showdata($this->obj->getStats(),$this->width -1); $r .= $this->ContentRowEnd(); $r .= $this->ContentRowStart(); $r .= $this->showfield($lang['TestsuiteCopyOf']); if (is_object($this->obj->orig)) { - $r .= $this->showdata($this->theme->getImage($this->obj->orig->getHtmlIcon(),'menu').$this->obj->orig->getLink(),3); + $r .= $this->showdata($this->theme->getImage($this->obj->orig->getHtmlIcon(),'menu').$this->obj->orig->getLink(),$this->width -1); } else { - $r .= $this->showdata($lang['HistoryDeleted'],3); + $r .= $this->showdata($lang['HistoryDeleted'],$this->width -1); } $r .= $this->ContentRowEnd(); } if (is_object($this->obj->prev)) { $r .= $this->ContentRowStart(); $r .= $this->showfield($lang['TestSuitePrev']); - $r .= $this->showdata($this->obj->prev->getLink(),3); + $r .= $this->showdata($this->obj->prev->getLink(),$this->width -1); $r .= $this->ContentRowEnd(); } if (count($this->obj->list[usetestsuite][1]) > 0) { @@ -364,35 +364,33 @@ $x .= $pre.$ts->getLink(); $pre = '<br />'; } - $r .= $this->showdata($x,3); + $r .= $this->showdata($x,$this->width -1); $r .= $this->ContentRowEnd(); } $r .= $this->ContentRowStart(); $r .= $this->showfield($lang['TestsuiteState']); - $r .= $this->showdata($lang['TestsuiteStates'][$this->obj->state],3); + $r .= $this->showdata($lang['TestsuiteStates'][$this->obj->state],$this->width -1); $r .= $this->ContentRowEnd(); $r .= $this->ContentRowStart(); $r .= $this->showfield($lang['TestsuiteRef']); - $r .= $this->showdata((is_object($this->obj->ref) ? testcase::get_rrefs($this->obj->ref,true):$lang['HistoryDeleted']),3); + $r .= $this->showdata((is_object($this->obj->ref) ? testcase::get_rrefs($this->obj->ref,true):$lang['HistoryDeleted']),$this->width -1); $r .= $this->ContentRowEnd(); $r .= $this->ContentRowStart(); $r .= $this->showfield($lang['TestsuiteDesc']); - $r .= $this->showdata('<pre class="pre">'. $this->obj->getDesc() .'</pre>',3); + $r .= $this->showdata('<pre class="pre">'. $this->obj->getDesc() .'</pre>',$this->width -1); $r .= $this->ContentRowEnd(); // Show additional custom fields - $r .= show_custom_fields($this,$this->obj->gettype(),$this->obj,4); + $r .= show_custom_fields($this,$this->obj->gettype(),$this->obj,$this->width); // show where we use this testsuite $r .= testrun::infolist($this->user,$this->obj,4,$this->format); // References to modules - $r .= show_module_infolists($this->user,$this->obj,4); + $r .= show_module_infolists($this->user,$this->obj,$this->width); - $r .= $this->obj->getHistoryLink(4); - - + $r .= $this->getHistoryLink(); $r .= $this->DataTableEnd(); return $r; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gok...@us...> - 2013-02-28 05:19:38
|
Revision: 980 http://sourceforge.net/p/tutos/code/980 Author: gokohnert Date: 2013-02-28 05:19:33 +0000 (Thu, 28 Feb 2013) Log Message: ----------- fix the fix :-( Modified Paths: -------------- trunk/php/auth/auth_ldap.pinc Modified: trunk/php/auth/auth_ldap.pinc =================================================================== --- trunk/php/auth/auth_ldap.pinc 2013-02-27 15:23:28 UTC (rev 979) +++ trunk/php/auth/auth_ldap.pinc 2013-02-28 05:19:33 UTC (rev 980) @@ -103,7 +103,7 @@ dterror_log('ready ldap '."\n", 3, $tutos[errlog]); - if ( $this->getuname() != "" && $this->getpw() != "" ) { + if ( ($this->getuname() != '') && ($this->getpw() != '') ) { return true; } return false; @@ -117,7 +117,7 @@ $r = array(); - if ( ! !$this->ready()) { + if ( !$this->ready()) { $r[0] = ''; $r[1] = $lang['Err0025']; return $r; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gok...@us...> - 2013-02-27 15:23:33
|
Revision: 979 http://sourceforge.net/p/tutos/code/979 Author: gokohnert Date: 2013-02-27 15:23:28 +0000 (Wed, 27 Feb 2013) Log Message: ----------- responsive mobile layout updates Modified Paths: -------------- trunk/php/company_overview.php trunk/php/layout/mobile_layout.pinc Modified: trunk/php/company_overview.php =================================================================== --- trunk/php/company_overview.php 2013-02-27 13:36:49 UTC (rev 978) +++ trunk/php/company_overview.php 2013-02-27 15:23:28 UTC (rev 979) @@ -21,6 +21,7 @@ // Check if user is allowed to use it check_user(); +$tutos['mobileok'] = 1; require_once 'product.pinc'; require_once 'appointment.pinc'; @@ -79,19 +80,20 @@ $nav['list'] = $np; $ss = $this->putSubSession($nav); + $r .= $this->header; $this->flds = 3; $r .= $this->actionformStart("company_overview.php"); - $r .= $this->header; $r .= $this->OverviewTableStart(); - $r .= "<thead>\n"; - $r .= "<tr>\n"; + $r .= $this->OverviewHeadStart(); + $r .= $this->OverviewHeadLineStart(); $r .= $this->orderHeader("name",$lang['Company'],$this->link2); $r .= $this->orderHeader('',$lang['Location'],$this->link2); $r .= show_custom_overview_headers($this,'company',$this->link2); $r .= $this->orderHeader("",$lang['Department'],$this->link2); $r .= $this->MassUpdateHeader(); - $r .= "</tr>\n"; - $r .= "</thead>\n"; + $r .= $this->OverviewHeadLineEnd(); + $r .= $this->OverviewHeadEnd(); + $r .= $this->OverviewBodyStart(); if ( $this->start == -1 ) { $a = $n - $tutos['maxshow']; @@ -117,30 +119,27 @@ $r .= $this->OverviewRowStart($a); $x = $this->mark_filter(myentities($c->getFullName()),'name'); - $r .= ' <td rowspan="'.$cnt.'" class="over_l">'; - $r .= $c->getLink($x,'ss='.$ss); - $r .= '</td>'; + $r .= $this->OverviewRowBlock($c->getLink($x,'ss='.$ss),'title over_l',$cnt); - $r .= ' <td class="over_l">'; if ($cnt > 1) { reset($c->location); $l = current($c->location); - $r .= $l->zip.' '; - $r .= $l->city; + $x = $l->zip.' '; + $x .= $l->city; } else { - $r .= ' '; + $x = ' '; } - $r .= '</td>'; + $r .= $this->OverviewRowBlock($x,'title over_l'); $r .= show_custom_overview_data($this,'company',$c,$cnt); - $r .= ' <td rowspan="'.$cnt.'" class="over_l">'; $pre = ''; + $x = ''; foreach($c->list[usedepartment] as $i => $f) { - $r .= $pre.$f->getLink($f->name); + $x .= $pre.$f->getLink($f->name); $pre = '<br />'; } - $r .= '</td>'; + $r .= $this->OverviewRowBlock($x,'title over_l',$cnt); $r .= $this->MassUpdateField($c,$cnt); $r .= $this->OverviewRowEnd($a); @@ -152,17 +151,18 @@ continue; } $r .= $this->OverviewRowStart($a); - $r .= ' <td class="over_l">'; - $r .= $l->zip.' '; - $r .= $l->city; - $r .= '</td>'; + $x = $l->zip.' '; + $x .= $l->city; + $r .= $this->OverviewRowBlock($x,'over_l'); $r .= $this->OverviewRowEnd($a); } } unset($c); } - + $this->result->free(); + $r .= $this->OverviewBodyEnd(); + $r .= $this->OverviewFootStart(); $r .= $this->list_navigation($this->link1,$this->flds + $tutos[massupdate] ,$this->start,$a,$n); if ( $tutos[massupdate] == 1 ) { $r .= $this->UpdateRowStart($this->flds-1); @@ -177,10 +177,9 @@ $r .= "</select>\n"; $r .= $this->UpdateRowEnd(2); } - + $r .= $this->OverviewFootEnd(); $r .= $this->OverviewTableEnd(); $r .= $this->actionformEnd("company_overview.php"); - $this->result->free(); return $r; } Modified: trunk/php/layout/mobile_layout.pinc =================================================================== --- trunk/php/layout/mobile_layout.pinc 2013-02-27 13:36:49 UTC (rev 978) +++ trunk/php/layout/mobile_layout.pinc 2013-02-27 15:23:28 UTC (rev 979) @@ -192,7 +192,7 @@ */ function OverviewRowBlock($content,$class = '',$rows=1) { $r = ''; - $r .= '<td'.($class != '' ? ' class="'.$class.'"':'').'>'.$content.'</td>'."\n"; + $r .= '<td'.($rows > 1 ? ' rowspan="'.$rows.'" ':'').($class!='' ? ' class="'.$class.'"':'').'>'.$content.'</td>'."\n"; $this->blk_cnt += $rows; return $r; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gok...@us...> - 2013-02-27 13:36:52
|
Revision: 978 http://sourceforge.net/p/tutos/code/978 Author: gokohnert Date: 2013-02-27 13:36:49 +0000 (Wed, 27 Feb 2013) Log Message: ----------- responsive mobile layout updates Modified Paths: -------------- trunk/php/bugtracking/bug_overview.php trunk/php/history_show.php trunk/php/module_template/AAA.pinc trunk/php/module_template/AAA_overview.php trunk/php/module_template/AAA_select.php trunk/php/testmanager/testcase_overview.php trunk/php/testmanager/testrun_overview.php Modified: trunk/php/bugtracking/bug_overview.php =================================================================== --- trunk/php/bugtracking/bug_overview.php 2013-02-27 10:34:38 UTC (rev 977) +++ trunk/php/bugtracking/bug_overview.php 2013-02-27 13:36:49 UTC (rev 978) @@ -433,6 +433,7 @@ $r .= $this->MassUpdateHeader(); $r .= $this->OverviewHeadLineEnd(); $r .= $this->OverviewHeadEnd(); + $r .= $this->OverviewBodyStart(); if ( $this->format == "paper" ) { $a = 0; @@ -530,6 +531,8 @@ $r .= $this->OverviewRowEnd($line++); $a++; } + $r .= $this->OverviewBodyEnd(); + $r .= $this->OverviewFootStart(); $r .= $this->list_navigation($this->link1,$this->flds + $tutos[massupdate] ,$this->start,$a,$n); @@ -559,6 +562,7 @@ $r .= "</select>\n"; $r .= $this->UpdateRowEnd(2); } + $r .= $this->OverviewFootEnd(); $r .= $this->OverviewTableEnd(); $r .= $this->actionformEnd("bug_overview.php"); return $r; Modified: trunk/php/history_show.php =================================================================== --- trunk/php/history_show.php 2013-02-27 10:34:38 UTC (rev 977) +++ trunk/php/history_show.php 2013-02-27 13:36:49 UTC (rev 978) @@ -89,6 +89,7 @@ $r .= $this->orderheader("m_time",$lang['atDateTime'],$this->link2); $r .= $this->OverviewHeadLineEnd(); $r .= $this->OverviewHeadEnd(); + $r .= $this->OverviewBodyStart(); $line = 0; $this->xobj->readHistory($this->adr_id,$this->order_fld,$this->order_dir,$this->start,$this->from,$this->to); @@ -226,8 +227,10 @@ unset($f); $a++; } - + $r .= $this->OverviewBodyEnd(); + $r .= $this->OverviewFootStart(); $r .= $this->list_navigation($this->link1,$cols,$this->start,$a,$n); + $r .= $this->OverviewFootEnd(); $r .= $this->OverviewTableEnd(); return $r; } Modified: trunk/php/module_template/AAA.pinc =================================================================== --- trunk/php/module_template/AAA.pinc 2013-02-27 10:34:38 UTC (rev 977) +++ trunk/php/module_template/AAA.pinc 2013-02-27 13:36:49 UTC (rev 978) @@ -9,6 +9,7 @@ * SVN Info $Id$ * $Author$ */ +$tutos['files'][__FILE__] = '$Rev$'; /** * base class for module AAA @@ -224,6 +225,21 @@ } /** + * resolve a history Tag (to be called from history_show) + */ + function resolveHistoryTag ($f) { + global $lang; + + $x = null; + switch ($f['field']) { + case 'AAAReference': + $x = resolve_history_obj($f,$this->dbconn); + break; + } + return $x; + } + + /** * get the type of object */ static function getType () { @@ -369,5 +385,5 @@ $r .= "</ul>\n"; return $r; } - } +} ?> \ No newline at end of file Modified: trunk/php/module_template/AAA_overview.php =================================================================== --- trunk/php/module_template/AAA_overview.php 2013-02-27 10:34:38 UTC (rev 977) +++ trunk/php/module_template/AAA_overview.php 2013-02-27 13:36:49 UTC (rev 978) @@ -1,6 +1,6 @@ <?php /** - * Copyright 2009 - 2012 by Gero Kohnert + * Copyright 2009 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -10,6 +10,8 @@ * @module AAA_overview * @package AAA */ +$tutos['files'][__FILE__] = '$Rev$'; + $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; @@ -17,6 +19,8 @@ /* Check if user is allowed to use it */ check_user(); + +$tutos['mobileok'] = 1; loadmodules('AAA','overview'); loadmodule('AAA'); loadlayout(); @@ -33,7 +37,10 @@ $n = $this->result->numrows(); - if ( $this->start == -1 ) { + if ( $this->format == "paper" ) { + $a = 0; + $end = $n; + } else if ( $this->start == -1 ) { // Show the last part $a = $n - $tutos['maxshow']; $end = $n; @@ -57,9 +64,8 @@ $r .= $this->header; $r .= $this->actionformStart('AAA_overview.php'); $r .= $this->OverviewTableStart(); - $r .= "<thead>\n"; - $r .= " <tr>\n"; - + $r .= $this->OverviewHeadStart(); + $r .= $this->OverviewHeadLineStart(); if ($this->head['name']) { $r .= $this->orderHeader('name',$lang['AAAName'],$this->link2); $this->flds++; @@ -70,8 +76,9 @@ } $r .= show_custom_overview_headers($this,AAA::getType(),$this->link2); $r .= $this->MassUpdateHeader(); - $r .= " </tr>\n"; - $r .= "</thead>\n"; + $r .= $this->OverviewHeadLineEnd(); + $r .= $this->OverviewHeadEnd(); + $r .= $this->OverviewBodyStart(); $line = 1; while ( ($a < $n) && ($a < $end) ) { @@ -85,19 +92,17 @@ // NAME if ($this->head['name']) { $x = $this->mark_filter(myentities($obj->name),'name'); - $r .= ' <td class="over_l">'. $obj->getLink($x,'ss='.$ss) .'</td>'."\n"; + $r .= $this->OverviewRowBlock($obj->getLink($x,'ss='.$ss),'title over_l'); } // REF if ($this->head['link_id']) { - $r .= ' <td class="over_l">'."\n"; + $x = ''; if (is_object($obj->ref)) { $x = $this->mark_filter(myentities($obj->ref->getFullName()),'link_id'); - $r .= $obj->ref->getLink($x).'</td>'."\n"; - } else { - $r .= ' '."\n"; + $x .= $obj->ref->getLink($x); } - $r .= '</td>'."\n"; + $r .= $this->OverviewRowBlock($x,'over_l'); } $r .= show_custom_overview_data($this,AAA::getType(),$obj); @@ -109,6 +114,8 @@ $a++; } $this->result->free(); + $r .= $this->OverviewBodyEnd(); + $r .= $this->OverviewFootStart(); $r .= $this->list_navigation($this->link1,$this->flds + $tutos[massupdate],$this->start,$a,$n); // MASSUPDATE CONTROL if ( $tutos[massupdate] == 1 ) { @@ -124,7 +131,7 @@ $r .= "</select>\n"; $r .= $this->UpdateRowEnd(2); } - + $r .= $this->OverviewFootEnd(); $r .= $this->OverviewTableEnd(); $r .= $this->actionformEnd('AAA_overview.php'); @@ -225,13 +232,23 @@ $this->result = $this->dbconn->Exec($this->q); //$msg .= $this->q; if ( 0 == $this->result->numrows()) { - $this->redirect = 'AAA_select.php?msg='. UrlEncode($lang['Err0048']); $this->result->free(); + $msg = addLine($msg,$lang['Err0048']); + $this->redirect = 'AAA_select.php'; if ($this->ext != 0) { $this->redirect = addUrlParameter($this->redirect,'ext=1',true); } } + $l = addUrlParameter($this->link1,'format=paper'); + $x = array( url => $l, + image => $this->user->layout->theme->getImage(testcase::getHtmlIcon(),'menu'), + text => $lang['Printable'], + info => $lang['PrintableInfo'], + category => array('print','view',testcase::getType(),usetestcase) + ); + $this->addMenu($x); + // menu $m = AAA::getSelectLink($this->user, $lang['Search']); $m[category][] = "obj"; Modified: trunk/php/module_template/AAA_select.php =================================================================== --- trunk/php/module_template/AAA_select.php 2013-02-27 10:34:38 UTC (rev 977) +++ trunk/php/module_template/AAA_select.php 2013-02-27 13:36:49 UTC (rev 978) @@ -10,6 +10,8 @@ * @module AAA_select * @package AAA */ +$tutos['files'][__FILE__] = '$Rev$'; + $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; @@ -53,7 +55,7 @@ $r .= $this->ContentRowStart('ext'); $r .= $this->showfieldc($lang['AAAReference']); - $r .= $this->showdata(select_from_array_or_input($this->obj,"ref",null,1,get_parent_classes('AAA')),2); + $r .= $this->showdata(select_from_array_or_input($this,"ref",null,1,get_parent_classes('AAA')),2); $r .= $this->ContentRowEnd(); // add custom selectors Modified: trunk/php/testmanager/testcase_overview.php =================================================================== --- trunk/php/testmanager/testcase_overview.php 2013-02-27 10:34:38 UTC (rev 977) +++ trunk/php/testmanager/testcase_overview.php 2013-02-27 13:36:49 UTC (rev 978) @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2012 by Gero Kohnert + * Copyright 1999 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -10,6 +10,8 @@ * @module testcase_overview * @package testcase */ +$tutos['files'][__FILE__] = '$Rev$'; + $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; @@ -17,6 +19,8 @@ // Check if user is allowed to use it check_user(); + +$tutos['mobileok'] = 1; loadmodules('testcase','show'); loadmodule('testcase'); loadlayout(); @@ -34,7 +38,10 @@ $r = ''; $n = $this->result->numrows(); - if ( $this->start == -1 ) { + if ( $this->format == "paper" ) { + $a = 0; + $end = $n; + } else if ( $this->start == -1 ) { // Show the last part $a = $n - $tutos['maxshow']; $end = $n; @@ -46,10 +53,10 @@ $nav = $this->getSubSession(); $nav['link'] = $this->link1; - # $nav['list'] = array(); -# foreach ($this->blist as $b) { - # $nav['list'][] = $b->id; - # } + // $nav['list'] = array(); + // foreach ($this->blist as $b) { + // $nav['list'][] = $b->id; + // } $ss = $this->putSubSession($nav); $this->flds = 3; @@ -75,6 +82,7 @@ $r .= $this->MassUpdateHeader(); $r .= $this->OverviewHeadLineEnd(); $r .= $this->OverviewHeadEnd(); + $r .= $this->OverviewBodyStart(); $line = 1; while ( ($a < $n) && ($a < $end) ) { @@ -96,7 +104,7 @@ $r .= '</td>'."\n"; } $x = $this->mark_filter(myentities($b->getFullName()),'name'); - $r .= $this->OverviewRowBlock(($b->activ == 1 ? '':'<i>').$b->getLink($x,'ss='.$ss).($b->activ == 1 ? '':'</i>'),'over_l'); + $r .= $this->OverviewRowBlock(($b->activ == 1 ? '':'<i>').$b->getLink($x,'ss='.$ss).($b->activ == 1 ? '':'</i>'),'title over_l'); $r .= $this->OverviewRowBlock(($b->activ == 1 ? '':'<i>').$b->getLink($b->version,'ss='.$ss).($b->activ == 1 ? '':'</i>'),'over_l'); if ($this->head['ref_id']) { @@ -117,6 +125,9 @@ } $this->result->free(); + $r .= $this->OverviewBodyEnd(); + $r .= $this->OverviewFootStart(); + $r .= $this->list_navigation($this->link1,$this->flds + $tutos[massupdate],$this->start,$a,$n); if ( $tutos[massupdate] == 1 ) { $r .= $this->UpdateRowStart($this->flds-1); @@ -131,7 +142,7 @@ $r .= "</select>\n"; $r .= $this->UpdateRowEnd(2); } - + $r .= $this->OverviewFootEnd(); $r .= $this->OverviewTableEnd(); $r .= $this->actionformEnd("testcase_overview.php"); return $r; @@ -170,6 +181,7 @@ watchlist::parse_action($this->user); } } + /** * prepare */ @@ -250,6 +262,16 @@ $this->result = $this->dbconn->Exec($this->q); $this->link2 = $this->link1; + $l = addUrlParameter($this->link1,'format=paper'); + $x = array( url => $l, + image => $this->user->layout->theme->getImage(testcase::getHtmlIcon(),'menu'), + text => $lang['Printable'], + info => $lang['PrintableInfo'], + category => array('print','view',testcase::getType(),usetestcase) + ); + $this->addMenu($x); + + // menu $m = testcase::getSelectLink($this->user, $lang['Search']); $m[category][] = "obj"; Modified: trunk/php/testmanager/testrun_overview.php =================================================================== --- trunk/php/testmanager/testrun_overview.php 2013-02-27 10:34:38 UTC (rev 977) +++ trunk/php/testmanager/testrun_overview.php 2013-02-27 13:36:49 UTC (rev 978) @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2012 by Gero Kohnert + * Copyright 1999 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -10,6 +10,8 @@ * @module testrun_overview * @package testrun */ +$tutos['files'][__FILE__] = '$Rev$'; + $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; @@ -17,6 +19,8 @@ // Check if user is allowed to use it check_user(); + +$tutos['mobileok'] = 1; loadmodules('testrun','show'); loadmodule('testrun'); loadlayout(); @@ -128,28 +132,30 @@ $r .= $this->OverviewRowStart($line); $x = $this->mark_filter(myentities($b->getFullName()),'name'); - $r .= ' <td class="over_l">'.$b->getLink($x,'ss='.$ss).'</td>'."\n"; + $r .= $this->OverviewRowBlock($b->getLink($x,'ss='.$ss),'title over_l'); if ($this->head['ref_id']) { if(is_object($b->ref)) { $x = $this->mark_filter(myentities($b->ref->getFullName()),'ref_id'); - $r .= ' <td class="over_l">'. $b->ref->getLink($x) .'</td>'."\n"; - } else - $r .= ' <td class="over_l">'. $b->id .'</td>'."\n"; + $x = $b->ref->getLink($x); + } else { + $x = $b->id ; + } + $r .= $this->OverviewRowBlock($x,'over_l'); } if ($this->head['test_id']) { - $r .= ' <td class="over_l">'; + $x = ''; if (is_object($b->suite)) { $x = $this->mark_filter(myentities($b->suite->getFullName()),'testidfn'); - $r .= $b->suite->getLink($x); + $x = $b->suite->getLink($x); } - $r .= '</td>'."\n"; + $r .= $this->OverviewRowBlock($x,'over_l'); } if ($this->head['t_state']) { - $r .= ' <td class="over_l">'.$lang['TestrunStates'][$b->state].'</td>'."\n"; + $r .= $this->OverviewRowBlock($lang['TestrunStates'][$b->state],'over_l'); } if ($this->head['stat']) { - $r .= ' <td class="over_r">'.$b->getStats().'</td>'."\n"; + $r .= $this->OverviewRowBlock($b->getStats(),'over_l'); if($showsum) { } } @@ -160,10 +166,12 @@ } $this->result->free(); + $r .= $this->OverviewBodyEnd(); + $r .= $this->OverviewFootStart(); $r .= $this->list_navigation($this->link1,$this->flds + $tutos[massupdate],$this->start,$a,$n); if($showsum) { - $r .= '<tr>'; + $r .= $this->OverviewRowStart(0,'','summary'); $r .= ' <td colspan="'.$prestat.'"></td>'; $r .= ' <td><table border="0" cellpadding="0" cellspacing="0">'; foreach($this->statarr as $si => $sf) { @@ -171,7 +179,7 @@ } $r .= ' </table></td>'; $r .= ' <td colspan="'.$poststat.'"></td>'; - $r .= '</tr>'; + $r .= $this->OverviewRowEnd(); } if ( $tutos[massupdate] == 1 ) { $r .= $this->UpdateRowStart($this->flds-1); @@ -191,7 +199,7 @@ $r .= "</select>\n"; $r .= $this->UpdateRowEnd(2); } - + $r .= $this->OverviewFootEnd(); $r .= $this->OverviewTableEnd(); $r .= $this->actionformEnd("testrun_overview.php"); return $r; @@ -358,7 +366,16 @@ $this->link2 = $this->link1; + $l = addUrlParameter($this->link1,'format=paper'); + $x = array( url => $l, + image => $this->user->layout->theme->getImage(testrun::getHtmlIcon(),'menu'), + text => $lang['Printable'], + info => $lang['PrintableInfo'], + category => array('print','view',testrun::getType(),usetestrun) + ); + $this->addMenu($x); + // menu $m = testrun::getSelectLink($this->user, $lang['Search']); $m[category][] = "obj"; @@ -383,4 +400,4 @@ <!-- SVN Info $Id$ $Author$ ---> +--> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gok...@us...> - 2013-02-27 10:34:44
|
Revision: 977 http://sourceforge.net/p/tutos/code/977 Author: gokohnert Date: 2013-02-27 10:34:38 +0000 (Wed, 27 Feb 2013) Log Message: ----------- responsive mobile layout updates Modified Paths: -------------- trunk/html/mobile_layout.css trunk/php/expense/expense_overview.php trunk/php/file/file_overview.php trunk/php/group/group_overview.php trunk/php/layout/classic_base.pinc trunk/php/layout/classic_layout.pinc trunk/php/layout/layout_base.pinc trunk/php/layout/mobile_layout.pinc trunk/php/layout/new_base.pinc trunk/php/note/note_overview.php trunk/php/rate/rate_overview.php trunk/php/reminder/reminder_overview.php trunk/php/resource/resource_overview.php trunk/php/resource/resource_select.php trunk/php/scrum/sprint_overview.php trunk/php/stuff/stuff_overview.php trunk/php/testmanager/testsuite_overview.php trunk/php/testmanager/testsuite_show.php trunk/php/url/url_overview.php Modified: trunk/html/mobile_layout.css =================================================================== --- trunk/html/mobile_layout.css 2013-02-27 09:18:33 UTC (rev 976) +++ trunk/html/mobile_layout.css 2013-02-27 10:34:38 UTC (rev 977) @@ -12,7 +12,7 @@ * */ -#tutosversion, #logo, #motd, .updaterow , .upd_field { +#tutosversion, #logo, #motd, .updaterow , .upd_field , .summary { display: none !important; } Modified: trunk/php/expense/expense_overview.php =================================================================== --- trunk/php/expense/expense_overview.php 2013-02-27 09:18:33 UTC (rev 976) +++ trunk/php/expense/expense_overview.php 2013-02-27 10:34:38 UTC (rev 977) @@ -171,6 +171,7 @@ $r .= $this->MassUpdateHeader(); $r .= $this->OverviewHeadLineEnd(); $r .= $this->OverviewHeadEnd(); + $r .= $this->OverviewBodyStart(); if ( $this->start == -1 ) { // Show the last pasrt @@ -191,7 +192,7 @@ $r .= $this->OverviewRowStart($line); $x = $this->mark_filter(myentities($b->getFullName()),'name'); - $r .= $this->OverviewRowBlock($b->getLink($x,'ss='.$ss),'over_l'); + $r .= $this->OverviewRowBlock($b->getLink($x,'ss='.$ss),'title over_l'); if ($this->head['link_id']) { $x = ''; @@ -246,10 +247,11 @@ unset($b); $a++; } - + $r .= $this->OverviewBodyEnd(); + $r .= $this->OverviewFootStart(); $r .= $this->list_navigation($this->link1,$this->flds + $tutos[massupdate],$this->start,$a,$n); - $r .= "<tr>\n"; + $r .= $this->OverviewRowStart(0,'','summary'); $r .= ' <td colspan="'.($this->preflds)."\"> </td>\n"; $r .= " <td align=\"right\">\n"; foreach ($sum as $s => $x) { @@ -272,7 +274,7 @@ } $r .= "</td>\n"; $r .= ' <td colspan="'.($this->flds - $this->preflds)."\"> </td>\n"; - $r .= "</tr>\n"; + $r .= $this->OverviewRowEnd(); if ( $tutos[massupdate] == 1 ) { $r .= $this->UpdateRowStart($this->flds-1); @@ -287,6 +289,7 @@ $r .= "</select>\n"; $r .= $this->UpdateRowEnd(2); } + $r .= $this->OverviewFootEnd(); $r .= $this->OverviewTableEnd(); $r .= $this->actionformEnd("expense_overview.php"); return $r; Modified: trunk/php/file/file_overview.php =================================================================== --- trunk/php/file/file_overview.php 2013-02-27 09:18:33 UTC (rev 976) +++ trunk/php/file/file_overview.php 2013-02-27 10:34:38 UTC (rev 977) @@ -12,6 +12,7 @@ * @package file */ $tutos['files'][__FILE__] = '$Rev$'; + $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; @@ -19,6 +20,8 @@ // Check if user is allowed to use it check_user(); + +$tutos['mobileok'] = 1; loadmodules('file','overview'); loadmodule('file'); loadlayout(); @@ -109,6 +112,7 @@ $r .= $this->MassUpdateHeader(); $r .= $this->OverviewHeadLineEnd(); $r .= $this->OverviewHeadEnd(); + $r .= $this->OverviewBodyStart(); $line = 0; while ( ($a < $n) && ($a < $end) ) { @@ -123,7 +127,7 @@ } else { $xx .= $x; } - $r .= $this->OverviewRowBlock($xx,'over_l'); + $r .= $this->OverviewRowBlock($xx,'title over_l'); $x = $this->mark_filter(myentities($f->version),'name'); @@ -168,7 +172,8 @@ unset($f); $a++; } - + $r .= $this->OverviewBodyEnd(); + $r .= $this->OverviewFootStart(); $r .= $this->list_navigation($this->link1,$this->flds + $tutos[massupdate],$this->start,$a,$n); if ( $tutos[massupdate] == 1 ) { $r .= $this->UpdateRowStart($this->flds-1); @@ -183,6 +188,7 @@ $r .= "</select>\n"; $r .= $this->UpdateRowEnd(2); } + $r .= $this->OverviewFootEnd(); $r .= $this->OverviewTableEnd(); $r .= $this->actionformEnd("file_overview.php"); return $r; Modified: trunk/php/group/group_overview.php =================================================================== --- trunk/php/group/group_overview.php 2013-02-27 09:18:33 UTC (rev 976) +++ trunk/php/group/group_overview.php 2013-02-27 10:34:38 UTC (rev 977) @@ -94,6 +94,7 @@ $r .= $this->MassUpdateHeader(); $r .= $this->OverviewHeadLineEnd(); $r .= $this->OverviewHeadEnd(); + $r .= $this->OverviewBodyStart(); if ( $this->start == -1 ) { $a = $n - $tutos['maxshow']; @@ -114,7 +115,7 @@ } $r .= $this->OverviewRowStart($line); $x = $this->mark_filter(myentities($c->getFullName()),'name'); - $r .= $this->OverviewRowBlock(makeLink($c->getUrl('ss='.$ss),$x),'over_l'); + $r .= $this->OverviewRowBlock(makeLink($c->getUrl('ss='.$ss),$x),'title over_l'); $x = $this->mark_filter(myentities($c->desc),'description'); $r .= $this->OverviewRowBlock($x,'over_l'); @@ -126,7 +127,8 @@ $r .= $this->OverviewRowEnd($line++); } $result->free(); - + $r .= $this->OverviewBodyEnd(); + $r .= $this->OverviewFootStart(); $r .= $this->list_navigation($this->link1,$this->flds + $tutos[massupdate],$this->start,$a,$n); if ( $tutos[massupdate] == 1 ) { $r .= $this->UpdateRowStart($this->flds-1); @@ -141,6 +143,7 @@ $r .= "</select>\n"; $r .= $this->UpdateRowEnd(2); } + $r .= $this->OverviewFootEnd(); $r .= $this->OverviewTableEnd(); $r .= $this->actionformEnd("group_overview.php"); return $r; Modified: trunk/php/layout/classic_base.pinc =================================================================== --- trunk/php/layout/classic_base.pinc 2013-02-27 09:18:33 UTC (rev 976) +++ trunk/php/layout/classic_base.pinc 2013-02-27 10:34:38 UTC (rev 977) @@ -1,6 +1,6 @@ <?php /** - * Copyright 2002 - 2011 by Gero Kohnert + * Copyright 2002 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -9,6 +9,7 @@ * SVN Info $Id$ * $Author$ */ +$tutos['files'][__FILE__] = '$Rev$'; require_once 'layout/layout_base.pinc'; /** @@ -40,7 +41,7 @@ global $tutos,$lang; $r = ''; -# ob_start("ob_gzhandler"); + # ob_start("ob_gzhandler"); @ob_start(); if ( !isset($this->name) || empty($this->name) ) { $this->name = "TUTOS"; @@ -55,9 +56,9 @@ Header("Content-Type: text/html;charset=". $lang['content_encoding']); /** - $r .= "<?xml version=\"1.0\"?>"; - $r .= "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\""; - $r .= " \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">"; + $r .= "<?xml version=\"1.0\"?>"; + $r .= "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\""; + $r .= " \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">"; */ if (true) { @@ -152,6 +153,34 @@ } /** + * start a overview table + */ + function OverviewBodyStart() { + return '<tbody>'; + } + + /** + * end a overview table + */ + function OverviewBodyEnd() { + return '</tbody>'; + } + + /** + * start a overview table + */ + function OverviewFootStart() { + return '<tfoot>'; + } + + /** + * end a overview table + */ + function OverviewFootEnd() { + return '</tfoot>'; + } + + /** * start a overview headline */ function OverviewHeadLineStart() { @@ -414,19 +443,19 @@ ); $this->addMenu($x); -# Logout - $x = array( url => "logout.php", - image => $this->theme->getImage(logout,'menu'), - text => $lang['Logout'], - info => $lang['LogoutInfo'], - category => array("logout","admin","default") - ); + # Logout + $x = array( url => "logout.php", + image => $this->theme->getImage(logout,'menu'), + text => $lang['Logout'], + info => $lang['LogoutInfo'], + category => array("logout","admin","default") + ); $this->addMenu($x); -# Team Stuff - if ( ! class_exists ("url") ) { - loadmodule("url"); - } + # Team Stuff + if ( ! class_exists ("url") ) { + loadmodule("url"); + } if ( class_exists ("url") ) { if ( $this->user->feature_ok(useurl,PERM_SEE) ) { Modified: trunk/php/layout/classic_layout.pinc =================================================================== --- trunk/php/layout/classic_layout.pinc 2013-02-27 09:18:33 UTC (rev 976) +++ trunk/php/layout/classic_layout.pinc 2013-02-27 10:34:38 UTC (rev 977) @@ -1,6 +1,6 @@ <?php /** - * Copyright 2002 - 2011 by Gero Kohnert + * Copyright 2002 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -9,6 +9,7 @@ * SVN Info $Id$ * $Author$ */ +$tutos['files'][__FILE__] = '$Rev$'; require_once 'layout/classic_base.pinc'; /** Modified: trunk/php/layout/layout_base.pinc =================================================================== --- trunk/php/layout/layout_base.pinc 2013-02-27 09:18:33 UTC (rev 976) +++ trunk/php/layout/layout_base.pinc 2013-02-27 10:34:38 UTC (rev 977) @@ -448,7 +448,7 @@ abstract function OverviewTableEnd(); /** - * start a overview Head Sectio + * start a overview Head Section */ abstract function OverviewHeadStart(); @@ -458,6 +458,26 @@ abstract function OverviewHeadEnd(); /** + * start a overview Body Section + */ + abstract function OverviewBodyStart(); + + /** + * end a overview Body Section + */ + abstract function OverviewBodyEnd(); + + /** + * start a overview Foot Section + */ + abstract function OverviewFootStart(); + + /** + * end a overview Foot Section + */ + abstract function OverviewFootEnd(); + + /** * start a overview headline */ abstract function OverviewHeadLineStart(); Modified: trunk/php/layout/mobile_layout.pinc =================================================================== --- trunk/php/layout/mobile_layout.pinc 2013-02-27 09:18:33 UTC (rev 976) +++ trunk/php/layout/mobile_layout.pinc 2013-02-27 10:34:38 UTC (rev 977) @@ -105,15 +105,14 @@ * start a overview table */ function OverviewTableStart() { - return '<table data-role="table" data-mode="reflow" class="overviewtable table-stroke">'."\n"; + return '<br /><br /><table data-role="table" data-mode="reflow" class="overviewtable table-stroke">'."\n"; } /** * end a overview table */ function OverviewTableEnd() { - return "</tbody></table>\n"; - return "</ul>\n"; + return "</table>\n"; } /** @@ -121,18 +120,44 @@ */ function OverviewHeadStart() { return '<thead>'; - return '<p />'; } /** * end a overview table */ function OverviewHeadEnd() { - return '</thead><tbody>'; - return ''; + return '</thead>'; } /** + * start a overview table + */ + function OverviewBodyStart() { + return '<tbody>'; + } + + /** + * end a overview table + */ + function OverviewBodyEnd() { + return '</tbody>'; + } + + /** + * start a overview table + */ + function OverviewFootStart() { + return '<tfoot>'; + } + + /** + * end a overview table + */ + function OverviewFootEnd() { + return '</tfoot>'; + } + + /** * start a overview headline */ function OverviewHeadLineStart() { @@ -152,7 +177,7 @@ */ function OverviewRowStart($line,$title = '',$class = '') { $this->blk_cnt = 0; - return '<tr>'."\n"; + return '<tr class="'.$class.'">'."\n"; } /** Modified: trunk/php/layout/new_base.pinc =================================================================== --- trunk/php/layout/new_base.pinc 2013-02-27 09:18:33 UTC (rev 976) +++ trunk/php/layout/new_base.pinc 2013-02-27 10:34:38 UTC (rev 977) @@ -116,6 +116,34 @@ } /** + * start a body + */ + function OverviewBodyStart() { + return '<tbody>'."\n"; + } + + /** + * end a body + */ + function OverviewBodyEnd() { + return '</tbody>'."\n"; + } + + /** + * start a foot + */ + function OverviewFootStart() { + return '<tfoot>'."\n"; + } + + /** + * end a foot + */ + function OverviewFootEnd() { + return '</tfoot>'."\n"; + } + + /** * start a overview headline */ function OverviewHeadLineStart() { Modified: trunk/php/note/note_overview.php =================================================================== --- trunk/php/note/note_overview.php 2013-02-27 09:18:33 UTC (rev 976) +++ trunk/php/note/note_overview.php 2013-02-27 10:34:38 UTC (rev 977) @@ -12,6 +12,7 @@ * @package note */ $tutos['files'][__FILE__] = '$Rev$'; + $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; @@ -84,6 +85,7 @@ $r .= $this->MassUpdateHeader(); $r .= $this->OverviewHeadLineEnd(); $r .= $this->OverviewHeadEnd(); + $r .= $this->OverviewBodyStart(); if ( $this->start == -1 ) { // Show the last part @@ -104,7 +106,7 @@ $r .= $this->OverviewRowBlock($b->creation->getDateTime(),'over_l'); $x = $this->mark_filter(myentities($b->getFullName()),'name'); - $r .= $this->OverviewRowBlock(makelink($b->getUrl('ss='.$ss),$x),'over_l'); + $r .= $this->OverviewRowBlock(makelink($b->getUrl('ss='.$ss),$x),'title over_l'); $x = $this->mark_filter(myentities($b->ref->getFullName()),'link_id'); $r .= $this->OverviewRowBlock($b->ref->getLink($x),'over_l'); @@ -117,7 +119,8 @@ unset($b); $a++; } - + $r .= $this->OverviewBodyEnd(); + $r .= $this->OverviewFootStart(); $r .= $this->list_navigation($this->link1,$this->flds + $tutos[massupdate],$this->start,$a,$n); if ( $tutos[massupdate] == 1 ) { $r .= $this->UpdateRowStart($this->flds - 1); @@ -132,6 +135,7 @@ $r .= "</select>\n"; $r .= $this->UpdateRowEnd(2); } + $r .= $this->OverviewFootEnd(); $r .= $this->OverviewTableEnd(); $r .= $this->actionformEnd("note_overview.php"); return $r; Modified: trunk/php/rate/rate_overview.php =================================================================== --- trunk/php/rate/rate_overview.php 2013-02-27 09:18:33 UTC (rev 976) +++ trunk/php/rate/rate_overview.php 2013-02-27 10:34:38 UTC (rev 977) @@ -89,6 +89,7 @@ $r .= $this->MassUpdateHeader(); $r .= $this->OverviewHeadLineEnd(); $r .= $this->OverviewHeadEnd(); + $r .= $this->OverviewBodyStart(); if ( $this->start == -1 ) { // Show the last part @@ -111,7 +112,7 @@ $r .= $this->user->layout->showGuiIcons(" <td>","</td>\n",$b,$b,$this->user->get_preficons(1),false); } $x = $this->mark_filter(myentities($b->name),'name'); - $r .= $this->OverviewRowBlock(makelink($b->getUrl(),$x),'over_l'); + $r .= $this->OverviewRowBlock(makelink($b->getUrl(),$x),'title over_l'); if ( is_object($b->ref)) { $x = $b->ref->getLink(); @@ -140,6 +141,8 @@ unset($b); $a++; } + $r .= $this->OverviewBodyEnd(); + $r .= $this->OverviewFootStart(); $r .= $this->list_navigation($this->link1,$this->flds + $tutos[massupdate],$this->start,$a,$n); if ( $tutos[massupdate] == 1 ) { @@ -155,6 +158,7 @@ $r .= "</select>\n"; $r .= $this->UpdateRowEnd(2); } + $r .= $this->OverviewFootEnd(); $r .= $this->OverviewTableEnd(); $r .= $this->actionformEnd("rate_overview.php"); return $r; Modified: trunk/php/reminder/reminder_overview.php =================================================================== --- trunk/php/reminder/reminder_overview.php 2013-02-27 09:18:33 UTC (rev 976) +++ trunk/php/reminder/reminder_overview.php 2013-02-27 10:34:38 UTC (rev 977) @@ -92,11 +92,15 @@ continue; } $r .= $this->OverviewRowStart($line); - $r .= $this->OverviewRowBlock($c->getLink($c->remind_date->getDateTime(),'ss='.$ss),'over_l'); + $r .= $this->OverviewRowBlock($c->getLink($c->remind_date->getDateTime(),'ss='.$ss),'title over_l'); if ($this->head['adr_id']) { - $x = $this->mark_filter(myentities($c->to->getFullName()),'tofn'); - $r .= $this->OverviewRowBlock((is_object($c->to) ? $c->to->getLink($x): $lang['HistoryDeleted']),'over_l'); + if (is_object($c->to)) { + $x = $this->mark_filter(myentities($c->to->getFullName()),'tofn'); + } else { + $x = ''; + } + $r .= $this->OverviewRowBlock((is_object($c->to) ? $c->to->getLink($x): '<i>'.$lang['HistoryDeleted'].'</i>'),'over_l'); } if ($this->head['desc']) { Modified: trunk/php/resource/resource_overview.php =================================================================== --- trunk/php/resource/resource_overview.php 2013-02-27 09:18:33 UTC (rev 976) +++ trunk/php/resource/resource_overview.php 2013-02-27 10:34:38 UTC (rev 977) @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2012 by Gero Kohnert + * Copyright 1999 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -10,6 +10,8 @@ * @module resource_overview * @package resource */ +$tutos['files'][__FILE__] = '$Rev$'; + $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; @@ -17,6 +19,8 @@ // Check if user is allowed to use it check_user(); + +$tutos['mobileok'] = 1; loadmodules('resource','overview'); loadmodule('resource'); loadlayout(); @@ -32,18 +36,12 @@ global $lang,$tutos; $r = ''; - $result = $this->dbconn->Exec($this->q); - $n = $result->numrows(); - if ( 0 == $n) { - $r .= $this->error($lang['Err0048']); - $result->free(); - return; - } + $n = $this->result->numrows(); $x = 0; $np = array(); while ( $x < $n ) { - $np[] = $result->get($x,'id'); + $np[] = $this->result->get($x,'id'); $x++; } @@ -55,15 +53,16 @@ $r .= $this->header; $r .= $this->actionformStart('resource_overview.php'); $r .= $this->OverviewTableStart(); - $r .= "<thead>\n"; - $r .= "<tr>\n"; + $r .= $this->OverviewHeadStart(); + $r .= $this->OverviewHeadLineStart(); $r .= $this->orderHeader("name",$lang['ResName'],$this->link2); $r .= $this->orderHeader("",$lang['ResDesc'],$this->link2); $this->flds = 2; $r .= show_custom_overview_headers($this,'resource',$this->link2); $r .= $this->MassUpdateHeader(); - $r .= "</tr>\n"; - $r .= "</thead>\n"; + $r .= $this->OverviewHeadLineEnd(); + $r .= $this->OverviewHeadEnd(); + $r .= $this->OverviewBodyStart(); if ( $this->start == -1 ) { $a = $n - $tutos['maxshow']; @@ -77,7 +76,7 @@ $line = 0; while ( ($a < $n) && ($a < $end) ) { $c = new resource($this->dbconn); - $c->read_result($result,$a); + $c->read_result($this->result,$a); $a++; if ( ! $c->see_ok() ) { continue; @@ -85,17 +84,18 @@ $r .= $this->OverviewRowStart($line); $x = $this->mark_filter(myentities($c->getFullName()),'name'); - $r .= ' <td class="over_l">'. $c->getLink($x,'ss='.$ss) ."</td>"; + $r .= $this->OverviewRowBlock($c->getLink($x,'ss='.$ss),'title over_l'); $x = $this->mark_filter(myentities($c->desc),'desc'); - $r .= ' <td class="over_l">'. myentities($x) ."</td>"; + $r .= $this->OverviewRowBlock(myentities($x),'over_l'); $r .= show_custom_overview_data($this,'resource',$c); $r .= $this->MassUpdateField($c); $r .= $this->OverviewRowEnd($line++); } - $result->free(); - + $this->result->free(); + $r .= $this->OverviewBodyEnd(); + $r .= $this->OverviewFootStart(); $r .= $this->list_navigation($this->link1,$this->flds + $tutos[massupdate],$this->start,$a,$n); if ( $tutos[massupdate] == 1 ) { $r .= $this->UpdateRowStart($this->flds-1); @@ -110,6 +110,7 @@ $r .= "</select>\n"; $r .= $this->UpdateRowEnd(2); } + $r .= $this->OverviewFootEnd(); $r .= $this->OverviewTableEnd(); $r .= $this->actionformEnd("resource_overview.php"); return $r; @@ -207,6 +208,16 @@ $m[category][] = 'obj'; $this->addmenu($m); + $this->result = $this->dbconn->Exec($this->q); + if ( 0 == $this->result->numrows()) { + $msg = addLine($msg,$lang['Err0048']); + $this->redirect = 'resource_select.php'; + if (isset($_REQUEST['ext']) && ($_REQUEST['ext'] == 1) ) { + $this->redirect = addUrlParameter($this->redirect,'ext=1',true); + } + $this->result->free(); + } + if (class_exists('url')) { $this->addMenu(url::getAddLinkPreset($this->user,$this)); } @@ -220,4 +231,4 @@ <!-- SVN Info $Id$ $Author$ ---> +--> \ No newline at end of file Modified: trunk/php/resource/resource_select.php =================================================================== --- trunk/php/resource/resource_select.php 2013-02-27 09:18:33 UTC (rev 976) +++ trunk/php/resource/resource_select.php 2013-02-27 10:34:38 UTC (rev 977) @@ -1,6 +1,6 @@ <?php /** - * Copyright 2001 - 2012 by Gero Kohnert + * Copyright 2001 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -10,6 +10,8 @@ * @module resource_select * @package resource */ +$tutos['files'][__FILE__] = '$Rev$'; + $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; @@ -44,8 +46,8 @@ $r .= $this->ContentRowStart(); $r .= $this->showfieldc($lang['AdrName'],0,'name'); - $r .= " <td><input id=\"name\" type=\"text\" value=\"\" name=\"name\" /></td>\n"; - $r .= ' <td><input type="submit" value="'. $lang['Search'] .'" title="'. $lang['SearchForRes'] ."\" /></td>\n"; + $r .= $this->showdata('<input id="name" type="text" value="" name="name" />'); + $r .= $this->showdata('<input type="submit" value="'.$lang['Search'].'" title="'. $lang['SearchForRes'].'" />'); $r .= $this->ContentRowEnd(); if (count($cs)) { Modified: trunk/php/scrum/sprint_overview.php =================================================================== --- trunk/php/scrum/sprint_overview.php 2013-02-27 09:18:33 UTC (rev 976) +++ trunk/php/scrum/sprint_overview.php 2013-02-27 10:34:38 UTC (rev 977) @@ -77,6 +77,7 @@ $r .= $this->MassUpdateHeader(); $r .= $this->OverviewHeadLineEnd(); $r .= $this->OverviewHeadEnd(); + $r .= $this->OverviewBodyStart(); $line = 1; while ( ($a < $n) && ($a < $end) ) { @@ -86,11 +87,10 @@ $r .= $this->OverviewRowStart($line); - // NAME if ($this->head['name']) { $x = $this->mark_filter(myentities($obj->name),'name'); - $r .= $this->OverviewRowBlock($obj->getLink($x),'over_l'); + $r .= $this->OverviewRowBlock($obj->getLink($x),'title over_l'); } // Project Ref @@ -116,6 +116,8 @@ $a++; } $this->result->free(); + $r .= $this->OverviewBodyEnd(); + $r .= $this->OverviewFootStart(); $r .= $this->list_navigation($this->link1,$this->flds + $tutos[massupdate],$this->start,$a,$n); // MASSUPDATE CONTROL if ( $tutos[massupdate] == 1 ) { @@ -131,7 +133,7 @@ $r .= "</select>\n"; $r .= $this->UpdateRowEnd(2); } - + $r .= $this->OverviewFootEnd(); $r .= $this->OverviewTableEnd(); $r .= $this->actionformEnd('sprint_overview.php'); Modified: trunk/php/stuff/stuff_overview.php =================================================================== --- trunk/php/stuff/stuff_overview.php 2013-02-27 09:18:33 UTC (rev 976) +++ trunk/php/stuff/stuff_overview.php 2013-02-27 10:34:38 UTC (rev 977) @@ -17,6 +17,7 @@ * @package stuff */ $tutos['files'][__FILE__] = '$Rev$'; + $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; @@ -267,6 +268,7 @@ $r .= $this->MassUpdateHeader(); $r .= $this->OverviewHeadLineEnd(); $r .= $this->OverviewHeadEnd(); + $r .= $this->OverviewBodyStart(); if ( $this->start == -1 ) { $a = $n - $tutos['maxshow']; @@ -288,7 +290,7 @@ $r .= $this->OverviewRowStart($line); // Name $x = $this->mark_filter(myentities($c->getFullName()),'name'); - $r .= $this->OverviewRowBlock($c->getLink($x,'ss='.$ss),'over_l'); + $r .= $this->OverviewRowBlock($c->getLink($x,'ss='.$ss),'title over_l'); // Type if ($this->head['type']) { $r .= $this->OverviewRowBlock(myentities($lang['StuffTypes'][$c->type]),'over_l'); @@ -348,9 +350,11 @@ $r .= $this->MassUpdateField($c); $r .= $this->OverviewRowEnd($line++); } + $r .= $this->OverviewBodyEnd(); /** sums */ - $r .= "<tr>\n"; + $r .= $this->OverviewFootStart(); + $r .= $this->OverviewRowStart(0,'','summary'); $r .= ' <td colspan="'.($this->flds - 1)."\"> </td>\n"; $r .= ' <td align="right">'; $pre = ''; @@ -363,9 +367,10 @@ } $r .= "</td>\n"; $r .= ' <td colspan="'.($this->flds + $tutos[massupdate] - 8)."\"> </td>\n"; - $r .= "</tr>\n"; + $r .= $this->OverviewRowEnd(); $r .= $this->list_navigation($this->link1,$this->flds + $tutos[massupdate],$this->start,$a,$n); + if ( $tutos[massupdate] == 1 ) { $r .= $this->UpdateRowStart($this->flds-1); $r .= sprintf($lang['withmarked'],$lang['Stuffs']); @@ -379,6 +384,7 @@ $r .= "</select>\n"; $r .= $this->UpdateRowEnd(2); } + $r .= $this->OverviewFootEnd(); $r .= $this->OverviewTableEnd(); $r .= $this->actionformEnd("stuff_overview.php"); $this->result->free(); Modified: trunk/php/testmanager/testsuite_overview.php =================================================================== --- trunk/php/testmanager/testsuite_overview.php 2013-02-27 09:18:33 UTC (rev 976) +++ trunk/php/testmanager/testsuite_overview.php 2013-02-27 10:34:38 UTC (rev 977) @@ -1,6 +1,6 @@ <?php /** - * Copyright 1999 - 2012 by Gero Kohnert + * Copyright 1999 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -10,6 +10,8 @@ * @module testsuite_overview * @package testsuite */ +$tutos['files'][__FILE__] = '$Rev$'; + $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; @@ -17,6 +19,8 @@ // Check if user is allowed to use it check_user(); + +$tutos['mobileok'] = 1; loadmodules('testsuite','show'); loadmodule('testsuite'); loadlayout(); @@ -86,6 +90,7 @@ $r .= $this->MassUpdateHeader(); $r .= $this->OverviewHeadLineEnd(); $r .= $this->OverviewHeadEnd(); + $r .= $this->OverviewBodyStart(); $line = 1; while ( ($a < $n) && ($a < $end) ) { @@ -108,7 +113,7 @@ } $x = $this->mark_filter(myentities($b->getFullName()),'name'); - $r .= $this->OverviewRowBlock($b->getLink($x,'ss='.$ss),'over_l'); + $r .= $this->OverviewRowBlock($b->getLink($x,'ss='.$ss),'title over_l'); $r .= $this->OverviewRowBlock(makeLink($b->getUrl(),$b->version),'over_l'); if ($this->head['ref_id']) { @@ -137,8 +142,9 @@ $r .= $this->OverviewRowEnd($line++); $a++; } - $this->result->free(); + $r .= $this->OverviewBodyEnd(); + $r .= $this->OverviewFootStart(); $r .= $this->list_navigation($this->link1,$this->flds + $tutos[massupdate],$this->start,$a,$n); if ( $tutos[massupdate] == 1 ) { $r .= $this->UpdateRowStart($this->flds-1); @@ -153,7 +159,7 @@ $r .= "</select>\n"; $r .= $this->UpdateRowEnd(2); } - + $r .= $this->OverviewFootEnd(); $r .= $this->OverviewTableEnd(); $r .= $this->actionformEnd("testsuite_overview.php"); return $r; Modified: trunk/php/testmanager/testsuite_show.php =================================================================== --- trunk/php/testmanager/testsuite_show.php 2013-02-27 09:18:33 UTC (rev 976) +++ trunk/php/testmanager/testsuite_show.php 2013-02-27 10:34:38 UTC (rev 977) @@ -1,6 +1,6 @@ <?php /** - * Copyright 2000 - 2012 by Gero Kohnert + * Copyright 2000 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -15,6 +15,8 @@ * @module testsuite_show * @package testsuite */ +$tutos['files'][__FILE__] = '$Rev$'; + $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; @@ -325,12 +327,12 @@ $r .= $this->headline_gui(); $r .= $this->CreatorInfoLine($this->obj,$this->width); - $r .= "<tr>\n"; + $r .= $this->ContentRowStart(); $r .= $this->showfield($lang['TestsuiteName']); $r .= $this->showdata(myentities($this->obj->name)); $r .= $this->showfield($lang['TestsuiteVersion']); $r .= $this->showdata(myentities($this->obj->version)); - $r .= "</tr>\n"; + $r .= $this->ContentRowEnd(); if ($this->obj->activ == 1) { $r .= $this->ContentRowStart(); Modified: trunk/php/url/url_overview.php =================================================================== --- trunk/php/url/url_overview.php 2013-02-27 09:18:33 UTC (rev 976) +++ trunk/php/url/url_overview.php 2013-02-27 10:34:38 UTC (rev 977) @@ -120,7 +120,7 @@ } $x = $this->mark_filter(myentities($c->name),'name'); - $r .= $this->OverviewRowBlock($c->getLink($x),'over_l'); + $r .= $this->OverviewRowBlock($c->getLink($x),'title over_l'); if ($this->head['category']) { $r .= $this->OverviewRowBlock($c->getCategory(),'over_l'); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gok...@us...> - 2013-02-27 09:18:36
|
Revision: 976 http://sourceforge.net/p/tutos/code/976 Author: gokohnert Date: 2013-02-27 09:18:33 +0000 (Wed, 27 Feb 2013) Log Message: ----------- responsive lists Modified Paths: -------------- trunk/php/bugtracking/bug_overview.php Modified: trunk/php/bugtracking/bug_overview.php =================================================================== --- trunk/php/bugtracking/bug_overview.php 2013-02-27 09:16:44 UTC (rev 975) +++ trunk/php/bugtracking/bug_overview.php 2013-02-27 09:18:33 UTC (rev 976) @@ -454,7 +454,7 @@ $r .= $this->OverviewRowStart($line,$lang[$b->getType()] .": ". $b->getFullName()); $x = $this->mark_filter(myentities($b->getFullName()),'name'); - $r .= $this->OverviewRowBlock($b->getLink($x,'ss='.$ss),'over_r'); + $r .= $this->OverviewRowBlock($b->getLink($x,'ss='.$ss),'title over_r'); $r .= $this->OverviewRowBlock($b->creation->getDate(),'over_l'); if ($this->head['product_id']) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gok...@us...> - 2013-02-27 09:16:46
|
Revision: 975 http://sourceforge.net/p/tutos/code/975 Author: gokohnert Date: 2013-02-27 09:16:44 +0000 (Wed, 27 Feb 2013) Log Message: ----------- responsive lists Modified Paths: -------------- trunk/html/mobile_layout.css trunk/php/layout/mobile_layout.pinc Modified: trunk/html/mobile_layout.css =================================================================== --- trunk/html/mobile_layout.css 2013-02-27 07:24:08 UTC (rev 974) +++ trunk/html/mobile_layout.css 2013-02-27 09:16:44 UTC (rev 975) @@ -1,5 +1,5 @@ /** - * Copyright 2003 - 2012 by Gero Kohnert + * Copyright 2003 - 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -45,39 +45,113 @@ } .over_c { - text-align: center; - vertical-align: top; - white-space: nowrap; - padding-right: 0.2em; - padding-left: 0.2em; - padding-bottom: 0.2em; } .over_r { - text-align: right; - vertical-align: top; - white-space: nowrap; - padding-right: 0em; - padding-left: 0.2em; - padding-bottom: 0.2em; } .over_l { - text-align: left; - vertical-align: top; - white-space: nowrap; - padding-left: 0em; - padding-right: 0.2em; - padding-bottom: 0.2em; } /* multiline */ .over_ml { - text-align: left; - vertical-align: top; - white-space: normal; - padding-left: 0.5em; - padding-right: 0.2em; - padding-bottom: 0.2em; } UL.ui-listview LI { border-bottom: 1px solid silver; +} + + +/* These apply across all breakpoints because they are outside of a media query */ +/* Make the labels light gray all caps across the board */ +.overviewtable thead th, +.overviewtable tbody th .ui-table-cell-label, +.overviewtable tbody td .ui-table-cell-label { + text-transform: uppercase; + font-size: .7em; + color: rgba(0,0,0,0.5); + font-weight: normal; +} +/* White bg, large blue text for rank and title */ +.overviewtable tbody th { + font-size: 1.2em; + background-color: #fff; + color: #77bbff; + text-align: center; +} +/* Add a bit of extra left padding for the title */ +.overviewtable tbody td.title { + padding-left: .8em; +} + +/* Custom stacked styles for mobile sizes */ +/* Use a max-width media query so we don't have to undo these styles */ +@media (max-width: 40em) { + /* Negate the margin between sections */ + .overviewtable tbody th { + margin-top: 0; + text-align: left; + } + /* White bg, large blue text for rank and title */ + .overviewtable tbody th, + .overviewtable tbody td.title { + display: block; + font-size: 1.2em; + line-height: 110%; + padding: .5em .5em; + background-color: #fff; + color: #77bbff; + -moz-box-shadow: 0 1px 6px rgba(0,0,0,.1); + -webkit-box-shadow: 0 1px 6px rgba(0,0,0,.1); + box-shadow: 0 1px 6px rgba(0,0,0,.1); + } + /* Hide labels for rank and title */ + .movie-list tbody th .ui-table-cell-label, + .overviewtable tbody td.title .ui-table-cell-label { + display: none; + } + /* Position the title next to the rank, pad to the left */ + .overviewtable tbody td.title { + margin-top: -2.1em; + padding-left: 2.2em; + border-bottom: 1px solid rgba(0,0,0,.15); + } + /* Make the data bold */ + .overviewtable th, + .overviewtable td { + font-weight: bold; + } + /* Make the label elements a percentage width */ + .overviewtable td .ui-table-cell-label, + .overviewtable th .ui-table-cell-label { + min-width: 20%; + } +} +/* Media query to show as a standard table at wider widths */ +@media ( min-width: 40em ) { + /* Show the table header rows */ + .overviewtable td, + .overviewtable th, + .overviewtable tbody th, + .overviewtable tbody td, + .overviewtable thead td, + .overviewtable thead th { + display: table-cell; + margin: 0; + } + /* Hide the labels in each cell */ + .overviewtable td .ui-table-cell-label, + .overviewtable th .ui-table-cell-label { + display: none; + } +} +/* Hack to make IE9 and WP7.5 treat cells like block level elements */ +/* Applied in a max-width media query up to the table layout breakpoint so we don't need to negate this */ +@media ( max-width: 40em ) { + .overviewtable td, + .overviewtable th { + width: 100%; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; + float: left; + clear: left; + } } \ No newline at end of file Modified: trunk/php/layout/mobile_layout.pinc =================================================================== --- trunk/php/layout/mobile_layout.pinc 2013-02-27 07:24:08 UTC (rev 974) +++ trunk/php/layout/mobile_layout.pinc 2013-02-27 09:16:44 UTC (rev 975) @@ -105,13 +105,14 @@ * start a overview table */ function OverviewTableStart() { - return '<ul data-role="listview" data-theme="g" data-divider-theme="c">'."\n"; + return '<table data-role="table" data-mode="reflow" class="overviewtable table-stroke">'."\n"; } /** * end a overview table */ function OverviewTableEnd() { + return "</tbody></table>\n"; return "</ul>\n"; } @@ -119,6 +120,7 @@ * start a overview table */ function OverviewHeadStart() { + return '<thead>'; return '<p />'; } @@ -126,6 +128,7 @@ * end a overview table */ function OverviewHeadEnd() { + return '</thead><tbody>'; return ''; } @@ -134,14 +137,14 @@ */ function OverviewHeadLineStart() { $this->blk_cnt = 0; - return '<li>'."\n"; + return '<tr>'."\n"; } /** * end a overview headline */ function OverviewHeadLineEnd() { - return '</li>'."\n"; + return '</tr>'."\n"; } /** @@ -149,36 +152,22 @@ */ function OverviewRowStart($line,$title = '',$class = '') { $this->blk_cnt = 0; - return '<li class="tlv">'."\n"; - // return '<li><div data-role="controlgroup" data-type="horizontal">'."\n"; + return '<tr>'."\n"; } /** * end a overview row */ function OverviewRowEnd($line) { - return '</li>'."\n"; + return '</tr>'."\n"; } /** * end a overview row */ function OverviewRowBlock($content,$class = '',$rows=1) { - $class .= " tlve"; $r = ''; - if (0 == ($this->blk_cnt % BLKCNT)) { - $r .= '<p>'."\n"; - } - if (BLKCNT-1 == ($this->blk_cnt % BLKCNT) ) { - $class .= " ui-li-aside"; - } - $r .= ' <span'.($class!='' ? ' class="'.$class.'"':'').'>'.$content.'</span>'."\n"; - - if (BLKCNT-1 == ($this->blk_cnt % BLKCNT) ) { - $r .= ' </p>'."\n"; - } else { - $r .= '|'; - } + $r .= '<td'.($class != '' ? ' class="'.$class.'"':'').'>'.$content.'</td>'."\n"; $this->blk_cnt += $rows; return $r; } @@ -188,14 +177,14 @@ */ function OverviewHeaderStart($class = '') { $this->blk_cnt = 0; - return '<li>'."\n"; + return '<tr>'."\n"; } /** * end a overview header row */ function OverviewHeaderEnd() { - return '</li>'."\n"; + return '</tr>'."\n"; } @@ -345,12 +334,7 @@ $class = ''; $r = ''; - if (0 == ($this->blk_cnt % BLKCNT)) { - $r .= '<p>'."\n"; - } - if (BLKCNT-1 == ($this->blk_cnt % BLKCNT) ) { - $class .= " ui-li-aside"; - } + $r .= '<th data-priority="'.$this->blk_cnt.'">'; $base = addUrlParameter($base,"xf=".$oname,false); $r .= ' <span'.($class!='' ? ' class="'.$class.'"':'').' nowrap="nowrap">'."\n"; @@ -384,11 +368,7 @@ } $r .= "</span>\n"; - if (BLKCNT-1 == ($this->blk_cnt % BLKCNT) ) { - $r .= ' </p>'."\n"; - } else { - $r .= '|'; - } + $r .= '</th>'; $this->blk_cnt++; return $r; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gok...@us...> - 2013-02-27 07:24:20
|
Revision: 974 http://sourceforge.net/p/tutos/code/974 Author: gokohnert Date: 2013-02-27 07:24:08 +0000 (Wed, 27 Feb 2013) Log Message: ----------- fix Modified Paths: -------------- trunk/php/auth/auth_pwauth_db.pinc Modified: trunk/php/auth/auth_pwauth_db.pinc =================================================================== --- trunk/php/auth/auth_pwauth_db.pinc 2013-02-26 17:34:09 UTC (rev 973) +++ trunk/php/auth/auth_pwauth_db.pinc 2013-02-27 07:24:08 UTC (rev 974) @@ -43,6 +43,20 @@ } /** + * ready for check + */ + function ready() { + global $tutos; + + dterror_log('ready db '."\n", 3, $tutos[errlog]); + + if ( $this->getuname() != "" && $this->getpw() != "" ) { + return true; + } + return false; + } + + /** * Check for permmision * using a DB query */ @@ -132,4 +146,4 @@ return true; } } -?> \ No newline at end of file +?> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gok...@us...> - 2013-02-26 17:34:18
|
Revision: 973 http://sourceforge.net/p/tutos/code/973 Author: gokohnert Date: 2013-02-26 17:34:09 +0000 (Tue, 26 Feb 2013) Log Message: ----------- fixes Modified Paths: -------------- trunk/php/admin/scheme.php trunk/php/admin/update.php trunk/php/auth/auth_google.pinc Modified: trunk/php/admin/scheme.php =================================================================== --- trunk/php/admin/scheme.php 2013-02-26 14:45:22 UTC (rev 972) +++ trunk/php/admin/scheme.php 2013-02-26 17:34:09 UTC (rev 973) @@ -1,6 +1,6 @@ <?php /** - * Copyright 2001-2012 by Gero Kohnert + * Copyright 2001-2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -14,6 +14,8 @@ * @module scheme * @package BASE */ +$tutos['files'][__FILE__] = '$Rev$'; + $tutos['base'] = "../.."; ini_set("include_path",".."); require_once 'webelements.p3'; @@ -317,7 +319,7 @@ * prepare */ Function prepare() { - global $msg,$current_user,$lang,$tutos,$msg,$table,$tableidx,$sequence; + global $msg,$current_user,$lang,$tutos,$info,$table,$tableidx,$sequence; if (isset($_GET['msg'])) { $msg = $_GET['msg']; @@ -329,6 +331,10 @@ $msg .= "you are using ". phpversion() ."<br />\n"; $this->stop = true; } + $al = preg_split("# #",$tutos[authtype]); + foreach ( $al as $a ) { + require_once 'auth/auth_'. $a .'.pinc'; + } // read the table definitions of modules foreach ($tutos[modules] as $r => $x) { Modified: trunk/php/admin/update.php =================================================================== --- trunk/php/admin/update.php 2013-02-26 14:45:22 UTC (rev 972) +++ trunk/php/admin/update.php 2013-02-26 17:34:09 UTC (rev 973) @@ -224,6 +224,10 @@ $this->stop = true; return; } + $al = preg_split("# #",$tutos[authtype]); + foreach ( $al as $a ) { + require_once 'auth/auth_'. $a .'.pinc'; + } $this->nomenu = true; $this->obj = $this->dbconn; Modified: trunk/php/auth/auth_google.pinc =================================================================== --- trunk/php/auth/auth_google.pinc 2013-02-26 14:45:22 UTC (rev 972) +++ trunk/php/auth/auth_google.pinc 2013-02-26 17:34:09 UTC (rev 973) @@ -160,7 +160,7 @@ dterror_log('check google '.$this->user['email']."\n", 3, $tutos[errlog]); $q = 'SELECT a.* ,p.*,p.id as u_id ,p.creator as cr_a, p.creation as cr_t FROM '. $this->dbconn->prefix .$table['address'][name].' a, '. $this->dbconn->prefix .$table['people'][name].' p'; - $q .= ' where '.$this->dbconn->Like('p.google_email',$this->user['email']); + $q .= ' WHERE p.google_email = '. $this->dbconn->String($this->user['email']); $q .= ' AND p.adr_id = a.id'; $result = $this->dbconn->Exec($q); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gok...@us...> - 2013-02-26 14:45:30
|
Revision: 972 http://sourceforge.net/p/tutos/code/972 Author: gokohnert Date: 2013-02-26 14:45:22 +0000 (Tue, 26 Feb 2013) Log Message: ----------- fix html Modified Paths: -------------- trunk/php/layout/layout_base.pinc Added Paths: ----------- trunk/html/tutos_128.png Added: trunk/html/tutos_128.png =================================================================== (Binary files differ) Index: trunk/html/tutos_128.png =================================================================== --- trunk/html/tutos_128.png 2013-02-26 14:21:36 UTC (rev 971) +++ trunk/html/tutos_128.png 2013-02-26 14:45:22 UTC (rev 972) Property changes on: trunk/html/tutos_128.png ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Modified: trunk/php/layout/layout_base.pinc =================================================================== --- trunk/php/layout/layout_base.pinc 2013-02-26 14:21:36 UTC (rev 971) +++ trunk/php/layout/layout_base.pinc 2013-02-26 14:45:22 UTC (rev 972) @@ -204,9 +204,7 @@ } $r .= ' <meta http-equiv="Expires" content="-1"'.$c; - $r .= ' <link rel="apple-touch-icon-precomposed" sizes="144x144" href="'.$tutos['base'].'/html/tutos_144.png"'.$c; - $r .= ' <link rel="apple-touch-icon-precomposed" sizes="114x114" href="'.$tutos['base'].'/html/tutos_114.png"'.$c; - $r .= ' <link rel="apple-touch-icon-precomposed" sizes="72x72" href="'.$tutos['base'].'/html/tutos_72.png"'.$c; + $r .= ' <link rel="apple-touch-icon" href="'.$tutos['base'].'/html/tutos_128.png"'.$c; return $r; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gok...@us...> - 2013-02-26 14:21:40
|
Revision: 971 http://sourceforge.net/p/tutos/code/971 Author: gokohnert Date: 2013-02-26 14:21:36 +0000 (Tue, 26 Feb 2013) Log Message: ----------- fix Modified Paths: -------------- trunk/php/auth/auth_ldap.pinc Modified: trunk/php/auth/auth_ldap.pinc =================================================================== --- trunk/php/auth/auth_ldap.pinc 2013-02-26 14:20:58 UTC (rev 970) +++ trunk/php/auth/auth_ldap.pinc 2013-02-26 14:21:36 UTC (rev 971) @@ -99,6 +99,8 @@ * ready for check */ function ready() { + global $tutos; + dterror_log('ready ldap '."\n", 3, $tutos[errlog]); if ( $this->getuname() != "" && $this->getpw() != "" ) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gok...@us...> - 2013-02-26 14:21:02
|
Revision: 970 http://sourceforge.net/p/tutos/code/970 Author: gokohnert Date: 2013-02-26 14:20:58 +0000 (Tue, 26 Feb 2013) Log Message: ----------- more fix Modified Paths: -------------- trunk/php/auth/auth_ldap.pinc Modified: trunk/php/auth/auth_ldap.pinc =================================================================== --- trunk/php/auth/auth_ldap.pinc 2013-02-26 11:32:21 UTC (rev 969) +++ trunk/php/auth/auth_ldap.pinc 2013-02-26 14:20:58 UTC (rev 970) @@ -99,7 +99,12 @@ * ready for check */ function ready() { - return function_exists('ldap_connect') && ($this->getuname() != ''); + dterror_log('ready ldap '."\n", 3, $tutos[errlog]); + + if ( $this->getuname() != "" && $this->getpw() != "" ) { + return true; + } + return false; } /** @@ -111,8 +116,8 @@ $r = array(); if ( ! !$this->ready()) { - $r[0] = "LDAP not available"; - $r[1] = $r[0]; + $r[0] = ''; + $r[1] = $lang['Err0025']; return $r; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gok...@us...> - 2013-02-26 11:32:25
|
Revision: 969 http://sourceforge.net/p/tutos/code/969 Author: gokohnert Date: 2013-02-26 11:32:21 +0000 (Tue, 26 Feb 2013) Log Message: ----------- layout of tutosversion fix Modified Paths: -------------- trunk/html/classic_layout.css trunk/html/default.css trunk/html/new2_layout.css trunk/html/new_layout.css trunk/php/layout/layout_base.pinc trunk/php/layout/new2_layout.pinc trunk/php/layout/new_layout.pinc Modified: trunk/html/classic_layout.css =================================================================== --- trunk/html/classic_layout.css 2013-02-26 10:23:23 UTC (rev 968) +++ trunk/html/classic_layout.css 2013-02-26 11:32:21 UTC (rev 969) @@ -1,16 +1,11 @@ /* - * Copyright 2003 - 2011 by Gero Kohnert + * Copyright 2003 - 2013 by Gero Kohnert * * SVN Info $Id$ * $Author$ * */ -#tutosversion { - font-size: 6pt; - color: #666; -} - .debug { font-size: 5pt; color: gray; Modified: trunk/html/default.css =================================================================== --- trunk/html/default.css 2013-02-26 10:23:23 UTC (rev 968) +++ trunk/html/default.css 2013-02-26 11:32:21 UTC (rev 969) @@ -1,5 +1,5 @@ /** - * Copyright 1999- 2012 by Gero Kohnert + * Copyright 1999- 2013 by Gero Kohnert * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -15,6 +15,14 @@ * */ +#tutosversion { + font-weight: normal; + vertical-align: top; + text-align: right; + font-size: 6pt; + color: #666; +} + #loading { z-index: 10; position: fixed; Modified: trunk/html/new2_layout.css =================================================================== --- trunk/html/new2_layout.css 2013-02-26 10:23:23 UTC (rev 968) +++ trunk/html/new2_layout.css 2013-02-26 11:32:21 UTC (rev 969) @@ -24,11 +24,6 @@ } } -#tutosversion { - font-size: 6pt; - color: #666; -} - .debug { font-size: 5pt; color: gray; Modified: trunk/html/new_layout.css =================================================================== --- trunk/html/new_layout.css 2013-02-26 10:23:23 UTC (rev 968) +++ trunk/html/new_layout.css 2013-02-26 11:32:21 UTC (rev 969) @@ -23,11 +23,6 @@ } } -#tutosversion { - font-size: 6pt; - color: #666; -} - .debug { font-size: 5pt; color: gray; Modified: trunk/php/layout/layout_base.pinc =================================================================== --- trunk/php/layout/layout_base.pinc 2013-02-26 10:23:23 UTC (rev 968) +++ trunk/php/layout/layout_base.pinc 2013-02-26 11:32:21 UTC (rev 969) @@ -196,7 +196,7 @@ // useful only on smartphones $r .= ' <meta name="viewport" content="user-scalable=no, width=device-width"'.$c; if ($tutos['timetolive'] > 0) { - $r .= ' <meta http-equiv="refresh" content="'.(($tutos['timetolive']*60)+2).';URL='.$tutos['base'].'/php/logout.php" '.$c; + $r .= ' <meta http-equiv="refresh" content="'.(($tutos['timetolive']*60)+2).'; URL='.$tutos['base'].'/php/logout.php" '.$c; } if ( isset($tutos[lang]) && $tutos[lang] != "" ) { $r .= ' <meta name="language" content="'. $tutos[lang] .'"'.$c; @@ -813,7 +813,7 @@ $r = ''; if ( isset($tarr['hide']) && ($tarr['hide'] == true) ) return $r; -# if ( isset($tarr['hideempty']) && ($tarr['hideempty'] == true) && ($obj->$tarr['field'] == '') ) return $r; + # if ( isset($tarr['hideempty']) && ($tarr['hideempty'] == true) && ($obj->$tarr['field'] == '') ) return $r; $r .= edit_custom_field_single($this,$tarr['field'],$tarr,0,$obj,$colsd+$colsf); Modified: trunk/php/layout/new2_layout.pinc =================================================================== --- trunk/php/layout/new2_layout.pinc 2013-02-26 10:23:23 UTC (rev 968) +++ trunk/php/layout/new2_layout.pinc 2013-02-26 11:32:21 UTC (rev 969) @@ -1080,8 +1080,8 @@ $r .= ' </td>'; } - $r .= ' <td valign="top" align="right">'; - $r .= ' <a id="tutosversion" class="nodeco" href="'. $tutos['base'] .'/html/copyright.html" title="TUTOS '. $tutos[version] ; + $r .= ' <td id="tutosversion">'; + $r .= ' <a class="nodeco" href="'. $tutos['base'] .'/html/copyright.html" title="TUTOS '. $tutos[version] ; if ( ($tutos[debug] == 1) && function_exists('memory_get_usage') ) { $r .= sprintf(" using %.2f KB of memory",memory_get_usage()/1024); Modified: trunk/php/layout/new_layout.pinc =================================================================== --- trunk/php/layout/new_layout.pinc 2013-02-26 10:23:23 UTC (rev 968) +++ trunk/php/layout/new_layout.pinc 2013-02-26 11:32:21 UTC (rev 969) @@ -690,8 +690,8 @@ $cols = 2; } - $r .= ' <td colspan="'. $cols .'" valign="top" align="right">'; - $r .= ' <a id="tutosversion" class="nodeco" href="'. $tutos['base'] .'/html/copyright.html" title="TUTOS '. $tutos[version] ; + $r .= ' <td id="tutosversion" colspan="'. $cols .'">'; + $r .= ' <a class="nodeco" href="'. $tutos['base'] .'/html/copyright.html" title="TUTOS '. $tutos[version] ; if ( ($tutos[debug] == 1) && function_exists('memory_get_usage') ) { $r .= sprintf(" using %.2f KB of memory",memory_get_usage()/1024); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gok...@us...> - 2013-02-26 10:23:29
|
Revision: 968 http://sourceforge.net/p/tutos/code/968 Author: gokohnert Date: 2013-02-26 10:23:23 +0000 (Tue, 26 Feb 2013) Log Message: ----------- fix layout Modified Paths: -------------- trunk/php/login.pinc Modified: trunk/php/login.pinc =================================================================== --- trunk/php/login.pinc 2013-02-26 08:41:59 UTC (rev 967) +++ trunk/php/login.pinc 2013-02-26 10:23:23 UTC (rev 968) @@ -64,9 +64,7 @@ $r .= "\n<!-- ". phpversion() ." ". PHP_OS ." -->\n"; $this->width = 2; - $r .= '<form id="loginform" name="loginform" action="'. $this->gotourl ."\" method=\"post\">\n"; - - + $r .= '<form id="loginform" action="'. $this->gotourl ."\" method=\"post\">\n"; $r .= $this->SelectTableStart(); $r .= $this->headline($this->auth[0]->getHeadLine()); @@ -194,14 +192,13 @@ $tutos['pagescript'] .= "$(document).ready(function(){ $(\"#xmotd\").fadeIn(4000); });\n"; - $r .= " <span style=\"display: none\" id=\"xmotd\"><p />\n"; - + $r .= " <div style=\"display: none\" id=\"xmotd\"><br />\n"; + $this->width = 1; $r .= $this->SelectTableStart(); $r .= $this->headline($lang['MOTD']); - $r .= $this->ContentRowStart(); + $r .= $this->ContentRowStart('motd'); $xx = ''; - $xx .= " <div class=\"motd\">\n"; - if ( function_exists('is_executable') && is_executable(getcwd()."/".$motd) ) { + if ( function_exists('is_executable') && is_executable(getcwd().'/'.$motd) ) { $p = popen ($motd,'r'); if (!is_resource($p)) die ($motd); while(!feof($p)) { @@ -209,13 +206,12 @@ } pclose($p); } else { - $xx .= file_get_contents(getcwd()."/".$motd); + $xx .= file_get_contents(getcwd().'/'.$motd); } - $xx .= "</div>\n"; $r .= $this->showdata($xx); $r .= $this->ContentRowEnd(); $r .= $this->SelectTableEnd(); - $r .= " </span>\n"; + $r .= " </div>\n"; } return $r; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |