Changeset 1034

Show
Ignore:
Timestamp:
09/17/08 08:11:52 (4 months ago)
Author:
areski
Message:

Auto Dialer

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/admin/Public/A2B_entity_campaign.php

    r777 r1034  
    11<?php 
    2 exit; 
    32include ("../lib/admin.defines.php"); 
    43include ("../lib/admin.module.access.php"); 
     
    76include ("../lib/admin.smarty.php"); 
    87 
    9 if (! has_rights (ACX_PREDICTIVE_DIALER)){  
     8 
     9if (! has_rights (ACX_PREDICTIVE_DIALER)) { 
    1010        Header ("HTTP/1.0 401 Unauthorized"); 
    1111        Header ("Location: PP_error.php?c=accessdenied");           
     
    2222 
    2323 
    24 if ($id!="" || !is_null($id)){         
     24if ($id!="" || !is_null($id)) {        
    2525        $HD_Form -> FG_EDITION_CLAUSE = str_replace("%id", "$id", $HD_Form -> FG_EDITION_CLAUSE);        
    2626} 
     
    5757 
    5858 
    59  
    60  
    61 ?> 
  • trunk/admin/Public/A2B_entity_phonelist.php

    r777 r1034  
    11<?php 
    2 exit; 
    32include ("../lib/admin.defines.php"); 
    43include ("../lib/admin.module.access.php"); 
     
    76include ("../lib/admin.smarty.php"); 
    87 
    9 if (! has_rights (ACX_PREDICTIVE_DIALER)){  
     8 
     9if (! has_rights (ACX_PREDICTIVE_DIALER)) {  
    1010           Header ("HTTP/1.0 401 Unauthorized"); 
    1111           Header ("Location: PP_error.php?c=accessdenied");        
     
    2323 
    2424 
    25 if ($id!="" || !is_null($id)){         
     25if ($id!="" || !is_null($id)) {        
    2626        $HD_Form -> FG_EDITION_CLAUSE = str_replace("%id", "$id", $HD_Form -> FG_EDITION_CLAUSE);        
    2727} 
     
    4949 
    5050// #### CREATE FORM OR LIST 
    51 //$HD_Form -> CV_TOPVIEWER = "menu"; 
    5251if (strlen($_GET["menu"])>0) $_SESSION["menu"] = $_GET["menu"]; 
    5352 
     
    5958 
    6059 
    61  
    62 ?> 
  • trunk/admin/Public/form_data/FG_var_campaign.inc

    r1 r1034  
    33getpost_ifset(array('id', 'campaign_name', 'startingdate', 'expirationdate', 'id_trunk', 'description')); 
    44 
    5 $plang='en'; 
    65 
    76$HD_Form = new FormHandler("cc_campaign","Campaign"); 
    87 
    98$HD_Form -> FG_DEBUG = 0; 
    10 // FAQ 
    119$HD_Form -> FG_TABLE_DEFAULT_ORDER = " campaign_name"; 
    1210$HD_Form -> FG_TABLE_DEFAULT_SENS = "DESC"; 
     
    1715$HD_Form -> AddViewElement(gettext("TRUNK"), "id_trunk", "12%", "center", "sort", "15", "lie", "cc_trunk", "trunkcode", "id_trunk='%id'", "%1"); 
    1816$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"); 
    2018 
    2119 
     
    3331 
    3432 
     33 
    3534$HD_Form -> AddEditElement (gettext("CAMPAIGN NAME"), 
    3635        "campaign_name", 
     
    4342 
    4443// TODO integrate in new framework 
    45 if ($form_action=="ask-add")
     44if ($form_action=="ask-add")
    4645        $begin_date = date("Y"); 
    4746        $begin_date_plus = date("Y")+25; 
     
    9392 
    9493 
    95 if (DB_TYPE == "postgres")
     94if (DB_TYPE == "postgres")
    9695        $HD_Form -> FG_QUERY_ADITION_HIDDEN_FIELDS = ""; 
    9796        $HD_Form -> FG_QUERY_ADITION_HIDDEN_VALUE  = ""; 
    98 }else
     97} else
    9998        $HD_Form -> FG_QUERY_ADITION_HIDDEN_FIELDS = "creationdate "; 
    10099        $HD_Form -> FG_QUERY_ADITION_HIDDEN_VALUE  = "now()"; 
     
    107106$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."); 
    108107$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  
    112108 
    113109 
     
    124120$HD_Form -> FG_GO_LINK_AFTER_ACTION_EDIT = $_SERVER['PHP_SELF']."?atmenu=document&stitle=Document&wh=AC&id="; 
    125121$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  
    5151 
    5252$simultaccess_list_r = array(); 
     53$simultaccess_list_r["1"] = array( "1", gettext("SIMULTANEOUS ACCESS")); 
    5354$simultaccess_list_r["0"] = array( "0", gettext("INDIVIDUAL ACCESS")); 
    54 $simultaccess_list_r["1"] = array( "1", gettext("SIMULTANEOUS ACCESS")); 
    5555 
    5656 
     
    260260} 
    261261 
    262 $maxi=''; 
    263 $maxi2=''; 
    264 $maxi3=''; 
    265 if (isset($form_action) && $form_action=="ask-add"){ 
     262$maxi   = ''; 
     263$maxi2  = ''; 
     264$maxi3  = ''; 
     265 
     266if (isset($form_action) && $form_action=="ask-add") { 
    266267        if (!is_numeric($cardnumberlenght_list))        $cardnumberlenght_list = LEN_CARDNUMBER; 
    267268        $array_card_generated  = gen_card_with_alias("cc_card", 0, $cardnumberlenght_list); 
    268  
    269269        $maxi = "value='".$array_card_generated[0]."'"; 
    270270        $maxi2 = "value='".$array_card_generated[1]."'"; 
     
    313313 
    314314$balance_access = 'readonly'; 
    315 if ($form_action =="ask-add" || $form_action=="add")
     315if ($form_action =="ask-add" || $form_action=="add")
    316316        $balance_access = ''; 
    317 }else { 
     317} else { 
    318318        $balance_access = 'readonly'; 
    319319} 
     
    372372 
    373373 
    374 /* 
    375 // The campaign for predictive dialer is removing for now, as this feature arent supported anymore 
    376 // this is not fully depreciated 
    377374$HD_Form -> AddEditElement (gettext("CAMPAIGN"), 
    378375                           "id_campaign", 
     
    384381                           "campaign_name, id", 
    385382                           "", "", "%1", "", "", "", '<OPTION  value="-1" selected>'.gettext("NOT DEFINED").'</OPTION>' ); 
    386 */ 
     383 
    387384 
    388385$HD_Form -> AddEditElement (gettext("CALLBACK"), 
     
    856853 
    857854 
    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' ); 
    859856 
    860857 
  • trunk/admin/Public/form_data/FG_var_phonelist.inc

    r792 r1034  
    11<?php 
     2 
    23getpost_ifset(array('id', 'numbertodial', 'id_cc_campaign', 'name', 'activated', 'last_attempt', 'inuse', 'additionalinfo')); 
    34 
    4 $plang='en'; 
    55 
    66$HD_Form = new FormHandler("cc_phonelist","phonelist"); 
    77 
    88$HD_Form -> FG_DEBUG = 0; 
    9 // FAQ 
    109$HD_Form -> FG_TABLE_DEFAULT_ORDER = "numbertodial"; 
    1110$HD_Form -> FG_TABLE_DEFAULT_SENS = "DESC"; 
     
    4140 
    4241 
    43  
    44  
    4542$HD_Form -> AddEditElement (gettext("Phone Number"), 
    4643        "numbertodial", 
     
    7168        "" , "", "", "", "" , "", "", ""); 
    7269 
    73 if ($form_action=="ask-add" || $form_action=="add")
     70if ($form_action=="ask-add" || $form_action=="add")
    7471        $begin_date = date("Y"); 
    7572        $begin_date_plus = date("Y")+25; 
     
    7976 
    8077        $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'") ); 
    8885} 
    8986 
     
    107104        "" , "", "", "", "" , "", "", ""); 
    108105 
    109 if ($form_action!="ask-add" && $form_action!="add")
     106if ($form_action!="ask-add" && $form_action!="add")
    110107        $HD_Form -> AddEditElement (gettext("INUSE"), 
    111108                "inuse", 
     
    116113                gettext("Choose the status of this phonenumber"), 
    117114                "" , "", "","In use :1, - Not in use :0", "" , "", "", ""); 
    118 }                                                                                                                                                                                                                                                             
     115}                                
     116                                                                                                                                                                                                                              
    119117if ($form_action=="ask-add" || $form_action=="add")  
    120118        $HD_Form -> FieldEditElement ('numbertodial, id_cc_campaign, name, last_attempt, enable, additionalinfo'); 
     
    123121else 
    124122        $HD_Form -> FieldEditElement ('numbertodial, id_cc_campaign, name, enable, additionalinfo'); 
    125          
     123 
    126124$HD_Form -> FG_EDITION_CLAUSE = " id='%id'"; 
    127125 
    128126 
    129 if (DB_TYPE == "postgres")
     127if (DB_TYPE == "postgres")
    130128        $HD_Form -> FG_QUERY_ADITION_HIDDEN_FIELDS = ""; 
    131129        $HD_Form -> FG_QUERY_ADITION_HIDDEN_VALUE  = "";         
    132 }else
     130} else
    133131        $HD_Form -> FG_QUERY_ADITION_HIDDEN_FIELDS = "creationdate "; 
    134132        $HD_Form -> FG_QUERY_ADITION_HIDDEN_VALUE  = "now()";    
     
    155153$HD_Form -> FG_GO_LINK_AFTER_ACTION_EDIT = $_SERVER['PHP_SELF']."?atmenu=document&stitle=Document&wh=AC&id="; 
    156154$HD_Form -> FG_GO_LINK_AFTER_ACTION_DELETE = $_SERVER['PHP_SELF']."?atmenu=document&stitle=Document&wh=AC&id="; 
    157 ?> 
     155 
     156 


Google