William:
"javascript sends a request every second... ...populate pre-defined areas with appropriate ids"
I understand most of the Ajax work, I've mainly used frameworks to do Ajax work, but I get the general ideas and can read code quite well, or at least I thought so, because my main concern is:
The information I have available is the IDs of the section that is relevant, those are AgentViewSpan and AgentViewStatus
This is the basis of my following actions to solve the task I've set.
My following action is to look for those two IDs in the code, as a reference.
I first go through vicidial.php, and only find javascript that handles the open and close of the agentview sidebar.
After some frowning, I make a search of the entire vicidial and agc catalogs for the two IDs, case insensitive. Where I find 7 occurences of Agentviewspan and 4 of agentviewstatus, all which are in vicidial.php, and all dealing with opening and closing of the sidebar.
looking in to the variable agentviewstatus I find the functions refresh_agents_view(), and actually, now that I'm typing down my steps I just realised as I was fact checking, that there is in the function refresh_agents_view() is a line:
xmlhttp.open('POST', 'vdc_db_query.php');
and just above that
RAview_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&ACTION=AGENTSview.....
Which makes sense as you open vdc_db_query.php and see that everything is controlled with actions. As it should be.
Searching after the actions AGENTSview I come upon an entire (small) universe of new information,
I feel like I've just beaten the first really hard boss in a videogame, you know that first really really hard one that makes you want to damage and hurt something or somebody due to frustration because you know you almost have it...
Thank you for your help guys, I hope I can take it from here
I know there are plenty of bosses left to defeat
How much would it cost to have the astgui interface modernized?
Preferably built upon an existing framwork, Symfony or Zend. Clean, well commented code, no embedded html tags, phpdoc, mvc, object oriented approach.... Don't know if it should be done, but if it could - approximately how much would it be?