</tr>
	<tr>
	  <td class="main"><?php 
echo INV_ENTRY_ITEM_TAXABLE;
?>
</td>
	  <td class="main"><?php 
echo html_pull_down_menu('item_taxable', $tax_rates, $cInfo->item_taxable);
?>
</td>
	  <td class="main" align="right"><?php 
echo INV_HEADING_PREFERRED_VENDOR;
?>
</td>
	  <td class="main"><?php 
echo html_pull_down_menu('vendor_id', gen_get_account_array_by_type('v'), $cInfo->vendor_id);
?>
</td>
	</tr>
	<tr>
	  <td class="main"><?php 
echo INV_ENTRY_PURCH_TAX;
?>
</td>
	  <td class="main"><?php 
echo html_pull_down_menu('purch_taxable', $purch_tax_rates, $cInfo->purch_taxable);
?>
</td>
	  <td class="main" align="right"><?php 
echo INV_HEADING_LEAD_TIME;
?>
   <tr>
	 <td align="center" width="33%"><?php 
echo html_checkbox_field('UserAll', '1', in_array('0', $presets['u'], true) ? true : false) . ' ' . TEXT_ALL_USERS;
?>
</td>
	 <td align="center" width="34%"><?php 
echo html_checkbox_field('EmployeeAll', '1', in_array('0', $presets['e'], true) ? true : false) . ' ' . TEXT_ALL_EMPLOYEES;
?>
</td>
	 <td align="center" width="33%"><?php 
echo html_checkbox_field('DepartmentAll', '1', in_array('0', $presets['d'], true) ? true : false) . ' ' . TEXT_ALL_DEPTS;
?>
</td>
   </tr>
   <tr>
	 <td align="center" width="33%"><?php 
echo html_pull_down_menu('UserList[]', gen_get_pull_down(TABLE_USERS, true, '1', 'admin_id', 'admin_name'), $presets['u'], 'multiple="multiple" size="20"');
?>
</td>
	 <td align="center" width="34%"><?php 
echo html_pull_down_menu('EmployeeList[]', gen_get_account_array_by_type('e'), $presets['e'], 'multiple="multiple" size="20"');
?>
</td>
	 <td align="center" width="33%"><?php 
echo html_pull_down_menu('DepartmentList[]', gen_get_pull_down(TABLE_DEPARTMENTS, true, '1'), $presets['d'], 'multiple="multiple" size="20"');
?>
</td>
   </tr>
  </table>
</form>
Exemplo n.º 3
0
 function build_form_html($action, $id = '')
 {
     global $db;
     $sql = "select description_short, description_long, account_id, vendor_id, tax_rate \r\n\t    from " . $this->db_table . " where tax_auth_id = " . $id;
     $result = $db->Execute($sql);
     if ($action == 'new') {
         $cInfo = '';
     } else {
         $cInfo = new objectInfo($result->fields);
     }
     $output = '<table border="0" width="100%" cellspacing="0" cellpadding="1">' . chr(10);
     $output .= '  <tr class="dataTableHeadingRow">' . chr(10);
     $output .= '    <th colspan="2">' . ($action == 'new' ? SETUP_INFO_HEADING_NEW_TAX_AUTH : SETUP_INFO_HEADING_EDIT_TAX_AUTH) . '</th>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '  <tr class="dataTableRow">' . chr(10);
     $output .= '    <td colspan="2">' . ($action == 'new' ? SETUP_TAX_AUTH_INSERT_INTRO : SETUP_TAX_AUTH_EDIT_INTRO) . '</td>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '  <tr class="dataTableRow">' . chr(10);
     $output .= '    <td>' . SETUP_INFO_DESC_SHORT . '</td>' . chr(10);
     $output .= '    <td>' . html_input_field('description_short', $cInfo->description_short, 'size="16" maxlength="15"') . '</td>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '  <tr class="dataTableRow">' . chr(10);
     $output .= '    <td>' . SETUP_INFO_DESC_LONG . '</td>' . chr(10);
     $output .= '    <td>' . html_input_field('description_long', $cInfo->description_long, 'size="33" maxlength="64"') . '</td>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '  <tr class="dataTableRow">' . chr(10);
     $output .= '    <td>' . SETUP_INFO_GL_ACCOUNT . '</td>' . chr(10);
     $output .= '    <td>' . html_pull_down_menu('account_id', gen_coa_pull_down(), $cInfo->account_id) . '</td>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '  <tr class="dataTableRow">' . chr(10);
     $output .= '    <td>' . SETUP_INFO_VENDOR_ID . '</td>' . chr(10);
     $output .= '    <td>' . html_pull_down_menu('vendor_id', gen_get_account_array_by_type('v'), $cInfo->vendor_id) . '</td>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '  <tr class="dataTableRow">' . chr(10);
     $output .= '    <td>' . SETUP_INFO_TAX_RATE . '</td>' . chr(10);
     $output .= '    <td>' . html_input_field('tax_rate', $cInfo->tax_rate) . '</td>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '</table>' . chr(10);
     return $output;
 }
    <td><?php 
echo GEN_EMAIL . ' ' . html_input_field('admin_email', $uInfo->admin_email, 'size="33"');
?>
</td>
  </tr>
  <tr>
    <td align="right"><?php 
echo TEXT_CONFIRM_PASSWORD . ' ' . html_password_field('password_conf', '');
?>
</td>
    <td><?php 
echo '&nbsp;';
?>
</td>
    <td><?php 
echo GEN_ACCOUNT_LINK . ' ' . html_pull_down_menu('account_id', gen_get_account_array_by_type('e'), $uInfo->account_id, '');
?>
</td>
  </tr>
  </table>
  </fieldset>

  <fieldset class="formAreaTitle">
  <legend><?php 
echo TEXT_PROFILE;
?>
</legend>
  <table border="0" align="center" cellspacing="1" cellpadding="1">
  <tr>
    <td><?php 
echo GEN_DEFAULT_STORE . ' ' . html_pull_down_menu('def_store_id', gen_get_store_ids(), $error ? $_POST['def_store_id'] : $uInfo->prefs['def_store_id'], '');