View Full Version : Showing Compny under all project view
under Projects where the Company/Division is set to "All", is there a way that we can add or view the companies column also?
ie - the current columns under all projects are: Color, project name, Start, end actual etc...
is there a way we can include a coloumn for company name example before the project name coloumn?
Appreciate your help...
That's quite a valuable one, an easy too, even I could do it,
Here is how:
Insert the following lines of code:
<a href="?m=projects&orderby=company_name" class="hdr"><?php echo $AppUI->_('Company');?></a>
in file projects/vw_idx_proposed.php line 26
in file projects/vw_idx_active.php line 17
in file projects/vw_idx_archived.php line 15
in file projects/vw_idx_complete.php line 15
Now assuming that you have inserted those (this is because of line numbering), insert the following code:
$s .= $CR . '<td width="30%">';
$s .= $CT . '<a href="?m=companies&a=view&company_id=' . $row["project_company"] . '" title="' . htmlspecialchars( $row["company_description"], ENT_QUOTES ) . '">' . htmlspecialchars( $row["company_name"], ENT_QUOTES ) . '</a>';
$s .= $CR . '</td>';
in file projects/vw_idx_proposed.php line 95
in file projects/vw_idx_active.php line 68
in file projects/vw_idx_archived.php line 49
in file projects/vw_idx_complete.php line 51
Now for company descriptions to appear as tips on mouseover, change projects/index.php line 169 to:
project_start_date, project_end_date, project_color_identifier, project_company, company_name, company_description, project_status,
If you noticed there is no file for all viewing because All is made of the files above, it gets it's layout from those other files.
14-10-06, 02:27 AM
I'm a bit of a newbie without much in the way of php on my side so go easy if I sound like I don't know what I'm talking about. I stuck the code in and ran into a problem after the first two steps.
Parse error: parse error, unexpected T_VARIABLE in C:\Server\htdocs\dotproject\modules\projects\vw_id x_proposed.php on line 95
when I loook at the projects view. I couldn't complete the last step because projects/index.php stopped at line 150. Am I looking in completely the wrong spot???
fumbles, the company already shows on the projects list, so why the heck are you trying this code anyway. Can't you see the column?
Look at the date of that thing.... ok we are slow at releasing things, but hey we are not that slooooowwww....
Have a nice weekend,
16-10-06, 11:08 PM
I think the simple answer is it had been a very long week and I completely misread the post! Sorry.....
I was actually looking to see if I could display the project_id, not the company name. Will have more of a look through the forums and see if my basic comprehension has improved over the weekend.
vBulletin® v3.6.4, Copyright ©2000-2013, Jelsoft Enterprises Ltd.