当前位置: 首页>>代码示例>>PHP>>正文


PHP Customer::getRecordsFilteredMore方法代码示例

本文整理汇总了PHP中Customer::getRecordsFilteredMore方法的典型用法代码示例。如果您正苦于以下问题:PHP Customer::getRecordsFilteredMore方法的具体用法?PHP Customer::getRecordsFilteredMore怎么用?PHP Customer::getRecordsFilteredMore使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Customer的用法示例。


在下文中一共展示了Customer::getRecordsFilteredMore方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: createGrid

function createGrid($start = 0, $limit = 1, $filter = null, $content = null, $order = null, $divName = "grid", $ordering = "", $stype = array())
{
    global $locate;
    $_SESSION['ordering'] = $ordering;
    if ($filter == null or $content == null or $content == 'Array' or $filter == 'Array') {
        $numRows =& Customer::getNumRows();
        $arreglo =& Customer::getAllRecords($start, $limit, $order);
        $content = null;
        $filter = null;
    } else {
        foreach ($content as $value) {
            if (trim($value) != "") {
                //搜索内容有值
                $flag = "1";
                break;
            }
        }
        foreach ($filter as $value) {
            if (trim($value) != "") {
                //搜索条件有值
                $flag2 = "1";
                break;
            }
        }
        foreach ($stype as $value) {
            if (trim($value) != "") {
                //搜索方式有值
                $flag3 = "1";
                break;
            }
        }
        if ($flag != "1" || $flag2 != "1") {
            //无值
            if (is_array($order) || $order == '') {
                $order = null;
            }
            $numRows =& Customer::getNumRows();
            $arreglo =& Customer::getAllRecords($start, $limit, $order);
        } elseif ($flag3 != 1) {
            $order = "id";
            $numRows =& Customer::getNumRowsMore($filter, $content, "diallist");
            $arreglo =& Customer::getRecordsFilteredMore($start, $limit, $filter, $content, $order, "diallist");
        } else {
            $order = "id";
            $numRows =& Customer::getNumRowsMorewithstype($filter, $content, $stype, $table);
            $arreglo =& Customer::getRecordsFilteredMorewithstype($start, $limit, $filter, $content, $stype, $order, $table);
        }
    }
    // Select Box: type table.
    $typeFromSearch = array();
    $typeFromSearch[] = 'like';
    $typeFromSearch[] = 'equal';
    $typeFromSearch[] = 'more';
    $typeFromSearch[] = 'less';
    // Selecct Box: Labels showed on searchtype select box.
    $typeFromSearchShowAs = array();
    $typeFromSearchShowAs[] = $locate->Translate("like");
    $typeFromSearchShowAs[] = '=';
    $typeFromSearchShowAs[] = '>';
    $typeFromSearchShowAs[] = '<';
    // Editable zone
    // Databse Table: fields
    $fields = array();
    $fields[] = 'dialnumber';
    $fields[] = 'customer';
    $fields[] = 'assign';
    $fields[] = 'dialtime';
    $fields[] = 'groupname';
    $fields[] = 'campaignname';
    $fields[] = 'customername';
    $fields[] = 'callOrder';
    $fields[] = 'creby';
    $fields[] = 'memo';
    // HTML table: Headers showed
    $headers = array();
    $headers[] = $locate->Translate("ALL") . "<input type='checkbox' onclick=\"ckbAllOnClick(this);\"><BR \\>";
    $headers[] = $locate->Translate("Number");
    $headers[] = $locate->Translate("Customer");
    $headers[] = $locate->Translate("Assign to");
    $headers[] = $locate->Translate("Dialtime");
    $headers[] = $locate->Translate("Group Name");
    $headers[] = $locate->Translate("Campaign Name");
    $headers[] = $locate->Translate("Name");
    $headers[] = $locate->Translate("Call Order");
    $headers[] = $locate->Translate("Create by");
    $headers[] = $locate->Translate("Memo");
    // HTML table: hearders attributes
    $attribsHeader = array();
    $attribsHeader[] = 'width="';
    $attribsHeader[] = 'width=""';
    $attribsHeader[] = 'width=""';
    $attribsHeader[] = 'width=""';
    $attribsHeader[] = 'width=""';
    $attribsHeader[] = 'width=""';
    $attribsHeader[] = 'width=""';
    $attribsHeader[] = 'width=""';
    $attribsHeader[] = 'width=""';
    $attribsHeader[] = 'width=""';
    $attribsHeader[] = 'width=""';
    // HTML Table: columns attributes
//.........这里部分代码省略.........
开发者ID:ljhcj,项目名称:IRISCC,代码行数:101,代码来源:diallist.server.php

示例2: createGrid

/**
*  generate grid HTML code
*  @param	start		int			record start
*  @param	limit		int			how many records need
*  @param	filter		string		the field need to search
*  @param	content		string		the contect want to match
*  @param	divName		string		which div grid want to be put
*  @param	order		string		data order
*  @return	html		string		grid HTML code
*/
function createGrid($start = 0, $limit = 1, $filter = null, $content = null, $order = null, $divName = "grid", $ordering = "", $stype = array())
{
    global $locate, $config;
    $_SESSION['ordering'] = $ordering;
    if ($filter == null or $content == null || !is_array($content) && $content == 'Array' || !is_array(filter) && $filter == 'Array') {
        $content = null;
        $filter = null;
        $numRows =& Customer::getNumRows();
        $arreglo =& Customer::getAllRecords($start, $limit, $order);
    } else {
        foreach ($content as $value) {
            if (trim($value) != "") {
                //搜索内容有值
                $flag = "1";
                break;
            }
        }
        foreach ($filter as $value) {
            if (trim($value) != "") {
                //搜索条件有值
                $flag2 = "1";
                break;
            }
        }
        foreach ($stype as $value) {
            if (trim($value) != "") {
                //搜索方式有值
                $flag3 = "1";
                break;
            }
        }
        if ($flag != "1" || $flag2 != "1") {
            //无值
            $order = null;
            $numRows =& Customer::getNumRows();
            $arreglo =& Customer::getAllRecords($start, $limit, $order);
        } elseif ($flag3 != 1) {
            $order = "id";
            $numRows =& Customer::getNumRowsMore($filter, $content, "accountgroup");
            $arreglo =& Customer::getRecordsFilteredMore($start, $limit, $filter, $content, $order, "accountgroup");
        } else {
            $order = "id";
            $numRows =& Customer::getNumRowsMorewithstype($filter, $content, $stype, $table);
            $arreglo =& Customer::getRecordsFilteredMorewithstype($start, $limit, $filter, $content, $stype, $order, $table);
        }
    }
    // Select Box: type table.
    $typeFromSearch = array();
    $typeFromSearch[] = 'like';
    $typeFromSearch[] = 'equal';
    $typeFromSearch[] = 'more';
    $typeFromSearch[] = 'less';
    // Selecct Box: Labels showed on searchtype select box.
    $typeFromSearchShowAs = array();
    $typeFromSearchShowAs[] = $locate->Translate("like");
    $typeFromSearchShowAs[] = '=';
    $typeFromSearchShowAs[] = '>';
    $typeFromSearchShowAs[] = '<';
    // Editable zone
    // Databse Table: fields
    $fields = array();
    $fields[] = 'id';
    $fields[] = 'groupname';
    $fields[] = 'resellername';
    $fields[] = 'accountcode';
    $fields[] = 'callback';
    $fields[] = 'creditlimit';
    $fields[] = 'limittype';
    $fields[] = 'curcredit';
    $fields[] = 'credit_clid';
    $fields[] = 'credit_group';
    $fields[] = 'credit_reseller';
    $fields[] = 'group_multiple';
    // HTML table: Headers showed
    $headers = array();
    $headers[] = $locate->Translate("ID") . '<br/>';
    $headers[] = $locate->Translate("Name") . '<br/>';
    $headers[] = $locate->Translate("Reseller") . '<br/>';
    $headers[] = $locate->Translate("Callback") . '<br/>';
    $headers[] = $locate->Translate("Credit Limit") . '<br/>';
    $headers[] = $locate->Translate("Limit Type") . '<br/>';
    $headers[] = $locate->Translate("Cur Credit") . '<br/>';
    $headers[] = $locate->Translate("Clid Credit") . '<br/>';
    $headers[] = $locate->Translate("Group Credit") . '<br/>';
    $headers[] = $locate->Translate("Reseller Credit") . '<br/>';
    $headers[] = $locate->Translate("Group Billsec Multiple") . '<br/>';
    // HTML table: hearders attributes
    $attribsHeader = array();
    $attribsHeader[] = 'width=""';
    $attribsHeader[] = 'width=""';
//.........这里部分代码省略.........
开发者ID:ljhcj,项目名称:IRISCC,代码行数:101,代码来源:accountgroup.server.php

示例3: createGrid

/**
*  generate grid HTML code
*  @param	start		int			record start
*  @param	limit		int			how many records need
*  @param	filter		string		the field need to search
*  @param	content		string		the contect want to match
*  @param	stype		string		the matching type for search 
*  @param	divName		string		which div grid want to be put
*  @param	order		string		data order
*  @return	html		string		grid HTML code
*/
function createGrid($start = 0, $limit = 1, $filter = null, $content = null, $order = null, $divName = "grid", $ordering = "", $stype = array(), $customerid = '', $allOrAnswer = null)
{
    global $locate, $config;
    //print_R($filter);
    //print_r($content);exit;
    if ($config['system']['useHistoryCdr'] == 1) {
        $table = 'historycdr';
    } else {
        $table = 'mycdr';
    }
    //echo $config['system']['useHistoryCdr'];
    //echo $table;exit;
    $_SESSION['ordering'] = $ordering;
    if (is_numeric($customerid) && $customerid != 0 && $_SESSION['curuser']['usertype'] != 'clid') {
        $filter['0'] = 'customerid';
        $content['0'] = $customerid;
        $stype['0'] = 'equal';
    }
    if ($filter == null || $content == null || !is_array($content) && $content == 'Array' || !is_array(filter) && $filter == 'Array') {
        $content = null;
        $filter = null;
        $numRows =& Customer::getNumRows($table);
        $arreglo =& Customer::getAllRecords($start, $limit, $order, '', $table);
    } else {
        foreach ($content as $value) {
            if (trim($value) != "") {
                //搜索内容有值
                $flag = "1";
                break;
            }
        }
        foreach ($filter as $value) {
            if (trim($value) != "") {
                //搜索条件有值
                $flag2 = "1";
                break;
            }
        }
        foreach ($stype as $value) {
            if (trim($value) != "") {
                //搜索方式有值
                $flag3 = "1";
                break;
            }
        }
        if ($flag != "1" || $flag2 != "1") {
            //无值
            $order = null;
            $numRows =& Customer::getNumRows($table, $allOrAnswer);
            $arreglo =& Customer::getAllRecords($start, $limit, $order, '', $table, $allOrAnswer);
        } elseif ($flag3 != 1) {
            //未选择搜索方式
            $order = "calldate";
            $numRows =& Customer::getNumRowsMore($filter, $content, $table, $allOrAnswer);
            $arreglo =& Customer::getRecordsFilteredMore($start, $limit, $filter, $content, $order, $table, '', $allOrAnswer);
        } else {
            $order = "calldate";
            $numRows =& Customer::getNumRowsMorewithstype($filter, $content, $stype, $table, $allOrAnswer);
            $arreglo =& Customer::getRecordsFilteredMorewithstype($start, $limit, $filter, $content, $stype, $order, $table, '', $allOrAnswer);
        }
    }
    // Editable zone
    // Databse Table: fields
    $fields = array();
    $fields[] = 'calldate';
    $fields[] = 'src';
    $fields[] = 'dst';
    $fields[] = 'duration';
    $fields[] = 'billsec';
    $fields[] = 'disposition';
    $fields[] = 'credit';
    $fileds[] = 'destination';
    $fileds[] = 'memo';
    $fileds[] = 'discount';
    $fileds[] = 'note';
    // HTML table: Headers showed
    $headers = array();
    $headers[] = $locate->Translate("Calldate");
    $headers[] = $locate->Translate("Src");
    $headers[] = $locate->Translate("Dst");
    $headers[] = $locate->Translate("Duration");
    $headers[] = $locate->Translate("Billsec");
    $headers[] = $locate->Translate("Disposition");
    $headers[] = $locate->Translate("credit");
    $headers[] = $locate->Translate("destination");
    $headers[] = $locate->Translate("memo");
    $headers[] = $locate->Translate("discount");
    $headers[] = $locate->Translate("note");
    // HTML table: hearders attributes
//.........这里部分代码省略.........
开发者ID:ljhcj,项目名称:IRISCC,代码行数:101,代码来源:cdr.server.php

示例4: createGrid

/**
*  generate grid HTML code
*  @param	start		int			record start
*  @param	limit		int			how many records need
*  @param	filter		string		the field need to search
*  @param	content		string		the contect want to match
*  @param	divName		string		which div grid want to be put
*  @param	order		string		data order
*  @return	html		string		grid HTML code
*/
function createGrid($start = 0, $limit = 1, $filter = null, $content = null, $order = null, $divName = "grid", $ordering = "", $exportFlag = "", $stype = array())
{
    global $locate;
    $_SESSION['ordering'] = $ordering;
    if ($filter == null or $content == null || !is_array($content) && $content == 'Array' || !is_array(filter) && $filter == 'Array') {
        $content = null;
        $filter = null;
        $numRows =& Customer::getNumRows();
        $arreglo =& Customer::getAllRecords($start, $limit, $order);
    } else {
        foreach ($content as $value) {
            if (trim($value) != "") {
                //搜索内容有值
                $flag = "1";
                break;
            }
        }
        foreach ($filter as $value) {
            if (trim($value) != "") {
                //搜索条件有值
                $flag2 = "1";
                break;
            }
        }
        foreach ($stype as $value) {
            if (trim($value) != "") {
                //搜索方式有值
                $flag3 = "1";
                break;
            }
        }
        if ($flag != "1" || $flag2 != "1") {
            //无值
            $order = null;
            $numRows =& Customer::getNumRows();
            $arreglo =& Customer::getAllRecords($start, $limit, $order);
        } elseif ($flag3 != 1) {
            $order = "id";
            $numRows =& Customer::getNumRowsMore($filter, $content, "curcdr");
            $arreglo =& Customer::getRecordsFilteredMore($start, $limit, $filter, $content, $order, "curcdr");
        } else {
            $order = "id";
            $numRows =& Customer::getNumRowsMorewithstype($filter, $content, $stype, $table);
            $arreglo =& Customer::getRecordsFilteredMorewithstype($start, $limit, $filter, $content, $stype, $order, $table);
        }
    }
    // Select Box: type table.
    $typeFromSearch = array();
    $typeFromSearch[] = 'like';
    $typeFromSearch[] = 'equal';
    $typeFromSearch[] = 'more';
    $typeFromSearch[] = 'less';
    // Selecct Box: Labels showed on searchtype select box.
    $typeFromSearchShowAs = array();
    $typeFromSearchShowAs[] = $locate->Translate("like");
    $typeFromSearchShowAs[] = '=';
    $typeFromSearchShowAs[] = '>';
    $typeFromSearchShowAs[] = '<';
    // Editable zone
    // Databse Table: fields
    $fields = array();
    $fields[] = 'curcdr.src';
    $fields[] = 'curcdr.dst';
    $fields[] = 'curcdr.srcname';
    $fields[] = 'curcdr.starttime';
    $fields[] = 'curcdr.answertime';
    //$fields[] = 'clid.clid';
    $fields[] = 'accountgroup.groupname';
    $fields[] = 'resellergroup.resellername';
    // HTML table: Headers showed
    $headers = array();
    $headers[] = $locate->Translate("Src") . '<br>';
    $headers[] = $locate->Translate("Dst") . '<br>';
    $headers[] = $locate->Translate("Srcname") . '<br>';
    $headers[] = $locate->Translate("Starttime") . '<br>';
    $headers[] = $locate->Translate("Answertime") . '<br>';
    //$headers[] = $locate->Translate("Clid").'<br>';
    $headers[] = $locate->Translate("Groupname") . '<br>';
    $headers[] = $locate->Translate("Resellername") . '<br>';
    // HTML table: fieldsFromSearch showed
    $fieldsFromSearch = array();
    $fieldsFromSearch[] = 'curcdr.src';
    $fieldsFromSearch[] = 'curcdr.dst';
    $fieldsFromSearch[] = 'curcdr.srcname';
    $fieldsFromSearch[] = 'curcdr.starttime';
    $fieldsFromSearch[] = 'curcdr.answertime';
    //$fieldsFromSearch[] = 'clid.clid';
    $fieldsFromSearch[] = 'accountgroup.groupname';
    $fieldsFromSearch[] = 'resellergroup.resellername';
    // HTML table: hearders attributes
//.........这里部分代码省略.........
开发者ID:ljhcj,项目名称:IRISCC,代码行数:101,代码来源:curcdr.server.php

示例5: createGrid

/**
*  generate grid HTML code
*  @param	start		int			record start
*  @param	limit		int			how many records need
*  @param	filter		string		the field need to search
*  @param	content		string		the contect want to match
*  @param	divName		string		which div grid want to be put
*  @param	order		string		data order
*  @return	html		string		grid HTML code
*/
function createGrid($start = 0, $limit = 1, $filter = null, $content = null, $order = null, $divName = "grid", $ordering = "", $exportFlag = "", $stype = array())
{
    global $locate, $config;
    //echo $ordering.$order;exit;
    $_SESSION['ordering'] = $ordering;
    if ($filter == null or $content == null or $content == 'Array' or $filter == 'Array') {
        $numRows =& Customer::getNumRows();
        $arreglo =& Customer::getAllRecords($start, $limit, $order);
        $content = null;
        $filter = null;
    } else {
        foreach ($content as $value) {
            if (trim($value) != "") {
                //搜索内容有值
                $flag = "1";
                break;
            }
        }
        foreach ($filter as $value) {
            if (trim($value) != "") {
                //搜索条件有值
                $flag2 = "1";
                break;
            }
        }
        foreach ($stype as $value) {
            if (trim($value) != "") {
                //搜索方式有值
                $flag3 = "1";
                break;
            }
        }
        if ($flag != "1" || $flag2 != "1") {
            //无值
            $numRows =& Customer::getNumRows();
            $arreglo =& Customer::getAllRecords($start, $limit, $order);
        } elseif ($flag3 != 1) {
            $order = "id";
            $numRows =& Customer::getNumRowsMore($filter, $content, "customer_leads");
            $arreglo =& Customer::getRecordsFilteredMore($start, $limit, $filter, $content, $order, "customer_leads");
        } else {
            $order = "id";
            $numRows =& Customer::getNumRowsMorewithstype($filter, $content, $stype, $table);
            $arreglo =& Customer::getRecordsFilteredMorewithstype($start, $limit, $filter, $content, $stype, $order, $table);
        }
    }
    // Select Box: type table.
    $typeFromSearch = array();
    $typeFromSearch[] = 'like';
    $typeFromSearch[] = 'equal';
    $typeFromSearch[] = 'more';
    $typeFromSearch[] = 'less';
    // Selecct Box: Labels showed on searchtype select box.
    $typeFromSearchShowAs = array();
    $typeFromSearchShowAs[] = $locate->Translate("like");
    $typeFromSearchShowAs[] = '=';
    $typeFromSearchShowAs[] = '>';
    $typeFromSearchShowAs[] = '<';
    // Editable zone
    // Databse Table: fields
    $fields = array();
    $fields[] = 'customer';
    $fields[] = 'state';
    if ($config['system']['enable_code']) {
        $fields[] = 'note';
        $fields[] = 'codes';
        $fields[] = 'note_leads.cretime';
    }
    $fields[] = 'city';
    $fields[] = 'phone';
    $fields[] = 'contact';
    $fields[] = 'website';
    $fields[] = 'category';
    $fields[] = 'cretime';
    $fields[] = 'creby';
    // HTML table: Headers showed
    $headers = array();
    $headers[] = $locate->Translate("ALL") . "<input type='checkbox' onclick=\"ckbAllOnClick(this);\"><BR \\>";
    //"select all for delete";
    $headers[] = $locate->Translate("customer_name") . "<BR \\>";
    //"Customer Name";
    $headers[] = $locate->Translate("state") . "<BR \\>";
    //"state";
    if ($config['system']['enable_code']) {
        $headers[] = $locate->Translate("note") . "<BR \\>";
        $headers[] = $locate->Translate("codes") . "<BR \\>";
        $headers[] = $locate->Translate("note_cretime") . "<BR \\>";
    }
    $headers[] = $locate->Translate("city") . "<BR \\>";
    //"Category";
//.........这里部分代码省略.........
开发者ID:ljhcj,项目名称:IRISCC,代码行数:101,代码来源:customer_leads.server.php

示例6: createGrid

/**
*  generate grid HTML code
*  @param	start		int			record start
*  @param	limit		int			how many records need
*  @param	filter		string		the field need to search
*  @param	content		string		the contect want to match
*  @param	divName		string		which div grid want to be put
*  @param	order		string		data order
*  @return	html		string		grid HTML code
*/
function createGrid($start = 0, $limit = 1, $filter = null, $content = null, $order = null, $divName = "grid", $ordering = "", $stype = array())
{
    global $locate;
    $_SESSION['ordering'] = $ordering;
    if ($filter == null or $content == null or $content == 'Array' or $filter == 'Array') {
        $numRows =& Customer::getNumRows();
        $arreglo =& Customer::getAllRecords($start, $limit, $order);
        $content = null;
        $filter = null;
    } else {
        foreach ($content as $value) {
            if (trim($value) != "") {
                //搜索内容有值
                $flag = "1";
                break;
            }
        }
        foreach ($filter as $value) {
            if (trim($value) != "") {
                //搜索条件有值
                $flag2 = "1";
                break;
            }
        }
        foreach ($stype as $value) {
            if (trim($value) != "") {
                //搜索方式有值
                $flag3 = "1";
                break;
            }
        }
        if ($flag != "1" || $flag2 != "1") {
            //无值
            $numRows =& Customer::getNumRows();
            $arreglo =& Customer::getAllRecords($start, $limit, $order);
        } elseif ($flag3 != 1) {
            $order = "id";
            $numRows =& Customer::getNumRowsMore($filter, $content, "campaign");
            $arreglo =& Customer::getRecordsFilteredMore($start, $limit, $filter, $content, $order, "campaign");
        } else {
            $order = "id";
            $numRows =& Customer::getNumRowsMorewithstype($filter, $content, $stype, $table);
            $arreglo =& Customer::getRecordsFilteredMorewithstype($start, $limit, $filter, $content, $stype, $order, $table);
        }
    }
    // Select Box: type table.
    $typeFromSearch = array();
    $typeFromSearch[] = 'like';
    $typeFromSearch[] = 'equal';
    $typeFromSearch[] = 'more';
    $typeFromSearch[] = 'less';
    // Selecct Box: Labels showed on searchtype select box.
    $typeFromSearchShowAs = array();
    $typeFromSearchShowAs[] = $locate->Translate("like");
    $typeFromSearchShowAs[] = '=';
    $typeFromSearchShowAs[] = '>';
    $typeFromSearchShowAs[] = '<';
    // Editable zone
    // Databse Table: fields
    $fields = array();
    $fields[] = 'id';
    $fields[] = 'campaignname';
    $fields[] = 'campaignnote';
    $fields[] = 'groupname';
    $fields[] = 'servername';
    $fields[] = 'balance';
    $fields[] = 'creby';
    $fields[] = 'cretime';
    // HTML table: Headers showed
    $headers = array();
    $headers[] = $locate->Translate("Campaign Name");
    $headers[] = $locate->Translate("Campaign Note");
    $headers[] = $locate->Translate("Group Name");
    $headers[] = $locate->Translate("Server Name");
    $headers[] = $locate->Translate("Remaining") . '/' . $locate->Translate("Dialed ") . '/' . $locate->Translate("Answered");
    $headers[] = $locate->Translate("Balance");
    $headers[] = $locate->Translate("Creby");
    $headers[] = $locate->Translate("Cretime");
    // HTML table: hearders attributes
    $attribsHeader = array();
    $attribsHeader[] = 'width=""';
    $attribsHeader[] = 'width=""';
    $attribsHeader[] = 'width=""';
    $attribsHeader[] = 'width=""';
    $attribsHeader[] = 'width=""';
    $attribsHeader[] = 'width=""';
    $attribsHeader[] = 'width=""';
    $attribsHeader[] = 'width=""';
    // HTML Table: columns attributes
    $attribsCols = array();
//.........这里部分代码省略.........
开发者ID:ljhcj,项目名称:IRISCC,代码行数:101,代码来源:campaign.server.php

示例7: createGrid

/**
*  generate grid HTML code
*  @param	start		int			record start
*  @param	limit		int			how many records need
*  @param	filter		string		the field need to search
*  @param	content		string		the contect want to match
*  @param	divName		string		which div grid want to be put
*  @param	order		string		data order
*  @return	html		string		grid HTML code
*/
function createGrid($start = 0, $limit = 1, $filter = null, $content = null, $order = null, $divName = "grid", $ordering = "", $stype = array())
{
    global $locate;
    $_SESSION['ordering'] = $ordering;
    if ($filter == null or $content == null or $content == 'Array' or $filter == 'Array') {
        $numRows =& Customer::getNumRows();
        $arreglo =& Customer::getAllRecords($start, $limit, $order);
        $content = null;
        $filter = null;
    } else {
        foreach ($content as $value) {
            if (trim($value) != "") {
                //搜索内容有值
                $flag = "1";
                break;
            }
        }
        foreach ($filter as $value) {
            if (trim($value) != "") {
                //搜索条件有值
                $flag2 = "1";
                break;
            }
        }
        foreach ($stype as $value) {
            if (trim($value) != "") {
                //搜索方式有值
                $flag3 = "1";
                break;
            }
        }
        if ($flag != "1" || $flag2 != "1") {
            //无值
            if (is_array($order) || $order == '') {
                $order = null;
            }
            $numRows =& Customer::getNumRows();
            $arreglo =& Customer::getAllRecords($start, $limit, $order);
        } elseif ($flag3 != 1) {
            $order = "id";
            $numRows =& Customer::getNumRowsMore($filter, $content);
            $arreglo =& Customer::getRecordsFilteredMore($start, $limit, $filter, $content, $order);
        } else {
            $order = "id";
            $numRows =& Customer::getNumRowsMorewithstype($filter, $content, $stype, $table);
            $arreglo =& Customer::getRecordsFilteredMorewithstype($start, $limit, $filter, $content, $stype, $order, $table);
        }
    }
    // Select Box: type table.
    $typeFromSearch = array();
    $typeFromSearch[] = 'like';
    $typeFromSearch[] = 'equal';
    $typeFromSearch[] = 'more';
    $typeFromSearch[] = 'less';
    // Selecct Box: Labels showed on searchtype select box.
    $typeFromSearchShowAs = array();
    $typeFromSearchShowAs[] = $locate->Translate("like");
    $typeFromSearchShowAs[] = '=';
    $typeFromSearchShowAs[] = '>';
    $typeFromSearchShowAs[] = '<';
    // Editable zone
    // Databse Table: fields
    $fields = array();
    $fields[] = 'name';
    $fields[] = 'ip';
    $fields[] = 'port';
    $fields[] = 'username';
    $fields[] = 'secret';
    $fields[] = 'note';
    // HTML table: Headers showed
    $headers = array();
    $headers[] = $locate->Translate("Server name");
    $headers[] = $locate->Translate("IP");
    $headers[] = $locate->Translate("Port");
    $headers[] = $locate->Translate("Username");
    $headers[] = $locate->Translate("Secret");
    $headers[] = $locate->Translate("Note");
    // HTML table: hearders attributes
    $attribsHeader = array();
    $attribsHeader[] = 'width=""';
    $attribsHeader[] = 'width=""';
    $attribsHeader[] = 'width=""';
    $attribsHeader[] = 'width=""';
    $attribsHeader[] = 'width=""';
    $attribsHeader[] = 'width=""';
    // HTML Table: columns attributes
    $attribsCols = array();
    $attribsCols[] = 'style="text-align: left"';
    $attribsCols[] = 'style="text-align: left"';
    $attribsCols[] = 'style="text-align: left"';
//.........这里部分代码省略.........
开发者ID:ljhcj,项目名称:IRISCC,代码行数:101,代码来源:servers.server.php

示例8: createGrid

/**
*  generate grid HTML code
*  @param	start		int			record start
*  @param	limit		int			how many records need
*  @param	filter		string		the field need to search
*  @param	content		string		the contect want to match
*  @param	stype		string		the matching type for search 
*  @param	divName		string		which div grid want to be put
*  @param	order		string		data order
*  @return	html		string		grid HTML code
*/
function createGrid($start = 0, $limit = 1, $filter = null, $content = null, $stype = null, $order = null, $divName = "grid", $ordering = "", $stype = array())
{
    global $locate;
    $_SESSION['ordering'] = $ordering;
    if ($filter == null || $content == null || !is_array($content) && $content == 'Array' || !is_array(filter) && $filter == 'Array') {
        $content = null;
        $filter = null;
        $numRows =& Customer::getNumRows();
        $arreglo =& Customer::getAllRecords($start, $limit, $order);
    } else {
        foreach ($content as $value) {
            if (trim($value) != "") {
                //搜索内容有值
                $flag = "1";
                break;
            }
        }
        foreach ($filter as $value) {
            if (trim($value) != "") {
                //搜索条件有值
                $flag2 = "1";
                break;
            }
        }
        foreach ($stype as $value) {
            if (trim($value) != "") {
                //搜索方式有值
                $flag3 = "1";
                break;
            }
        }
        if ($flag != "1" || $flag2 != "1") {
            //无值
            $order = null;
            $numRows =& Customer::getNumRows();
            $arreglo =& Customer::getAllRecords($start, $limit, $order);
        } elseif ($flag3 != 1) {
            //未选择搜索方式
            $order = "modifytime";
            $numRows =& Customer::getNumRowsMore($filter, $content, "credithistory");
            $arreglo =& Customer::getRecordsFilteredMore($start, $limit, $filter, $content, $order, "credithistory");
        } else {
            $order = "modifytime";
            $numRows =& Customer::getNumRowsMorewithstype($filter, $content, $stype, "credithistory");
            $arreglo =& Customer::getRecordsFilteredMorewithstype($start, $limit, $filter, $content, $stype, $order, "credithistory");
        }
    }
    // Select Box: type table.
    $typeFromSearch = array();
    $typeFromSearch[] = 'like';
    $typeFromSearch[] = 'equal';
    $typeFromSearch[] = 'more';
    $typeFromSearch[] = 'less';
    // Selecct Box: Labels showed on searchtype select box.
    $typeFromSearchShowAs = array();
    $typeFromSearchShowAs[] = $locate->Translate("like");
    $typeFromSearchShowAs[] = '=';
    $typeFromSearchShowAs[] = '>';
    $typeFromSearchShowAs[] = '<';
    // Editable zone
    if ($_SESSION['curuser']['usertype'] == 'clid') {
        // Database Table: fields
        $fields = array();
        $fields[] = 'modifytime';
        $fields[] = 'clidid';
        $fields[] = 'srccredit';
        $fields[] = 'modifystatus';
        $fields[] = 'modifyamount';
        $fields[] = 'comment';
        // HTML table: Headers showed
        $headers = array();
        $headers[] = $locate->Translate("Modifytime");
        $headers[] = $locate->Translate("Clid");
        $headers[] = $locate->Translate("Srccredit");
        $headers[] = $locate->Translate("Modifystatus");
        $headers[] = $locate->Translate("Modifyamount");
        $headers[] = $locate->Translate("Comment");
        // HTML table: hearders attributes
        $attribsHeader = array();
        $attribsHeader[] = 'width=""';
        $attribsHeader[] = 'width=""';
        $attribsHeader[] = 'width=""';
        $attribsHeader[] = 'width=""';
        $attribsHeader[] = 'width=""';
        $attribsHeader[] = 'width=""';
        // HTML Table: columns attributes
        $attribsCols = array();
        $attribsCols[] = 'style="text-align: left"';
        $attribsCols[] = 'style="text-align: left"';
//.........这里部分代码省略.........
开发者ID:ljhcj,项目名称:IRISCC,代码行数:101,代码来源:credithistory.server.php

示例9: createGrid

/**
*  generate grid HTML code
*  @param	start		int			record start
*  @param	limit		int			how many records need
*  @param	filter		string		the field need to search
*  @param	content		string		the contect want to match
*  @param	divName		string		which div grid want to be put
*  @param	order		string		data order
*  @return	html		string		grid HTML code
*/
function createGrid($start = 0, $limit = 1, $filter = null, $content = null, $order = null, $divName = "grid", $ordering = "", $exportFlag = "", $stype = array())
{
    //print_r($stype);exit;
    global $locate;
    $_SESSION['ordering'] = $ordering;
    if ($filter == null or $content == null or $content == 'Array' or $filter == 'Array') {
        $numRows =& Customer::getNumRows();
        $arreglo =& Customer::getAllRecords($start, $limit, $order);
        $content = null;
        $filter = null;
    } else {
        foreach ($content as $value) {
            if (trim($value) != "") {
                //搜索内容有值
                $flag = "1";
                break;
            }
        }
        foreach ($filter as $value) {
            if (trim($value) != "") {
                //搜索条件有值
                $flag2 = "1";
                break;
            }
        }
        foreach ($stype as $value) {
            if (trim($value) != "") {
                //搜索方式有值
                $flag3 = "1";
                break;
            }
        }
        if ($flag != "1" || $flag2 != "1") {
            //无值
            if (is_array($order) || $order == '') {
                $order = null;
            }
            $numRows =& Customer::getNumRows();
            $arreglo =& Customer::getAllRecords($start, $limit, $order);
        } elseif ($flag3 != 1) {
            $order = "id";
            $numRows =& Customer::getNumRowsMore($filter, $content, "surveyresult");
            $arreglo =& Customer::getRecordsFilteredMore($start, $limit, $filter, $content, $order, "surveyresult");
        } else {
            $order = "id";
            $numRows =& Customer::getNumRowsMorewithstype($filter, $content, $stype, "surveyresult");
            $arreglo =& Customer::getRecordsFilteredMorewithstype($start, $limit, $filter, $content, $stype, $order, "surveyresult");
        }
    }
    // Select Box: type table.
    $typeFromSearch = array();
    $typeFromSearch[] = 'like';
    $typeFromSearch[] = 'equal';
    $typeFromSearch[] = 'more';
    $typeFromSearch[] = 'less';
    // Selecct Box: Labels showed on searchtype select box.
    $typeFromSearchShowAs = array();
    $typeFromSearchShowAs[] = $locate->Translate('like');
    $typeFromSearchShowAs[] = '=';
    $typeFromSearchShowAs[] = '>';
    $typeFromSearchShowAs[] = '<';
    // Editable zone
    // Databse Table: fields
    $fields = array();
    $fields[] = 'surveytitle';
    $fields[] = 'surveyoption';
    $fields[] = 'surveynote';
    $fields[] = 'customer';
    $fields[] = 'contact';
    $fields[] = 'phonenumber';
    $fields[] = 'campaignname';
    $fields[] = 'cretime';
    // HTML table: Headers showed
    $headers = array();
    $headers[] = $locate->Translate("Survey Title");
    $headers[] = $locate->Translate("Survey Option");
    $headers[] = $locate->Translate("Survey Item");
    $headers[] = $locate->Translate("Survey Note");
    $headers[] = $locate->Translate("customer");
    $headers[] = $locate->Translate("contact");
    $headers[] = $locate->Translate("Phone Number");
    $headers[] = $locate->Translate("Campaign Name");
    $headers[] = $locate->Translate("create_time");
    // HTML table: hearders attributes
    $attribsHeader = array();
    $attribsHeader[] = 'width=""';
    $attribsHeader[] = 'width=""';
    $attribsHeader[] = 'width=""';
    $attribsHeader[] = 'width=""';
    $attribsHeader[] = 'width=""';
//.........这里部分代码省略.........
开发者ID:ljhcj,项目名称:IRISCC,代码行数:101,代码来源:surveyresult.server.php

示例10: createGrid

/**
*  generate grid HTML code
*  @param	start		int			record start
*  @param	limit		int			how many records need
*  @param	filter		string		the field need to search
*  @param	content		string		the contect want to match
*  @param	divName		string		which div grid want to be put
*  @param	order		string		data order
*  @return	html		string		grid HTML code
*/
function createGrid($start = 0, $limit = 1, $filter = null, $content = null, $order = null, $divName = "grid", $ordering = "", $stype = array())
{
    global $locate, $config;
    $_SESSION['ordering'] = $ordering;
    if ($filter == null or $content == null || !is_array($content) && $content == 'Array' || !is_array(filter) && $filter == 'Array') {
        $content = null;
        $filter = null;
        $numRows =& Customer::getNumRows();
        $arreglo =& Customer::getAllRecords($start, $limit, $order);
    } else {
        foreach ($content as $value) {
            if (trim($value) != "") {
                //搜索内容有值
                $flag = "1";
                break;
            }
        }
        foreach ($filter as $value) {
            if (trim($value) != "") {
                //搜索条件有值
                $flag2 = "1";
                break;
            }
        }
        foreach ($stype as $value) {
            if (trim($value) != "") {
                //搜索方式有值
                $flag3 = "1";
                break;
            }
        }
        if ($flag != "1" || $flag2 != "1") {
            //无值
            $order = null;
            $numRows =& Customer::getNumRows();
            $arreglo =& Customer::getAllRecords($start, $limit, $order);
        } elseif ($flag3 != 1) {
            $order = "id";
            $numRows =& Customer::getNumRowsMore($filter, $content, "account");
            $arreglo =& Customer::getRecordsFilteredMore($start, $limit, $filter, $content, $order, "account");
        } else {
            $order = "id";
            $numRows =& Customer::getNumRowsMorewithstype($filter, $content, $stype, $table);
            $arreglo =& Customer::getRecordsFilteredMorewithstype($start, $limit, $filter, $content, $stype, $order, $table);
        }
    }
    // Select Box: type table.
    $typeFromSearch = array();
    $typeFromSearch[] = 'like';
    $typeFromSearch[] = 'equal';
    $typeFromSearch[] = 'more';
    $typeFromSearch[] = 'less';
    // Selecct Box: Labels showed on searchtype select box.
    $typeFromSearchShowAs = array();
    $typeFromSearchShowAs[] = $locate->Translate("like");
    $typeFromSearchShowAs[] = '=';
    $typeFromSearchShowAs[] = '>';
    $typeFromSearchShowAs[] = '<';
    // Editable zone
    // Databse Table: fields
    $fields = array();
    $fields[] = 'username';
    $fields[] = 'ip';
    $fields[] = 'usertype';
    $fields[] = 'action';
    $fields[] = 'status';
    $fields[] = 'failedcause';
    $fields[] = 'cretime';
    // HTML table: Headers showed
    $headers = array();
    $headers[] = $locate->Translate("Username");
    $headers[] = $locate->Translate("IP");
    $headers[] = $locate->Translate("Usertype");
    $headers[] = $locate->Translate("Action");
    $headers[] = $locate->Translate("Status");
    $headers[] = $locate->Translate("Failed cause");
    $headers[] = $locate->Translate("Cretime");
    $headers[] = $locate->Translate("Option");
    // HTML table: hearders attributes
    $attribsHeader = array();
    $attribsHeader[] = 'width=""';
    $attribsHeader[] = 'width=""';
    $attribsHeader[] = 'width=""';
    $attribsHeader[] = 'width=""';
    $attribsHeader[] = 'width=""';
    $attribsHeader[] = 'width=""';
    $attribsHeader[] = 'width=""';
    // HTML Table: columns attributes
    $attribsCols = array();
    $attribsCols[] = 'style="text-align: left"';
//.........这里部分代码省略.........
开发者ID:ljhcj,项目名称:IRISCC,代码行数:101,代码来源:account_log.server.php

示例11: createGrid

/**
*  generate grid HTML code
*  @param	start		int			record start
*  @param	limit		int			how many records need
*  @param	filter		string		the field need to search
*  @param	content		string		the contect want to match
*  @param	divName		string		which div grid want to be put
*  @param	order		string		data order
*  @return	html		string		grid HTML code
*/
function createGrid($start = 0, $limit = 1, $filter = null, $content = null, $order = null, $divName = "grid", $ordering = "", $stype = array())
{
    global $locate, $config;
    $_SESSION['ordering'] = $ordering;
    if ($filter == null or $content == null or $content == 'Array' or $filter == 'Array') {
        $numRows =& Customer::getNumRows();
        $arreglo =& Customer::getAllRecords($start, $limit, $order);
        $content = null;
        $filter = null;
    } else {
        foreach ($content as $value) {
            if (trim($value) != "") {
                //搜索内容有值
                $flag = "1";
                break;
            }
        }
        foreach ($filter as $value) {
            if (trim($value) != "") {
                //搜索条件有值
                $flag2 = "1";
                break;
            }
        }
        foreach ($stype as $value) {
            if (trim($value) != "") {
                //搜索方式有值
                $flag3 = "1";
                break;
            }
        }
        if ($flag != "1" || $flag2 != "1") {
            //无值
            if (is_array($order) || $order == '') {
                $order = null;
            }
            $numRows =& Customer::getNumRows();
            $arreglo =& Customer::getAllRecords($start, $limit, $order);
        } elseif ($flag3 != 1) {
            $order = "id";
            $numRows =& Customer::getNumRowsMore($filter, $content, "astercrm_accout");
            $arreglo =& Customer::getRecordsFilteredMore($start, $limit, $filter, $content, $order, "astercrm_accout");
        } else {
            $order = "id";
            $numRows =& Customer::getNumRowsMorewithstype($filter, $content, $stype, $table);
            $arreglo =& Customer::getRecordsFilteredMorewithstype($start, $limit, $filter, $content, $stype, $order, $table);
        }
    }
    // Select Box: type table.
    $typeFromSearch = array();
    $typeFromSearch[] = 'like';
    $typeFromSearch[] = 'equal';
    $typeFromSearch[] = 'more';
    $typeFromSearch[] = 'less';
    // Selecct Box: Labels showed on searchtype select box.
    $typeFromSearchShowAs = array();
    $typeFromSearchShowAs[] = $locate->Translate("like");
    $typeFromSearchShowAs[] = '=';
    $typeFromSearchShowAs[] = '>';
    $typeFromSearchShowAs[] = '<';
    // Editable zone
    // Databse Table: fields
    $fields = array();
    $fields[] = 'username';
    $fields[] = 'login_time';
    $fields[] = 'online_time';
    // HTML table: Headers showed
    $headers = array();
    $headers[] = $locate->Translate("ALL") . "<input type='checkbox' onclick=\"ckbAllOnClick(this);\">";
    //"select all for delete";
    $headers[] = $locate->Translate("username");
    $headers[] = $locate->Translate("login time");
    $headers[] = $locate->Translate("online time");
    //"Customer Name";
    // HTML table: hearders attributes
    $attribsHeader = array();
    $attribsHeader[] = 'width="5%"';
    $attribsHeader[] = 'width="30%"';
    $attribsHeader[] = 'width="30%"';
    $attribsHeader[] = 'width="30%"';
    // HTML Table: columns attributes
    $attribsCols = array();
    $attribsCols[] = 'style="text-align: left"';
    $attribsCols[] = 'style="text-align: left"';
    $attribsCols[] = 'style="text-align: left"';
    // HTML Table: If you want ascendent and descendent ordering, set the Header Events.
    $eventHeader = array();
    $eventHeader[] = '';
    $eventHeader[] = 'onClick=\'xajax_showGrid(0,' . $limit . ',"' . $filter . '","' . $content . '","username","' . $divName . '","ORDERING");return false;\'';
    $eventHeader[] = '';
//.........这里部分代码省略.........
开发者ID:ljhcj,项目名称:IRISCC,代码行数:101,代码来源:useronline.server.php

示例12: createGrid

/**
*  generate grid HTML code
*  @param	start		int			record start
*  @param	limit		int			how many records need
*  @param	filter		string		the field need to search
*  @param	content		string		the contect want to match
*  @param	divName		string		which div grid want to be put
*  @param	order		string		data order
*  @return	html		string		grid HTML code
*/
function createGrid($start = 0, $limit = 1, $filter = null, $content = null, $order = null, $divName = "grid", $ordering = "", $exportFlag = "", $stype = array(), $displaymode = 'on')
{
    global $locate, $config;
    $_SESSION['ordering'] = $ordering;
    if ($filter == null or $content == null || !is_array($content) && $content == 'Array' || !is_array(filter) && $filter == 'Array') {
        $content = null;
        $filter = null;
        $numRows =& Customer::getNumRows($displaymode);
        $arreglo =& Customer::getAllRecords($start, $limit, $order, $displaymode);
    } else {
        foreach ($content as $value) {
            if (trim($value) != "") {
                //搜索内容有值
                $flag = "1";
                break;
            }
        }
        foreach ($filter as $value) {
            if (trim($value) != "") {
                //搜索条件有值
                $flag2 = "1";
                break;
            }
        }
        foreach ($stype as $value) {
            if (trim($value) != "") {
                //搜索方式有值
                $flag3 = "1";
                break;
            }
        }
        if ($flag != "1" || $flag2 != "1") {
            //无值
            $order = null;
            $numRows =& Customer::getNumRows();
            $arreglo =& Customer::getAllRecords($start, $limit, $order);
        } elseif ($flag3 != 1) {
            $order = "id";
            $numRows =& Customer::getNumRowsMore($filter, $content, "callshoprate");
            $arreglo =& Customer::getRecordsFilteredMore($start, $limit, $filter, $content, $order, "callshoprate");
        } else {
            $order = "id";
            $numRows =& Customer::getNumRowsMorewithstype($filter, $content, $stype, $table, $displaymode);
            $arreglo =& Customer::getRecordsFilteredMorewithstype($start, $limit, $filter, $content, $stype, $order, $table, $displaymode);
        }
    }
    // Select Box: type table.
    $typeFromSearch = array();
    $typeFromSearch[] = 'like';
    $typeFromSearch[] = 'equal';
    $typeFromSearch[] = 'more';
    $typeFromSearch[] = 'less';
    // Selecct Box: Labels showed on searchtype select box.
    $typeFromSearchShowAs = array();
    $typeFromSearchShowAs[] = $locate->Translate("like");
    $typeFromSearchShowAs[] = '=';
    $typeFromSearchShowAs[] = '>';
    $typeFromSearchShowAs[] = '<';
    // Editable zone
    // Databse Table: fields
    $fields = array();
    if ($config['synchronize']['display_synchron_server']) {
        $fields[] = 'id';
    }
    $fields[] = 'dialprefix';
    $fields[] = 'numlen';
    $fields[] = 'destination';
    $fields[] = 'connectcharge';
    $fields[] = 'initblock';
    $fields[] = 'rateinitial';
    $fields[] = 'billingblock';
    $fields[] = 'groupname';
    $fields[] = 'resellername';
    $fields[] = 'addtime';
    // HTML table: Headers showed
    $headers = array();
    if ($config['synchronize']['display_synchron_server']) {
        $headers[] = $locate->Translate("Id") . '<br>';
    }
    $headers[] = $locate->Translate("Prefix") . '<br>';
    $headers[] = $locate->Translate("Length") . '<br>';
    $headers[] = $locate->Translate("Destination") . '<br>';
    $headers[] = $locate->Translate("Connect Charge") . '<br>';
    $headers[] = $locate->Translate("Init Block") . '<br>';
    $headers[] = $locate->Translate("Rate") . '<br>';
    $headers[] = $locate->Translate("Billing Block") . '<br>';
    $headers[] = $locate->Translate("Group") . '<br>';
    $headers[] = $locate->Translate("Reseller") . '<br>';
    $headers[] = $locate->Translate("Addtime") . '<br>';
    // HTML table: hearders attributes
//.........这里部分代码省略.........
开发者ID:ljhcj,项目名称:IRISCC,代码行数:101,代码来源:callshoprate.server.php

示例13: createGrid

function createGrid($start = 0, $limit = 1, $filter = null, $content = null, $order = null, $divName = "grid", $ordering = "", $stype = array(), $action = '', $campaign_id = 0)
{
    if ($action == 'abandoned' && $campaign_id > 0) {
        $campaignrow = astercrm::getRecordById($campaign_id, 'campaign');
        $filter = array('campaigndialedlist.billsec_leg_a', 'campaigndialedlist.billsec', 'campaignname');
        $content = array(0, 0, $campaignrow['campaignname']);
        $stype = array('more', 'equal', 'equal');
    }
    global $locate;
    $_SESSION['ordering'] = $ordering;
    if ($filter == null or $content == null or $content == 'Array' or $filter == 'Array') {
        $numRows =& Customer::getNumRows();
        $arreglo =& Customer::getAllRecords($start, $limit, $order);
        $content = null;
        $filter = null;
    } else {
        foreach ($content as $value) {
            if (trim($value) != "") {
                //搜索内容有值
                $flag = "1";
                break;
            }
        }
        foreach ($filter as $value) {
            if (trim($value) != "") {
                //搜索条件有值
                $flag2 = "1";
                break;
            }
        }
        foreach ($stype as $value) {
            if (trim($value) != "") {
                //搜索方式有值
                $flag3 = "1";
                break;
            }
        }
        if ($flag != "1" || $flag2 != "1") {
            //无值
            if (is_array($order) || $order == '') {
                $order = null;
            }
            $numRows =& Customer::getNumRows($_SESSION['curuser']['groupid']);
            $arreglo =& Customer::getAllRecords($start, $limit, $order, $_SESSION['curuser']['groupid']);
        } elseif ($flag3 != 1) {
            $order = "id";
            $numRows =& Customer::getNumRowsMore($filter, $content, "campaigndialedlist");
            $arreglo =& Customer::getRecordsFilteredMore($start, $limit, $filter, $content, $order, "campaigndialedlist");
        } else {
            $order = "id";
            $numRows =& Customer::getNumRowsMorewithstype($filter, $content, $stype, $table);
            $arreglo =& Customer::getRecordsFilteredMorewithstype($start, $limit, $filter, $content, $stype, $order, $table);
        }
    }
    // Select Box: type table.
    $typeFromSearch = array();
    $typeFromSearch[] = 'like';
    $typeFromSearch[] = 'equal';
    $typeFromSearch[] = 'more';
    $typeFromSearch[] = 'less';
    // Selecct Box: Labels showed on searchtype select box.
    $typeFromSearchShowAs = array();
    $typeFromSearchShowAs[] = $locate->Translate("like");
    $typeFromSearchShowAs[] = '=';
    $typeFromSearchShowAs[] = '>';
    $typeFromSearchShowAs[] = '<';
    // Editable zone
    // Databse Table: fields
    $fields = array();
    $fields[] = 'dialednumber';
    $fields[] = 'answertime';
    $fields[] = 'duration';
    $fields[] = 'callresult';
    $fields[] = 'billsec';
    $fields[] = 'billsec_leg_a';
    $fields[] = 'customer';
    $fields[] = 'customername';
    //	$fields[] = 'uniqueid';
    $fields[] = 'campaignresult';
    $fields[] = 'response';
    $fields[] = 'detect';
    $fields[] = 'transfertime';
    $fields[] = 'transfertarget';
    $fields[] = 'resultby';
    $fields[] = 'dialedby';
    //	$fields[] = 'groupname';
    $fields[] = 'recycles';
    // HTML table: Headers showed
    $headers = array();
    $headers[] = $locate->Translate("ALL") . "<input type='checkbox' onclick=\"ckbAllOnClick(this);\"><BR \\>";
    $headers[] = $locate->Translate("Dialed Number");
    //	$headers[] = $locate->Translate("Answer Time");
    $headers[] = $locate->Translate("Duration");
    $headers[] = $locate->Translate("Billsec");
    $headers[] = $locate->Translate("Total Billsec");
    $headers[] = $locate->Translate("Call Result");
    $headers[] = $locate->Translate("Customer");
    $headers[] = $locate->Translate("Name");
    //	$headers[] = $locate->Translate("Uniqueid");
    $headers[] = $locate->Translate("Campaign Result");
//.........这里部分代码省略.........
开发者ID:ljhcj,项目名称:IRISCC,代码行数:101,代码来源:dialedlist.server.php

示例14: createGrid

/**
*  generate grid HTML code
*  @param	start		int			record start
*  @param	limit		int			how many records need
*  @param	filter		string		the field need to search
*  @param	content		string		the contect want to match
*  @param	divName		string		which div grid want to be put
*  @param	order		string		data order
*  @return	html		string		grid HTML code
*/
function createGrid($start = 0, $limit = 1, $filter = null, $content = null, $order = null, $divName = "grid", $ordering = "", $stype = array())
{
    global $locate;
    $_SESSION['ordering'] = $ordering;
    if ($filter == null or $content == null or $content == 'Array' or $filter == 'Array') {
        $numRows =& Customer::getNumRows();
        $arreglo =& Customer::getAllRecords($start, $limit, $order);
        $content = null;
        $filter = null;
    } else {
        foreach ($content as $value) {
            if (trim($value) != "") {
                //搜索内容有值
                $flag = "1";
                break;
            }
        }
        foreach ($filter as $value) {
            if (trim($value) != "") {
                //搜索条件有值
                $flag2 = "1";
                break;
            }
        }
        foreach ($stype as $value) {
            if (trim($value) != "") {
                //搜索方式有值
                $flag3 = "1";
                break;
            }
        }
        if ($flag != "1" || $flag2 != "1") {
            //无值
            if (is_array($order) || $order == '') {
                $order = null;
            }
            $numRows =& Customer::getNumRows();
            $arreglo =& Customer::getAllRecords($start, $limit, $order);
        } elseif ($flag3 != 1) {
            $order = "id";
            $numRows =& Customer::getNumRowsMore($filter, $content, "worktimepackages");
            $arreglo =& Customer::getRecordsFilteredMore($start, $limit, $filter, $content, $order, "worktimepackages");
        } else {
            $order = "id";
            $numRows =& Customer::getNumRowsMorewithstype($filter, $content, $stype, $table);
            $arreglo =& Customer::getRecordsFilteredMorewithstype($start, $limit, $filter, $content, $stype, $order, $table);
        }
    }
    // Select Box: type table.
    $typeFromSearch = array();
    $typeFromSearch[] = 'like';
    $typeFromSearch[] = 'equal';
    $typeFromSearch[] = 'more';
    $typeFromSearch[] = 'less';
    // Selecct Box: Labels showed on searchtype select box.
    $typeFromSearchShowAs = array();
    $typeFromSearchShowAs[] = $locate->Translate("like");
    $typeFromSearchShowAs[] = '=';
    $typeFromSearchShowAs[] = '>';
    $typeFromSearchShowAs[] = '<';
    // Editable zone
    // Databse Table: fields
    $fields = array();
    $fields[] = 'starttime';
    $fields[] = 'endtime';
    $fields[] = 'startweek';
    $fields[] = 'endweek';
    $fields[] = 'groupname';
    $fields[] = 'cretime';
    $fields[] = 'creby';
    // HTML table: Headers showed
    $headers = array();
    $headers[] = $locate->Translate("Start Time");
    $headers[] = $locate->Translate("End Time");
    $headers[] = $locate->Translate("Start Week");
    $headers[] = $locate->Translate("End Week");
    $headers[] = $locate->Translate("Group Name");
    $headers[] = $locate->Translate("Cretime");
    $headers[] = $locate->Translate("Creby");
    // HTML table: hearders attributes
    $attribsHeader = array();
    $attribsHeader[] = 'width=""';
    $attribsHeader[] = 'width=""';
    $attribsHeader[] = 'width=""';
    $attribsHeader[] = 'width=""';
    $attribsHeader[] = 'width=""';
    $attribsHeader[] = 'width=""';
    $attribsHeader[] = 'width=""';
    // HTML Table: columns attributes
    $attribsCols = array();
//.........这里部分代码省略.........
开发者ID:ljhcj,项目名称:IRISCC,代码行数:101,代码来源:worktime.server.php

示例15: createGrid

/**
*  generate grid HTML code
*  @param	start		int			record start
*  @param	limit		int			how many records need
*  @param	filter		string		the field need to search
*  @param	content		string		the contect want to match
*  @param	divName		string		which div grid want to be put
*  @param	order		string		data order
*  @return	html		string		grid HTML code
*/
function createGrid($start = 0, $limit = 1, $filter = null, $content = null, $order = null, $divName = "grid", $ordering = "")
{
    global $locate;
    $_SESSION['ordering'] = $ordering;
    if ($filter == null or $content == null or $content == 'Array' or $filter == 'Array') {
        $numRows =& Customer::getNumRows();
        $arreglo =& Customer::getAllRecords($start, $limit, $order);
        $content = null;
        $filter = null;
    } else {
        foreach ($content as $value) {
            if (trim($value) != "") {
                //搜索内容有值
                $flag = "1";
                break;
            }
        }
        foreach ($filter as $value) {
            if (trim($value) != "") {
                //搜索条件有值
                $flag2 = "1";
                break;
            }
        }
        if ($flag != "1" || $flag2 != "1") {
            //无值
            $order = null;
            $numRows =& Customer::getNumRows();
            $arreglo =& Customer::getAllRecords($start, $limit, $order);
        } else {
            $order = "id";
            $numRows =& Customer::getNumRowsMore($filter, $content, "remindercalls");
            $arreglo =& Customer::getRecordsFilteredMore($start, $limit, $filter, $content, $order, "remindercalls");
        }
    }
    // Editable zone
    // Databse Table: fields
    $fields = array();
    $fields[] = 'phonenumber';
    $fields[] = 'status';
    $fields[] = 'result';
    $fields[] = 'note';
    $fields[] = 'asteriskcallsname';
    $fields[] = 'groupname';
    $fields[] = 'creby';
    $fields[] = 'cretime';
    // HTML table: Headers showed
    $headers = array();
    $headers[] = $locate->Translate("Number");
    $headers[] = $locate->Translate("Status");
    $headers[] = $locate->Translate("Result");
    $headers[] = $locate->Translate("Note");
    $headers[] = $locate->Translate("Plan name");
    $headers[] = $locate->Translate("Groupname");
    $headers[] = $locate->Translate("Creby");
    $headers[] = $locate->Translate("Cretime");
    // HTML table: hearders attributes
    $attribsHeader = array();
    $attribsHeader[] = 'width="15%"';
    $attribsHeader[] = 'width="10%"';
    $attribsHeader[] = 'width="15%"';
    $attribsHeader[] = 'width="15%"';
    $attribsHeader[] = 'width="10%"';
    $attribsHeader[] = 'width="10%"';
    $attribsHeader[] = 'width="10%"';
    $attribsHeader[] = 'width="15%"';
    // HTML Table: columns attributes
    $attribsCols = array();
    $attribsCols[] = 'style="text-align: left"';
    $attribsCols[] = 'style="text-align: left"';
    $attribsCols[] = 'style="text-align: left"';
    $attribsCols[] = 'style="text-align: left"';
    $attribsCols[] = 'style="text-align: left"';
    $attribsCols[] = 'style="text-align: left"';
    $attribsCols[] = 'style="text-align: left"';
    $attribsCols[] = 'style="text-align: left"';
    // HTML Table: If you want ascendent and descendent ordering, set the Header Events.
    $eventHeader = array();
    $eventHeader[] = 'onClick=\'xajax_showGrid(0,' . $limit . ',"' . $filter . '","' . $content . '","phonenumber","' . $divName . '","ORDERING");return false;\'';
    $eventHeader[] = 'onClick=\'xajax_showGrid(0,' . $limit . ',"' . $filter . '","' . $content . '","status","' . $divName . '","ORDERING");return false;\'';
    $eventHeader[] = 'onClick=\'xajax_showGrid(0,' . $limit . ',"' . $filter . '","' . $content . '","result","' . $divName . '","ORDERING");return false;\'';
    $eventHeader[] = 'onClick=\'xajax_showGrid(0,' . $limit . ',"' . $filter . '","' . $content . '","note","' . $divName . '","ORDERING");return false;\'';
    $eventHeader[] = 'onClick=\'xajax_showGrid(0,' . $limit . ',"' . $filter . '","' . $content . '","asteriskcallsname","' . $divName . '","ORDERING");return false;\'';
    $eventHeader[] = 'onClick=\'xajax_showGrid(0,' . $limit . ',"' . $filter . '","' . $content . '","groupname","' . $divName . '","ORDERING");return false;\'';
    $eventHeader[] = 'onClick=\'xajax_showGrid(0,' . $limit . ',"' . $filter . '","' . $content . '","creby","' . $divName . '","ORDERING");return false;\'';
    $eventHeader[] = 'onClick=\'xajax_showGrid(0,' . $limit . ',"' . $filter . '","' . $content . '","cretime","' . $divName . '","ORDERING");return false;\'';
    // Select Box: fields table.
    $fieldsFromSearch = array();
    $fieldsFromSearch[] = 'phonenumber';
    $fieldsFromSearch[] = 'status';
//.........这里部分代码省略.........
开发者ID:ljhcj,项目名称:IRISCC,代码行数:101,代码来源:remindercalls.server.php


注:本文中的Customer::getRecordsFilteredMore方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。