Changeset 1258
- Timestamp:
- 11/20/08 15:21:27 (2 months ago)
- Files:
-
- trunk/admin/Public/A2B_entity_prefix.php (modified) (2 diffs)
- trunk/admin/Public/A2B_entity_tariffgroup.php (modified) (1 diff)
- trunk/admin/Public/form_data/FG_var_def_ratecard.inc (modified) (1 diff)
- trunk/admin/Public/form_data/FG_var_prefix.inc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/admin/Public/A2B_entity_prefix.php
r1254 r1258 36 36 $smarty->display('main.tpl'); 37 37 38 if ($popup_select){38 if ($popup_select){ 39 39 ?> 40 <SCRIPT LANGUAGE="javascript"> 41 <!-- Begin 42 function sendValue(selvalue){ 43 window.opener.document.<?php echo $popup_formname ?>.<?php echo $popup_fieldname ?>.value = selvalue; 44 window.close(); 40 <SCRIPT LANGUAGE="javascript"> 41 <!-- Begin 42 function sendValue(selvalue){ 43 window.opener.document.<?php echo $popup_formname ?>.<?php echo $popup_fieldname ?>.value = selvalue; 44 window.close(); 45 } 46 // End --> 47 </script> 48 <?php 45 49 } 46 // End -->47 </script>48 <?php49 }50 50 51 51 52 52 // #### HELP SECTION 53 if (!($popup_select==1) && ($form_action=='list')) echo $CC_help_list_prefix; 54 elseif (!($popup_select==1)) echo $CC_help_edit_prefix; 55 53 if ($form_action=='list') { 54 if (!$popup_select) echo $CC_help_list_prefix; 55 } else { 56 echo $CC_help_list_tariffgroup; 57 } 56 58 57 59 // #### TOP SECTION PAGE … … 66 68 67 69 // #### FOOTER SECTION 68 if (! ($popup_select==1)) $smarty->display('footer.tpl');70 if (!$popup_select) $smarty->display('footer.tpl'); 69 71 70 72 71 73 72 73 ?>trunk/admin/Public/A2B_entity_tariffgroup.php
r777 r1258 65 65 66 66 // #### FOOTER SECTION 67 $smarty->display('footer.tpl');67 if (!$popup_select) $smarty->display('footer.tpl'); trunk/admin/Public/form_data/FG_var_def_ratecard.inc
r1257 r1258 177 177 "13", 178 178 gettext("Insert the dialing prefix, such as for UK '44' or for US '1' "), 179 "" , "", "", "", "" , "A2B_entity_prefix.php?popup_select= 1&", ", 'prefix','width=550,height=340,top=20,left=100,scrollbars=1'", gettext("A) Add destination prefixes, ie '441' for UK Landlines.<br>B) Use 'defaultprefix' to setup a rate for all destinations where a specific rate is not provided.<br>C) if you ADD a rate, NOT an EDIT, you can define a range of prefixes. '32484-32487' adds all prefixes between 32484 and 32487. '32484,32386,32488' would add only the individual prefixes listed.<br>D) Asterisk extensions style + POSIX regex syntaxes are supported. '_447[7-9]XXXXXXXX' matches 12-digit UK mobiles. '_X{0,3}(112|999|911)' matches any 0-3 digits followed an emergency number. '_' can be used to add length, and raise the priority."));179 "" , "", "", "", "" , "A2B_entity_prefix.php?popup_select=2&", ", 'prefix','width=550,height=340,top=20,left=100,scrollbars=1'", gettext("A) Add destination prefixes, ie '441' for UK Landlines.<br>B) Use 'defaultprefix' to setup a rate for all destinations where a specific rate is not provided.<br>C) if you ADD a rate, NOT an EDIT, you can define a range of prefixes. '32484-32487' adds all prefixes between 32484 and 32487. '32484,32386,32488' would add only the individual prefixes listed.<br>D) Asterisk extensions style + POSIX regex syntaxes are supported. '_447[7-9]XXXXXXXX' matches 12-digit UK mobiles. '_X{0,3}(112|999|911)' matches any 0-3 digits followed an emergency number. '_' can be used to add length, and raise the priority.")); 180 180 181 181 trunk/admin/Public/form_data/FG_var_prefix.inc
r1257 r1258 30 30 $HD_Form -> CV_DISPLAY_FILTER_ABOVE_TABLE = false; 31 31 32 if (!($popup_select==1)) { 33 $HD_Form -> FG_EDITION = true; 34 $HD_Form -> FG_DELETION = true; 35 } else { 36 $HD_Form -> CV_FOLLOWPARAMETERS= "&popup_select=".$_GET['popup_select']."&popup_formname=".$_GET['popup_formname']."&popup_fieldname=".$_GET['popup_fieldname']; 37 $HD_Form ->FG_LIMITE_DISPLAY=7; 32 33 if ($popup_select) { 34 $HD_Form -> FG_LIMITE_DISPLAY = 7; 35 $HD_Form -> CV_FOLLOWPARAMETERS = "&popup_select=" . $_GET['popup_select'] . "&popup_formname=" . $_GET['popup_formname'] . "&popup_fieldname=" . $_GET['popup_fieldname']; 36 38 37 $HD_Form -> FG_OTHER_BUTTON1 = true; 39 38 $HD_Form -> FG_OTHER_BUTTON1_ALT = '<font color="red"><select></font>'; 40 39 $HD_Form -> FG_OTHER_BUTTON1_IMG = ''; 41 42 $HD_Form -> FG_OTHER_BUTTON1_LINK = "javascript:sendValue('|col1|');"; 40 41 if ($popup_select == 1) 42 $HD_Form -> FG_OTHER_BUTTON1_LINK = "javascript:sendValue('|param|');"; 43 elseif ($popup_select == 2) 44 $HD_Form -> FG_OTHER_BUTTON1_LINK = "javascript:sendValue('|col0|');"; 43 45 } 46 else { 47 $HD_Form -> FG_EDITION = true; 48 $HD_Form -> FG_DELETION = true; 49 } 50 44 51 45 52
