コード例 #1
0
	    <td colspan="3"><?php 
echo CD_10_01_DESC;
?>
</td>
	    <td><?php 
echo html_pull_down_menu('shipping_default_weight_unit', gen_build_pull_down($shipping_defaults['weight_unit']), $_POST['shipping_default_weight_unit'] ? $_POST['shipping_default_weight_unit'] : SHIPPING_DEFAULT_WEIGHT_UNIT, '');
?>
</td>
	  </tr>
	  <tr>
	    <td colspan="3"><?php 
echo CD_10_02_DESC;
?>
</td>
	    <td><?php 
echo html_pull_down_menu('shipping_default_currency', gen_get_pull_down(TABLE_CURRENCIES, false, false, 'code', 'title'), $_POST['shipping_default_currency'] ? $_POST['shipping_default_currency'] : SHIPPING_DEFAULT_CURRENCY, '');
?>
</td>
	  </tr>
	  <tr>
	    <td colspan="3"><?php 
echo CD_10_03_DESC;
?>
</td>
	    <td><?php 
echo html_pull_down_menu('shipping_default_pkg_dim_unit', gen_build_pull_down($shipping_defaults['dimension_unit']), $_POST['shipping_default_pkg_dim_unit'] ? $_POST['shipping_default_pkg_dim_unit'] : SHIPPING_DEFAULT_PKG_DIM_UNIT, '');
?>
</td>
	  </tr>
	  <tr>
	    <td colspan="3"><?php 
コード例 #2
0
?>
</td>
      <td class="main"><?php 
echo html_input_field('contact_last', $cInfo->contact_last, 'size="33" maxlength="32"', false);
?>
</td>
    </tr>
    <tr>
	  <td class="main" align="right"><?php 
echo constant('ACT_' . strtoupper($type) . '_REP_ID');
?>
</td>
	  <td class="main">
	  <?php 
$default_selection = $action == 'new' ? EMP_DEFAULT_DEPARTMENT : $cInfo->dept_rep_id;
$selection_array = gen_get_pull_down(TABLE_DEPARTMENTS, true, 1);
echo html_pull_down_menu('dept_rep_id', $selection_array, $default_selection);
?>
	  </td>
      <td class="main">&nbsp;</td>
      <td class="main">&nbsp;</td>
      <td class="main">&nbsp;</td>
      <td class="main">&nbsp;</td>
    </tr>
    <tr>
	  <td class="main" align="right"><?php 
echo TEXT_EMPLOYEE_ROLES;
?>
</td>
	  <?php 
$col_count = 1;
コード例 #3
0
 function build_form_html($action, $id = '')
 {
     global $db;
     $sql = "select id, description, heading_only, primary_acct_id, account_type, account_inactive \r\n\t    from " . $this->db_table . " where id = '" . $id . "'";
     $result = $db->Execute($sql);
     if ($result->RecordCount() == 0) {
         $cInfo = new objectInfo($_POST);
     } else {
         $cInfo = new objectInfo($result->fields);
     }
     $output = '<table border="0" width="100%" cellspacing="2" cellpadding="1">' . chr(10);
     $output .= '  <tr class="dataTableHeadingRow">' . chr(10);
     $output .= '    <th colspan="2">' . (!$result->fields['id'] ? GL_INFO_NEW_ACCOUNT : GL_INFO_EDIT_ACCOUNT) . '</th>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '  <tr class="dataTableRow">' . chr(10);
     $output .= '    <td colspan="2">' . (!$result->fields['id'] ? GL_INFO_INSERT_INTRO : GL_EDIT_INTRO) . '</td>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '  <tr class="dataTableRow">' . chr(10);
     $output .= '    <td>' . TEXT_GL_ACCOUNT . '</td>' . chr(10);
     $output .= '    <td>' . (!$result->fields['id'] ? html_input_field('id', $cInfo->id) : $cInfo->id) . '</td>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '  <tr class="dataTableRow">' . chr(10);
     $output .= '    <td>' . TEXT_ACCT_DESCRIPTION . '</td>' . chr(10);
     $output .= '    <td>' . html_input_field('description', $cInfo->description, 'size="48" maxlength="64"') . '</td>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '  <tr class="dataTableRow">' . chr(10);
     $output .= '    <td>' . GL_INFO_HEADING_ONLY . '</td>' . chr(10);
     $output .= '    <td>' . html_checkbox_field('heading_only', '1', $cInfo->heading_only) . '</td>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '  <tr class="dataTableRow">' . chr(10);
     $output .= '    <td>' . GL_INFO_PRIMARY_ACCT_ID . '</td>' . chr(10);
     $output .= '    <td>' . html_pull_down_menu('primary_acct_id', gen_coa_pull_down(SHOW_FULL_GL_NAMES, true, true, true), $cInfo->primary_acct_id) . '</td>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '  <tr class="dataTableRow">' . chr(10);
     $output .= '    <td>' . GL_INFO_ACCOUNT_TYPE . '</td>' . chr(10);
     $output .= '    <td>' . html_pull_down_menu('account_type', gen_get_pull_down(TABLE_CHART_OF_ACCOUNTS_TYPES, true, '1'), $cInfo->account_type) . '</td>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '  <tr class="dataTableRow">' . chr(10);
     $output .= '    <td>' . GL_INFO_ACCOUNT_INACTIVE . '</td>' . chr(10);
     $output .= '    <td>' . html_checkbox_field('account_inactive', '', $cInfo->account_inactive) . '</td>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '</table>' . chr(10);
     return $output;
 }
コード例 #4
0
    $fieldset_content .= '  </a></div>' . $desc . '</td>' . chr(10);
    $fieldset_content .= '  </tr></tbody></table>' . chr(10);
    $fieldset_content .= '<div id="doc_security" style="display:none">' . chr(10);
    // security table
    $fieldset_content .= '<table class="ui-widget" style="border-collapse:collapse;margin-left:auto;margin-right:auto;">' . chr(10);
    $fieldset_content .= ' <thead class="ui-widget-header">' . chr(10);
    $fieldset_content .= '  <tr><th>' . TEXT_USERS . '</th><th>' . TEXT_GROUPS . '</th></tr>' . chr(10);
    $fieldset_content .= ' </thead>' . chr(10);
    $fieldset_content .= ' <tbody class="ui-widget-content">' . chr(10);
    $fieldset_content .= '  <tr>' . chr(10);
    $fieldset_content .= '   <td align="center">' . html_checkbox_field('user_all', '1', in_array('0', $security['u'], true) ? true : false) . ' ' . TEXT_ALL_USERS . '</td>' . chr(10);
    $fieldset_content .= '   <td align="center">' . html_checkbox_field('group_all', '1', in_array('0', $security['g'], true) ? true : false) . ' ' . TEXT_ALL_GROUPS . '</td>' . chr(10);
    $fieldset_content .= '  </tr>' . chr(10);
    $fieldset_content .= '  <tr>' . chr(10);
    $fieldset_content .= '   <td width="50%" align="center">' . html_pull_down_menu('users[]', gen_get_pull_down(TABLE_USERS, true, '1', 'admin_id', 'display_name'), $security['u'], 'multiple="multiple" size="20"') . '</td>' . chr(10);
    $fieldset_content .= '   <td width="50%" align="center">' . html_pull_down_menu('groups[]', gen_get_pull_down(TABLE_DEPARTMENTS, true, '1'), $security['g'], 'multiple="multiple" size="20"') . '</td>' . chr(10);
    $fieldset_content .= '  </tr>' . chr(10);
    $fieldset_content .= ' </tbody>' . chr(10);
    $fieldset_content .= '</table>' . chr(10);
    $fieldset_content .= '</div>' . chr(10);
} else {
    $fieldset_content .= '  </tbody></table>' . chr(10);
}
$fieldset_content .= '</td>' . chr(10);
// column 2
$fieldset_content .= '<td width="50%" valign="top">' . chr(10);
$fieldset_content .= '  <table class="ui-widget" style="border-collapse:collapse;width:100%">' . chr(10);
$fieldset_content .= '  <thead class="ui-widget-header">' . chr(10);
$fieldset_content .= '    <tr><th colspan="4">' . TEXT_HISTORY . '</th></tr>' . chr(10);
if (sizeof($doc_history) > 0) {
    $fieldset_content .= '  <tr>' . chr(10);
コード例 #5
0
 function build_form_html($action, $id = '')
 {
     global $db;
     $sql = "select * from " . $this->db_table . " where 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' ? HR_INFO_NEW_ACCOUNT : HR_INFO_EDIT_ACCOUNT) . '</th>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '  <tr class="dataTableRow">' . chr(10);
     $output .= '    <td colspan="2">' . ($action == 'new' ? HR_INFO_INSERT_INTRO : HR_EDIT_INTRO) . '</td>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '  <tr class="dataTableRow">' . chr(10);
     $output .= '    <td>' . HR_ACCOUNT_ID . html_hidden_field('id', $cInfo->id) . '</td>' . chr(10);
     $output .= '    <td>' . html_input_field('description_short', $cInfo->description_short) . '</td>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '  <tr class="dataTableRow">' . chr(10);
     $output .= '    <td>' . TEXT_DESCRIPTION . '</td>' . chr(10);
     $output .= '    <td>' . html_input_field('description', $cInfo->description) . '</td>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '  <tr class="dataTableRow">' . chr(10);
     $output .= '    <td>' . HR_INFO_SUBACCOUNT . '</td>' . chr(10);
     $output .= '    <td>' . html_radio_field('subdepartment', '0', !$cInfo->subdepartment) . TEXT_NO . '<br />' . html_radio_field('subdepartment', '1', $cInfo->subdepartment) . HR_INFO_PRIMARY_ACCT_ID . '</td>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '  <tr class="dataTableRow">' . chr(10);
     $output .= '    <td>' . HR_INFO_PRIMARY_ACCT_ID . '</td>' . chr(10);
     $output .= '    <td>' . html_pull_down_menu('primary_dept_id', gen_get_pull_down($this->db_table, false, '1', 'id', 'description_short'), $cInfo->primary_dept_id) . '</td>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '  <tr class="dataTableRow">' . chr(10);
     $output .= '    <td>' . HR_INFO_ACCOUNT_TYPE . '</td>' . chr(10);
     $output .= '    <td>' . html_pull_down_menu('department_type', gen_get_pull_down(TABLE_DEPT_TYPES, false, '1'), $cInfo->department_type) . '</td>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '  <tr class="dataTableRow">' . chr(10);
     $output .= '    <td>' . HR_INFO_ACCOUNT_INACTIVE . '</td>' . chr(10);
     $output .= '    <td>' . html_checkbox_field('department_inactive', '1', $cInfo->department_inactive ? true : false) . '</td>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '</table>' . chr(10);
     return $output;
 }
コード例 #6
0
if ($tills->showDropDown()) {
    // show currency slection pulldown
    echo '<li><label>' . TEXT_TILL . ' ' . html_pull_down_menu('till_id', $tills->till_array(), $order->till_id ? $order->till_id : $tills->default_till(), 'onchange="changeOfTill();"') . '</label></li>';
} else {
    echo html_hidden_field('till_id', $tills->default_till());
}
?>
 
		<li><label> <?php 
echo TEXT_SALES_REP . ' ' . html_pull_down_menu('rep_id', gen_get_rep_ids($account_type), $order->rep_id ? $order->rep_id : $default_sales_rep);
?>
 </label></li>
<?php 
if (ENABLE_MULTI_CURRENCY) {
    // show currency selection pulldown
    echo '<li><label>' . TEXT_CURRENCY . ' ' . html_pull_down_menu('display_currency', gen_get_pull_down(TABLE_CURRENCIES, false, false, 'code', 'title'), $order->currencies_code, 'onchange="recalculateCurrencies();"') . '</label></li>';
    echo '<li><label>' . TEXT_EXCHANGE_RATE . ' ' . html_input_field('currencies_value', $order->currencies_value, 'readonly="readonly"') . '</label></li>';
}
?>
 		<li><label> 
 <?php 
echo TEXT_SKU . ' ' . html_input_field('sku', '', ' size="' . (MAX_INVENTORY_SKU_LENGTH + 1) . '" maxlength="' . MAX_INVENTORY_SKU_LENGTH . '" title="' . TEXT_SEARCH . '"  onchange ="loadSkuDetails(0, 0)"') . chr(10);
echo html_icon('actions/system-search.png', TEXT_SEARCH, 'small', 'id="sku_open" align="top" style="cursor:pointer" onclick="InventoryList(0)"') . chr(10);
?>
 		</label></li>
	</ol>
</fieldset>

<fieldset id="customer_div">
	<ol>
		<li><label>
コード例 #7
0
?>
</th></tr>
 </thead>
 <tbody class="ui-widget-content">
    <tr>
	  <td align="center"><?php 
echo html_checkbox_field('user_all', '1', in_array('0', $security['u'], true) ? true : false) . ' ' . TEXT_ALL_USERS;
?>
</td>
	  <td align="center"><?php 
echo html_checkbox_field('group_all', '1', in_array('0', $security['g'], true) ? true : false) . ' ' . TEXT_ALL_GROUPS;
?>
</td>
    </tr>
    <tr>
	  <td width="50%" align="center"><?php 
echo html_pull_down_menu('users[]', gen_get_pull_down(TABLE_USERS, true, '1', 'admin_id', 'display_name'), $security['u'], 'multiple="multiple" size="20"');
?>
</td>
	  <td width="50%" align="center"><?php 
echo html_pull_down_menu('groups[]', gen_get_pull_down(TABLE_DEPARTMENTS, true, '1'), $security['g'], 'multiple="multiple" size="20"');
?>
</td>
    </tr>
  </tbody>
</table>
  <?php 
echo $notes;
?>
</div>
コード例 #8
0
</td></tr>
  </table>
</fieldset>
<fieldset>
  <legend><?php 
echo TEXT_ACTION_TAKEN;
?>
</legend>
  <table>
	<tr>
	  <td align="right"><?php 
echo TEXT_AGREED_TO_BY;
?>
</td>
	  <td><?php 
echo html_pull_down_menu('agreed_by', gen_get_pull_down(TABLE_USERS, true, '1', 'admin_id', 'display_name'), $cInfo->agreed_by);
?>
</td>
	  <td align="right"><?php 
echo TEXT_AGREED_TO_DATE;
?>
</td>
	  <td><?php 
echo html_calendar_field($cal_date9);
?>
</td>
	</tr>
	<tr>
	  <td align="right" valign="top"><?php 
echo TEXT_ACTION;
?>
コード例 #9
0
        $_GET['page']--;
        break;
    case 'go_next':
        $_GET['page']++;
        break;
    case 'go_last':
        $_GET['page'] = 99999;
        break;
    case 'search':
    case 'search_reset':
    case 'go_page':
    default:
}
/*****************   prepare to display templates  *************************/
// load gl accounts
$gl_array_list = gen_get_pull_down(TABLE_CHART_OF_ACCOUNTS, false, SHOW_FULL_GL_NAMES);
$include_header = true;
$include_footer = true;
$include_calendar = true;
switch ($action) {
    case 'new':
        define('PAGE_TITLE', BOX_ASSETS_MAINTAIN);
        $include_template = 'template_id.php';
        break;
    case 'edit':
        define('PAGE_TITLE', BOX_ASSETS_MAINTAIN);
        $include_tabs = true;
        $include_template = 'template_detail.php';
        break;
    default:
        // build the list header
コード例 #10
0
	  </tr>
	  <tr>
		<td colspan="2">
			<?php 
    echo html_checkbox_field('saturday_delivery', '1', $sInfo->saturday_delivery);
    echo SHIPPING_SATURDAY_DELIVERY;
    ?>
		</td>
	  </tr>
	  <tr>
		<td colspan="2">
			<?php 
    echo html_checkbox_field('cod', '1', $sInfo->cod);
    echo SHIPPING_COD_AMOUNT;
    echo html_input_field('total_amount', $sInfo->total_amount, 'size="6" style="text-align:right"') . '&nbsp;';
    echo html_pull_down_menu('cod_currency', gen_get_pull_down(TABLE_CURRENCIES, false, false, 'code', 'title'), $sInfo->cod_currency) . '&nbsp;';
    echo html_pull_down_menu('cod_payment_type', gen_build_pull_down($shipping_defaults['cod_funds_code']), $sInfo->cod_payment_type);
    ?>
		</td>
	  </tr>
	  <tr>
		<td colspan="2">
			<?php 
    echo html_checkbox_field('return_service', '1', $sInfo->return_service);
    echo SHIPPING_TEXT_RETURN_SERVICES;
    echo html_pull_down_menu('return_service_value', gen_build_pull_down($shipping_defaults['return_label']), $sInfo->return_service_value);
    ?>
		</td>
	  </tr>
    </table>
    </fieldset>
コード例 #11
0
    echo TEXT_QUANTITY;
    ?>
</th>
			<th><?php 
    echo TEXT_WEIGHT;
    echo html_pull_down_menu('pkg_weight_unit', gen_build_pull_down($shipping_defaults['weight_unit']), $sInfo->pkg_weight_unit) . '&nbsp;';
    ?>
			</th>
			<th colspan="3"><?php 
    echo SHIPPING_TEXT_DIMENSIONS;
    echo html_pull_down_menu('pkg_dimension_unit', gen_build_pull_down($shipping_defaults['dimension_unit']), $sInfo->pkg_dimension_unit);
    ?>
			</th>
			<th><?php 
    echo TEXT_VALUE;
    echo html_pull_down_menu('insurance_currency', gen_get_pull_down(TABLE_CURRENCIES, false, false, 'code', 'title'), $sInfo->insurance_currency);
    ?>
</th>
          </tr>
		 </thead>
		 <tbody id="item_table" class="ui-widget-content">
	       <tr>
		     <td align="center"><?php 
    echo html_input_field('qty_1', '1', 'readonly="readonly" size="6" maxlength="5" style="text-align:right"');
    ?>
</td>
		     <td align="center"><?php 
    echo html_input_field('wt_1', $package['weight'], 'size="5" maxlength="4" style="text-align:right"');
    ?>
</td>
		     <td align="center"><?php 
コード例 #12
0
echo html_pull_down_menu('pkg_weight_unit', gen_build_pull_down($shipping_defaults['weight_unit']), $pkg->pkg_weight_unit, $parameters = '', $required = false) . '&nbsp;';
if (SHIPPING_DEFAULT_ADDITIONAL_HANDLING_SHOW) {
    echo html_checkbox_field('additional_handling', '1', $pkg->additional_handling);
    echo SHIPPING_ADDITIONAL_HANDLING;
} else {
    echo '&nbsp;';
}
?>
		</td></tr>
		<tr><td>
		<?php 
if (SHIPPING_DEFAULT_INSURANCE_SHOW) {
    echo html_checkbox_field('insurance', '1', $pkg->insurance);
    echo SHIPPING_INSURANCE_AMOUNT;
    echo html_input_field('insurance_value', $pkg->insurance_value, 'size="6"') . '&nbsp;';
    echo html_pull_down_menu('insurance_currency', gen_get_pull_down(TABLE_CURRENCIES, false, false, 'code', 'title'), $pkg->insurance_currency, $parameters = '', $required = false);
} else {
    echo '&nbsp;';
}
?>
		</td></tr>
		<tr><td colspan="2">
		<?php 
if (SHIPPING_DEFAULT_SPLIT_LARGE_SHIPMENTS_SHOW) {
    echo html_checkbox_field('split_large_shipments', '1', $pkg->split_large_shipments);
    echo SHIPPING_SPLIT_LARGE_SHIPMENTS;
    echo html_input_field('split_large_shipments_value', $pkg->split_large_shipments_value, 'size="5"') . '&nbsp;';
    echo html_pull_down_menu('split_large_shipments_unit', gen_build_pull_down($shipping_defaults['weight_unit']), $pkg->split_large_shipments_unit, $parameters = '', $required = false);
    echo SHIPPING_TEXT_PER_BOX;
} else {
    echo '&nbsp;';
コード例 #13
0
ファイル: departments.php プロジェクト: siwiwit/PhreeBooksERP
 function build_form_html($action, $id = '')
 {
     global $db;
     if ($action != 'new' && $this->error == false) {
         $sql = "select * from " . $this->db_table . " where id = '" . $this->id . "'";
         $result = $db->Execute($sql);
         foreach ($result->fields as $key => $value) {
             $this->{$key} = $value;
         }
     }
     $output = '<table style="border-collapse:collapse;margin-left:auto; margin-right:auto;">' . chr(10);
     $output .= '  <thead class="ui-widget-header">' . "\n";
     $output .= '  <tr>' . chr(10);
     $output .= '    <th colspan="2">' . ($action == 'new' ? HR_INFO_NEW_ACCOUNT : HR_INFO_EDIT_ACCOUNT) . '</th>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '  </thead>' . "\n";
     $output .= '  <tbody class="ui-widget-content">' . "\n";
     $output .= '  <tr>' . chr(10);
     $output .= '    <td colspan="2">' . ($action == 'new' ? HR_INFO_INSERT_INTRO : HR_EDIT_INTRO) . '</td>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '  <tr>' . chr(10);
     $output .= '    <td>' . HR_ACCOUNT_ID . html_hidden_field('id', $this->id) . '</td>' . chr(10);
     $output .= '    <td>' . html_input_field('description_short', $this->description_short) . '</td>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '  <tr>' . chr(10);
     $output .= '    <td>' . TEXT_DESCRIPTION . '</td>' . chr(10);
     $output .= '    <td>' . html_input_field('description', $this->description) . '</td>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '  <tr>' . chr(10);
     $output .= '    <td>' . HR_INFO_SUBACCOUNT . '</td>' . chr(10);
     $output .= '    <td>' . html_radio_field('subdepartment', '0', !$this->subdepartment) . TEXT_NO . '<br />' . html_radio_field('subdepartment', '1', $this->subdepartment) . HR_INFO_PRIMARY_ACCT_ID . '</td>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '  <tr>' . chr(10);
     $output .= '    <td>' . HR_INFO_PRIMARY_ACCT_ID . '</td>' . chr(10);
     $output .= '    <td>' . html_pull_down_menu('primary_dept_id', gen_get_pull_down($this->db_table, false, '1', 'id', 'description_short'), $this->primary_dept_id) . '</td>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '  <tr>' . chr(10);
     $output .= '    <td>' . HR_INFO_ACCOUNT_TYPE . '</td>' . chr(10);
     $output .= '    <td>' . html_pull_down_menu('department_type', gen_get_pull_down(TABLE_DEPT_TYPES, false, '1'), $this->department_type) . '</td>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '  <tr>' . chr(10);
     $output .= '    <td>' . HR_INFO_ACCOUNT_INACTIVE . '</td>' . chr(10);
     $output .= '    <td>' . html_checkbox_field('department_inactive', '1', $this->department_inactive ? true : false) . '</td>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '  </tbody>' . "\n";
     $output .= '</table>' . chr(10);
     return $output;
 }
コード例 #14
0
?>
		  </td>
		  <td width="27%" rowspan="2" valign="top">
			<table>
<?php 
if (ENABLE_MULTI_CURRENCY) {
    // show currency slection pulldown
    ?>
			  <tr>
				<td align="right"><?php 
    echo TEXT_CURRENCY;
    ?>
</td>
				<td>
				  <?php 
    echo html_pull_down_menu('display_currency', gen_get_pull_down(TABLE_CURRENCIES, false, false, 'code', 'title'), $order->currencies_code, 'onchange="recalculateCurrencies();"');
    ?>
			    </td>
			  </tr>
			  <tr>
				<td align="right"><?php 
    echo TEXT_EXCHANGE_RATE;
    ?>
</td>
				<td>
				  <?php 
    echo html_input_field('currencies_value', $order->currencies_value, 'readonly="readonly"');
    ?>
			    </td>
			  </tr>
<?php 
コード例 #15
0
   <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>
コード例 #16
0
    case 'go_previous':
        $_REQUEST['list'] = max($_REQUEST['list'] - 1, 1);
        break;
    case 'go_next':
        $_REQUEST['list']++;
        break;
    case 'go_last':
        $_REQUEST['list'] = 99999;
        break;
    case 'search':
    case 'search_reset':
    case 'go_page':
    default:
}
/*****************   prepare to display templates  *************************/
$user_choices = gen_get_pull_down(TABLE_USERS, true, '1', 'admin_id', 'display_name');
// build disposition drop-dwn javascript
$js_disp_code = 'js_disp_code = new Array(' . sizeof($action_codes) . ');' . chr(10);
$js_disp_value = 'js_disp_value = new Array(' . sizeof($action_codes) . ');' . chr(10);
$i = 0;
foreach ($action_codes as $key => $value) {
    $js_disp_code .= 'js_disp_code[' . $i . '] = "' . $key . '";' . chr(10);
    $js_disp_value .= 'js_disp_value[' . $i . '] = "' . gen_js_encode($value) . '";' . chr(10);
    $i++;
}
$cal_create = array('name' => 'createDate', 'form' => 'rma', 'fieldname' => 'creation_date', 'imagename' => 'btn_date_1', 'default' => isset($cInfo->creation_date) ? gen_locale_date($cInfo->creation_date) : gen_locale_date($creation_date), 'params' => array('align' => 'left'));
$cal_rcv = array('name' => 'receiveDate', 'form' => 'rma', 'fieldname' => 'receive_date', 'imagename' => 'btn_date_1', 'default' => isset($cInfo->receive_date) ? gen_locale_date($cInfo->receive_date) : gen_locale_date($receive_date), 'params' => array('align' => 'left'));
$cal_close = array('name' => 'closedDate', 'form' => 'rma', 'fieldname' => 'closed_date', 'imagename' => 'btn_date_1', 'default' => isset($cInfo->closed_date) ? gen_locale_date($cInfo->closed_date) : gen_locale_date($closed_date), 'params' => array('align' => 'left'));
$cal_invoice = array('name' => 'invoiceDate', 'form' => 'rma', 'fieldname' => 'invoice_date', 'imagename' => 'btn_date_1', 'default' => isset($cInfo->invoice_date) ? gen_locale_date($cInfo->invoice_date) : gen_locale_date($invoice_date), 'params' => array('align' => 'left'));
$include_header = true;
$include_footer = true;
コード例 #17
0
ファイル: setup.php プロジェクト: jigsmaheta/puerto-argentino
function cfg_pull_down_tax_rate_list($rate_id, $key = '')
{
    $name = $key ? 'configuration[' . $key . ']' : 'configuration_value';
    return html_pull_down_menu($name, gen_get_pull_down(TABLE_TAX_RATES, true, '1', 'tax_rate_id', 'description_short'), $rate_id);
}
コード例 #18
0
  <table border="0" cellspacing="1" cellpadding="1">
	<tr>
	  <td class="main" align="right"><?php 
echo TEXT_RECEIVE_DATE;
?>
</td>
	  <td class="main"><script language="javascript">receiveDate.writeControl(); receiveDate.displayLeft=true; receiveDate.dateFormat="<?php 
echo DATE_FORMAT_SPIFFYCAL;
?>
";</script></td>
	  <td class="main" align="right" valign="top"><?php 
echo TEXT_RECEIVED_BY;
?>
</td>
	  <td class="main" valign="top"><?php 
echo html_pull_down_menu('received_by', gen_get_pull_down(TABLE_USERS, true, '1', 'admin_id', 'display_name'), $cInfo->received_by ? $cInfo->received_by : '');
?>
</td>
	</tr>
	<tr>
	  <td class="main" align="right"><?php 
echo TEXT_RECEIVE_CARRIER;
?>
</td>
	  <td class="main"><?php 
echo html_input_field('receive_carrier', $cInfo->receive_carrier);
?>
 </td>
	  <td class="main" align="right"><?php 
echo TEXT_RECEIVE_TRACKING_NUM;
?>
コード例 #19
0
ファイル: tills.php プロジェクト: siwiwit/PhreeBooksERP
 function build_form_html($action, $id = '')
 {
     global $db, $currencies;
     if ($action != 'new' && $this->error == false) {
         $sql = "select * from " . $this->db_table . " where till_id = " . $id;
         $result = $db->Execute($sql);
         foreach ($result->fields as $key => $value) {
             $this->{$key} = $value;
         }
     }
     $tax_rates = inv_calculate_tax_drop_down('c');
     $output = '<table style="border-collapse:collapse;margin-left:auto; margin-right:auto;">' . chr(10);
     $output .= '  <thead class="ui-widget-header">' . "\n";
     $output .= '  <tr>' . chr(10);
     $output .= '    <th colspan="2">' . ($action == 'new' ? TEXT_ENTER_NEW_TILL : TEXT_EDIT_TILL) . '</th>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '  </thead>' . "\n";
     $output .= '  <tbody class="ui-widget-content">' . "\n";
     $output .= '  <tr>' . chr(10);
     $output .= '    <td>' . TEXT_DESCRIPTION . '</td>' . chr(10);
     $output .= '    <td>' . html_input_field('description', $this->description, 'size="16" maxlength="15"') . '</td>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '  <tr>' . chr(10);
     $output .= '    <td>' . GEN_STORE_ID . '</td>' . chr(10);
     $output .= '    <td>' . html_pull_down_menu('store_id', $this->store_ids, $this->store_id) . '</td>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '  <tr>' . chr(10);
     $output .= '    <td>' . TEXT_GL_ACCOUNT . '</td>' . chr(10);
     $output .= '    <td>' . html_pull_down_menu('gl_acct_id', gen_coa_pull_down(SHOW_FULL_GL_NAMES, true, true, false, $restrict_types = array(0)), $this->gl_acct_id) . '</td>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '  <tr>' . chr(10);
     $output .= '    <td>' . TEXT_GL_ACCOUNT_ROUNDING . '</td>' . chr(10);
     $output .= '    <td>' . html_pull_down_menu('rounding_gl_acct_id', gen_coa_pull_down(SHOW_FULL_GL_NAMES, true, true, false, $restrict_types = array(30)), $this->rounding_gl_acct_id) . '</td>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '  <tr>' . chr(10);
     $output .= '    <td>' . TEXT_DIF_GL_ACCOUNT . '</td>' . chr(10);
     $output .= '    <td>' . html_pull_down_menu('dif_gl_acct_id', gen_coa_pull_down(SHOW_FULL_GL_NAMES, true, true, false, $restrict_types = array(30)), $this->dif_gl_acct_id) . '</td>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '  <tr>' . chr(10);
     $output .= '    <td>' . INV_ENTRY_ITEM_TAXABLE . '</td>' . chr(10);
     $output .= '    <td>' . html_pull_down_menu('tax_id', $tax_rates, $this->tax_id) . '</td>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '  <tr>' . chr(10);
     $output .= '    <td>' . TEXT_BALANCE . '</td>' . chr(10);
     $output .= '    <td>' . html_input_field('balance', $currencies->format($this->balance, true, $this->currencies_code)) . '</td>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '  <tr>' . chr(10);
     $output .= '    <td>' . TEXT_MAX_DISCOUNT . '</td>' . chr(10);
     $output .= '    <td>' . html_input_field('max_discount', $this->max_discount, 'size="16" maxlength="15"') . '</td>' . chr(10);
     $output .= '  </tr>' . chr(10);
     //default currency
     if (ENABLE_MULTI_CURRENCY) {
         // show currency slection pulldown
         $output .= '  <tr>' . chr(10);
         $output .= '    <td>' . TEXT_CURRENCY . '</td>' . chr(10);
         $output .= '    <td>' . html_pull_down_menu('currencies_code', gen_get_pull_down(TABLE_CURRENCIES, false, false, 'code', 'title'), $this->currencies_code) . '</td>' . chr(10);
         $output .= '  </tr>' . chr(10);
         //restrict to this currency
         $output .= '  <tr>' . chr(10);
         $output .= '    <td>' . TEXT_RESTRICT_CURRENCY . '</td>' . chr(10);
         $output .= '    <td>' . html_checkbox_field('restrict_currency', '1', $this->restrict_currency) . '</td>' . chr(10);
         $output .= '  </tr>' . chr(10);
     }
     //end default currency
     //printer information
     $output .= '  <tr>' . chr(10);
     $output .= '    <td>' . PHREEPOS_RECEIPT_PRINTER_NAME_DESC . '<br><br></td>' . chr(10);
     $output .= '    <td>' . html_input_field('printer_name', $this->printer_name) . '</td>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '  <tr>' . chr(10);
     $output .= '    <td>' . PHREEPOS_RECEIPT_PRINTER_STARTING_LINE_DESC . '<br><br></td>' . chr(10);
     $output .= '    <td>' . html_input_field('printer_starting_line', $this->printer_starting_line) . '</td>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '  <tr>' . chr(10);
     $output .= '    <td>' . PHREEPOS_RECEIPT_PRINTER_CLOSING_LINE_DESC . '<a href="' . DIR_WS_ADMIN . 'modules/phreepos/printer_codes.htm">' . TEXT_DRAWER_CODES . '</a> <br><br></td>' . chr(10);
     $output .= '    <td>' . html_input_field('printer_closing_line', $this->printer_closing_line) . '</td>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '  <tr>' . chr(10);
     $output .= '    <td>' . PHREEPOS_RECEIPT_PRINTER_OPEN_DRAWER_DESC . '<br><br></td>' . chr(10);
     $output .= '    <td>' . html_input_field('printer_open_drawer', $this->printer_open_drawer) . '</td>' . chr(10);
     $output .= '  </tr>' . chr(10);
     //end printer information
     $output .= '  </tbody>' . chr(10);
     $output .= '</table>' . chr(10);
     return $output;
 }