From 423f4e6fb0afba2685589b700d30055cb6dcd099 Mon Sep 17 00:00:00 2001
From: xue <>
Date: Mon, 2 Jan 2006 04:54:31 +0000
Subject: Added TRadioButtonList, TTable related controls.
---
framework/Web/UI/WebControls/TRepeatInfo.php | 18 +++++++++++++++---
1 file changed, 15 insertions(+), 3 deletions(-)
(limited to 'framework/Web/UI/WebControls/TRepeatInfo.php')
diff --git a/framework/Web/UI/WebControls/TRepeatInfo.php b/framework/Web/UI/WebControls/TRepeatInfo.php
index 66584ded..14b57cfb 100644
--- a/framework/Web/UI/WebControls/TRepeatInfo.php
+++ b/framework/Web/UI/WebControls/TRepeatInfo.php
@@ -86,6 +86,7 @@ class TRepeatInfo extends TComponent
if($user->getHasStyle())
$control->getStyle()->copyFrom($user->getStyle());
$control->renderBeginTag($writer);
+ $writer->writeLine();
if($this->_repeatDirection==='Vertical')
$this->renderVerticalContents($writer,$user);
@@ -120,6 +121,7 @@ class TRepeatInfo extends TComponent
$writer->renderBeginTag('td');
$user->renderItem($writer,$this,'Item',$i);
$writer->renderEndTag();
+ $writer->writeLine();
if($hasSeparators && $i!=$itemCount-1)
{
if(($style=$user->getItemStyle('Separator',$i))!==null)
@@ -127,6 +129,7 @@ class TRepeatInfo extends TComponent
$writer->renderBeginTag('td');
$user->renderItem($writer,$this,'Separator',$i);
$writer->renderEndTag();
+ $writer->writeLine();
}
$column++;
if($i==$itemCount-1)
@@ -135,11 +138,12 @@ class TRepeatInfo extends TComponent
if($hasSeparators)
$restColumns=$restColumns?$restColumns+$restColumns+1:1;
for($j=0;$j<$restColumns;++$j)
- $writer->write('
| ');
+ $writer->write(" | \n");
}
if($column==$columns || $i==$itemCount-1)
{
$writer->renderEndTag();
+ $writer->writeLine();
$column=0;
}
}
@@ -159,6 +163,7 @@ class TRepeatInfo extends TComponent
$writer->writeBreak();
$column=0;
}
+ $writer->writeLine();
}
}
@@ -216,6 +221,7 @@ class TRepeatInfo extends TComponent
$writer->renderBeginTag('td');
$user->renderItem($writer,$this,'Item',$index);
$writer->renderEndTag();
+ $writer->writeLine();
if(!$hasSeparators)
continue;
if($renderedItems<$itemCount-1)
@@ -230,9 +236,10 @@ class TRepeatInfo extends TComponent
$writer->renderBeginTag('td');
$user->renderItem($writer,$this,'Separator',$index);
$writer->renderEndTag();
+ $writer->writeLine();
}
else if($columns>1)
- $writer->write(' | ');
+ $writer->write(" | \n");
}
if($row==$rows-1)
{
@@ -240,9 +247,10 @@ class TRepeatInfo extends TComponent
if($hasSeparators)
$restColumns+=$restColumns;
for($col=0;$col<$restColumns;++$col)
- $writer->write(' | ');
+ $writer->write(" | \n");
}
$writer->renderEndTag();
+ $writer->writeLine();
}
}
else
@@ -264,6 +272,7 @@ class TRepeatInfo extends TComponent
if($index>=$itemCount)
continue;
$user->renderItem($writer,$this,'Item',$index);
+ $writer->writeLine();
if(!$hasSeparators)
continue;
if($renderedItems<$itemCount-1)
@@ -272,6 +281,7 @@ class TRepeatInfo extends TComponent
$writer->writeBreak();
$user->renderItem($writer,$this,'Separator',$index);
}
+ $writer->writeLine();
}
if($row<$rows-1 || $user->getHasFooter())
$writer->writeBreak();
@@ -304,6 +314,7 @@ class TRepeatInfo extends TComponent
if($needBreak)
$writer->writeBreak();
}
+ $writer->writeLine();
}
protected function renderFooter($writer,$user,$tableLayout,$columns)
@@ -322,6 +333,7 @@ class TRepeatInfo extends TComponent
}
else
$user->renderItem($writer,$this,'Footer',-1);
+ $writer->writeLine();
}
}
--
cgit v1.2.3