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


PHP beginTable函数代码示例

本文整理汇总了PHP中beginTable函数的典型用法代码示例。如果您正苦于以下问题:PHP beginTable函数的具体用法?PHP beginTable怎么用?PHP beginTable使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: listbyaccount

 static function listbyaccount($AccountID, $pagenum = 1)
 {
     global $DB, $LANG;
     $result = $DB->make_select('Pool', 'SQL_CALC_FOUND_ROWS *', '`AccountID`=' . $AccountID, 'PoolID', 'DESC');
     $FOUND_ROWS = $DB->row($DB->query_adv('SELECT FOUND_ROWS()'));
     $count = $FOUND_ROWS['FOUND_ROWS()'];
     $show = beginTable($LANG['History'] . ' задач ' . $count . ' записей');
     $show .= makeTH('info', 'status', 'ServerID', 'time');
     while ($data = $DB->row($result)) {
         $show .= makeTD('<a href="?object=pool&amp;action=show&amp;PoolID=' . $data['PoolID'] . '">' . $data['description'] . '</a>', $data['status'], $data['ServerID'], $data['lastrenty']);
     }
     $show .= endTable();
     return $show;
 }
开发者ID:carriercomm,项目名称:Multicabinet,代码行数:14,代码来源:class.Pool.php

示例2: listbyaccount

 static function listbyaccount($AccountID, $pagenum = 1)
 {
     global $DB, $LANG;
     $page_posts = 25;
     $spos = ($pagenum - 1) * $page_posts;
     $result = $DB->query_adv("SELECT SQL_CALC_FOUND_ROWS * FROM `History` LEFT JOIN `Users` USING (`UserID`) WHERE `AccountID`={$AccountID} ORDER BY `HistoryID` DESC LIMIT {$spos},{$page_posts}");
     $FOUND_ROWS = $DB->row($DB->query_adv('SELECT FOUND_ROWS()'));
     $count = $FOUND_ROWS['FOUND_ROWS()'];
     $show = beginTable($LANG['History'] . ' ' . $count . ' записей');
     $show .= makeTH($LANG['Actions'], $LANG['Description'], $LANG['User'], 'Время', 'IP');
     while ($row = $DB->row($result)) {
         $show .= makeTD($row['action'], '<pre>' . $row['text'] . '</pre>', empty($row['username']) ? '---' : $row['username'], $row['time'], $row['ip']);
     }
     $show .= '<tr><td colspan="3" class="nob">';
     $show .= makePageNav($pagenum, $page_posts, $count, iSELF . '?object=account&amp;action=history&amp;AccountID=' . $AccountID . '&amp;');
     $show .= '</td></tr>';
     $show .= endTable();
     return $show;
 }
开发者ID:carriercomm,项目名称:Multicabinet,代码行数:19,代码来源:class.Logger.php

示例3: audit

 public function audit()
 {
     global $DB, $error_ar;
     // Проверять сужествование связей обьектов.
     // Массив связей. (проверяемый ключ => таблица которая отвечет за него)
     $LINKS['Orders'] = array('AccountID' => 'Accounts', 'ResellerID' => 'Resellers');
     $LINKS['Accounts'] = array('ResellerID' => 'Resellers', 'PackageID' => 'Packages', 'ServerID' => 'Servers');
     $LINKS['Pool'] = array('AccountID' => 'Accounts');
     $LINKS['History'] = array('AccountID' => 'Accounts');
     //$LINKS['Tarifs'] = array(
     //'ResellerID' => 'Resellers'
     //);
     foreach ($LINKS as $test_table => $links) {
         //$primary_key = substr($test_table,0,-1).'ID';
         $primary_key = '';
         $res = $DB->query_adv("SELECT k.column_name FROM information_schema.key_column_usage k WHERE k.constraint_name = 'PRIMARY' AND k.table_schema = 'billing_db' AND k.table_name = '{$test_table}'");
         while ($data = $DB->row($res)) {
             $primary_key .= "{$data['column_name']}";
         }
         //raw($primary_key);
         echo "Cheking {$test_table} table consistency...";
         foreach ($links as $link_key => $link_table) {
             echo "{$link_key}...";
             $res = $DB->query_adv("SELECT `{$test_table}`.`{$primary_key}` as {$primary_key}, `{$test_table}`.`{$link_key}` as {$link_key} FROM `{$test_table}` LEFT OUTER JOIN `{$link_table}` ON `{$test_table}`.`{$link_key}` = `{$link_table}`.`{$link_key}` WHERE (`{$test_table}`.`{$link_key}`) AND `{$link_table}`.`{$link_key}` IS NULL");
             while ($data = $DB->row($res)) {
                 echo "\n Missing object `{$link_table}`.`{$link_key}`={$data[$link_key]} for lost object `{$test_table}`.`{$primary_key}`={$data[$primary_key]}\n";
             }
         }
         echo "OK\n";
     }
     // Проверка на потеренные тарифы
     /*
     $res = $DB->query_adv('SELECT * FROM `Tarifs` LEFT OUTER JOIN `Resellers` ON `Tarifs`.`ResellerID` = `Resellers`.`ResellerID` WHERE `Resellers`.`ResellerID` IS NULL');
     while($data = $DB->row($res)) {
     	echo "Lost Tarif $data[ResellerID].$data[PackageID]\n";
     }
     */
     /*
     Нормализация сервисов:
     1)проверки на opentime<closetime
     2)проверка на непересекаемость периодов сервисов.
     */
     /*
     $acct_result = $DB->make_select("SELECT * FROM whmaccts a ,whmaccts b WHERE a.Domain=b.Domain AND a.server!=b.server");
     $acct_row = $DB->row($acct_result);
     $acct_count = $DB->count($acct_result);
     echo beginTable("$acct_count Accounts");
     if ($acct_row) {
     	do {
     echo "<tr>
     <td>$acct_row[domain]</td>
     <td>$acct_row[server]</td>
     <td>$acct_row[username]</td>
     <td>$acct_row[email]</td>
     <td>$acct_row[quota]</td>
     <td>$acct_row[package]</td>
     <td>$acct_row[theme]</td>
     <td>$acct_row[ResellerID]</td>
     </tr>\n";
     	} while ($acct_row = $DB->row($acct_result));
     }
     echo endTable();
     echo "Finished Step , found $acct_count doublicated accounts. Time ".intval((microtime(1) - $start_time)*1000)."ms.<br><br>\n\n";
     */
     /*
     $start_time = microtime(1);
     echo "Chech for identical count of acoounts in biling and on servers...<br>\n";
     $acct_result = $DB->make_select("SELECT * FROM (SELECT domain, server, username, ResellerID, 'no in Billing' as System FROM `whmaccts`) UNION  (SELECT domain, ServerID, username, ResellerID, 'no on Server' as System FROM `Accounts`  WHERE Accounts.status!='Deleted') GROUP by domain HAVING COUNT(domain)!=2");
     $acct_row = $DB->row($acct_result);
     $acct_count = $DB->count($acct_result);
     echo beginTable("$acct_count Accounts");
     if ($acct_row) {
     	do {
     echo "<tr>
     <td>$acct_row[domain]</td>
     <td>$acct_row[server]</td>
     <td>$acct_row[username]</td>
     <td>$acct_row[ResellerID]</td>
     <td>$acct_row[System]</td>
     </tr>\n";
     	} while ($acct_row = $DB->row($acct_result));
     }
     
     echo endTable();
     echo "Finished Step, found $acct_count lost accounts. Time ".intval((microtime(1) - $start_time)*1000)."ms.<br><br>\n\n";
     */
     $start_time = microtime(1);
     echo "Chech acoounts info servers on servers...<br>\n";
     echo " !Фукция не рабочая и результаты не следует считать верными ...<br>\n";
     #
     $acct_result = $DB->make_select('whmaccts`, `Accounts', "whmaccts.domain, whmaccts.username, Accounts.username as username2, whmaccts.ResellerID, Accounts.ResellerID as ResellerID2, whmaccts.email, 'email' as email2, whmaccts.package, Accounts.PackageID as package2, whmaccts.theme, Accounts.ServerID", 'whmaccts.domain=Accounts.domain', 'domain');
     $acct_row = $DB->row($acct_result);
     echo beginTable();
     echo '<tr><th>Warning</th><th>wrong value</th><th>true value</th><th>Domain</th><tr>';
     if ($acct_row) {
         do {
             $equal = true;
             if ($acct_row['username'] != $acct_row['username2']) {
                 echo "<tr><td>Incorect Username in Billing</td><td>{$acct_row['username2']}</td><td>{$acct_row['username']}</td><td>{$acct_row['domain']}</td></tr>";
             }
//.........这里部分代码省略.........
开发者ID:carriercomm,项目名称:Multicabinet,代码行数:101,代码来源:class.Processor.php

示例4: unset

    unset($access['Data']['td_tracking_ship_est']);
    unset($access['Data']['td_tracking_info']);
} else {
    $access['Data']['td_tracking_id']['disable'] = false;
    $access['Data']['td_tracking_link']['disable'] = false;
    $access['Data']['td_tracking_order_id']['disable'] = false;
    $access['Data']['td_tracking_company']['disable'] = false;
    $access['Data']['td_tracking_ship_date']['disable'] = false;
    $access['Data']['td_tracking_ship_est']['disable'] = false;
    $access['Data']['td_tracking_info']['disable'] = false;
}
unset($access['Data']['cd_enable_tracking']);
unset($access['Data']['td_enable_tracking']);
$access['Data']['ss_cancel_id']['DisplayName'] = 'Cancelation ID';
if (!$access['Data']['ss_cancel_id']['Value']) {
    unset($access['Data']['ss_cancel_id']);
}
if (!$access['Data']['ss_billing_state']['Value']) {
    unset($access['Data']['ss_billing_state']);
}
if (!$access['Data']['Last_Rebill_Date']['Value']) {
    unset($access['Data']['Last_Rebill_Date']);
}
$access['Columns'] = 1;
$access['Submitable'] = false;
$access['HeaderMessage'] = $msg;
beginTable();
writeAccessForm(&$access);
endTable("Transaction Info", "viewTransaction.php?{$link_info}");
?>
</body></html>
开发者ID:juliogallardo1326,项目名称:proc,代码行数:31,代码来源:viewTransaction.php

示例5: step_3

function step_3($en_ID, $skipIfComplete = true)
{
    // Step 3
    $access['SerializedData']['Source'] = 'en_info';
    $access['SerializedData']['Data'] = array('Service_List' => array('Processing_Info', 'Service_List'), 'Anti_Fraud_System' => array('Processing_Info', 'Anti_Fraud_System'), 'CS_Program' => array('Processing_Info', 'CS_Program'), 'Refund_Policy' => array('Processing_Info', 'Refund_Policy'), 'Volume_Last_month' => array('Processing_Info', 'Volume_Last_month'), 'Volume_Prev_30Days' => array('Processing_Info', 'Volume_Prev_30Days'), 'Volume_Prev_60Days' => array('Processing_Info', 'Volume_Prev_60Days'), 'Volume_Forcast_1Month' => array('Processing_Info', 'Volume_Forcast_1Month'), 'Volume_Forcast_2Month' => array('Processing_Info', 'Volume_Forcast_2Month'), 'Volume_Forcast_3Month' => array('Processing_Info', 'Volume_Forcast_3Month'), 'Projected_Monthly_Sales' => array('Processing_Info', 'Projected_Monthly_Sales'), 'Chargeback_%' => array('Processing_Info', 'Chargeback_%'), 'Average_Ticket_Price' => array('Processing_Info', 'Average_Ticket_Price'), 'Previous_Processor_Trans_Fee' => array('Processing_Info', 'Previous_Processor_Trans_Fee'), 'Previous_Processor_Disc_Fee' => array('Processing_Info', 'Previous_Processor_Disc_Fee'), 'Previous_Processing' => array('Processing_Info', 'Previous_Processing'), 'Previous_Processor_Reason' => array('Processing_Info', 'Previous_Processor_Reason'), 'Recur_Billing' => array('Processing_Info', 'Recur_Billing'), 'Currently_Processing' => array('Processing_Info', 'Currently_Processing'));
    $access = getAccessInfo("\r\n\t\r\n\tuserId,\r\n\ten_ID,\r\n\ten_info,\r\n\t\r\n\t'Processing Info' as access_header,\r\n\t'' as Service_List,'' as Anti_Fraud_System,'' as CS_Program,'' as Refund_Policy,\r\n\t'' as Volume_Last_month, '' as Volume_Prev_30Days, '' as Volume_Prev_60Days,\r\n\t'' as Volume_Forcast_1Month, '' as Volume_Forcast_2Month, '' as Volume_Forcast_3Month,  '' as Projected_Monthly_Sales,  '' as Average_Ticket_Price,  '' as 'Chargeback_%',\r\n\t'' as Previous_Processor_Trans_Fee, '' as Previous_Processor_Disc_Fee, '' as Previous_Processing, '' as Previous_Processor_Reason, '' as Recur_Billing, '' as Currently_Processing\r\n\t\r\n\t\r\n\t", "cs_entities left join cs_companydetails on en_type='merchant' and en_type_ID = userId", "en_ID = '{$en_ID}'", array('Size' => 30, 'Rows' => 2, 'HideIfEmpty' => true, 'Valid' => 'req'), $access);
    if ($access == -1) {
        dieLog("Invalid Company", "Invalid Company");
    }
    $access['Data']['userId']['Input'] = "hidden";
    $access['Data']['userId']['disable'] = 1;
    $access['Data']['en_ID']['Input'] = "hidden";
    $access['Data']['en_ID']['disable'] = 1;
    $access['Data']['Service_List']['Input'] = 'textarea';
    $access['Data']['Anti_Fraud_System']['Input'] = 'textarea';
    $access['Data']['CS_Program']['Input'] = 'textarea';
    $access['Data']['Refund_Policy']['Input'] = 'textarea';
    $access['Data']['Previous_Processor_Trans_Fee']['DisplayName'] = 'Previous Processor Transaction Fee';
    $access['Data']['Previous_Processor_Disc_Fee']['DisplayName'] = 'Previous Processor Discount Rate';
    $access['Data']['Volume_Last_month']['Input'] = "selectvolume";
    $access['Data']['Volume_Last_month']['DisplayName'] = "Last Month's Volume";
    $access['Data']['Volume_Prev_30Days']['Input'] = "selectvolume";
    $access['Data']['Volume_Prev_30Days']['DisplayName'] = "Volume 2 Months Ago";
    $access['Data']['Volume_Prev_60Days']['Input'] = "selectvolume";
    $access['Data']['Volume_Prev_60Days']['DisplayName'] = "Volume 3 Months Ago";
    $access['Data']['Volume_Forcast_1Month']['Input'] = "selectvolume";
    $access['Data']['Volume_Forcast_1Month']['DisplayName'] = "Forcast Volume This Month";
    $access['Data']['Volume_Forcast_2Month']['Input'] = "selectvolume";
    $access['Data']['Volume_Forcast_2Month']['DisplayName'] = "Forcast Volume Next Month";
    $access['Data']['Volume_Forcast_3Month']['Input'] = "selectvolume";
    $access['Data']['Volume_Forcast_3Month']['DisplayName'] = "Forcast Volume in two Months";
    $access['Data']['Projected_Monthly_Sales']['Input'] = "selectvolume";
    $access['Data']['Projected_Monthly_Sales']['DisplayName'] = "Projected Monthly Sales Volume";
    $access['Data']['Previous_Processor_Trans_Fee']['DisplayName'] = "Previous Processing";
    $access['Data']['Previous_Processing']['DisplayName'] = "Previous Processor";
    $access['Data']['Previous_Processor_Reason']['DisplayName'] = "Reason for Leaving Previous Processor";
    $access['Data']['Previous_Processor_Reason']['Valid'] = '';
    $access['Data']['Recur_Billing']['DisplayName'] = "Recuring Billing";
    $access['Data']['Currently_Processing']['DisplayName'] = "Currently Processing";
    $access['Data']['Average_Ticket_Price']['DisplayName'] = "Average Ticket Price";
    $access['Data']['Chargeback_%']['DisplayName'] = "Chargeback %";
    $access['Data']['Service_List']['DisplayName'] = "Please List Your Products and Services";
    $access['Data']['Anti_Fraud_System']['DisplayName'] = "Describe your Current Anti Fraud System";
    $access['Data']['CS_Program']['DisplayName'] = "Describe your Customer Service Program";
    $access['Data']['Refund_Policy']['DisplayName'] = "Describe your Refund Policy";
    $access['SubmitValue'] = 'Update Information';
    if ($skipIfComplete) {
        $access['SubmitValue'] = 'Complete Merchant Application';
    }
    $access['SubmitName'] = 'submit_step3';
    // Submit
    $showvalidation = false;
    if ($_POST[$access['SubmitName']]) {
        $result = processAccessForm(&$access);
        $showvalidation = true;
    }
    $access['Columns'] = 1;
    // Validate
    $valid = true;
    foreach ($access['Data'] as $key => $data) {
        if (!$data['Value'] && $data['Valid']) {
            $valid = false;
            if ($showvalidation) {
                $access['Data'][$key]['Highlight'] = true;
            }
        }
    }
    if (!$valid || !$skipIfComplete) {
        draw_step_buttons(3, $skipIfComplete);
        $access['HeaderMessage'] = "Please Complete all required fields to continue.";
        beginTable();
        writeAccessForm(&$access);
        endTable("Step #3 - Processing Information", "");
        include "includes/footer.php";
        die;
    }
}
开发者ID:juliogallardo1326,项目名称:proc,代码行数:77,代码来源:application.php

示例6: add

 public function add()
 {
     global $LANG;
     $show = openForm(iSELF . "?object=letter&amp;action=add2");
     $show .= beginTable("{$LANG['Add']} {$LANG['Letter']}");
     $show .= HiddenField('name', '');
     $show .= HiddenField('ResellerID', '');
     $show .= TextField($LANG['Title'], 'title', '');
     $show .= TextField('From', 'from', '');
     $show .= TextField('Subject', 'subject', '');
     $show .= '<tr><td valign="top"><b>Body:</b></td><td><textarea name="body" cols="120" rows="40" wrap="physical"></textarea></td></tr>';
     $show .= Submitter("add_letter", $LANG['Add']);
     $show .= endTable();
     return $show;
 }
开发者ID:carriercomm,项目名称:Multicabinet,代码行数:15,代码来源:class.Letter.php

示例7: redirect_onok

function redirect_onok($location)
{
    $res = beginDocument('Operation COMPLETE');
    $res .= '<script type="text/javascript">
function timeoutgo() {
	document.location.href="' . html_entity_decode($location, ENT_QUOTES, 'UTF-8') . '";
}
window.setTimeout("timeoutgo();", 500);
</script>';
    $res .= '<div align="center">' . beginTable();
    $res .= '<tr><td><b>Operation COMPLETE</b></td></tr>';
    $res .= endTable() . '</div>';
    $res .= endDocument();
    return $res;
}
开发者ID:carriercomm,项目名称:Multicabinet,代码行数:15,代码来源:class.Core.php

示例8: showChilds

function showChilds($parnt, $level)
{
    global $debug;
    $parnt = mysql_real_escape_string($parnt);
    $i = 0;
    $result = mysql_query("select * from menu where parent = " . $parnt) or die("Error" . mysql_error());
    $count = mysql_numrows($result);
    // syslog(LOG_DEBUG, "p4: menu width " . $count . " childs of parent " . $parnt . " on level " . $level);
    while ($i < $count) {
        $id = mysql_result($result, $i, "id");
        $child = mysql_result($result, $i, "child");
        $address = mysql_result($result, $i, "address");
        $title = mysql_result($result, $i, "title");
        $type = mysql_result($result, $i, "type");
        $u1 = mysql_result($result, $i, "unknown1");
        $u2 = mysql_result($result, $i, "unknown2");
        $value = "";
        if (rtrim($title) == "" && !$debug) {
            $i++;
            continue;
        }
        if ($type == 0x31) {
            $i++;
            continue;
        }
        if ($type == 0x3 || $type == 0x46) {
            $value = getValue($address);
        }
        if ($value == "") {
            $value = getParameter($id);
        }
        if ($debug) {
            switch ($type) {
                case 0x3:
                case 0x46:
                    $txttp = "Messwert";
                    break;
                case 0x7:
                    $txttp = "Par.";
                    break;
                case 0x8:
                    $txttp = "Par Dig";
                    break;
                case 0x32:
                    $txttp = "Par Set";
                    break;
                case 0x39:
                    $txttp = "Par Set1";
                    break;
                case 0x40:
                    $txttp = "Par Set2";
                    break;
                case 0xa:
                    $txttp = "Par Zeit";
                    break;
                case 0x11:
                    $txttp = "Dig Out";
                    break;
                case 0x12:
                    $txttp = "Anl Out";
                    break;
                case 0x13:
                    $txttp = "Dig In";
                    break;
                case 0x22:
                    $txttp = "Empty?";
                    break;
                case 0x23:
                    $txttp = "Reset";
                    break;
                case 0x26:
                    $txttp = "Zeiten";
                    break;
                case 0x3a:
                    $txttp = "Anzeigen";
                    break;
                case 0x16:
                    $txttp = "Firmware";
                    break;
                default:
                    $txttp = sprintf("0x%02x", $type);
            }
            $txtu1 = sprintf("0x%02x", $u1);
            $txtu2 = sprintf("0x%04x", $u2);
            $txtchild = $child ? sprintf("0x%04x", $child) : "-";
            $txtaddr = $address ? sprintf("0x%04x", $address) : "";
        }
        if (!$level && $child) {
            if ($i > 0) {
                endTable();
            }
            beginTable($title);
        } elseif (!$level && !$child && !$address) {
            $i++;
            continue;
        } else {
            if (!$child) {
                $style = "cellL0";
            } elseif ($level == 1) {
                $style = "cellL1";
//.........这里部分代码省略.........
开发者ID:paulpdg,项目名称:linux-p4d,代码行数:101,代码来源:menu.php

示例9: smart_render_action_results

function smart_render_action_results($results, $title)
{
    if ($results['form_complete'] != 0) {
        beginTable();
        echo "<table class='report' width='100%' border='0' cellspacing='0' cellpadding='0'>";
        foreach ($results['results'] as $result) {
            echo "<tr class='row" . gen_row(1) . "'>";
            echo "<td>" . $result['action'] . "</td><td>" . $result['status'] . "</td>";
            echo "</tr>";
        }
        echo "</table>";
        endTable($title);
    }
}
开发者ID:juliogallardo1326,项目名称:proc,代码行数:14,代码来源:smart_search.php

示例10: ShowServices

 public function ShowServices()
 {
     global $LANG;
     $services = Service::load_service('*', '`AccountID`=' . $this->id);
     $show = beginTable(count($services) . " {$LANG['Services']}", '100%');
     $show .= makeTH($LANG['Service'], $LANG['Price'], 'Инфо', $LANG['CreateDate'], $LANG['CloseDate'], 'Списано услугой, руб.');
     foreach ($services as $serv) {
         /*
         	if($serv->ServiceID == 'hosting') {
         		foreach($serv->mod as $mod) {
         			$show .= makeTD(
         		"<a href='?object=service&amp;action=show&amp;ServiceID=$serv->id'>$serv->name</a>",
         		round($mod['price'],2),
         		$mod['package']->id,
         		date('d.m.Y H:i',$mod['opentime']),
         		$mod['time'] == 0 ? '---------' : date('d.m.Y H:i',$mod['opentime']+$mod['time']),
         		round($mod['summ'],4)
         		);
         		}
         	}else
         */
         $show .= makeTD("<a href='?object=service&amp;action=show&amp;ServiceID={$serv->id}'>{$serv->name}</a>", round($serv->price, 2), $serv->getInfo(), date('d.m.Y H:i', strtotime($serv->opentime)), $serv->closetime == '0000-00-00 00:00:00' ? '---------' : date('d.m.Y H:i', strtotime($serv->closetime)), round($serv->getSumm(), 4));
     }
     $show .= endTable();
     return $show;
 }
开发者ID:carriercomm,项目名称:Multicabinet,代码行数:26,代码来源:class.Account.php

示例11: genResellerViewTable

function genResellerViewTable($qrt_select_reseller, $redirectOne, $redirectAll, $mode = 'minimal', $title = 'Select Reseller', $showTable = true)
{
    if (!$redirectOne) {
        $redirectOne = basename($_SERVER['PHP_SELF']);
    }
    if (!$redirectAll) {
        $redirectAll = basename($_SERVER['PHP_SELF']);
    }
    require_once "../includes/function2.php";
    global $bank_sql_limit;
    if (!$qrt_select_reseller) {
        $qrt_select_reseller = " from cs_resellerdetails order by reseller_companyname";
    }
    $qrt_select_reseller = "select reseller_id,reseller_companyname,rd_referenceNumber" . $qrt_select_reseller;
    //$show_reseller_sql =mysql_query($qrt_select_reseller) or dieLog(mysql_errno().": ".mysql_error()."<BR>");
    if ($showTable) {
        beginTable();
    }
    ?>
<script language="JavaScript">
var Reseller = new Array();
var cs_URL = new Array();

function selectReseller(obj)
{
	obj_element = document.getElementById('resellername');
	obj_element.value = obj.value;
}

function DisplayReseller(){
	if(document.getElementById('Resellermode').value=="A") {
		document.getElementById('allC').style.display = "";
		document.getElementById('active').style.display = "none";
		document.getElementById('nonactive').style.display = "none";
	} else if(document.getElementById('Resellermode').value=="AC") {
		document.getElementById('active').style.display = "";
		document.getElementById('allC').style.display = "none";
		document.getElementById('nonactive').style.display = "none";
	} else if(document.getElementById('Resellermode').value=="NC") {
		document.getElementById('nonactive').style.display = "";
		document.getElementById('allC').style.display = "none";
		document.getElementById('active').style.display = "none";
	}
	document.getElementById('resellername').selectedIndex = 0;
	document.getElementById('activename').selectedIndex = 0;
	document.getElementById('nonactivename').selectedIndex = 0;

}
function viewReseller() {
	var liststr = "";
	var curval = 0;
	var curreselId = 0;
	var length = document.getElementById('resellername').length;
	if(document.getElementById('resellername').value=="") {
	 //alert("Please select the Reseller.");
	 return 0;
	}
	if(document.getElementById('resellername').value == 'A')
	{
		curval='A';
	}
	for(i=0;i<length;i++)
	{
		if(document.getElementById('resellername').value == 'AL' || document.getElementById('resellername').options[i].selected) 
		{
			curreselId = document.getElementById('resellername').options[i].value;
			if (curreselId == 'A') {curVal='A'; break;}
			if (!window.redirectTo) 
			{
				if(curreselId!='AL')
				{
					if(!liststr) liststr=curreselId;
					else liststr += '|'+curreselId;
				}
			}
			else reselId[curval] = curreselId;
			curval++;
		}
	}
	if (window.redirectTo) redirectTo(reselId);
	
	if(curval==1) document.getElementById('frmSelComp').action='<?php 
    echo $redirectOne;
    ?>
';
	else document.getElementById('frmSelComp').action='<?php 
    echo $redirectAll;
    ?>
';
	
	document.getElementById('rd_view').value = curval;
	document.getElementById('resellername').value = '';
	resFunc_removeitem();
	document.getElementById('reselIdList').value = liststr;
	
	
	
	document.getElementById('frmSelComp').submit();
}

//.........这里部分代码省略.........
开发者ID:juliogallardo1326,项目名称:proc,代码行数:101,代码来源:resellerSubView.php

示例12: ShowActions

 public function ShowActions()
 {
     global $LANG;
     $show = beginTable($LANG['Actions']);
     $show .= "<tr><td><a href='?object=payment_print&amp;PaymentID={$this->id}'><img src='images/edit.png' alt='print' />печать акта</a></td></tr>";
     $show .= "<tr><td><a href='?object=payment&amp;action=edit&amp;PaymentID={$this->id}'><img src='images/edit.png' alt='edit' />{$LANG['Edit']} </a></td></tr>";
     $show .= "<tr><td><a href='?object=payment&amp;action=delete&amp;PaymentID={$this->id}'><img src='images/delete.png' alt='delete' />{$LANG['Delete']} </a></td></tr>";
     $show .= endTable();
     return $show;
 }
开发者ID:carriercomm,项目名称:Multicabinet,代码行数:10,代码来源:class.Payment.php

示例13: list_domain

 static function list_domain($pagenum = 1)
 {
     global $LANG, $DB;
     $page_posts = 20;
     $spos = ($pagenum - 1) * $page_posts;
     $objs = Domain::load_domains('*', '', 'DomainID', 'DESC', $page_posts, $spos);
     $count = $DB->count_objs('Domains');
     $result = beginTable("{$count} {$LANG['Domains']}", '100%');
     $result .= makeTH($LANG['ID'], $LANG['Title']);
     foreach ($objs as $obj) {
         $result .= makeTD("<a href='?object=domain&amp;action=show&amp;DomainID={$obj->id}'>{$obj->id}</a>", $obj->name);
     }
     $result .= '<tr><td colspan="10" class="nob">';
     $result .= makePageNav($pagenum, $page_posts, $count, iSELF . '?object=domain&amp;action=list&amp;');
     $result .= '</td></tr>';
     $result .= endTable();
     return $result;
 }
开发者ID:carriercomm,项目名称:Multicabinet,代码行数:18,代码来源:class.Domain.php

示例14: ShowActions

 function ShowActions()
 {
     global $LANG;
     $show = beginTable($LANG['Actions']);
     $show .= "<tr><td><a href=\"?object=company&amp;action=edit&CompanyID={$this->id}\"><img src=\"images/edit.png\">{$LANG['Edit']}</a></td></tr>";
     $show .= "<tr><td><a href=\"?object=company&amp;action=delete&CompanyID={$this->id}\"><img src=\"images/delete.png\">{$LANG['Delete']}</a></td></tr>";
     $show .= endTable();
     return $show;
 }
开发者ID:carriercomm,项目名称:Multicabinet,代码行数:9,代码来源:class.Company.php

示例15: step_2


//.........这里部分代码省略.........
    //if($companyInfo['cd_bank_routingcode']) $payment['Payment_Data']['Wire']['Bank_Routing_Type'] = $routingTypes[$companyInfo['cd_bank_routingcode']];
    //if($companyInfo['bank_IBRoutingCodeType']) $payment['Payment_Data']['Wire']['Intermediary_Bank_Routing_Type'] = $routingTypes[$companyInfo['bank_IBRoutingCodeType']];
    $access = getAccessInfo("\n\t\n\ten_ID,\n\ten_info,\n\t\n\t'Payment Method' as access_header,\n\t1 as 'Method',\n\t\n\t'ACH Banking Info' as access_header,\n  \t\t1 as 'ACH_Bank_Name', 1 as 'ACH_Bank_Address', 1 as 'ACH_Bank_ZipCode', 1 as 'ACH_Bank_City', 1 as 'ACH_Bank_State', \n  \t\t1 as 'ACH_Bank_Country', 1 as 'ACH_Bank_Phone', 1 as 'ACH_Bank_Beneficiary_Name', 1 as 'ACH_Bank_Account_Name', 1 as 'ACH_Bank_Account_Number', \n  \t\t1 as 'ACH_Bank_Routing_Number', 1 as 'ACH_Bank_Additional_Notes',\n\t\t\n\t'Wire Banking Info' as access_header,\n  \t\t1 as 'Wire_Bank_Name', 1 as 'Wire_Bank_Address', 1 as 'Wire_Bank_ZipCode', 1 as 'Wire_Bank_City', 1 as 'Wire_Bank_State', \n  \t\t1 as 'Wire_Bank_Country', 1 as 'Wire_Bank_Phone', 1 as 'Wire_Bank_Beneficiary_Name', 1 as 'Wire_Bank_Account_Name', 1 as 'Wire_Bank_Account_Number', \n  \t\t1 as 'Wire_Bank_Routing_Number', 1 as 'Wire_Bank_Routing_Type', 1 as 'Wire_Intermediary_Bank_Routing_Number',\n\t\t1 as 'Wire_Intermediary_Bank_Routing_Type',\t1 as 'Wire_Intermediary_Bank_Name', 1 as 'Wire_Intermediary_Bank_City', 1 as 'Wire_Intermediary_Bank_State', \n\t\t1 as 'Wire_Bank_Sort_Code', 1 as 'Wire_Bank_VAT_Number', 1 as 'Wire_Bank_Registration_Number', 1 as 'Wire_Bank_Additional_Notes'\n\t", "cs_entities", "en_ID = '{$en_ID}'", array('Size' => 30, 'Rows' => 2, 'HideIfEmpty' => true, 'Length' => 32, 'Valid' => 'req'), $access);
    if ($access == -1) {
        dieLog("Invalid Company", "Invalid Company");
    }
    $access['Data']['en_ID']['Input'] = "hidden";
    $access['Data']['en_ID']['disable'] = 1;
    $access['Data']['Method']['Input'] = "selectcustomarray";
    $access['Data']['Method']['Input_Custom'] = array('' => 'Please Select a Method', 'Wire' => 'Wire (International)', 'ACH' => 'ACH (US Only)');
    $access['Data']['Method']['InputAdditional'] = 'onchange="this.form.submit()"';
    $access['Data']['ACH_Bank_Additional_Notes']['Valid'] = '';
    $access['Data']['Wire_Bank_Additional_Notes']['Input'] = 'textarea';
    $access['Data']['Wire_Bank_Additional_Notes']['Size'] = '50';
    $access['Data']['Wire_Bank_Additional_Notes']['Rows'] = '6';
    $access['Data']['ACH_Bank_Additional_Notes']['Input'] = 'textarea';
    $access['Data']['ACH_Bank_Additional_Notes']['Size'] = '50';
    $access['Data']['ACH_Bank_Additional_Notes']['Rows'] = '6';
    $access['Data']['Wire_Bank_Sort_Code']['Valid'] = '';
    $access['Data']['Wire_Bank_VAT_Number']['Valid'] = '';
    $access['Data']['Wire_Bank_Registration_Number']['Valid'] = '';
    $access['Data']['Wire_Bank_Additional_Notes']['Valid'] = '';
    $access['Data']['Wire_Bank_Additional_Notes']['RowDisplay'] = 'Wide';
    $access['Data']['ACH_Bank_Additional_Notes']['Valid'] = '';
    $access['Data']['ACH_Bank_Additional_Notes']['RowDisplay'] = 'Wide';
    $access['Data']['Wire_Bank_Country']['Style'] = 'width:205px;';
    $access['Data']['Wire_Bank_Country']['Input'] = 'selectcustom';
    $access['Data']['Wire_Bank_Country']['Input_Custom'] = "Select co_ISO,co_full From cs_country";
    $access['Data']['Wire_Bank_Country']['InputAdditional'] = "onchange='" . "\$(\"Wire_Intermediary_Bank_Routing_Number\").setAttribute(\"valid\",(this.value!=\"US\"?\"req\":\"\"));" . "\$(\"Wire_Intermediary_Bank_Routing_Type\").setAttribute(\"valid\",(this.value!=\"US\"?\"req\":\"\"));" . "\$(\"Wire_Intermediary_Bank_Name\").setAttribute(\"valid\",(this.value!=\"US\"?\"req\":\"\"));" . "\$(\"Wire_Intermediary_Bank_City\").setAttribute(\"valid\",(this.value!=\"US\"?\"req\":\"\"));" . "\$(\"Wire_Intermediary_Bank_State\").setAttribute(\"valid\",(this.value!=\"US\"?\"req\":\"\"));" . "';" . ($access['Data']['Wire_Bank_State']['Input'] = 'selectcustom');
    $access['Data']['Wire_Bank_State']['Style'] = 'width:205px;';
    $access['Data']['Wire_Bank_State']['Input_Custom'] = "Select st_abbrev,st_full From cs_states";
    $access['Data']['ACH_Bank_Country']['Style'] = 'width:205px;';
    $access['Data']['ACH_Bank_Country']['Input'] = 'selectcustom';
    $access['Data']['ACH_Bank_Country']['Input_Custom'] = "Select co_ISO,co_full From cs_country";
    $access['Data']['ACH_Bank_State']['Input'] = 'selectcustom';
    $access['Data']['ACH_Bank_State']['Style'] = 'width:205px;';
    $access['Data']['ACH_Bank_State']['Input_Custom'] = "Select st_abbrev,st_full From cs_states";
    $access['Data']['Wire_Intermediary_Bank_Routing_Type']['Input'] = "selectcustomarray";
    $access['Data']['Wire_Intermediary_Bank_Routing_Type']['Input_Custom'] = $etel_routing_types;
    $access['Data']['Wire_Bank_Routing_Type']['Input'] = "selectcustomarray";
    $access['Data']['Wire_Bank_Routing_Type']['Input_Custom'] = $etel_routing_types;
    $access['SubmitValue'] = 'Update Information';
    if ($skipIfComplete) {
        $access['SubmitValue'] = 'Continue to Step 3';
    }
    $access['SubmitName'] = 'submit_step2';
    // Submit
    $showvalidation = false;
    if ($_POST[$access['SubmitName']] || $_POST['Method']) {
        $result = processAccessForm(&$access);
        $showvalidation = true;
    }
    $access['Columns'] = 1;
    // Display Parsing
    foreach ($access['Data'] as $key => $data) {
        $access['Data'][$key]['DisplayName'] = preg_replace('/Wire |ACH /', '', $access['Data'][$key]['DisplayName']);
        if ($access['Data']['Method']['Value'] != 'Wire') {
            if (strpos($key, 'Wire_') !== false) {
                unset($access['Data'][$key]);
            }
            if ($access['Data'][$key]['Name'] == 'access_header' && $access['Data'][$key]['Value'] == 'Wire Banking Info') {
                unset($access['Data'][$key]);
            }
        }
        if ($access['Data']['Method']['Value'] != 'ACH') {
            if (strpos($key, 'ACH_') !== false) {
                unset($access['Data'][$key]);
            }
            if ($access['Data'][$key]['Name'] == 'access_header' && $access['Data'][$key]['Value'] == 'ACH Banking Info') {
                unset($access['Data'][$key]);
            }
        }
    }
    if ($access['Data']['Wire_Bank_Country']['Value'] == 'US') {
        $access['Data']['Wire_Intermediary_Bank_Routing_Type']['Valid'] = '';
        $access['Data']['Wire_Intermediary_Bank_Routing_Number']['Valid'] = '';
        $access['Data']['Wire_Intermediary_Bank_Name']['Valid'] = '';
        $access['Data']['Wire_Intermediary_Bank_City']['Valid'] = '';
        $access['Data']['Wire_Intermediary_Bank_State']['Valid'] = '';
    }
    // Validate
    $valid = true;
    foreach ($access['Data'] as $key => $data) {
        if (!$data['Value'] && $data['Valid']) {
            $valid = false;
            if ($showvalidation) {
                $access['Data'][$key]['Highlight'] = true;
            }
        }
    }
    if (!$valid || !$skipIfComplete) {
        draw_step_buttons(2, $skipIfComplete);
        $access['HeaderMessage'] = "Please Complete all required fields to continue.";
        beginTable();
        writeAccessForm(&$access);
        endTable("Step #2 - Company Information", "");
        include "includes/footer.php";
        die;
    }
}
开发者ID:juliogallardo1326,项目名称:proc,代码行数:101,代码来源:application.php


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