本文整理汇总了PHP中common::generateCopyright方法的典型用法代码示例。如果您正苦于以下问题:PHP common::generateCopyright方法的具体用法?PHP common::generateCopyright怎么用?PHP common::generateCopyright使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类common
的用法示例。
在下文中一共展示了common::generateCopyright方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: init
function init()
{
global $locate, $config;
$objResponse = new xajaxResponse();
$objResponse->addAssign("divNav", "innerHTML", common::generateManageNav($skin, $_SESSION['curuser']['country'], $_SESSION['curuser']['language']));
$objResponse->addAssign("divCopyright", "innerHTML", common::generateCopyright($skin));
return $objResponse;
}
示例2: init
/**
* function to init import page
*
*
* @return $objResponse
*
*/
function init($fileName)
{
global $locate, $config;
$objResponse = new xajaxResponse();
$objResponse->addAssign("spanSelectFile", "innerHTML", $locate->Translate("please_select_file"));
$file_list = getExistfilelist();
$objResponse->addScript("addOption('filelist','0','" . $locate->Translate('select a existent file') . "');");
foreach ($file_list as $file) {
$objResponse->addScript("addOption('filelist','" . $file['fileid'] . "','" . $file['originalname'] . "');");
}
$objResponse->addAssign("btnUpload", "value", $locate->Translate("upload"));
$objResponse->addAssign("btnImportData", "value", $locate->Translate("import"));
$objResponse->addAssign("spanFileManager", "innerHTML", $locate->Translate("file_manager"));
$objResponse->addAssign("hidOnUploadMsg", "value", $locate->Translate("uploading"));
$objResponse->addAssign("hidOnSubmitMsg", "value", $locate->Translate("data_importing"));
if ($_SESSION['curuser']['usertype'] == 'admin') {
$tableList = "<select name='sltTable' id='sltTable' onchange='selectTable(this.value);' >\r\n\t\t\t\t\t\t\t<option value=''>" . $locate->Translate("selecttable") . "</option>\r\n\t\t\t\t\t\t\t<option value='resellerrate'>resellerrate</option>\r\n\t\t\t\t\t\t\t<option value='callshoprate'>callshoprate</option>\r\n\t\t\t\t\t\t\t<option value='myrate'>myrate</option>\r\n\t\t\t\t\t\t</select>";
} elseif ($_SESSION['curuser']['usertype'] == 'reseller') {
$tableList = "<select name='sltTable' id='sltTable' onchange='selectTable(this.value);' >\r\n\t\t\t\t\t\t\t<option value=''>" . $locate->Translate("selecttable") . "</option>\r\n\t\t\t\t\t\t\t<option value='callshoprate'>callshoprate</option>\r\n\t\t\t\t\t\t\t<option value='myrate'>myrate</option>\r\n\t\t\t\t\t\t</select>";
} elseif ($_SESSION['curuser']['usertype'] == 'groupadmin') {
$tableList = "<select name='sltTable' id='sltTable' onchange='selectTable(this.value);' >\r\n\t\t\t\t\t\t\t<option value=''>" . $locate->Translate("selecttable") . "</option>\r\n\t\t\t\t\t\t\t<option value='myrate'>myrate</option>\r\n\t\t\t\t\t\t</select>";
}
$objResponse->addAssign("divTables", "innerHTML", $tableList);
$objResponse->addAssign("divNav", "innerHTML", common::generateManageNav($skin));
$objResponse->addAssign("divGrid", "innerHTML", '');
//$objResponse->addScript("xajax_showDivMainRight(document.getElementById('hidFileName').value);");
//$objResponse->loadXML(showDivMainRight($fileName));
//$objResponse->addAssign("divDiallistImport", "innerHTML", '');
$objResponse->addAssign("divCopyright", "innerHTML", common::generateCopyright($skin));
$objResponse->loadXML(showDivMainRight($fileName));
if ($_SESSION['curuser']['usertype'] == 'admin') {
// add all reseller
$res = astercrm::getAll('resellergroup');
$objResponse->addScript("addOption('resellerid','0','" . $locate->Translate("All") . "');");
while ($row = $res->fetchRow()) {
if ($config['synchronize']['id_autocrement_byset'] && ($row['id'] < $config['local_host']['minId'] || $row['id'] > $config['local_host']['maxId'])) {
continue;
}
$objResponse->addScript("addOption('resellerid','" . $row['id'] . "','" . $row['resellername'] . "');");
}
} elseif ($_SESSION['curuser']['usertype'] == 'reseller') {
// add self
$objResponse->addScript("addOption('resellerid','" . $_SESSION['curuser']['resellerid'] . "','" . "" . "');");
// add groups
$objResponse->addScript("addOption('groupid','0','" . $locate->Translate("All") . "');");
$res = astercrm::getAll('accountgroup', "resellerid", $_SESSION['curuser']['resellerid']);
while ($row = $res->fetchRow()) {
if ($config['synchronize']['id_autocrement_byset'] && ($row['id'] < $config['local_host']['minId'] || $row['id'] > $config['local_host']['maxId'])) {
continue;
}
$objResponse->addScript("addOption('groupid','" . $row['id'] . "','" . $row['groupname'] . "');");
}
} else {
// add self
$objResponse->addScript("addOption('resellerid','" . $_SESSION['curuser']['resellerid'] . "','" . "" . "');");
$objResponse->addScript("addOption('groupid','" . $_SESSION['curuser']['groupid'] . "','" . "" . "');");
}
$objResponse->addScript("setCampaign();");
return $objResponse;
}
示例3: init
function init($post = '')
{
global $locate;
//,$config,$db;
$aciton = '';
$campaign_id = 0;
if ($post != '') {
$post = explode(',', $post);
foreach ($post as $key => $value) {
if ($value != '') {
$v = explode(':', $value);
if ($v['0'] == 'cid') {
if (is_numeric($v['1'])) {
$campaign_id = $v['1'];
}
} elseif ($v['0'] == 'action') {
$aciton = $v['1'];
}
}
}
}
$objResponse = new xajaxResponse();
$objResponse->addAssign("divNav", "innerHTML", common::generateManageNav($skin, $_SESSION['curuser']['country'], $_SESSION['curuser']['language']));
$objResponse->addAssign("btnDial", "value", $locate->Translate("Dial list"));
$objResponse->addAssign("btnCampaign", "value", $locate->Translate("Campaign"));
$objResponse->addAssign("divCopyright", "innerHTML", common::generateCopyright($skin));
$objResponse->addScript("xajax_showGrid(0," . ROWSXPAGE . ",'','','','grid','','" . $aciton . "'," . $campaign_id . ")");
$noanswer = Customer::getNoanswerCallsNumber();
$objResponse->addAssign("spanRecycleUp", "innerHTML", $locate->Translate("No answer calls and never recycle") . ": {$noanswer}");
$objResponse->addAssign("spanRecycleDown", "innerHTML", $locate->Translate("No answer calls and never recycle") . ": {$noanswer}");
return $objResponse;
}
示例4: init
/**
* initialize page elements
*
*/
function init()
{
global $locate, $config;
$objResponse = new xajaxResponse();
$objResponse->addAssign("divNav", "innerHTML", common::generateManageNav($skin, $_SESSION['curuser']['country'], $_SESSION['curuser']['language']));
$objResponse->addAssign("divCopyright", "innerHTML", common::generateCopyright($skin));
$objResponse->addScript("xajax_showGrid(0," . ROWSXPAGE . ",'','','')");
$objResponse->addAssign("btnContact", "value", $locate->Translate("contact"));
$objResponse->addAssign("btnNote", "value", $locate->Translate("note"));
$objResponse->addAssign("btnCustomerLead", "value", $locate->Translate("customer_leads"));
if ($config['system']['customer_leads'] == 'default_move' || $config['system']['customer_leads'] == 'move') {
$objResponse->addAssign("customerLeadAction", "innerHTML", "<input type=\"button\" onclick=\"xajax_customerLeadsAction('" . $config['system']['customer_leads'] . "',xajax.getFormValues('delGrid'),xajax.getFormValues('searchForm'));\" id=\"btnCustomerlead\" name=\"btnCustomerlead\" value=\"" . $locate->Translate("move_to_customerleads") . "\">");
} else {
if ($config['system']['customer_leads'] == 'default_copy' || $config['system']['customer_leads'] == 'copy') {
$objResponse->addAssign("customerLeadAction", "innerHTML", "<input type=\"button\" onclick=\"xajax_customerLeadsAction('" . $config['system']['customer_leads'] . "',xajax.getFormValues('delGrid'),xajax.getFormValues('searchForm'));\" id=\"btnCustomerlead\" name=\"btnCustomerlead\" value=\"" . $locate->Translate("copy_to_customerleads") . "\">");
} else {
$objResponse->addAssign("customerLeadAction", "innerHTML", "");
}
}
//*******
$objResponse->addAssign("by", "value", $locate->Translate("by"));
//搜索条件
$objResponse->addAssign("search", "value", $locate->Translate("search"));
//搜索内容
//*******
return $objResponse;
}
示例5: init
function init()
{
global $locate;
$objResponse = new xajaxResponse();
$peers = array();
if ($_SESSION['curuser']['usertype'] == 'admin') {
// set all group first
$group = astercrm::getAll('astercrm_accountgroup');
$objResponse->addScript("addOption('groupid',0,'" . $locate->Translate("All") . "');");
while ($group->fetchInto($row)) {
$objResponse->addScript("addOption('groupid','" . $row['id'] . "','" . $row['groupname'] . "');");
}
} else {
// set one group
$objResponse->addScript("addOption('groupid','" . $_SESSION['curuser']['groupid'] . "','" . "" . "');");
// set all account
$account = astercrm::getGroupMemberListByID($_SESSION['curuser']['groupid']);
$objResponse->addScript("addOption('accountid','" . "0" . "','" . "All" . "');");
while ($account->fetchInto($row)) {
$objResponse->addScript("addOption('accountid','" . $row['id'] . "','" . $row['username'] . "');");
}
}
$objResponse->addAssign("divNav", "innerHTML", common::generateManageNav($skin, $_SESSION['curuser']['country'], $_SESSION['curuser']['language']));
$objResponse->addAssign("divCopyright", "innerHTML", common::generateCopyright($skin));
return $objResponse;
}
示例6: init
/**
* initialize page elements
*
*/
function init($customerid = '')
{
global $locate;
$objResponse = new xajaxResponse();
$objResponse->addAssign("divNav", "innerHTML", common::generateManageNav($skin));
$objResponse->addAssign("divCopyright", "innerHTML", common::generateCopyright($skin));
$objResponse->addScript("xajax_showGrid(0," . ROWSXPAGE . ",'','','','grid','','','" . $customerid . "')");
return $objResponse;
}
示例7: init
/**
* initialize page elements
*
*/
function init()
{
global $locate;
$objResponse = new xajaxResponse();
$objResponse->addAssign("divNav", "innerHTML", common::generateManageNav($skin, $_SESSION['curuser']['country'], $_SESSION['curuser']['language']));
$objResponse->addAssign("divCopyright", "innerHTML", common::generateCopyright($skin));
$objResponse->addScript("xajax_showGrid(0," . ROWSXPAGE . ",'','','')");
return $objResponse;
}
示例8: init
/**
* initialize page elements
*
*/
function init()
{
global $locate;
$objResponse = new xajaxResponse();
$objResponse->addAssign("divNav", "innerHTML", common::generateManageNav($skin));
$objResponse->addAssign("divCopyright", "innerHTML", common::generateCopyright($skin));
$objResponse->addAssign("delTable", "value", "");
$objResponse->addAssign("delType", "value", "all");
$objResponse->addAssign("delObject", "value", 'all');
return $objResponse;
}
示例9: init
/**
* initialize page elements
*
*/
function init()
{
global $locate;
$objResponse = new xajaxResponse();
$objResponse->addAssign("divNav", "innerHTML", common::generateManageNav($skin, $_SESSION['curuser']['country'], $_SESSION['curuser']['language']));
$objResponse->addAssign("btnAgentQueueStatistics", "value", $locate->Translate("agent_queue_statistics"));
$_SESSION['ParentID'] = '';
$objResponse->addAssign("divCopyright", "innerHTML", common::generateCopyright($skin));
$objResponse->addScript("xajax_showGrid(0," . ROWSXPAGE . ",'','','')");
return $objResponse;
}
示例10: init
/**
* initialize page elements
*
*/
function init()
{
global $locate;
//,$config,$db;
$objResponse = new xajaxResponse();
$objResponse->addAssign("divNav", "innerHTML", common::generateManageNav($skin, $_SESSION['curuser']['country'], $_SESSION['curuser']['language']));
$objResponse->addAssign("divCopyright", "innerHTML", common::generateCopyright($skin));
$objResponse->addAssign("btnCustomer", "value", $locate->Translate("customer"));
$objResponse->addAssign("btnNote", "value", $locate->Translate("note"));
$objResponse->addScript("xajax_showGrid(0," . ROWSXPAGE . ",'','','')");
return $objResponse;
}
示例11: init
/**
* initialize page elements
*
*/
function init()
{
global $locate;
$objResponse = new xajaxResponse();
$objResponse->addAssign("divNav", "innerHTML", common::generateManageNav($skin, $_SESSION['curuser']['country'], $_SESSION['curuser']['language']));
$objResponse->addAssign("btnTicketCategory", "value", $locate->Translate("ticketcategory_manage"));
$objResponse->addAssign("btnTicketOplogs", "value", $locate->Translate("ticket_details_operate_logs"));
$objResponse->addAssign("btnTicket", "value", $locate->Translate("ticket_manage"));
$_SESSION['ParentID'] = '';
$objResponse->addAssign("divCopyright", "innerHTML", common::generateCopyright($skin));
$objResponse->addScript("xajax_showGrid(0," . ROWSXPAGE . ",'','','')");
return $objResponse;
}
示例12: init
function init()
{
global $locate, $config;
$objResponse = new xajaxResponse();
$myAsterisk = new Asterisk();
$myAsterisk->config['asmanager'] = $config['asterisk'];
$res = $myAsterisk->connect();
if (!$res) {
$objResponse->addAssign("divAMIStatus", "innerHTML", $locate->Translate("AMI_connection_failed"));
}
$objResponse->addAssign("divNav", "innerHTML", common::generateManageNav($skin, $_SESSION['curuser']['country'], $_SESSION['curuser']['language']));
$objResponse->addAssign("divCopyright", "innerHTML", common::generateCopyright($skin));
$objResponse->addAssign("msgChannelsInfo", "value", $locate->Translate("msgChannelsInfo"));
return $objResponse;
}
示例13: init
/**
* initialize page elements
*
*/
function init()
{
global $locate;
$objResponse = new xajaxResponse();
$objResponse->addAssign("divNav", "innerHTML", common::generateManageNav($skin));
$objResponse->addAssign("divCopyright", "innerHTML", common::generateCopyright($skin));
$objResponse->addScript("xajax_showGrid(0," . ROWSXPAGE . ",'','','')");
if ($_SESSION['curuser']['usertype'] == "groupadmin") {
$row = astercrm::getRecordById($_SESSION['curuser']['groupid'], "accountgroup");
$objResponse->addAssign("customer_multiple", "value", $row['customer_multiple']);
$objResponse->addAssign("spnShortcutUpdate", "innerHTML", '<input type="button" value="' . $locate->Translate("Shortcut update rate") . '" onclick="xajax_shortcutUpdate();">');
$objResponse->addAssign("spnShortcutMsg", "innerHTML", '');
}
return $objResponse;
}
示例14: init
/**
* initialize page elements
*
*/
function init()
{
global $locate, $config;
$objResponse = new xajaxResponse();
$myAsterisk = new Asterisk();
$myAsterisk->config['asmanager'] = $config['asterisk'];
$res = $myAsterisk->connect();
if (!$res) {
$objResponse->addAssign("AMIStatudDiv", "innerHTML", $locate->Translate("AMI_connection_failed"));
}
$objResponse->addAssign("msgChannelsInfo", "value", $locate->Translate("msgChannelsInfo"));
////set time intervals of check system status
$check_interval = 2000;
if (is_numeric($config['system']['status_check_interval'])) {
$check_interval = $config['system']['status_check_interval'] * 1000;
$objResponse->addAssign("check_interval", "value", $check_interval);
}
$objResponse->addAssign("divNav", "innerHTML", common::generateManageNav($skin, $_SESSION['curuser']['country'], $_SESSION['curuser']['language']));
$objResponse->addAssign("divCopyright", "innerHTML", common::generateCopyright($skin));
return $objResponse;
}
示例15: init
function init($curpeer)
{
global $locate, $config;
$objResponse = new xajaxResponse();
$peers = array();
if ($_SESSION['curuser']['usertype'] == 'admin') {
// set all reseller first
$reseller = astercrm::getAll('resellergroup');
$objResponse->addScript("addOption('resellerid','" . "0" . "','" . $locate->Translate("All") . "');");
while ($reseller->fetchInto($row)) {
if ($config['synchronize']['display_synchron_server']) {
$row['resellername'] = astercrm::getSynchronDisplay($row['id'], $row['resellername']);
}
$objResponse->addScript("addOption('resellerid','" . $row['id'] . "','" . $row['resellername'] . "');");
}
} else {
if ($_SESSION['curuser']['usertype'] == 'reseller') {
// set one reseller
$objResponse->addScript("addOption('resellerid','" . $_SESSION['curuser']['resellerid'] . "','" . "" . "');");
// set all group
$group = astercrm::getAll('accountgroup', 'resellerid', $_SESSION['curuser']['resellerid']);
$objResponse->addScript("addOption('groupid','" . "0" . "','" . "All" . "');");
while ($group->fetchInto($row)) {
if ($config['synchronize']['display_synchron_server']) {
$row['groupname'] = astercrm::getSynchronDisplay($row['id'], $row['groupname']);
}
$objResponse->addScript("addOption('groupid','" . $row['id'] . "','" . $row['groupname'] . "');");
}
// get limit status and creditlimit
$reseller = astercc::readRecord("resellergroup", "id", $_SESSION['curuser']['resellerid']);
if ($reseller) {
if ($reseller['limittype'] == "") {
$html = $locate->Translate("Limit Type") . ":" . $locate->Translate("No limit");
} else {
$html = $locate->Translate("Limit Type") . $accountgroup['limittype'] . "(" . $accountgroup['creditlimit'] . ")";
}
$html = $locate->Translate("Limit Type") . $reseller['limittype'] . "(" . $reseller['creditlimit'] . ")";
$objResponse->addAssign("divLimitStatus", "innerHTML", $html);
}
} else {
$objResponse->addScript("addOption('resellerid','" . $_SESSION['curuser']['resellerid'] . "','" . "" . "');");
$objResponse->addScript("addOption('groupid','" . $_SESSION['curuser']['groupid'] . "','" . "" . "');");
$clid = astercrm::getAll('clid', 'groupid', $_SESSION['curuser']['groupid']);
$objResponse->addScript("addOption('sltBooth','" . "0" . "','" . $locate->Translate("All") . "');");
while ($clid->fetchInto($row)) {
if ($config['synchronize']['display_synchron_server']) {
$clidDisplay = astercrm::getSynchronDisplay($row['id'], $row['clid']);
}
if ($curpeer == $row['clid']) {
$objResponse->addScript("addOption('sltBooth','" . $row['clid'] . "','" . $clidDisplay . "',true);");
} else {
$objResponse->addScript("addOption('sltBooth','" . $row['clid'] . "','" . $clidDisplay . "');");
}
}
$objResponse->addScript("addOption('sltBooth','-1','" . $locate->Translate("Callback") . "');");
// get limit status and creditlimit
$accountgroup = astercc::readRecord("accountgroup", "id", $_SESSION['curuser']['groupid']);
if ($accountgroup) {
if ($accountgroup['limittype'] == "") {
$html = $locate->Translate("Limit Type") . ":" . $locate->Translate("No limit");
} else {
$html = $locate->Translate("Limit Type") . $accountgroup['limittype'] . "(" . $accountgroup['creditlimit'] . ")";
}
$objResponse->addAssign("divLimitStatus", "innerHTML", $html);
}
}
}
//去除了控制chekcout按钮是否显示的代码//20110303 donnie
//if($config['system']['useHistoryCdr'] == 1){
//$objResponse->addScript("document.getElementById('btnCheckOut').style.display='none';");
//}else if($config['system']['useHistoryCdr'] == 0){
//$objResponse->addScript("document.getElementById('btnCheckOut').style.display='block';");
//}
$objResponse->addAssign("divNav", "innerHTML", common::generateManageNav($skin));
$objResponse->addAssign("divCopyright", "innerHTML", common::generateCopyright($skin));
return $objResponse;
}