--- admin/Public/call-last-month.php	2010-04-07 14:32:20.000000000 +0400
+++ vt_simplified_gui_1.7.0/admin/Public/call-last-month__vt.php	2010-04-08 20:04:29.000000000 +0400
@@ -32,19 +32,19 @@
 **/
 
 
-include_once(dirname(__FILE__) . "/../lib/admin.defines.php");
-include_once(dirname(__FILE__) . "/../lib/admin.module.access.php");
-include ("../lib/admin.smarty.php");
+include_once(dirname(__FILE__) . "/../lib/admin.defines__vt.php");
+include_once(dirname(__FILE__) . "/../lib/admin.module.access__vt.php");
+include ("../lib/admin.smarty__vt.php");
 
 if (! has_rights (ACX_CALL_REPORT)) { 
 	Header ("HTTP/1.0 401 Unauthorized");
-	Header ("Location: PP_error.php?c=accessdenied");	   
+	Header ("Location: PP_error__vt.php?c=accessdenied");	   
 	die();
 }
 
 
 getpost_ifset(array('months_compare', 'current_page', 'fromstatsmonth_sday', 'days_compare', 'min_call', 'posted',  'dsttype', 'srctype', 'clidtype', 'channel', 'resulttype', 'stitle', 'atmenu', 'current_page', 'order', 'sens', 'dst', 'src', 'clid', 'userfieldtype', 'userfield', 'accountcodetype', 'accountcode', 'customer', 'entercustomer', 'enterprovider','entertariffgroup', 'entertrunk', 'enterratecard', 'graphtype'));
-$smarty->display('main.tpl');
+$smarty->display('main__vt.tpl');
 
 ?>
 
@@ -63,10 +63,12 @@
 				<tr>
 				<td class="fontstyle_searchoptions" width="50%" valign="top">
 					<?php echo gettext("Enter the customer ID");?>: <INPUT TYPE="text" NAME="entercustomer" value="<?php echo $entercustomer?>" class="form_input_text">
-					<a href="#" onclick="window.open('A2B_entity_card.php?popup_select=1&popup_formname=myForm&popup_fieldname=entercustomer' , 'CardNumberSelection','scrollbars=1,width=550,height=330,top=20,left=100,scrollbars=1');"><img src="<?php echo Images_Path;?>/icon_arrow_orange.gif"></a>
+					<a href="#" onclick="window.open('A2B_entity_card__vt.php?popup_select=1&popup_formname=myForm&popup_fieldname=entercustomer' , 'CardNumberSelection','scrollbars=1,width=550,height=330,top=20,left=100,scrollbars=1');"><img src="<?php echo Images_Path;?>/icon_arrow_orange.gif"></a>
 				</td>
 				<td width="50%">
-					<table width="100%" border="0" cellspacing="0" cellpadding="0">
+
+<?php if (!VT_MODE) { ?>
+                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
 						<tr>
 							<td align="left" class="fontstyle_searchoptions"><?php echo gettext("CallPlan");?> :</td>
 							<td align="left" class="fontstyle_searchoptions"><INPUT TYPE="text" NAME="entertariffgroup" value="<?php echo $entertariffgroup?>" size="4" class="form_input_text">&nbsp;<a href="#" onclick="window.open('A2B_entity_tariffgroup.php?popup_select=2&popup_formname=myForm&popup_fieldname=entertariffgroup' , 'CallPlanSelection','scrollbars=1,width=550,height=330,top=20,left=100');"><img src="<?php echo Images_Path;?>/icon_arrow_orange.gif"></a></td>
@@ -80,7 +82,9 @@
 							<td align="left" class="fontstyle_searchoptions"><INPUT TYPE="text" NAME="enterratecard" value="<?php echo $enterratecard?>" size="4" class="form_input_text">&nbsp;<a href="#" onclick="window.open('A2B_entity_def_ratecard.php?popup_select=2&popup_formname=myForm&popup_fieldname=enterratecard' , 'RatecardSelection','scrollbars=1,width=550,height=330,top=20,left=100');"><img src="<?php echo Images_Path;?>/icon_arrow_orange.gif"></a></td>
 						</tr>
 					</table>
-				</tr>
+<?php } ?>
+
+                </tr>
 			</table>
 			</td>
 			</tr>
