Quantcast
Channel: Ocsinventory Q&A - Recent questions and answers
Viewing all articles
Browse latest Browse all 11964

Is it possible to create a URL in the field USERID in order to search the info related to USERID ?

$
0
0
Hi  guys!!

I would like to change the field userid in "http://ocs-server/ocs/index.php?function=visu_computers" and attach into an ajax function link what i call "function_get_userinfo.php" where i can get directly some the info about the userid. This function returns some json data, what i included an alert popup to show what i want see.

I modified around the line #273 from the file function_table_html.php in the olders versions. It worked great.

The code i changed looked like that:

if ($v == "") $v="&nbsp";
                if ($k == "User"){
                     $v = "<a id=\"userinfo\" class=\"userinfo\" href=require/function_get_userinfo.php?q=$v>$v</a>";
                };                 
                echo "<td class='ta' >".$begin.$v.$end."</td>";

In the version 2.3RC this dont work. So where in 2.3RC i can change this? What file i can change this.

Thanks!!!

Viewing all articles
Browse latest Browse all 11964

Trending Articles