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


PHP openForm函数代码示例

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


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

示例1: add

 public function add()
 {
     global $LANG;
     $show = openForm(iSELF . '?object=domain&action=add2');
     $show .= beginTable("{$LANG['Add']} {$LANG['Domain']}");
     $show .= TextField($LANG['Title'], 'name', '');
     $show .= TextField($LANG['CreateDate'], 'createdate', '');
     $show .= TextField($LANG['User'], 'autor', '');
     $show .= TextField($LANG['Content'], 'content', '');
     $show .= Submitter('add_domain', $LANG['Add']);
     $show .= endTable();
     return $show;
 }
开发者ID:carriercomm,项目名称:Multicabinet,代码行数:13,代码来源:class.Domain.php

示例2: searchBar

function searchBar()
{
    global $lSearch, $lLast, $lAddress, $lEmail;
    openForm("searcher", "search.php");
    beginPrettyTable("2");
    echo "<tr><td>\n";
    echo "<b>{$lSearch}</b>: <input name='tosearch' type='text'>\n";
    echo "</td><td valign='center'>\n";
    echo "<select name='searcher' type='text'>\n";
    echo " <option value='last'>{$lLast}\n";
    echo " <option value='address'>{$lAddress}\n";
    echo " <option value='email'>{$lEmail}\n";
    echo "</select>\n";
    echo "<input type='image' align='center' src='images/go.gif' value='submit' border=0>\n";
    echo "</td></tr>\n";
    endPrettyTable();
    closeForm();
}
开发者ID:k9ert,项目名称:ac4ngos,代码行数:18,代码来源:accrp.php

示例3: makeTextField

            makeTextField("salary_field_" . $key, $edit_salary["{$key}"], "{$value}", 10, "onFocus=\"editIncomeField(this.value)\" onChange=\"changedIncomeField(this.value) \"");
            $income_sum += $edit_salary["{$key}"];
        }
        makeStaticField("income_sum", $income_sum, "Income Sum:", "", 11);
        # Expense-Positions
        printRow(array("<div align=\"center\"><h2>EXPENSE</h2></div>"), "", "1,2");
        foreach ($expense_salary_elements_array_desc as $key => $value) {
            makeTextField("salary_field_" . $key, $edit_salary["{$key}"], "{$value}", 10, "onFocus=\"editExpenseField(this.value)\" onChange=\"changedExpenseField(this.value) \"");
            $expense_sum += $edit_salary["{$key}"];
        }
        makeStaticField("expense_sum", $expense_sum, "Expense Sum:", "", 11);
        printRow(array("<hr>"), "", "1,2");
        makeStaticField("total_sum", $income_sum - $expense_sum, "Total Sum:", "", 14);
        makeSpecialSubmitter("submit", "onClick='this.form.submitnow.value=\"1\"'");
        endPrettyTable();
        closeForm();
        ?>
	</td>
	  </table>
	  <?php 
    } else {
        $personal_array = get_personal_array();
        openForm("selectemployee", $PHP_SELF);
        beginPrettyTable("2", "select Employee");
        makeDropBox("emp_id3", $personal_array, "Employer Name");
        makeSubmitter();
        endPrettyTable();
        closeForm();
    }
}
endDocument();
开发者ID:k9ert,项目名称:ac4ngos,代码行数:31,代码来源:enter_personal_salary.php

示例4: get_ac5_sc_array

        #	$ac_array = get_ac5_sc_array("5(1)","B");
    } else {
        die("Unknown Voucher-type: ({$vr_tp})");
    }
    $dept_array = get_dept_array();
    if (!isset($ac_count)) {
        $ac_count = 3;
    }
    $today = get_today_hrd_string();
    ?>
 
	<table cellpadding=5 cellspacing=0 border=0 width='100%'>
	 <tr>
          <td valign=top align=center width='65%'>
	     <?php 
    openForm("transaction", $PHP_SELF);
    beginPrettyTable("2", "enter {$type_of_voucher} Voucher");
    makeHiddenField("ac_count", "{$ac_count}");
    makeHiddenField("crpemp", $crpemp);
    makeHiddenField("submitnow", "");
    makeHiddenField("vr_tp", $vr_tp);
    makePlainDropBox("ac_name", $ac_array, "Ac_Name");
    makePlainStaticField("t_dt", $today, "         ", 10);
    startRow();
    makePlainStaticField("dr_cr", $dr_cr, "DR./CR", 2);
    makePlainTextField("amount", "", "Amount:", 8);
    endRow();
    startRow();
    makePlainStaticField("vr_no", "", "Vr.No.:", 10);
    makePlainTextField("vr_dt", $today, "Vr.-Date:", 10);
    endRow();
开发者ID:k9ert,项目名称:ac4ngos,代码行数:31,代码来源:enter_trans.php

示例5: session_start

<?php

# This form allows to enter a date. After submitting, all Bank and Cash Account-balances get
# printed seperated by Projects.
session_start();
require "accrp.php";
require "security/secure.php";
beginDocument("list Cash and Bank", $sess_user);
if ($date) {
    $ac1 = get_ac_array(1);
    foreach ($ac1 as $key => $prj_desc) {
        $accounts = new BankAndCashAccounts_byProject($key, $date, "c");
        beginPrettyTable(4, "{$prj_desc}");
        printRow(array("Account", "Balance"));
        while ($row = $accounts->getNext()) {
            printRow(array($row["AC5_DESC"], $accounts->getActualBalance() . "&nbsp;"), "irgendwas");
        }
        printRow(array("Sum", $accounts->getSum()));
        endPrettyTable();
    }
} else {
    openForm("enter Date", $PHP_SELF);
    beginPrettyTable("2", "list bank and cash");
    makeTextField("date", get_today_hrd_string(), "Date:");
    makeSubmitter();
    endPrettyTable();
    closeForm();
}
endDocument();
开发者ID:k9ert,项目名称:ac4ngos,代码行数:29,代码来源:list_bank_cash.php

示例6: echoT

<?php

global $glLabelWidth, $gstrFormName;
$gstrFormName = 'frmAddEdit';
$glLabelWidth = 150;
echoT($strHTMLSummary);
$clsForm = new generic_form();
openForm($clsForm, $lParentID, $lCFID, $cForm, $bCusVerification);
if ($lNumTables > 0) {
    userTables($clsForm, $lNumTables, $utables, $errMessages);
}
buttonAndClose($clsForm);
function openForm(&$clsForm, $lParentID, $lCFID, &$cForm, $bCusVerification)
{
    //---------------------------------------------------------------------
    //
    //---------------------------------------------------------------------
    global $glLabelWidth, $gstrFormName, $gbShowHiddenVerifyError;
    $clsForm->strLabelClass = $clsForm->strLabelRowLabelClass = $clsForm->strLabelClassRequired = 'enpViewLabel';
    $clsForm->strTitleClass = 'enpViewTitle';
    $clsForm->strEntryClass = 'enpView';
    $clsForm->bValueEscapeHTML = false;
    $attributes = array('name' => $gstrFormName, 'id' => $gstrFormName);
    $hidden = array('forceSubmit' => '1');
    echoT(form_open('custom_forms/data_entry/addFromCForm/' . $lParentID . '/' . $lCFID, $attributes, $hidden));
    if ($bCusVerification) {
        echoT(form_hidden('hVerify', 'true') . "\n");
        if ($gbShowHiddenVerifyError) {
            echoT(form_error('hVerify'));
        }
    }
开发者ID:simple-gifts,项目名称:Delightful-Labor,代码行数:31,代码来源:custom_form_data_entry_view.php

示例7: get_new_vrno

        }
        $amount = $_POST[$field_name];
        $vr_no = get_new_vrno();
        # insert voucher
        $query = $query_part1 . "('{$vr_no}','{$today}','CR','{$ac1}', '{$ac2}','{$ac3}','{$ac4}','{$ac5}','D','','{$amount}','','opening Balance','{$today}','')";
        $result = mysql_query($query, $db);
        checkMySQLError();
        # insert counterbooking
        $query = $query_part1 . "('{$vr_no}','{$today}','CR','0', '5','0','0','0','C','','{$amount}','','opening Balance','{$today}','')";
        $result = mysql_query($query, $db);
        checkMySQLError();
    }
    report(1, "Everything seems to be fine. Check via Bank and Cash Report!");
} else {
    $db = getDBConnection();
    $result = mysql_query("Select * FROM TRANS");
    if (mysql_num_rows($result) != 0) {
        report(0, "Sorry, opening balance can only be performed when you have no Vouchers entered");
    }
    $accounts_array = get_ac5_sc_array("5(1)", "B");
    beginPrettyTable("2", "enter opening balances");
    openForm("openingbalance", $PHP_SELF);
    makeHiddenField("submitnow", 0);
    foreach ($accounts_array as $ac5 => $desc) {
        makeTextField("account_field_" . $ac5, "", $desc);
    }
    makeSpecialSubmitter("submit", "onClick='this.form.submitnow.value=\"1\"'");
    closeForm();
    endPrettyTable();
}
endDocument();
开发者ID:k9ert,项目名称:ac4ngos,代码行数:31,代码来源:enter_openingbalance.php

示例8: beginPrettyTable

	  <td valign=top width='15%'>
	
           <?php 
    beginPrettyTable("1");
    ?>
	   <tr>
	    <?php 
    echo "<td><a href='list_desig.php'>show List</a></td>";
    ?>
	   </tr>
	   <tr>
	    <td><hr color='black'></td>
	   </tr>
	   <?php 
    endPrettyTable();
    ?>
	  </td>
	  <td valign=top align=center width='65%'>
	     <?php 
    openForm("enterDESIGNATION", $PHP_SELF);
    beginPrettyTable("2", "enter Designation");
    makeTextField("desig_desc", "", "Designation");
    makeSubmitter();
    endPrettyTable();
    closeForm();
    ?>
	</td>
	  </table>
	  <?php 
}
endDocument();
开发者ID:k9ert,项目名称:ac4ngos,代码行数:31,代码来源:enter_desig.php

示例9: ShowDomains

 public function ShowDomains()
 {
     global $LANG, $DB;
     $objs = Domain::load_domains('*', "`username`='{$this->username}' AND `ServerID`='{$this->ServerID}'");
     $count = count($objs);
     $show = openForm(iSELF, 'get');
     $show .= HiddenField('object', 'testdomain');
     $show .= beginTable("{$count} {$LANG['Domain']}", '100%');
     $show .= makeTH($LANG['Domain'], $LANG['DateClosed']);
     foreach ($objs as $obj) {
         $show .= makeTD("<input type='radio' name='url' value='{$obj->name}' />{$obj->name}", '');
     }
     $show .= ArrayDropBox('проверить', 'action', 'whois', array('http', 'HTTP', 'whois', 'WHOIS'));
     $show .= Submitter('go', 'check');
     $show .= endTable();
     $show .= closeForm();
     return $show;
 }
开发者ID:carriercomm,项目名称:Multicabinet,代码行数:18,代码来源:class.Account.php

示例10: add_form

 public function add_form($AccountID, $OrderID = null)
 {
     global $LANG, $lInfo, $PAYMETHOD, $PAYTARGET, $DomainPrice;
     $show = openForm(iSELF);
     $show .= HiddenField('object', 'payment');
     $show .= HiddenField('action', 'add2');
     $show .= HiddenField('AccountID', $AccountID);
     $show .= HiddenField('OrderID', $OrderID);
     $show .= beginTable($LANG['Payment']);
     if (!empty($OrderID)) {
         $order = new Order($OrderID);
         $show .= StaticField($LANG['OrderID'], $order->id);
         if ($order->service == 'hosting') {
             // Calculate hosting price
             //$serv = new Service_hosting(array('opentime'=>date('Y-m-d H:i:s', iNOW_UNIX - $order->count*iMON), 'closetime'=>iNOW_TEXT, 'mod'=>$order->package->id));
             $hosting_price = $order->count * $order->package->price;
             $show .= '<tr><td class="nob">' . HiddenField('item', 'hosting') . '</td></tr>';
             $pack_array = array();
             foreach ($PAYMETHOD as $index => $val) {
                 $pack_array[] = $index;
                 $pack_array[] = $val;
             }
             $show .= ArrayDropBox($LANG['Paymethod'], 'method', $order->paymethod, $pack_array);
             $show .= TextField($LANG['Amount'] . ', руб.', 'amount', round($hosting_price, 2));
             if ($order->domaininfo['action'] == 'reg') {
                 $domain_price = $DomainPrice[zone($order->domain)][0];
                 if ($DomainPrice[zone($order->domain)][3]) {
                     foreach ($order->package->bonusdomain as $time => $bonus) {
                         if ($order->count >= $time) {
                             $domain_price = 0.0;
                         }
                     }
                 }
                 $show .= CheckBox($lInfo['reg'] . ' ' . $order->domain, 'domain', true);
                 $show .= TextField($LANG['Domain'] . ' ' . $LANG['Amount'] . ', руб.', 'domain_amount', round($domain_price, 2));
             }
         } elseif ($order->service == 'domain' || $order->service == 'domain_cont') {
             $amount = $order->amount;
             $show .= StaticField('Назаначение', "<input type='radio' name='item' value='{$order->service}' checked='checked' />" . $PAYTARGET[$order->service]['name'] . '<br />(регистрация/продление домена и добавление услуги)<br />' . "<input type='radio' name='item' value='hosting' />" . $PAYTARGET['hosting']['name'] . '<br />(продление хостинга)');
             $pack_array = array();
             foreach ($PAYMETHOD as $index => $val) {
                 $pack_array[] = $index;
                 $pack_array[] = $val;
             }
             $show .= ArrayDropBox($LANG['Paymethod'], 'method', $order->paymethod, $pack_array);
             $show .= TextField($LANG['Amount'], 'amount', round($amount, 2));
         } else {
             $amount = $order->amount;
             $pack_array = array();
             foreach ($PAYTARGET as $index => $val) {
                 $pack_array[] = $index;
                 $pack_array[] = $val['name'];
             }
             $show .= ArrayDropBox($LANG['Service'], 'item', $order->service, $pack_array);
             $pack_array = array();
             foreach ($PAYMETHOD as $index => $val) {
                 $pack_array[] = $index;
                 $pack_array[] = $val;
             }
             $show .= ArrayDropBox($LANG['Paymethod'], 'method', $order->paymethod, $pack_array);
             $show .= TextField($LANG['Amount'], 'amount', round($amount, 2));
         }
     } else {
         $amount = 0.0;
         $Service = 'hosting_cont';
         $PayMethod = '';
         $show .= TextField($LANG['OrderID'], 'OrderID', '');
         $pack_array = array();
         foreach ($PAYTARGET as $index => $val) {
             $pack_array[] = $index;
             $pack_array[] = $val['name'];
         }
         $show .= ArrayDropBox($LANG['Service'], 'item', $Service, $pack_array);
         $pack_array = array();
         foreach ($PAYMETHOD as $index => $val) {
             $pack_array[] = $index;
             $pack_array[] = $val;
         }
         $show .= ArrayDropBox($LANG['Paymethod'], 'method', $PayMethod, $pack_array);
         $show .= TextField($LANG['Amount'], 'amount', round($amount, 2));
     }
     if (!empty($OrderID) && ($order->service == 'hosting' || $order->service == 'hosting_cont')) {
         $show .= CheckBox('Отправить уведомление', 'Note', true);
     } else {
         $show .= CheckBox('Отправить уведомление', 'Note', false);
     }
     $show .= Submitter('new_pay', $LANG['Add']);
     $show .= endTable();
     $show .= closeForm();
     return $show;
 }
开发者ID:carriercomm,项目名称:Multicabinet,代码行数:91,代码来源:class.Payment.php

示例11: beginPrettyTable

	  <td valign=top width='15%'>
	
           <?php 
    beginPrettyTable("1");
    ?>
	   <tr>
	    <?php 
    echo "<td><a href='list_salary_elements.php'>show List</a></td>";
    ?>
	   </tr>
	   <tr>
	    <td><hr color='black'></td>
	   </tr>
	   <?php 
    endPrettyTable();
    ?>
	  </td>
	  <td valign=top align=center width='65%'>
	     <?php 
    openForm("moneyreceipt_form", $PHP_SELF);
    beginPrettyTable("2", "enter Voucher-No");
    maketextfield("vr_no", "", "Voucher Number");
    makeSubmitter();
    endPrettyTable();
    closeForm();
    ?>
	</td>
	  </table>
	  <?php 
}
endDocument();
开发者ID:k9ert,项目名称:ac4ngos,代码行数:31,代码来源:print_money_receipt.php

示例12: add

 function add()
 {
     global $LANG;
     $show = openForm(iSELF . '?object=company&amp;action=add2');
     $show .= beginTable("{$LANG['Add']} {$LANG['Company']}");
     $show .= TextField($LANG['Title'], 'title', '');
     $show .= TextField('ИНН', 'inn', '');
     $show .= TextField('КПП', 'kpp', '');
     $show .= TextField('Счёт в банке для юр.лиц', 'c_rasschet', '');
     $show .= TextField('Банк для юр.лиц', 'c_bankname', '');
     $show .= TextField('Бик банка для юр.лиц', 'c_bik', '');
     $show .= TextField('Корр. счёт банка для юр.лиц', 'c_k_rasschet', '');
     $show .= TextField('Счёт в банке для физ.лиц', 'p_rasschet', '');
     $show .= TextField('Банк для физ.лиц', 'p_bankname', '');
     $show .= TextField('Бик банка для физ.лиц', 'p_bik', '');
     $show .= TextField('Корр. счёт банка для физ.лиц', 'p_k_rasschet', '');
     $show .= TextField('Главный директор', 'general_manager', '');
     $show .= TextField('Главный бухгалтер', 'chief_accountant', '');
     $show .= TextField('Ставка НДС', 'nds', '');
     $show .= TextField("Изображение Печати", 'stamp', '');
     $show .= Submitter('add_company', $LANG['Add']);
     $show .= endTable();
     return $show;
 }
开发者ID:carriercomm,项目名称:Multicabinet,代码行数:24,代码来源:class.Company.php

示例13: deldir

    deldir("/tmp/ac4ngosdata/");
    # 0333 does not work properly :-( so chmod ...
    $filename = $_FILES['dbdumpfile']['tmp_name'];
    move_uploaded_file($filename, "/tmp/ac4ngosimport.tar.gz") || die("Something wrong with the uploaded file ...");
    exec("cd /tmp; tar -xzf ac4ngosimport.tar.gz;chmod -R o+r ac4ngosdata");
    $result = mysql_query("SHOW TABLES FROM {$DBNAME}");
    checkMySQLError();
    while ($row = mysql_fetch_array($result, $db)) {
        $tablename = $row["Tables_in_{$DBNAME}"];
        $query = "DELETE FROM {$tablename}";
        $result2 = mysql_query($query, $db);
        checkMySQLError($query);
        $filename = "/tmp/accrpdata/" . $tablename . ".txt";
        if (file_exists($filename)) {
            $query = "LOAD DATA INFILE '{$filename}' INTO TABLE `{$tablename}`";
            $result2 = mysql_query($query, $db);
            checkMySQLError($query);
        }
    }
    deldir("/tmp/ac4ngosdata/");
    die("finished");
} else {
    beginPrettyTable(2, "Restore Backup");
    openForm("uploadfile", "{$PHP_SELF}", "form enctype=\"multipart/form-data\" accept\"application/x-tgz\"");
    makeHiddenField("MAX_FILE_SIZE", "30000");
    echo "Send this file: <input name=\"dbdumpfile\" type=\"file\">";
    makePlainSpecialSubmitter("Send File");
    closeForm();
    endPrettyTable();
}
endDocument();
开发者ID:k9ert,项目名称:ac4ngos,代码行数:31,代码来源:restore_backup.php

示例14: htmlHeader

<?php

global $gclsChapterVoc;
global $glLabelWidth;
$glLabelWidth = 130;
htmlHeader($title, $rRec->strCSSFN, $js);
startBody();
$clsForm = new generic_form();
openForm($clsForm, $strHash);
$clsForm->strExtraFieldText = '';
formHeading($rRec, $strErrOnForm, $info);
/*
*/
standardFields($basicInfo, $rRec, $bCreateAcct, $formData, $clsForm, $errMessages);
if ($lNumSkills > 0) {
    jobSkills($clsForm, $skills);
}
if ($lNumTables > 0) {
    userTables($clsForm, $lNumTables, $utables, $errMessages);
}
if ($rRec->bShowDisclaimer) {
    showDisclaimer($clsForm, $rRec);
}
if ($rRec->bCaptchaRequired) {
    showCaptcha($clsForm, $imgCaptcha);
}
buttonAndClose($clsForm);
endBody($this);
function openForm(&$clsForm, $strHash)
{
    //---------------------------------------------------------------------
开发者ID:simple-gifts,项目名称:Delightful-Labor,代码行数:31,代码来源:register.php

示例15: beginPrettyTable

	
           <?php 
    beginPrettyTable("1");
    ?>
	   <tr>
	    <?php 
    echo "<td><a href='list_salary_elements.php'>show List</a></td>";
    ?>
	   </tr>
	   <tr>
	    <td><hr color='black'></td>
	   </tr>
	   <?php 
    endPrettyTable();
    ?>
	  </td>
	  <td valign=top align=center width='65%'>
	     <?php 
    openForm("salaryelement_form", $PHP_SELF);
    beginPrettyTable("2", "enter salary element");
    makeTextField("sal_desc", "", "Salary Description");
    makeDropBox("id_tp", array("I" => "I", "E" => "E"), "Expenses/Income");
    makeSubmitter();
    endPrettyTable();
    closeForm();
    ?>
	</td>
	  </table>
	  <?php 
}
endDocument();
开发者ID:k9ert,项目名称:ac4ngos,代码行数:30,代码来源:enter_salary_element.php


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