Great!
mflorell wrote:
Due to the complexity of the agent screen and the use of many hard-coded coordinates(X,Y) for absolute positions of elements on the page, there is some limit to the flexibility of any templating system that may be used.
I don't think so. Template System means all HTML Code like positions are in the HTML template.
mflorell wrote:I would not suggest using a generic templating system like SMARTY due to the overhead and limitations that it will impose on the templating process. I think it might be better to go with some kind of custom template method to streamline the templating options and make page rendering more efficient.
Can you please explain in more detail? We do not need to discuss about performance. A templating system will eat up some ressources. But how often is vicidial.php loaded for one agent on one day? Is it possible to limit that with some changes? For example can we swap out the Javascript in a separate php file to lower the load?
The advantages of smarty are the (limited) functions in the templates (the comment field for example - one line or multi-line - if-else construct) and the caching. That would make it much more easier.
The simplest way of a custom template method will be a template with placeholders and simple replace-functions in the php code. With this method the first problem will be a iteration cause some echo's in the current vicidial.php are in a while-loop and there will be other issues to solve. What I want to say: That is additional work and maybe we reinvite the weel. Does somebody know a simple, small and fast template system?
Maybe there is another way. What about some pre-compiling? HTML Template and PHP code are mixed together so a vicidial.php like the current one will be created. But I think that won't be possible...
mflorell wrote:With that in mind, what are the absolute requirements that all of you have for a templating of the vicidial.php agent interface?
Breakup of PHP and HTML code. Means no HTML code in the vicidial.php script. So no HTML positions in vicidial.php cause that needs to be in the template.