Jump to content
  • 0
Sign in to follow this  
安赫尔

Help to increase a column of text displayed in FluxCP

Question

I want to modify FluxCP itemiew, increase a item description table.

 

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

 

post-1086-0-10910700-1391568117_thumb.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.

 

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

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:

 

 

<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> 
Edited by aerolite

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.