| @@ -18,7 +18,7 @@ function lib_channel(&$ctag, &$refObj) | |||||
| { | { | ||||
| global $dsql; | global $dsql; | ||||
| $attlist = "typeid|0,reid|0,row|100,col|1,type|son,currentstyle|,cacheid|"; | $attlist = "typeid|0,reid|0,row|100,col|1,type|son,currentstyle|,cacheid|"; | ||||
| FillAttsDefault($ctag->CAttribute->Items,$attlist); | |||||
| FillAttsDefault($ctag->CAttribute->Items, $attlist); | |||||
| extract($ctag->CAttribute->Items, EXTR_SKIP); | extract($ctag->CAttribute->Items, EXTR_SKIP); | ||||
| $innertext = $ctag->GetInnerText(); | $innertext = $ctag->GetInnerText(); | ||||
| $line = empty($row) ? 100 : $row; | $line = empty($row) ? 100 : $row; | ||||
| @@ -115,9 +115,9 @@ function lib_channel(&$ctag, &$refObj) | |||||
| if (is_array($dtp2->CTags)) { | if (is_array($dtp2->CTags)) { | ||||
| foreach($dtp2->CTags as $tagid=>$ctag) { | foreach($dtp2->CTags as $tagid=>$ctag) { | ||||
| if (isset($row[$ctag->GetName()])) { | if (isset($row[$ctag->GetName()])) { | ||||
| $dtp2->Assign($tagid,$row[$ctag->GetName()]); | |||||
| } else if (preg_match('/^sonchannel[0-9]*$/',$ctag->GetName())) { | |||||
| $dtp2->Assign($tagid,lib_channel_son($ctag,$row['id'],$dsql2)); | |||||
| $dtp2->Assign($tagid, $row[$ctag->GetName()]); | |||||
| } else if (preg_match('/^sonchannel[0-9]*$/', $ctag->GetName())) { | |||||
| $dtp2->Assign($tagid,lib_channel_son($ctag, $row['id'], $dsql2)); | |||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| @@ -139,7 +139,7 @@ function lib_channel(&$ctag, &$refObj) | |||||
| function lib_channel_son($ctag, $typeid = 0, $dsql2) | function lib_channel_son($ctag, $typeid = 0, $dsql2) | ||||
| { | { | ||||
| $attlist = 'row|100,col|1,currentstyle|,notypeid|0'; | $attlist = 'row|100,col|1,currentstyle|,notypeid|0'; | ||||
| FillAttsDefault($ctag->CAttribute->Items,$attlist); | |||||
| FillAttsDefault($ctag->CAttribute->Items, $attlist); | |||||
| extract($ctag->CAttribute->Items, EXTR_SKIP); | extract($ctag->CAttribute->Items, EXTR_SKIP); | ||||
| $innertext = $ctag->GetInnerText(); | $innertext = $ctag->GetInnerText(); | ||||
| $dsql3 = clone $dsql2; | $dsql3 = clone $dsql2; | ||||
| @@ -163,9 +163,9 @@ function lib_channel_son($ctag, $typeid = 0, $dsql2) | |||||
| if (is_array($dtp2->CTags)) { | if (is_array($dtp2->CTags)) { | ||||
| foreach($dtp2->CTags as $tagid=>$ctag) { | foreach($dtp2->CTags as $tagid=>$ctag) { | ||||
| if (isset($row[$ctag->GetName()])) { | if (isset($row[$ctag->GetName()])) { | ||||
| $dtp2->Assign($tagid,$row[$ctag->GetName()]); | |||||
| } else if (preg_match('/^sonchannel[0-9]*$/',$ctag->GetName())) { | |||||
| $dtp2->Assign($tagid,lib_channel_son($ctag,$row['id'],$dsql3)); | |||||
| $dtp2->Assign($tagid, $row[$ctag->GetName()]); | |||||
| } else if (preg_match('/^sonchannel[0-9]*$/', $ctag->GetName())) { | |||||
| $dtp2->Assign($tagid,lib_channel_son($ctag, $row['id'], $dsql3)); | |||||
| } | } | ||||
| } | } | ||||
| } | } | ||||