[Tutos-commits] SF.net SVN: tutos:[846] trunk/php
Projects / CRM / PLM / Calendar / Tasks / SCRUM / Test / Inventory
Brought to you by:
gokohnert
From: <gok...@us...> - 2012-11-29 09:06:56
|
Revision: 846 http://tutos.svn.sourceforge.net/tutos/?rev=846&view=rev Author: gokohnert Date: 2012-11-29 09:06:49 +0000 (Thu, 29 Nov 2012) Log Message: ----------- fix mobile Modified Paths: -------------- trunk/php/expense/expense_select.php trunk/php/file/file_select.php trunk/php/invoice/invoice_select.php trunk/php/rate/rate_select.php trunk/php/reminder/reminder_select.php trunk/php/scrum/log_select.php trunk/php/scrum/log_show.php trunk/php/scrum/sprint_select.php trunk/php/url/url_select.php Modified: trunk/php/expense/expense_select.php =================================================================== --- trunk/php/expense/expense_select.php 2012-11-27 09:58:27 UTC (rev 845) +++ trunk/php/expense/expense_select.php 2012-11-29 09:06:49 UTC (rev 846) @@ -74,12 +74,12 @@ $r .= $this->ContentRowStart('ext'); $r .= $this->showfieldc($lang['ExpenseSupplier'],0,'sup'); - $r .= $this->showdata(select_from_array_or_input($this->obj,"sup",null,1,'cd'),2); + $r .= $this->showdata(select_from_array_or_input($this,"sup",null,1,'cd'),2); $r .= $this->ContentRowEnd(); $r .= $this->ContentRowStart('ext'); $r .= $this->showfieldc($lang['ExpenseAddress'],0,'adr'); - $r .= $this->showdata(select_from_array_or_input($this->obj,"adr",null,1,'at'),2); + $r .= $this->showdata(select_from_array_or_input($this,"adr",null,1,'at'),2); $r .= $this->ContentRowEnd(); $r .= $this->ContentRowStart('ext'); @@ -89,7 +89,7 @@ $r .= $this->ContentRowStart('ext'); $r .= $this->showfieldc($lang['ExpenseCreator'],0,'cr'); - $r .= $this->showdata(select_from_array_or_input($this->obj,"cr",null,1,'a'),2); + $r .= $this->showdata(select_from_array_or_input($this,"cr",null,1,'a'),2); $r .= $this->ContentRowEnd(); $r .= $this->ContentRowStart('ext'); Modified: trunk/php/file/file_select.php =================================================================== --- trunk/php/file/file_select.php 2012-11-27 09:58:27 UTC (rev 845) +++ trunk/php/file/file_select.php 2012-11-29 09:06:49 UTC (rev 846) @@ -40,13 +40,16 @@ $this->addHidden('ext',$this->ext); $r.= $this->headline($lang['SearchForFile']); - $r .= "<tr>\n"; + $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['SearchForFile'] ."\" /></td>\n"; + $r .= $this->ContentRowEnd(); - $r .= "</tr><tr>\n"; + $r .= $this->ContentRowStart(); $r .= ' <td colspan="3" align="right"><span id="toggler">'. $lang['extended'] ."</span></td>\n"; + $r .= $this->ContentRowEnd(); + $tutos['pagescript'] .= " $( \"#toggler\" ).click(function() { $(\".ext\").toggle(); @@ -65,40 +68,31 @@ \n"; } - $r .= "</tr><tr class=\"ext\">\n"; + + $r .= $this->ContentRowStart('ext'); $r .= $this->showfieldc(sprintf($lang['FileReference'],''),0,"link_"); - $r .= '<td colspan="2">'; - $r .= select_from_array_or_input($this->obj,"link_",null,1,get_parent_classes('file')); - $r .= "</td>\n"; + $r .= $this->showdata(select_from_array_or_input($this,"link_",null,1,get_parent_classes('file')),2); + $r .= $this->ContentRowEnd(); - $r .= "</tr><tr class=\"ext\">\n"; + $r .= $this->ContentRowStart('ext'); $r .= $this->showfieldc(sprintf($lang['FileAuthor'],''),0,"author"); - $r .= '<td colspan="2">'; - $r .= select_from_array_or_input($this->obj,"author",null,1,'a'); - $r .= "</td>\n"; + $r .= $this->showdata(select_from_array_or_input($this,"author",null,1,'a'),2); + $r .= $this->ContentRowEnd(); - $r .= "</tr><tr class=\"ext\">\n"; - $r .= " <td rowspan=\"2\" class=\"desc\">". $lang['TaskBetween'] ."</td>\n"; - $r .= " <td colspan=\"2\">"; - $r .= $this->fd->EnterDate("f",1); - $r .= "</td>\n"; + $r .= $this->ContentRowStart('ext'); + $r .= $this->showfieldc($lang['TaskBetween']); + $r .= $this->showdata($this->fd->EnterDate("f",1).' - '.$this->td->EnterDate("t",1),2); + $r .= $this->ContentRowEnd(); - $r .= "</tr><tr class=\"ext\">\n"; - $r .= " <td colspan=\"2\">"; - $r .= $this->td->EnterDate("t",1); - $r .= "</td>\n"; - // add custom selectors $x = get_custom_selectors('file'); foreach ($x as $s) { - $r .= "</tr><tr class=\"ext\">\n"; + $r .= $this->ContentRowStart('ext'); $r .= $this->showfieldc($s[0]); - $r .= " <td colspan=\"2\">\n"; - $r .= $s[1]; - $r .= " </td>\n"; + $r .= $this->showdata($s[1],2); + $r .= $this->ContentRowEnd(); } - $r .= "</tr>\n"; $r .= $this->SelectTableEnd(); $r .= hiddenFormElements(); $r .= $this->getHidden(); Modified: trunk/php/invoice/invoice_select.php =================================================================== --- trunk/php/invoice/invoice_select.php 2012-11-27 09:58:27 UTC (rev 845) +++ trunk/php/invoice/invoice_select.php 2012-11-29 09:06:49 UTC (rev 846) @@ -85,7 +85,7 @@ $r .= $this->ContentRowStart('ext'); $r .= $this->showfieldc(sprintf($lang['InvoiceCustomer'],''),0,'customer'); - $r .= $this->showdata(select_from_array_or_input($this->obj,"customer",null,1,'atcdD'),2); + $r .= $this->showdata(select_from_array_or_input($this,"customer",null,1,'atcdD'),2); $r .= $this->ContentRowEnd(); // add custom selectors Modified: trunk/php/rate/rate_select.php =================================================================== --- trunk/php/rate/rate_select.php 2012-11-27 09:58:27 UTC (rev 845) +++ trunk/php/rate/rate_select.php 2012-11-29 09:06:49 UTC (rev 846) @@ -14,6 +14,8 @@ // Check if user is allowed to use it check_user(); + +$tutos['mobileok'] = 1; loadmodules('rate','select'); loadmodule('rate'); loadlayout(); @@ -37,14 +39,16 @@ $r .= $this->SelectTableStart(); $r.= $this->headline($lang['SearchForRate']); - $r .= "<tr>\n"; + $r .= $this->ContentRowStart(); $r .= $this->showfieldc($lang['RateName']); - $r .= " <td align=\"center\"> <input type=\"text\" value=\"\" name=\"name\"></td>\n"; - $r .= ' <td><input type="submit" value="'. $lang['Search'] .'" title="'.$lang['Search']."\" /></td>\n"; - $r .= "</tr>\n"; + $r .= $this->showdata('<input id="name" type="text" value="" name="name" />'); + $r .= $this->showdata('<input type="submit" value="'. $lang['Search'] .'" />'); + $r .= $this->ContentRowEnd(); - $r .= "<tr>\n"; - $r .= ' <td colspan="3" align="right"><span style="text-align:right;" id="toggler">'. $lang['extended'] ."</span></td>\n"; + $r .= $this->ContentRowStart(); + $r .= ' <td colspan="3" align="right"><span id="toggler">'. $lang['extended'] ."</span></td>\n"; + $r .= $this->ContentRowEnd(); + $tutos['pagescript'] .= " $( \"#toggler\" ).click(function() { $(\".ext\").toggle(); @@ -61,18 +65,31 @@ $(\".ext\").hide(); \n"; } - $r .= "</tr>\n"; - $r .= "<tr class=\"ext\">\n"; + $r .= $this->ContentRowStart('ext'); $r .= $this->showfieldc($lang['RateReference']); - $r .= ' <td colspan="2"> <b>'. $this->RateAskRefType($this->rsrt,0) ."</b> </td>\n"; - $r .= "</tr>\n"; + $r .= $this->showdata($this->RateAskRefType($this->rsrt,0),2); + $r .= $this->ContentRowEnd(); + // add custom selectors + $x = get_custom_selectors('reminder'); + foreach ($x as $s) { + $r .= $this->ContentRowStart('ext'); + $r .= $this->showfieldc($s[0]); + $r .= $this->showdata($s[1],2); + $r .= $this->ContentRowEnd(); + } + $r .= $this->SelectTableEnd(); $r .= hiddenFormElements(); $r .= $this->getHidden(); $r .= "</form>\n"; + // shortcuts with urls + if (class_exists('url')) { + $r .= url::getFastSelect($this); + } + $r .= $this->setfocus("ratesearch.name"); return $r; } Modified: trunk/php/reminder/reminder_select.php =================================================================== --- trunk/php/reminder/reminder_select.php 2012-11-27 09:58:27 UTC (rev 845) +++ trunk/php/reminder/reminder_select.php 2012-11-29 09:06:49 UTC (rev 846) @@ -68,12 +68,12 @@ $r .= $this->ContentRowStart('ext'); $r .= $this->showfieldc(sprintf($lang['ReminderReference'],''),0,'ref'); - $r .= $this->showdata(select_from_array_or_input($this->obj,'ref',null,1,'all'),2); + $r .= $this->showdata(select_from_array_or_input($this,'ref',null,1,'all'),2); $r .= $this->ContentRowEnd(); $r .= $this->ContentRowStart('ext'); $r .= $this->showfieldc(sprintf($lang['ReminderTo'],''),0,'to'); - $r .= $this->showdata(select_from_array_or_input($this->obj,'to',null,1,'at'),2); + $r .= $this->showdata(select_from_array_or_input($this,'to',null,1,'at'),2); $r .= $this->ContentRowEnd(); $r .= $this->ContentRowStart('ext'); Modified: trunk/php/scrum/log_select.php =================================================================== --- trunk/php/scrum/log_select.php 2012-11-27 09:58:27 UTC (rev 845) +++ trunk/php/scrum/log_select.php 2012-11-29 09:06:49 UTC (rev 846) @@ -70,19 +70,19 @@ $r .= $this->ContentRowStart('ext'); $r .= $this->showfieldc($lang['ScrumLogSprint'],0,"s_id"); - $x = select_from_array_or_input($this->obj,"s_",null,1,array(USESCRUMSPRINT)); + $x = select_from_array_or_input($this,"s_",null,1,array(USESCRUMSPRINT)); $x .= '<input type="checkbox" name="nos" id="nos" value="1"><strike>'.$lang['Sprint'].'</strike></input>'; $r .= $this->showdata($x,2); $r .= $this->ContentRowEnd(); $r .= $this->ContentRowStart('ext'); $r .= $this->showfieldc($lang['ScrumLogPref'],0,"p_id"); - $r .= $this->showdata(select_from_array_or_input($this->obj,"p_",null,1,array(useprojects)),2); + $r .= $this->showdata(select_from_array_or_input($this,"p_",null,1,array(useprojects)),2); $r .= $this->ContentRowEnd(); $r .= $this->ContentRowStart('ext'); $r .= $this->showfieldc($lang['ScrumLogWorker'],0,"w_id"); - $r .= $this->showdata(select_from_array_or_input($this->obj,"w_",null,1,array(useaddressbook)),2); + $r .= $this->showdata(select_from_array_or_input($this,"w_",null,1,array(useaddressbook)),2); $r .= $this->ContentRowEnd(); $r .= $this->ContentRowStart('ext'); Modified: trunk/php/scrum/log_show.php =================================================================== --- trunk/php/scrum/log_show.php 2012-11-27 09:58:27 UTC (rev 845) +++ trunk/php/scrum/log_show.php 2012-11-29 09:06:49 UTC (rev 846) @@ -17,6 +17,8 @@ /* Check if user is allowed to use it */ check_user(); + +$tutos['mobileok'] = 1; loadmodules('scrumlog','show'); loadmodule('scrumlog'); loadlayout(); Modified: trunk/php/scrum/sprint_select.php =================================================================== --- trunk/php/scrum/sprint_select.php 2012-11-27 09:58:27 UTC (rev 845) +++ trunk/php/scrum/sprint_select.php 2012-11-29 09:06:49 UTC (rev 846) @@ -70,7 +70,7 @@ $r .= $this->ContentRowStart('ext'); $r .= $this->showfieldc($lang['SprintRef'],0,"p_id"); - $r .= $this->showdata(select_from_array_or_input($this->obj,"p_",null,1,array(useprojects)),2); + $r .= $this->showdata(select_from_array_or_input($this,"p_",null,1,array(useprojects)),2); $r .= $this->ContentRowEnd(); $r .= $this->ContentRowStart('ext'); Modified: trunk/php/url/url_select.php =================================================================== --- trunk/php/url/url_select.php 2012-11-27 09:58:27 UTC (rev 845) +++ trunk/php/url/url_select.php 2012-11-29 09:06:49 UTC (rev 846) @@ -71,7 +71,7 @@ $r .= $this->ContentRowStart('ext'); $r .= $this->showfieldc($lang['Reference'],0,"link"); - $r .= $this->showdata(select_from_array_or_input($this->obj,"link_",null,1,'all'),2); + $r .= $this->showdata(select_from_array_or_input($this,"link_",null,1,'all'),2); $r .= $this->ContentRowEnd(); // add custom selectors This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |