1
2
3
4
5
6
7
8
9
10
11
12
13
|
if ( is_array ( $dtp ->CTags)) { foreach ( $dtp ->CTags as $ctag ) { if ( $ctag ->GetName()== "img" ) { $row = array (); $row [ 'imgsrc' ] = trim( $ctag ->GetInnerText()); $row [ 'text' ] = $ctag ->GetAtt( 'text' ); $images [] = $row ; } } } |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
if ( is_array ( $dtp ->CTags)) { foreach ( $dtp ->CTags as $ctag ) { if ( $ctag ->GetName()== "img" ) { $row = array (); $row [ 'imgsrc' ] = trim( $ctag ->GetInnerText()); $row [ 'text' ] = $ctag ->GetAtt( 'text' ); $row [ 'id' ] = $refObj ->addTableRow[ 'aid' ]; $images [] = $row ; } } } |