abasic

Member

Last active 13 years ago

  1. 13 years ago
    Fri Mar 18 08:25:17 2011
    abasic started the conversation Missed calls list.

    Hello there,
    I would like to get missed calls list from queues.
    Is that possible?

  2. Tue Mar 15 14:19:22 2011
    abasic posted in Fop 2.11 - Visual Phonebook.

    PHP is enabled i followed instructions on http://wiki.centos.org/HowTos/PHP_5.1_To_5.2, and my test page is fine!

    This is what i get after click on Phonebook link:

    $page_title>\n"; } else { echo " \n"; } ?>
    "yes") { die("no way"); } if($context=="") { $addcontext=""; } else { $addcontext="${context}_"; } // Sanitize Input $addcontext = ereg_replace("\.[\.]+", "", $addcontext); $addcontext = ereg_replace("^[\/]+", "", $addcontext); $addcontext = ereg_replace("^[A-Za-z][:\|][\/]?", "", $addcontext); $extension = ereg_replace("'", "", $extension ); $extension = ereg_replace("\"", "", $extension ); $extension = ereg_replace(";", "", $extension ); $grid = new dbgrid($db); $grid->set_table('visual_phonebook'); //$grid->set_caption(trans('Manage Phonebook')); $grid->salt("dldli3ks"); $grid->hide_field('id'); $grid->set_per_page(5); $grid->set_condition("context='$context' AND (owner='$extension' OR (owner<>'$extension' AND private='no'))"); $grid->set_default_values("context",$context); $grid->set_default_values("owner",$extension); $grid->set_input_type("context","hidden"); $grid->set_input_type("owner","hidden"); $grid->no_edit_field("context"); $grid->no_edit_field("owner"); $grid->hide_field('context'); $grid->hide_field('owner'); $grid->edit_field_condition("private",'owner','=',$extension); $fieldname = Array(); $fieldname[]=trans('First Name'); $fieldname[]=trans('Last Name'); $fieldname[]=trans('Company'); $fieldname[]=trans('Phone 1'); $fieldname[]=trans('Phone 2'); $fieldname[]=trans('Private'); $fieldname[]=trans('Picture'); //$grid->set_fields ( "id,firstname,lastname,company,phone1,phone2,owner,private,picture"); $grid->set_display_name( array('firstname','lastname','company','phone1','phone2','private','picture'), $fieldname); $grid->allow_view(true); $grid->allow_edit(true); $grid->allow_delete(true); $grid->allow_add(true); $grid->allow_export(true); $grid->allow_import(true); $grid->allow_search(true); $grid->set_search_fields(array('firstname','lastname','company','phone1','phone2')); $grid->set_input_type('picture','img'); //$grid->set_input_type('owner','select',array($extension,'')); $grid->force_import_field("context",$context); $grid->force_import_field("owner",$extension); $grid->add_display_filter('picture','display_image'); $grid->add_display_filter('phone1','clickdial'); $grid->add_display_filter('phone2','clickdial'); //$grid->add_display_filter('owner','display_private'); //$grid->add_edit_filter('owner','display_private'); $grid->set_user_directory('./uploads/'.$addcontext); //$grid->add_validation_type('email','email'); $grid->show_grid(); function display_image($img) { global $addcontext; if(is_file("./uploads/${addcontext}$img")) { return ""; } else { return "n/a"; } } function display_private($owner) { if($owner=="") { return trans('no'); } else { return trans('yes'); } } function clickdial($number) { return "$number"; } ?>
  3. Tue Mar 15 13:46:32 2011
    abasic posted in Fop 2.11 - Visual Phonebook.

    I have same problem!
    CentOS 5.5
    PHP 5.2.10 (short_open_tag = On)
    FOP 2.20