Help to increase a column of text displayed in FluxCP

安赫尔

New member
Messages
163
Points
0
Location
Shanghai
Github
stacksnet
Emulator
I want to modify FluxCP itemiew, increase a item description table.

I am already make a MySQL DB. Table name is 'item_db_desp' .

20140205104123.jpg

Garbled because it is the Chinese utf8 format.

Only 2 cols. 'id' and 'desp'.

ID: ItemID

Desp: After finishing my items text description.

After that, I were to modify the 'trunkmodulesitemview.php' and 'trunkthemesdefaultitemview.php'

trunkmodulesitemview.php

$isCustom = null; // Item Description $sql = "SELECT $col FROM {$server->charMapDatabase}.item_db_desp WHERE"; $col = 'items.id AS item_desp_id,'; $col .= 'desp, origin_table,'; $col .= "$itemsTable.desp AS item_desp_id, item_desp";if ($item) {

trunkthemesdefaultitemview.php

<tr> <th>Item Description</th> <td><?php echo htmlspecialchars($item->item_desp) ?></td> </tr> <tr> <th>Item Script</th>

I know for sure is wrong, so would like to ask how should it be able to read it.

Thank you very much.

 
I posted this to help others who's having the same problem making another column within the table. Basically you should specify the column first and then rows. The following should help you add rows and columns in a table:

Code:
<table><tr><td>Name</td><td>Description</td><td>Additional header</td></tr></tr><td><?php echo htmlspecialchars($item->item_name) ?></td><td><?php echo htmlspecialchars($item->item_desc) ?></td><td>Additional header result.</td></tr></table> 
 
Last edited by a moderator:
Back
Top