2011/10/23 16:15
timgno
Module Developer
Posts: 1504
Since: 2007/6/21
2011/10/23 17:15
Cesagonchu
Moderator
Posts: 897
Since: 2010/2/1 2
2012/1/19 14:27
2012/1/21 6:00
syrian_arab
Just popping in
Posts: 35
Since: 2011/2/11
2012/1/27 7:59
echo ''; echo ''; echo ''._AM_TDMCREATE_NAME.''; echo ''._AM_TDMCREATE_IMAGE.''; echo ''._AM_TDMCREATE_DISPLAY_ADMIN.''; echo ''._AM_TDMCREATE_DISPLAY_USER.''; echo ''._AM_TDMCREATE_BLOCKS.''; echo ''._AM_TDMCREATE_NB_CHAMPS.''; echo ''._AM_TDMCREATE_FORMACTION.''; echo ''; This code above would be taken up with this: $table = new XoopsHtmlTable ($rows, $caption = '', $frame = '', $rules = '', $cellspacing = '', $cellpadding = '', $class = '', $id = ''); echo $table->addRow($attributes, _AM_TDMCREATE_NAME); ... As you can see in the code above I added a line that integrates a part of php code, but this is still extended.Some variables, such as attributes, are arrays that contain the properties of html tags, so can be integrated in a small code space.The same is true of content, such as variable definitions _AM_TDMCREATE_NAME, these can be listed in an array and then integrated in this way: $defines = array(_AM_TDMCREATE_NAME, _AM_TDMCREATE_IMAGE, _AM_TDMCREATE_DISPLAY_ADMIN, _AM_TDMCREATE_DISPLAY_USER, _AM_TDMCREATE_BLOCKS, _AM_TDMCREATE_NB_CHAMPS, _AM_TDMCREATE_FORMACTION); echo $table->addRows($attributes, $defines); ... I hope this is clear enough. hhttp://www.txmodxoops.org Login Username Password Remember me Reset Search Advanced Search Recent Posts Re: XOOPS MyMenus 1.54.0 Beta 10 5/18 0:28 Paulsen97 Re: Stien: System 12:: Timing Bells Just Pushed + Includes XOOPS Objectivity in the Manette.txt 5/15 19:56 wishcraft Re: pm.php isn't working so i have to make it a public forum message attn: mamba 5/15 19:52 wishcraft Stien: System 12:: Timing Bells Just Pushed + Includes XOOPS Objectivity in the Manette.txt 5/15 18:07 wishcraft XOOPS needs help with Core translations 4/28 5:20 Mamba XOOPS 2.5.12 Beta-7 available for Testing 4/28 4:20 Mamba XOOPS 2.7 roadmap in 4 phases 4/25 0:57 alain01 Access Control; Opening your XOOPS Site to all networks apart from Internet (Networking Plug-n-Play) 4/22 11:08 wishcraft Two news on Richard Griffith and Nicolas Andricq 4/10 23:01 alain01 Re: Today is a great day 4/10 0:05 black_beard Who's Online 176 user(s) are online (136 user(s) are browsing Support Forums) Members: 0 Guests: 176 more... Donat-O-Meter Stats Goal: AU$15.00 Due Date: May 31 Gross Amount: AU$0.00 Net Balance: AU$0.00 Left to go: AU$15.00 Latest GitHub Commits {{ record.sha.slice(0, 7) }} - {{ record.commit.message | truncate }} {{ record.commit.author.name }} {{ record.commit.author.date | formatDate }}
$table = new XoopsHtmlTable ($rows, $caption = '', $frame = '', $rules = '', $cellspacing = '', $cellpadding = '', $class = '', $id = ''); echo $table->addRow($attributes, _AM_TDMCREATE_NAME); ...
$defines = array(_AM_TDMCREATE_NAME, _AM_TDMCREATE_IMAGE, _AM_TDMCREATE_DISPLAY_ADMIN, _AM_TDMCREATE_DISPLAY_USER, _AM_TDMCREATE_BLOCKS, _AM_TDMCREATE_NB_CHAMPS, _AM_TDMCREATE_FORMACTION); echo $table->addRows($attributes, $defines); ...
Advanced Search
176 user(s) are online (136 user(s) are browsing Support Forums)
Members: 0
Guests: 176