Changeset 1034
- Timestamp:
- 09/17/08 08:11:52 (4 months ago)
- Files:
-
- trunk/admin/Public/A2B_entity_campaign.php (modified) (4 diffs)
- trunk/admin/Public/A2B_entity_phonelist.php (modified) (5 diffs)
- trunk/admin/Public/form_data/FG_var_campaign.inc (modified) (7 diffs)
- trunk/admin/Public/form_data/FG_var_card.inc (modified) (6 diffs)
- trunk/admin/Public/form_data/FG_var_phonelist.inc (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/admin/Public/A2B_entity_campaign.php
r777 r1034 1 1 <?php 2 exit;3 2 include ("../lib/admin.defines.php"); 4 3 include ("../lib/admin.module.access.php"); … … 7 6 include ("../lib/admin.smarty.php"); 8 7 9 if (! has_rights (ACX_PREDICTIVE_DIALER)){ 8 9 if (! has_rights (ACX_PREDICTIVE_DIALER)) { 10 10 Header ("HTTP/1.0 401 Unauthorized"); 11 11 Header ("Location: PP_error.php?c=accessdenied"); … … 22 22 23 23 24 if ($id!="" || !is_null($id)) {24 if ($id!="" || !is_null($id)) { 25 25 $HD_Form -> FG_EDITION_CLAUSE = str_replace("%id", "$id", $HD_Form -> FG_EDITION_CLAUSE); 26 26 } … … 57 57 58 58 59 60 61 ?>trunk/admin/Public/A2B_entity_phonelist.php
r777 r1034 1 1 <?php 2 exit;3 2 include ("../lib/admin.defines.php"); 4 3 include ("../lib/admin.module.access.php"); … … 7 6 include ("../lib/admin.smarty.php"); 8 7 9 if (! has_rights (ACX_PREDICTIVE_DIALER)){ 8 9 if (! has_rights (ACX_PREDICTIVE_DIALER)) { 10 10 Header ("HTTP/1.0 401 Unauthorized"); 11 11 Header ("Location: PP_error.php?c=accessdenied"); … … 23 23 24 24 25 if ($id!="" || !is_null($id)) {25 if ($id!="" || !is_null($id)) { 26 26 $HD_Form -> FG_EDITION_CLAUSE = str_replace("%id", "$id", $HD_Form -> FG_EDITION_CLAUSE); 27 27 } … … 49 49 50 50 // #### CREATE FORM OR LIST 51 //$HD_Form -> CV_TOPVIEWER = "menu";52 51 if (strlen($_GET["menu"])>0) $_SESSION["menu"] = $_GET["menu"]; 53 52 … … 59 58 60 59 61 62 ?>trunk/admin/Public/form_data/FG_var_campaign.inc
r1 r1034 3 3 getpost_ifset(array('id', 'campaign_name', 'startingdate', 'expirationdate', 'id_trunk', 'description')); 4 4 5 $plang='en';6 5 7 6 $HD_Form = new FormHandler("cc_campaign","Campaign"); 8 7 9 8 $HD_Form -> FG_DEBUG = 0; 10 // FAQ11 9 $HD_Form -> FG_TABLE_DEFAULT_ORDER = " campaign_name"; 12 10 $HD_Form -> FG_TABLE_DEFAULT_SENS = "DESC"; … … 17 15 $HD_Form -> AddViewElement(gettext("TRUNK"), "id_trunk", "12%", "center", "sort", "15", "lie", "cc_trunk", "trunkcode", "id_trunk='%id'", "%1"); 18 16 $HD_Form -> AddViewElement(gettext("USED MINUTE"), "secondusedreal", "10%", "center", "SORT", "30", "", "", "", "", "", "display_minute"); 19 $HD_Form -> AddViewElement(gettext(" nb_callmade"), "nb_callmade", "8%", "center", "SORT", "30");17 $HD_Form -> AddViewElement(gettext("AMOUT CALLS"), "nb_callmade", "8%", "center", "SORT", "30"); 20 18 21 19 … … 33 31 34 32 33 35 34 $HD_Form -> AddEditElement (gettext("CAMPAIGN NAME"), 36 35 "campaign_name", … … 43 42 44 43 // TODO integrate in new framework 45 if ($form_action=="ask-add") {44 if ($form_action=="ask-add") { 46 45 $begin_date = date("Y"); 47 46 $begin_date_plus = date("Y")+25; … … 93 92 94 93 95 if (DB_TYPE == "postgres") {94 if (DB_TYPE == "postgres") { 96 95 $HD_Form -> FG_QUERY_ADITION_HIDDEN_FIELDS = ""; 97 96 $HD_Form -> FG_QUERY_ADITION_HIDDEN_VALUE = ""; 98 } else{97 } else { 99 98 $HD_Form -> FG_QUERY_ADITION_HIDDEN_FIELDS = "creationdate "; 100 99 $HD_Form -> FG_QUERY_ADITION_HIDDEN_VALUE = "now()"; … … 107 106 $HD_Form -> FG_INTRO_TEXT_ASK_DELETION = gettext("If you really want remove this")." ".$HD_Form->FG_INSTANCE_NAME.", ".gettext("click on the delete button."); 108 107 $HD_Form -> FG_INTRO_TEXT_ADD = gettext("you can add easily a new")." ".$HD_Form->FG_INSTANCE_NAME.".<br>".gettext("Fill the following fields and confirm by clicking on the button add."); 109 110 111 112 108 113 109 … … 124 120 $HD_Form -> FG_GO_LINK_AFTER_ACTION_EDIT = $_SERVER['PHP_SELF']."?atmenu=document&stitle=Document&wh=AC&id="; 125 121 $HD_Form -> FG_GO_LINK_AFTER_ACTION_DELETE = $_SERVER['PHP_SELF']."?atmenu=document&stitle=Document&wh=AC&id="; 126 ?> 122 123 124 trunk/admin/Public/form_data/FG_var_card.inc
r1021 r1034 51 51 52 52 $simultaccess_list_r = array(); 53 $simultaccess_list_r["1"] = array( "1", gettext("SIMULTANEOUS ACCESS")); 53 54 $simultaccess_list_r["0"] = array( "0", gettext("INDIVIDUAL ACCESS")); 54 $simultaccess_list_r["1"] = array( "1", gettext("SIMULTANEOUS ACCESS"));55 55 56 56 … … 260 260 } 261 261 262 $maxi=''; 263 $maxi2=''; 264 $maxi3=''; 265 if (isset($form_action) && $form_action=="ask-add"){ 262 $maxi = ''; 263 $maxi2 = ''; 264 $maxi3 = ''; 265 266 if (isset($form_action) && $form_action=="ask-add") { 266 267 if (!is_numeric($cardnumberlenght_list)) $cardnumberlenght_list = LEN_CARDNUMBER; 267 268 $array_card_generated = gen_card_with_alias("cc_card", 0, $cardnumberlenght_list); 268 269 269 $maxi = "value='".$array_card_generated[0]."'"; 270 270 $maxi2 = "value='".$array_card_generated[1]."'"; … … 313 313 314 314 $balance_access = 'readonly'; 315 if ($form_action =="ask-add" || $form_action=="add") {315 if ($form_action =="ask-add" || $form_action=="add") { 316 316 $balance_access = ''; 317 } else {317 } else { 318 318 $balance_access = 'readonly'; 319 319 } … … 372 372 373 373 374 /*375 // The campaign for predictive dialer is removing for now, as this feature arent supported anymore376 // this is not fully depreciated377 374 $HD_Form -> AddEditElement (gettext("CAMPAIGN"), 378 375 "id_campaign", … … 384 381 "campaign_name, id", 385 382 "", "", "%1", "", "", "", '<OPTION value="-1" selected>'.gettext("NOT DEFINED").'</OPTION>' ); 386 */ 383 387 384 388 385 $HD_Form -> AddEditElement (gettext("CALLBACK"), … … 856 853 857 854 858 $HD_Form -> FieldEditElement ('username, useralias, uipass,id_group, credit, language, tariff, id_didgroup, id_agent, callback, status, activatedbyuser, simultaccess, currency, runservice, autorefill, initialbalance, typepaid, creditlimit, firstusedate, enableexpire, expirationdate, expiredays, voicemail_permitted, voicemail_activated, invoiceday, vat, lastname, firstname, email, address, city, state, country, zipcode, id_timezone, phone, fax, sip_buddy, iax_buddy, mac_addr, inuse, template_invoice, template_outstanding, credit_notification, notify_email, email_notification , company_name , company_website ,VAT_RN , traffic, traffic_target' );855 $HD_Form -> FieldEditElement ('username, useralias, uipass,id_group, credit, language, tariff, id_didgroup, id_agent, id_campaign, callback, status, activatedbyuser, simultaccess, currency, runservice, autorefill, initialbalance, typepaid, creditlimit, firstusedate, enableexpire, expirationdate, expiredays, voicemail_permitted, voicemail_activated, invoiceday, vat, lastname, firstname, email, address, city, state, country, zipcode, id_timezone, phone, fax, sip_buddy, iax_buddy, mac_addr, inuse, template_invoice, template_outstanding, credit_notification, notify_email, email_notification , company_name , company_website ,VAT_RN , traffic, traffic_target' ); 859 856 860 857 trunk/admin/Public/form_data/FG_var_phonelist.inc
r792 r1034 1 1 <?php 2 2 3 getpost_ifset(array('id', 'numbertodial', 'id_cc_campaign', 'name', 'activated', 'last_attempt', 'inuse', 'additionalinfo')); 3 4 4 $plang='en';5 5 6 6 $HD_Form = new FormHandler("cc_phonelist","phonelist"); 7 7 8 8 $HD_Form -> FG_DEBUG = 0; 9 // FAQ10 9 $HD_Form -> FG_TABLE_DEFAULT_ORDER = "numbertodial"; 11 10 $HD_Form -> FG_TABLE_DEFAULT_SENS = "DESC"; … … 41 40 42 41 43 44 45 42 $HD_Form -> AddEditElement (gettext("Phone Number"), 46 43 "numbertodial", … … 71 68 "" , "", "", "", "" , "", "", ""); 72 69 73 if ($form_action=="ask-add" || $form_action=="add") {70 if ($form_action=="ask-add" || $form_action=="add") { 74 71 $begin_date = date("Y"); 75 72 $begin_date_plus = date("Y")+25; … … 79 76 80 77 $HD_Form -> AddEditElement (gettext("LAST ATTEMPT DATE"), 81 "last_attempt",82 '$value',83 "INPUT",84 "size=40 maxlength=40 $comp_date",85 "10",86 gettext("Insert the last attempt date"),87 "" , "", "", "", "", "", "res_display_dateformat", gettext("Format: YYYY-MM-DD HH:MM:SS. For instance, '2004-12-31 00:00:00'") );78 "last_attempt", 79 '$value', 80 "INPUT", 81 "size=40 maxlength=40 $comp_date", 82 "10", 83 gettext("Insert the last attempt date"), 84 "" , "", "", "", "", "", "res_display_dateformat", gettext("Format: YYYY-MM-DD HH:MM:SS. For instance, '2004-12-31 00:00:00'") ); 88 85 } 89 86 … … 107 104 "" , "", "", "", "" , "", "", ""); 108 105 109 if ($form_action!="ask-add" && $form_action!="add") {106 if ($form_action!="ask-add" && $form_action!="add") { 110 107 $HD_Form -> AddEditElement (gettext("INUSE"), 111 108 "inuse", … … 116 113 gettext("Choose the status of this phonenumber"), 117 114 "" , "", "","In use :1, - Not in use :0", "" , "", "", ""); 118 } 115 } 116 119 117 if ($form_action=="ask-add" || $form_action=="add") 120 118 $HD_Form -> FieldEditElement ('numbertodial, id_cc_campaign, name, last_attempt, enable, additionalinfo'); … … 123 121 else 124 122 $HD_Form -> FieldEditElement ('numbertodial, id_cc_campaign, name, enable, additionalinfo'); 125 123 126 124 $HD_Form -> FG_EDITION_CLAUSE = " id='%id'"; 127 125 128 126 129 if (DB_TYPE == "postgres") {127 if (DB_TYPE == "postgres") { 130 128 $HD_Form -> FG_QUERY_ADITION_HIDDEN_FIELDS = ""; 131 129 $HD_Form -> FG_QUERY_ADITION_HIDDEN_VALUE = ""; 132 } else{130 } else { 133 131 $HD_Form -> FG_QUERY_ADITION_HIDDEN_FIELDS = "creationdate "; 134 132 $HD_Form -> FG_QUERY_ADITION_HIDDEN_VALUE = "now()"; … … 155 153 $HD_Form -> FG_GO_LINK_AFTER_ACTION_EDIT = $_SERVER['PHP_SELF']."?atmenu=document&stitle=Document&wh=AC&id="; 156 154 $HD_Form -> FG_GO_LINK_AFTER_ACTION_DELETE = $_SERVER['PHP_SELF']."?atmenu=document&stitle=Document&wh=AC&id="; 157 ?> 155 156
