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;
 }
Example #2
0
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();
}
Example #3
0
            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();
Example #4
0
        #	$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();
Example #5
0
<?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();
<?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'));
        }
    }
Example #7
0
        }
        $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();
Example #8
0
	  <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();
 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;
 }
 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;
 }
Example #11
0
	  <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();
 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;
 }
Example #13
0
    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();
<?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)
{
    //---------------------------------------------------------------------
Example #15
0
	
           <?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();
Example #16
0
    ?>
	   <tr>
	    <?php 
    echo "<td><a href='list_ac5.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("enterAC_CODE5", $PHP_SELF);
    beginPrettyTable("2", $lEnterCustomer);
    makeDropBox("ac_id1", $ac1_array, "AC_CODE1");
    makeDropBox("ac_id2", $ac2_array, "AC_CODE2");
    makeDropBox("ac_id3", $ac3_array, "AC_CODE3");
    makeDropBox("ac_id4", $ac4_array, "AC_CODE4");
    makeTextField("ac5_desc", "", "AC_CODE5");
    makeSubmitter();
    endPrettyTable();
    closeForm();
    ?>
	   </td>
	  </table>
	  <?php 
}
endDocument();
Example #17
0
 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;
 }
$gdivAtt = new stdClass();
$gdivAtt->lTableWidth = 900;
$gdivAtt->lUnderscoreWidth = 300;
$gdivAtt->divID = 'groupDiv';
$gdivAtt->divImageID = 'groupDivImg';
$gdivAtt->bStartOpen = true;
$gdivAtt->bAddTopBreak = true;
$gdivAtt->bCloseDiv = false;
echoT($strHTMLSummary);
if ($utable->lNumEditableFields == 0 && !$bCProg) {
    echoT('<br><i>There are no editable fields in table <b>' . htmlspecialchars($utable->strUserTableName) . '.</b></i><br>');
    return;
}
$glLabelWidth = 150;
$clsForm = new generic_form();
openForm($clsForm, $lTableID, $lFID, $lRecID, $lEnrollRecID, $bUseReturnPath, $bCusVerification);
userTable($clsForm, $utable, $errMessages, $strSafeAttendLabel, $strSafeEnrollLabel);
buttonAndClose($clsForm);
function openForm(&$clsForm, $lTableID, $lFID, $lRecID, $lEnrollRecID, $bUseReturnPath, $bCusVerification)
{
    //---------------------------------------------------------------------
    //
    //---------------------------------------------------------------------
    global $gbShowHiddenVerifyError;
    $clsForm->strLabelClass = $clsForm->strLabelRowLabelClass = $clsForm->strLabelClassRequired = 'enpViewLabel';
    $clsForm->strTitleClass = 'enpViewTitle';
    $clsForm->strEntryClass = 'enpView';
    $clsForm->bValueEscapeHTML = false;
    $attributes = array('name' => 'frmPTable', 'id' => 'frmPTable');
    echoT(form_open('admin/uf_multirecord/addEditMultiRecord/' . $lTableID . '/' . $lFID . '/' . $lRecID . '/' . $lEnrollRecID . '/' . ($bUseReturnPath ? 'true' : 'false'), $attributes));
    if ($bCusVerification) {
Example #19
0
    echo "<td><a href='list_loan.php?type={$type}'>show List</a></td>";
    ?>
	   </tr>
	   <tr>
	    <td><hr color='black'></td>
	   </tr>
	   <?php 
    endPrettyTable();
    # it just print out some HTML
    ?>
	  </td>
	  <td valign=top align=center width='65%'>
	<?php 
    $db = getDBConnection();
    $employer_array = get_personal_array();
    openForm("loan_form", $PHP_SELF, "onSubmit=\"return confirmSubmit()\"");
    beginPrettyTable("2", "enter {$loan_type} entry");
    makeHiddenField("type", $type);
    makeDropBox("emp_id3", $employer_array, "Employers Name");
    startRow();
    makePlainTextField("loan_dt", "", "Loan Santion Dt.", 10);
    makePlainTextField("loan_start", "", "Deduction Start Dt.", 10, "onChange=\"checkdate(this.value) && updateFields()\"");
    endRow();
    startRow();
    makePlainTextField("inst_no", "", "Instalment No", 6, "onChange=\"updateFields()\"");
    makePlainStaticField("loan_end", "", "Loan End Dt.", 10);
    endRow();
    makeStaticField("interest_rate", "{$interest_rate}" . "%", "Interest Rate", 6);
    startRow();
    makePlainTextField("loan_amt", "", "Loan Amount", 10, "onChange=\"updateFields()\"");
    makePlainStaticField("int_amt", "", "Total Interest", 10);
Example #20
0
	
           <?php 
    beginPrettyTable("1");
    ?>
	   <tr>
	    <?php 
    echo "<td><a href='list_acs.php?showac={$ac}'>show List</a></td>";
    ?>
	   </tr>
	   <tr>
	    <td><hr color='black'></td>
	   </tr>
	   <?php 
    endPrettyTable();
    ?>
	  </td>
	  <td valign=top align=center width='65%'>
	   <?php 
    openForm("enterAC_CODE{$ac}", $PHP_SELF);
    beginPrettyTable("2", "enter AC_CODE{$ac}");
    makeHiddenField("ac", $ac);
    makeTextField("ac_desc", "", "AC_CODE{$ac}");
    makeSubmitter();
    endPrettyTable();
    closeForm();
    ?>
	   </td>
	  </table>
	  <?php 
}
endDocument();
Example #21
0
        $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, "onSubmit='return checkBeforeSubmit()'");
    beginPrettyTable("2", "enter {$type_of_voucher} Voucher");
    makeHiddenField("ac_count", "{$ac_count}");
    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();
    makePlainTextField("party", "", $dr_cr == "C" ? "Paid To" : "Rcvd. from");
Example #22
0
    echo "<td><a href='list_dept.php'>show List</a></td>";
    ?>
	   </tr>
	   <tr>
	    <td><hr color='black'></td>
	   </tr>
	   <?php 
    endPrettyTable();
    # it just print out some HTML
    ?>
	  </td>
	  <td valign=top align=center width='65%'>
	     <?php 
    # Ok, we are again in PHP-Mode
    # Prints all that HTML-stuff, we don't want to deal with
    openForm("enterDEPARTMENT", $PHP_SELF);
    # Prints all that HTML-stuff, we don't want to deal with
    beginPrettyTable("2", "enter DEPARTMENT");
    # makeHiddenField("dept_id", $edit["DEPT_ID"]); This one, we perhaps use it later
    # "dept_name" is the name of the form (see html-page)
    # It will get a variable if this Program is called once again
    # (see upper "if"-Statement)
    makeTextField("dept_name", $edit["DEPT_NAME"], "Department");
    # print out the code for that "submit"-Button
    makeSubmitter();
    # Prints all that HTML-stuff, we don't want to deal with
    endPrettyTable();
    # Prints all that HTML-stuff, we don't want to deal with
    closeForm();
    # sometimes, we have to print it out directly with "echo"
    echo "</td> </table>";
Example #23
0
            echo "<a href='publicprofile.php'>Main</a>";
            echo "<script language='JavaScript'>window.location='publicprofile.php'</script>";
        }
    } else {
        echo "<script language='JavaScript'>window.location='index.php?login=failed'</script>";
    }
} else {
    beginDocument("Login", "Not Logged In");
    session_destroy();
    ?>
<form name='login' method='POST' action='<?php 
    $PHP_SELF;
    ?>
'>
<?php 
    openForm("login", $PHP_SELF);
    ?>
<table width='100%' height='50%' cellpadding=0 cellspacing=0 border=0>
 <tr>
  <td valign='center' align='center'>
<?php 
    beginPrettyTable("2", $lLogin);
    ?>
<tr>
 <td>Username:</td>
 <td><input type='text' name='username' value=''></td>
</tr>
<tr>
 <td>Password:</td>
 <td><input type='password' name='password' value=''></td>
</tr>
Example #24
0
	
           <?php 
        beginPrettyTable("1");
        ?>
	   <tr>
	    <?php 
        echo "<td><a href='not_existing.php'>bad link here</a></td>";
        ?>
	   </tr>
	   <tr>
	    <td><hr color='black'></td>
	   </tr>
	   <?php 
        endPrettyTable();
        ?>
	  </td>
	  <td valign=top align=center width='65%'>
	     <?php 
        openForm("removevoucher_form", $PHP_SELF);
        beginPrettyTable("2", "enter Voucher-No");
        maketextfield("vr_no", "", "Voucher Number");
        makeSubmitter();
        endPrettyTable();
        closeForm();
        ?>
	</td>
	  </table>
	  <?php 
    }
}
endDocument();
Example #25
0
    ?>
	   <tr>
	    <?php 
    echo "<td><a href='list_personal.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("enter Personal", $PHP_SELF);
    beginPrettyTable("2", "enter Personal");
    makeHiddenField("emp_id3", $edit["EMP_ID3"]);
    makeTextField("emp_name", $edit["EMP_NAME"], "Employer Name");
    makeDropBox("desig_id", $desig_array, "Designation", $edit["DESIG_ID"]);
    makeDropBox("status", array("Y" => "Y", "N" => "N", "UNKNOWN" => ""), "Status", $edit["STATUS"]);
    makeTextField("ac_no", $edit["AC_NO"], "Account Number");
    makeTextField("conf_dt", $edit["CONF_DT"], "Conf_Date");
    makeTextField("join_dt", $edit["JOIN_DT"], "Join Date");
    makeSubmitter();
    endPrettyTable();
    closeForm();
    ?>
	</td>
	  </table>
	  <?php 
Example #26
0
 public function add()
 {
     global $LANG;
     $show = openForm(iSELF);
     $show .= HiddenField('object', 'note');
     $show .= HiddenField('action', 'add2');
     $show .= HiddenField('opentime', '');
     $show .= beginTable("{$LANG['Add']} {$LANG['Note']}");
     $show .= TextField($LANG['Title'], 'title', '');
     $show .= TextField('Автор', 'autor', '');
     $show .= ArrayDropBox('Категория', 'category', 'admin', array('user', 'для пользователей', 'reseller', 'для диллеров', 'admin', 'для персонала'));
     $show .= LargeTextField($LANG['Content'], 'content', '');
     $show .= Submitter("add_note", $LANG['Add']);
     $show .= endTable();
     return $show;
 }