<?php include 'page_header.php'; if (!empty($_POST['submit_btn'])) { $department = $_POST['department']; $result = insertMaker('master_department_file', array('department'), array($department)); } ?> <form name=form1 id=form1 method=post></form> <table style='width:400px' class='form_css'> <tr> <th style='text-align:left'><h2>Department</h2></th> </tr> <?php echo textMaker('Department Name', 'department'); echo "<tr>"; echo "<td colspan=2 style='text-align:center'>"; echo "<input type='submit' name='submit_btn' value='Submit' style='margin:15px'>"; echo "<input type='button' value='Cancel' style='margin:15px'>"; echo "</td>"; echo "</tr>"; ?> </table>
$username = $row['user_name']; $user_type = $row['user_type']; $department = $row['department']; $finance_head = $row['finance_head']; $phone_number = $row['phone_number']; $first_name = $row['first_name']; $last_name = $row['last_name']; } echo textMaker('Username', 'user_name', $username); echo textMaker('First Name', 'first_name', $first_name); echo textMaker('Last Name', 'last_name', $last_name); echo selectMaker('User Type', 'user_type', array('Finance Head', 'Secretary', 'QA', 'Admin', 'Cash Release'), 'get_type(this.value)', $user_type); echo "<tr><td colspan=2><div style='display:none' id='phone_id'>"; echo "<table>"; echo "<tr >"; echo textMaker('Phone Number', 'phone_number', $phone_number); echo "</tr>"; echo "</table></td></tr>"; echo "<tr>"; echo "<tr><td colspan=2><div style='display:none' id='department_div'>"; echo "<table>"; echo selectMaker('Department', 'department', $departments, '', $department); echo "</table>"; echo "</div></td></tr>"; echo "<tr><td colspan=2><div style='display:none' id='finance_div'>"; echo "<table>"; echo selectMakerValue('Finance Head', 'finance_head', $finance_head, '', $finance_head); echo "</table>"; echo "</div></td></tr>"; echo "<tr>"; echo "<td colspan=2 style='text-align:center'>";
document.form1.submit(); } } function po_go(type) { document.getElementById('type').value=type document.form1.submit(); } </script> <div id='getCheckDetails' style='z-index:11;width:270px;display:none;position: fixed;top:15%;left:40%;border:1px solid black;background-color:white;padding:10px'> <table> <?php echo "<tr><th colspan=3 style='text-align:center;padding:10px '>Enter Check Details</th></tr>"; echo textMaker('Title', 'title', ''); echo textMaker('Name of Check', 'name', ''); echo textMaker('CV#', 'cv', ''); echo "<tr><td colspan=2 id='confirm_div' STYLE='text-align:center;padding:10px'></td></tr>"; ?> </table> </div> <?php $type = ""; if (!empty($_REQUEST['type'])) { $type = $_REQUEST['type']; } ?> <form name='form1' id='form1' method="post" enctype="multipart/form-data"> <?php echo "<input type='hidden' id='type' name='type' value='" . $type . "'>"; ?> <div id='div_here' style='z-index:11;vertical-align:middle;display:none;position:fixed;top:22%;left:32%;width:400px;height:200px;border:1px solid black;background-color:white'>
echo "<input type='hidden' name='number_code' value='{$number_code}'>"; } $letter_code = get_letter_code($number_code); echo "<tr><th style='text-align:left'>Letter Code:</th><th style='text-align:left'>\n" . $letter_code . "</th><td></td></tr>"; echo selectMakerEach('Requestor', 'requestor', $requestor, 'getRequestor(this.value)', $requestor1); echo textMaker('Title/Remarks', 'title', $title); echo textMaker('Company Name', 'company_name', $company_name); echo selectMakerEach('Secretary', 'secretary', $secretary, '', $secretary1); echo selectMakerEach('Engineer', 'engineer', $engineer, '', $engineer1); echo textMaker('jo', 'jo', $jo); if ($type == 'With Po') { echo textMaker('PO#', 'po', $po); } echo textMaker('Item Description', 'item_description', $item_description); echo textMaker('Page#', 'page', $page); echo textMaker('Supplier', 'supplier', $supplier); echo selectMaker('Payment Type', 'payment_type', array('Cash', 'Check'), '', $payment_type); ?> <tr> <th style='text-align:left;padding-top:10px'><h2>Items</h3></th> </tr> <tr> <td><input type='button' value='add items' style='color:blue;background-color:transparent;border:none' onclick='addMore()' ></td> <tr> <td colspan=2> <table> <tbody id='table_items' style='display: block'> <?php $a = 0; $total_amount = 0; if ($trans_num != '') {