[Astpp-commit] SF.net SVN: astpp:[2207] trunk
Brought to you by:
darrenkw
From: <dar...@us...> - 2008-11-11 23:09:27
|
Revision: 2207 http://astpp.svn.sourceforge.net/astpp/?rev=2207&view=rev Author: darrenkw Date: 2008-11-11 23:09:25 +0000 (Tue, 11 Nov 2008) Log Message: ----------- Correct the code to show freeswitch voicemail passwords. Moved the list_errors template to list-errors to match the rest. Modified Paths: -------------- trunk/astpp-admin.cgi Added Paths: ----------- trunk/templates/freeswitch-sip-list.tpl trunk/templates/list-errors.tpl Modified: trunk/astpp-admin.cgi =================================================================== --- trunk/astpp-admin.cgi 2008-11-11 23:06:16 UTC (rev 2206) +++ trunk/astpp-admin.cgi 2008-11-11 23:09:25 UTC (rev 2207) @@ -3942,7 +3942,7 @@ } $count = 0; my $template = HTML::Template->new( - filename => '/var/lib/astpp/templates/list_errors.tpl', + filename => '/var/lib/astpp/templates/list-errors.tpl', die_on_bad_params => $config->{template_die_on_bad_params} ); Added: trunk/templates/freeswitch-sip-list.tpl =================================================================== --- trunk/templates/freeswitch-sip-list.tpl (rev 0) +++ trunk/templates/freeswitch-sip-list.tpl 2008-11-11 23:09:25 UTC (rev 2207) @@ -0,0 +1,35 @@ +<form method="post" action="/cgi-bin/astpp-admin/astpp-admin.cgi?mode=Freeswitch(TM)%20SIP%20Devices" enctype="multipart/form-data"> +<table> + <tr> + <input type="hidden" name="mode" value="Freeswitch(TM) SIP Devices"/> + <td colspan=7 align=center><TMPL_VAR NAME="status"></td> + </tr> + <tr class="header"> + <td colspan=7><TMPL_VAR NAME="account_types"></td> + </tr> + <tr class="header"> + <td colspan=7><input type="submit" name="action" value="Add..." /> <input type="submit" name="Refresh" value="Refresh" /></td> + </tr> + <tr class="header"> + <td>Directory ID</td> + <td>Username</td> + <td>Password</td> + <td>Accountcode</td> + <td>VM Password</td> + <td>Context</td> + <td>Action</td> + </tr> + <TMPL_LOOP NAME="device_list"> + <TR> + <TD><TMPL_VAR NAME="directory_id"></td> + <TD><TMPL_VAR NAME="username"></a></TD> + <TD><TMPL_VAR NAME="password"></TD> + <TD><TMPL_VAR NAME="accountcode"></TD> + <TD><TMPL_VAR NAME="vmpassword"></TD> + <TD><TMPL_VAR NAME="context"></TD> + <TD><a href="astpp-admin.cgi?mode=Freeswitch(TM) SIP Devices&directory_id=<TMPL_VAR NAME="directory_id">&action=Delete...">Delete...</a></TD> + <TD><a href="astpp-admin.cgi?mode=Freeswitch(TM) SIP Devices&directory_id=<TMPL_VAR NAME="directory_id">&action=Edit...">Edit...</a></TD> + </TR> + </TMPL_LOOP> +</table> + Added: trunk/templates/list-errors.tpl =================================================================== --- trunk/templates/list-errors.tpl (rev 0) +++ trunk/templates/list-errors.tpl 2008-11-11 23:09:25 UTC (rev 2207) @@ -0,0 +1,57 @@ +<table class="viewcdrs"> + <tr> + <td colspan=7><form method="post" action="/cgi-bin/astpp-admin/astpp-admin.cgi?mode=List%20Errors" enctype="multipart/form-data"></td> + </tr> + <tr class="header"> + <td>UniqueID</td> + <td>Date</td> + <td>CallerID</td> + <td>Source</td> + <td>Dest</td> + <td>Dest.Context</td> + <td>Channel</td> + <td>Dest.Channel</td> + <td>Last App </td> + <td>Last Data</td> + <td>Duration</td> + <td>BillSec</td> + <td>Disposition</td> + <td>AMAFlags</td> + <td>AccountCode</td> + <td>UniqueID</td> + <td>UserField</td> + <td>Cost</td> + <td>Action</td> + </tr> + <TMPL_LOOP NAME="cdrlist"> + <tr class="<TMPL_VAR NAME="class">"> + <td><TMPL_VAR NAME="uniqueid"></td> + <td><TMPL_VAR NAME="calldate"></td> + <td><TMPL_VAR NAME="clid"></td> + <td><TMPL_VAR NAME="src"></td> + <td><TMPL_VAR NAME="dst"></td> + <td><TMPL_VAR NAME="dcontext"></td> + <td><TMPL_VAR NAME="channel"></td> + <td><TMPL_VAR NAME="dstchannel"></td> + <td><TMPL_VAR NAME="lastapp"></td> + <td><TMPL_VAR NAME="lastdata"></td> + <td><TMPL_VAR NAME="duration"></td> + <td><TMPL_VAR NAME="billsec"></td> + <td><TMPL_VAR NAME="disposition"></td> + <td><TMPL_VAR NAME="amaflags"></td> + <td><TMPL_VAR NAME="accountcode"></td> + <td><TMPL_VAR NAME="uniqueid"></td> + <td><TMPL_VAR NAME="userfield"></td> + <td><TMPL_VAR NAME="cost"></td> + <td><a href="astpp-admin.cgi?mode=List Errors&uniqueid=<TMPL_VAR NAME="uniqueid">&action=Deactivate...">Deactivate...</a></td> + </tr> + </TMPL_LOOP> +</table> + +<table> + <tr> + <td><TMPL_VAR NAME="pagination"></td> + <td><TMPL_VAR NAME="status"></td> + </tr> + </table> +</form> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |