示例#1
0
<?php

require_once "./lib/defines.php";
require_once "./lib/module.access.php";
require_once "a2blib/Class.CallShop.inc.php";
require_once "a2blib/Form/Class.SelectionForm.inc.php";
require_once "a2blib/Form/Class.SqlRefField.inc.php";
$menu_section = 'menu_agents';
$CS_Form = new CallshopPage();
$CS_Form->checkRights(ACX_AGENTS);
$CS_Form->init();
// TODO: select agent!
$CS_Form->ask_agent = true;
$SEL_Form = new SelectionForm();
$SEL_Form->init();
$SEL_Form->model[] = new SqlRefField(_("Agent"), 'agentid', 'cc_agent', 'id', 'name');
$CS_Form->agentid = $SEL_Form->getpost_single('agentid');
$PAGE_ELEMS[] =& $SEL_Form;
if (!empty($CS_Form->agentid)) {
    $PAGE_ELEMS[] =& $CS_Form;
}
require "PP_page.inc.php";
示例#2
0
<?php

require_once "./lib/defines.php";
require_once "./lib/module.access.php";
require_once DIR_COMMON . "Class.CallShop.inc.php";
require_once DIR_COMMON . "Form/Class.SelectionForm.inc.php";
require_once DIR_COMMON . "Form/Class.SqlRefField.inc.php";
$menu_section = 'menu_booths';
$CS_Form = new CallshopPage();
$CS_Form->checkRights(ACX_ACCESS);
$CS_Form->init();
// TODO: select agent!
$CS_Form->ask_agent = false;
$CS_Form->agentid = $_SESSION['agent_id'];
$PAGE_ELEMS[] =& $CS_Form;
require "PP_page.inc.php";