Example #1
0
 function Output($params)
 {
     global $db;
     $contents = '';
     $control = '';
     // Build control box form data
     $control = '  <div class="row">' . chr(10);
     $control .= '    <div style="white-space:nowrap">';
     $control .= TEXT_NOTE . '&nbsp;' . html_input_field('my_notes_field_0', '', 'size="64"') . '<br />';
     $control .= '&nbsp;&nbsp;&nbsp;&nbsp;';
     $control .= html_submit_field('sub_my_notes', TEXT_ADD);
     $control .= html_hidden_field('my_notes_rId', '');
     $control .= '    </div>' . chr(10);
     $control .= '  </div>' . chr(10);
     // Build content box
     $contents = '';
     if (is_array($params)) {
         $index = 1;
         foreach ($params as $my_note) {
             $contents .= '  <div>';
             $contents .= '    <div style="float:right; height:16px;">';
             $contents .= html_icon('phreebooks/dashboard-remove.png', TEXT_REMOVE, 'small', 'onclick="return del_index(\'' . $this->dashboard_id . '\', ' . $index . ')"');
             $contents .= '    </div>' . chr(10);
             $contents .= '    <div style="min-height:16px;">&#9679; ' . $my_note . '</div>' . chr(10);
             $contents .= '  </div>' . chr(10);
             $index++;
         }
     } else {
         $contents = ACT_NO_RESULTS;
     }
     return $this->build_div('', $contents, $control);
 }
Example #2
0
 function Output($params)
 {
     global $db;
     // Build control box form data
     $control = '<div class="row">';
     $control .= '<div style="white-space:nowrap">';
     $control .= TEXT_NOTE . '&nbsp;' . html_input_field('my_note', '', 'size="50"') . '<br />';
     $control .= '&nbsp;&nbsp;&nbsp;&nbsp;';
     $control .= html_submit_field('my_note_submit', TEXT_ADD);
     $control .= html_hidden_field($this->module_id . '_rId', '');
     $control .= '</div></div>';
     // Build content box
     $contents = '';
     if (is_array($params)) {
         $index = 1;
         foreach ($params as $my_note) {
             if ($_SESSION['admin_security'][SECURITY_ID_USERS] > 3) {
                 // only let delete if user permission is full
                 $contents .= '<div style="float:right; height:16px;">';
                 $contents .= html_icon('phreebooks/dashboard-remove.png', TEXT_REMOVE, 'small', 'onclick="return del_index(\'' . $this->module_id . '\', ' . $index . ')"');
                 $contents .= '</div>';
             }
             $contents .= '<div style="height:16px;">- ' . $my_note . '</div>' . chr(10);
             $index++;
         }
     } else {
         $contents = CP_MY_NOTES_NO_RESULTS;
     }
     return $this->build_div($this->title, $contents, $control);
 }
Example #3
0
 function Output($params)
 {
     global $db;
     $contents = '';
     $control = '';
     // Build control box form data
     $control = '<div class="row">';
     $control .= '<div style="white-space:nowrap">';
     $control .= TEXT_TITLE . '&nbsp;' . html_input_field('personal_links_field_0', '', 'size="40"') . '<br />';
     $control .= TEXT_URL . '&nbsp;' . html_input_field('personal_links_field_1', '', 'size="64"');
     $control .= '&nbsp;&nbsp;&nbsp;&nbsp;';
     $control .= html_submit_field('sub_personal_links', TEXT_ADD);
     $control .= html_hidden_field('personal_links_rId', '');
     $control .= '</div></div>';
     // Build content box
     $contents = '';
     if (is_array($params)) {
         $index = 1;
         foreach ($params as $title => $hyperlink) {
             $contents .= '<div style="float:right; height:16px;">';
             $contents .= html_icon('phreebooks/dashboard-remove.png', TEXT_REMOVE, 'small', 'onclick="return del_index(\'' . $this->dashboard_id . '\', ' . $index . ')"');
             $contents .= '</div>';
             $contents .= '<div style="min-height:16px;">';
             $contents .= '<a href="' . $hyperlink . '" target="_blank">' . $title . '</a>' . chr(10);
             $contents .= '</div>';
             $index++;
         }
     } else {
         $contents = ACT_NO_RESULTS;
     }
     return $this->build_div('', $contents, $control);
 }
 function Output($params)
 {
     global $db;
     // load the report security tokens
     $rr_security = array();
     $result = $db->Execute("select reportid, params from " . TABLE_REPORT_FIELDS . " where entrytype = 'security'");
     while (!$result->EOF) {
         $rr_security[$result->fields['reportid']] = $result->fields['params'];
         $result->MoveNext();
     }
     // load the report list
     $query_raw = "select id, reporttype, description from " . TABLE_REPORTS . " order by description";
     $reports = $db->Execute($query_raw);
     $data_array = array(array('id' => '', 'text' => GEN_HEADING_PLEASE_SELECT));
     $type_array = array();
     while (!$reports->EOF) {
         $type_array[$reports->fields['id']] = $reports->fields['reporttype'];
         if (security_check($rr_security[$reports->fields['id']])) {
             $data_array[] = array('id' => $reports->fields['id'], 'text' => $reports->fields['description']);
         }
         $reports->MoveNext();
     }
     // Build control box form data
     $control = '<div class="row">';
     $control .= '<div style="white-space:nowrap">';
     $control .= TEXT_REPORT . '&nbsp;' . html_pull_down_menu('report_id', $data_array);
     $control .= '&nbsp;&nbsp;&nbsp;&nbsp;';
     $control .= html_submit_field('my_favorite_reports', TEXT_ADD);
     $control .= html_hidden_field($this->module_id . '_rId', '');
     $control .= '</div></div>';
     // Build content box
     $contents = '';
     if (is_array($params)) {
         $index = 1;
         foreach ($params as $id => $description) {
             $contents .= '<div style="float:right; height:16px;">';
             $contents .= html_icon('phreebooks/dashboard-remove.png', TEXT_REMOVE, 'small', 'onclick="return del_index(\'' . $this->module_id . '\', ' . $index . ')"');
             $contents .= '</div>';
             $contents .= '<div style="height:16px;">';
             $contents .= '  <a href="index.php?cat=reportwriter&amp;module=' . ($type_array[$id] == 'frm' ? 'form_gen' : 'rpt_gen') . '&amp;ReportID=' . $id . '&amp;todo=open" target="_blank">' . $description . '</a>' . chr(10);
             $contents .= '</div>';
             $index++;
         }
     } else {
         $contents = CP_FAVORITE_REPORTS_NO_RESULTS;
     }
     return $this->build_div($this->title, $contents, $control);
 }
 function Output($params)
 {
     global $db;
     $contents = '';
     $control = '';
     // load the report list
     $result = $db->Execute("select id, security, doc_title from " . TABLE_PHREEFORM . " \n\t\t  where doc_ext in ('rpt','frm') order by doc_title");
     $data_array = array(array('id' => '', 'text' => GEN_HEADING_PLEASE_SELECT));
     $type_array = array();
     while (!$result->EOF) {
         if (security_check($result->fields['security'])) {
             $data_array[] = array('id' => $result->fields['id'], 'text' => $result->fields['doc_title']);
         }
         $result->MoveNext();
     }
     // Build control box form data
     $control = '<div class="row">';
     $control .= '<div style="white-space:nowrap">';
     $control .= TEXT_REPORT . '&nbsp;' . html_pull_down_menu('report_id', $data_array);
     $control .= '&nbsp;&nbsp;&nbsp;&nbsp;';
     $control .= html_submit_field('sub_favorite_reports', TEXT_ADD);
     $control .= html_hidden_field('favorite_reports_rId', '');
     $control .= '</div></div>';
     // Build content box
     $contents = '';
     if (is_array($params)) {
         $index = 1;
         foreach ($params as $id => $description) {
             $contents .= '<div style="float:right; height:16px;">';
             $contents .= html_icon('phreebooks/dashboard-remove.png', TEXT_REMOVE, 'small', 'onclick="return del_index(\'' . $this->dashboard_id . '\', ' . $index . ')"');
             $contents .= '</div>';
             $contents .= '<div style="height:16px;">';
             $contents .= '  <a href="index.php?module=phreeform&amp;page=popup_gen&amp;rID=' . $id . '" target="_blank">' . $description . '</a>' . chr(10);
             $contents .= '</div>';
             $index++;
         }
     } else {
         $contents = ACT_NO_RESULTS;
     }
     return $this->build_div('', $contents, $control);
 }
Example #6
0
 function Output($params)
 {
     global $db;
     $contents = '';
     $control = '';
     // Build control box form data
     $control = '<div class="row">';
     $control .= '<div style="white-space:nowrap">';
     if ($_SESSION['admin_security'][SECURITY_ID_USERS] > 1) {
         // only show add new if user permission is set to add
         $control .= TEXT_TITLE . '&nbsp;' . html_input_field('company_links_field_0', '', 'size="40"') . '<br />';
         $control .= TEXT_URL . '&nbsp;' . html_input_field('company_links_field_1', '', 'size="64"');
         $control .= '&nbsp;&nbsp;&nbsp;&nbsp;';
         $control .= html_submit_field('sub_company_links', TEXT_ADD);
     }
     $control .= html_hidden_field('company_links_rId', '');
     $control .= '</div></div>';
     // Build content box
     $contents = '';
     if (is_array($params)) {
         $index = 1;
         foreach ($params as $title => $hyperlink) {
             if ($_SESSION['admin_security'][SECURITY_ID_USERS] > 3) {
                 // only let delete if user permission is full
                 $contents .= '<div style="float:right; height:16px;">';
                 $contents .= html_icon('phreebooks/dashboard-remove.png', TEXT_REMOVE, 'small', 'onclick="return del_index(\'' . $this->dashboard_id . '\', ' . $index . ')"');
                 $contents .= '</div>';
             }
             $contents .= '<div style="height:16px;">';
             $contents .= '  <a href="' . $hyperlink . '" target="_blank">' . $title . '</a>' . chr(10);
             $contents .= '</div>';
             $index++;
         }
     } else {
         $contents = ACT_NO_RESULTS;
     }
     return $this->build_div('', $contents, $control);
 }
		<tr><td class="dataTableContent">
		<?php 
echo SHIPPING_TEXT_DIMENSIONS . ' ' . TEXT_LENGTH;
echo html_input_field('pkg_length', $pkg->pkg_length, 'size="4"');
echo TEXT_WIDTH;
echo html_input_field('pkg_width', $pkg->pkg_width, 'size="4"');
echo TEXT_HEIGHT;
echo html_input_field('pkg_height', $pkg->pkg_height, 'size="4"') . '&nbsp;';
echo html_pull_down_menu('pkg_dimension_unit', gen_build_pull_down($shipping_defaults['dimension_unit']), $pkg->pkg_dimension_unit, $parameters = '', $required = false);
?>
		</td></tr>
		<tr><td class="dataTableContent">
		<?php 
echo TEXT_WEIGHT;
echo html_hidden_field('pkg_total', $pkg->pkg_total);
echo html_hidden_field('pkg_item_count', $pkg->pkg_item_count);
echo html_input_field('pkg_weight', $pkg->pkg_weight, 'size="5"') . '&nbsp;';
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 class="dataTableContent">
		<?php 
if (SHIPPING_DEFAULT_INSURANCE_SHOW) {
    echo html_checkbox_field('insurance', '1', $pkg->insurance);
    echo SHIPPING_INSURANCE_AMOUNT;
 function Output($params)
 {
     global $db;
     // Build control box form data
     $control = '<div class="row">';
     $control .= '  <div style="white-space:nowrap">';
     $control .= CP_MINI_FINANCIAL_NO_OPTIONS . '<br />';
     $control .= html_hidden_field($this->module_id . '_rId', '');
     $control .= '  </div>';
     $control .= '</div>';
     // Build content box
     $contents = '<table width="100%" border = "0">';
     $period = CURRENT_ACCOUNTING_PERIOD;
     // build assets
     $this->bal_tot_2 = 0;
     $this->bal_tot_3 = 0;
     $this->bal_sheet_data = array();
     $the_list = array(0, 2, 4, 6);
     $negate_array = array(false, false, false, false);
     $contents .= $this->add_bal_sheet_data($the_list, $negate_array, $period);
     $contents .= '<tr><td>&nbsp;&nbsp;' . htmlspecialchars(RW_FIN_CURRENT_ASSETS) . '</td>' . chr(10);
     $contents .= '<td align="right">' . $this->ProcessData($this->bal_tot_2) . '</td></tr>' . chr(10);
     $this->bal_tot_2 = 0;
     $the_list = array(8, 10, 12);
     $negate_array = array(false, false, false);
     $this->add_bal_sheet_data($the_list, $negate_array, $period);
     $contents .= '<tr><td>&nbsp;&nbsp;' . htmlspecialchars(RW_FIN_PROP_EQUIP) . '</td>' . chr(10);
     $contents .= '<td align="right">' . $this->ProcessData($this->bal_tot_2) . '</td></tr>' . chr(10);
     $contents .= '<tr><td>' . htmlspecialchars(RW_FIN_ASSETS) . '</td>' . chr(10);
     $contents .= '<td align="right">' . $this->ProcessData($this->bal_tot_3) . '</td></tr>' . chr(10);
     $contents .= '<tr><td colspan="2">&nbsp;</td></tr>' . chr(10);
     // build liabilities
     $this->bal_tot_2 = 0;
     $this->bal_tot_3 = 0;
     $the_list = array(20, 22);
     $negate_array = array(true, true);
     $this->add_bal_sheet_data($the_list, $negate_array, $period);
     $contents .= '<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;' . htmlspecialchars(RW_FIN_CUR_LIABILITIES) . '</td>' . chr(10);
     $contents .= '<td align="right">' . $this->ProcessData($this->bal_tot_2) . '</td></tr>' . chr(10);
     $this->bal_tot_2 = 0;
     $the_list = array(24);
     $negate_array = array(true);
     $this->add_bal_sheet_data($the_list, $negate_array, $period);
     $contents .= '<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;' . htmlspecialchars(RW_FIN_LT_LIABILITIES) . '</td>' . chr(10);
     $contents .= '<td align="right">&nbsp;&nbsp;' . $this->ProcessData($this->bal_tot_2) . '</td></tr>' . chr(10);
     $contents .= '<tr><td>&nbsp;&nbsp;' . htmlspecialchars(RW_FIN_TOTAL_LIABILITIES) . '</td>' . chr(10);
     $contents .= '<td align="right">' . $this->ProcessData($this->bal_tot_3) . '</td></tr>' . chr(10);
     // build capital
     $this->bal_tot_2 = 0;
     $the_list = array(40, 42, 44);
     $negate_array = array(true, true, true);
     $this->add_bal_sheet_data($the_list, $negate_array, $period);
     $contents .= $this->load_report_data($period);
     // retrieve and add net income value
     $this->bal_tot_2 += $this->ytd_net_income;
     $this->bal_tot_3 += $this->ytd_net_income;
     $contents .= '<tr><td>&nbsp;&nbsp;' . htmlspecialchars(RW_FIN_NET_INCOME) . '</td>' . chr(10);
     $contents .= '<td align="right">' . $this->ProcessData($this->ytd_net_income) . '</td></tr>' . chr(10);
     $contents .= '<tr><td>&nbsp;&nbsp;' . htmlspecialchars(RW_FIN_CAPITAL) . '</td>' . chr(10);
     $contents .= '<td align="right">' . $this->ProcessData($this->bal_tot_2) . '</td></tr>' . chr(10);
     $contents .= '<tr><td>' . htmlspecialchars(RW_FIN_TOTAL_LIABILITIES_CAPITAL) . '</td>' . chr(10);
     $contents .= '<td align="right">' . $this->ProcessData($this->bal_tot_3) . '</td></tr>' . chr(10);
     $contents .= '</table>' . chr(10);
     return $this->build_div($this->title, $contents, $control);
 }
?>
</th>
	<th><?php 
echo ORD_DELIVERY_DATES;
?>
</th>
	<th><?php 
echo ORD_NEW_DELIVERY_DATES;
?>
</th>
  </tr>
<?php 
$j = 1;
while (!$ordr_items->EOF) {
    $price = $currencies->format($level_info[0] ? $level_info[0] : ($i == 0 ? $full_price : 0));
    echo '<tr>' . chr(10);
    echo '  <td align="center">' . $ordr_items->fields['qty'] . '</td>' . chr(10);
    echo '  <td align="center">' . $ordr_items->fields['sku'] . '</td>' . chr(10);
    echo '  <td>' . $ordr_items->fields['description'] . '</td>' . chr(10);
    echo '  <td align="center">' . gen_date_short($ordr_items->fields['date_1']) . '</td>' . chr(10);
    echo '  <td align="center">';
    echo html_hidden_field('id_' . $j, $ordr_items->fields['id']) . chr(10);
    echo '  <script type="text/javascript">date_' . $j . '.writeControl(); date_' . $j . '.displayLeft=true; date_' . $j . '.dateFormat="' . DATE_FORMAT_SPIFFYCAL . '";</script>' . chr(10);
    echo '  </td>' . chr(10);
    echo '</tr>';
    $j++;
    $ordr_items->MoveNext();
}
?>
</table>
</form>
Example #10
0
// | modify it under the terms of the GNU General Public License as  |
// | published by the Free Software Foundation, either version 3 of  |
// | the License, or any later version.                              |
// |                                                                 |
// | This program is distributed in the hope that it will be useful, |
// | but WITHOUT ANY WARRANTY; without even the implied warranty of  |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the   |
// | GNU General Public License for more details.                    |
// +-----------------------------------------------------------------+
//  Initially Written By: Harry Lu @ 2009/08/01
//  Path: /modules/payment/methods/linkpoint/pages/ccreview/template_main.php
//
// start the form
echo html_form('cc_view', FILENAME_DEFAULT, gen_get_all_get_params(array('action'))) . chr(10);
// include hidden fields
echo html_hidden_field('action', '') . chr(10);
// customize the toolbar actions
$toolbar->icon_list['cancel']['params'] = 'onclick="location.href = \'' . html_href_link(FILENAME_DEFAULT, '', 'SSL') . '\'"';
$toolbar->icon_list['open']['show'] = false;
$toolbar->icon_list['save']['show'] = false;
$toolbar->icon_list['delete']['show'] = false;
$toolbar->icon_list['print']['show'] = false;
// pull in extra toolbar overrides and additions
if (count($extra_toolbar_buttons) > 0) {
    foreach ($extra_toolbar_buttons as $key => $value) {
        $toolbar->icon_list[$key] = $value;
    }
}
// add the help file index and build the toolbar
$toolbar->search_period = $acct_period;
echo $toolbar->build_toolbar($add_search = true, $add_periods = true);
Example #11
0
    if ($post_date > $due_dates['early_date']) {
        $discount = 0;
    }
    // past the early date
    $extra_params = $query_result->fields['waiting'] == '1' ? 'readonly="readonly" ' : '';
    echo '<tr' . ($extra_params ? ' class="ui-state-error"' : '') . '>' . chr(10);
    echo '<td align="center">' . chr(10);
    echo gen_locale_date($query_result->fields['post_date']) . chr(10);
    // Hidden fields
    echo html_hidden_field('id_' . $idx, $query_result->fields['id']) . chr(10);
    echo html_hidden_field('bill_acct_id_' . $idx, $query_result->fields['bill_acct_id']) . chr(10);
    echo html_hidden_field('amt_' . $idx, $amount_due) . chr(10);
    echo html_hidden_field('inv_' . $idx, $query_result->fields['purchase_invoice_id']) . chr(10);
    echo html_hidden_field('origdisc_' . $idx, $currencies->clean_value($discount)) . chr(10);
    echo html_hidden_field('discdate_' . $idx, $due_dates['early_date']) . chr(10);
    echo html_hidden_field('acct_' . $idx, $query_result->fields['gl_acct_id']) . chr(10);
    // End hidden fields
    echo '</td>' . chr(10);
    echo '<td>' . htmlspecialchars($query_result->fields['bill_primary_name']) . '</td>' . chr(10);
    echo '<td align="center">' . $query_result->fields['purchase_invoice_id'] . '</td>' . chr(10);
    echo '<td align="center" style="text-align:right">' . $currencies->format($amount_due) . '</td>' . chr(10);
    echo '<td align="center">' . html_input_field('desc_' . $idx, $query_result->fields['purch_order_id'], $extra_params . 'size="32"') . '</td>' . chr(10);
    echo '<td align="center">' . gen_locale_date($due_dates['net_date']) . '</td>' . chr(10);
    echo '<td align="center">' . html_input_field('dscnt_' . $idx, $discount, $extra_params . 'size="11" maxlength="20" onchange="updateDiscTotal(' . $idx . ')" style="text-align:right"') . '</td>' . chr(10);
    echo '<td align="center">' . html_input_field('total_' . $idx, '', $extra_params . 'size="11" maxlength="20" onchange="updateLineTotal(' . $idx . ')" style="text-align:right"') . '</td>' . chr(10);
    echo '<td align="center">' . html_checkbox_field('pay_' . $idx, '1', false, '', ($extra_params ? 'disabled="disabled" ' : '') . 'onclick="bbUpdatePayValues(' . $idx . ')"') . '</td>' . chr(10);
    echo '</tr>' . chr(10);
    $idx++;
    $query_result->MoveNext();
}
?>
function BuildFieldList($FieldListings)
{
    $CriteriaString = '';
    $i = 0;
    foreach ($FieldListings as $FieldValues) {
        $CriteriaString .= '<tr><td>';
        $CriteriaString .= html_hidden_field('id_' . $i, $FieldValues['id']);
        $CriteriaString .= html_hidden_field('seq_' . $i, $FieldValues['seqnum']);
        $CriteriaString .= $FieldValues['displaydesc'] . '</td>' . chr(10);
        // add the description
        $CriteriaString .= '<td align="center">' . html_checkbox_field('show_' . $i, '1', $FieldValues['visible'] ? true : false, '', 'onchange="calculateWidth()"') . '</td>' . chr(10);
        $CriteriaString .= '<td align="center">' . html_checkbox_field('break_' . $i, '1', $FieldValues['columnbreak'] ? true : false, '', 'onchange="calculateWidth()"') . '</td>' . chr(10);
        $CriteriaString .= '<td align="center">' . html_input_field('width_' . $i, $FieldValues['params']['columnwidth'] ? $FieldValues['params']['columnwidth'] : RW_DEFAULT_COLUMN_WIDTH, 'size="4" maxlength="3" onchange="calculateWidth()"') . '</td>' . chr(10);
        $CriteriaString .= '<td id="col_' . $i . '" align="center">&nbsp;</td>' . chr(10);
        $CriteriaString .= '<td id="tot_' . $i . '" align="center">&nbsp;</td>' . chr(10);
        $CriteriaString .= '<td align="center">';
        $CriteriaString .= html_icon('actions/go-up.png', TEXT_UP, 'small', 'onclick="exchange(' . $i . ', \'up\')"');
        $CriteriaString .= html_icon('actions/go-down.png', TEXT_DOWN, 'small', 'onclick="exchange(' . $i . ', \'down\')"');
        $CriteriaString .= '</td></tr>' . chr(10);
        $i++;
    }
    return $CriteriaString;
}
Example #13
0
// | This program is free software: you can redistribute it and/or   |
// | modify it under the terms of the GNU General Public License as  |
// | published by the Free Software Foundation, either version 3 of  |
// | the License, or any later version.                              |
// |                                                                 |
// | This program is distributed in the hope that it will be useful, |
// | but WITHOUT ANY WARRANTY; without even the implied warranty of  |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the   |
// | GNU General Public License for more details.                    |
// +-----------------------------------------------------------------+
//  Path: /modules/phreebooks/pages/popup_convert/template_main.php
//
echo html_form('popup_convert', FILENAME_DEFAULT, gen_get_all_get_params(array('action'))) . chr(10);
// include hidden fields
echo html_hidden_field('action', '') . chr(10);
echo html_hidden_field('id', $id) . chr(10);
// customize the toolbar actions
$toolbar->icon_list['cancel']['params'] = 'onclick="self.close()"';
$toolbar->icon_list['open']['show'] = false;
$toolbar->icon_list['save']['params'] = 'onclick="submitToDo(\'save\')"';
$toolbar->icon_list['delete']['show'] = false;
$toolbar->icon_list['print']['show'] = false;
if (count($extra_toolbar_buttons) > 0) {
    foreach ($extra_toolbar_buttons as $key => $value) {
        $toolbar->icon_list[$key] = $value;
    }
}
switch ($account_type) {
    case 'c':
        $toolbar->add_help('07.03.02.04');
        break;
Example #14
0
        $dscnt_num = 'dscnt_' . $i;
        $total_num = 'total_' . $i;
        $pay_num = 'pay_' . $i;
        if (!isset($order->{$id_num})) {
            break;
        }
        // no more rows to build, exit loop
        $extra_params = $order->{$inv_num} ? '' : 'readonly="readonly" ';
        echo '<tr' . ($extra_params ? ' class="ui-state-error"' : '') . '>' . chr(10);
        echo '<td align="center">' . chr(10);
        echo html_input_field($inv_num, $order->{$inv_num}, 'readonly="readonly" size="15"') . chr(10);
        // Hidden fields
        echo html_hidden_field($id_num, $order->{$id_num}) . chr(10);
        echo html_hidden_field($prcnt_num, $order->{$prcnt_num}) . chr(10);
        echo html_hidden_field($early_num, $order->{$early_num}) . chr(10);
        echo html_hidden_field($acct_num, $order->{$acct_num}) . chr(10);
        // End hidden fields
        echo '</td>' . chr(10);
        echo '<td align="center">' . html_input_field($due_num, gen_locale_date($order->{$due_num}), 'readonly="readonly" size="15"') . '</td>' . chr(10);
        echo '<td align="center">' . html_input_field($amt_num, $currencies->format($currencies->clean_value($order->{$amt_num})), 'readonly="readonly" size="12" style="text-align:right"') . '</td>' . chr(10);
        echo '<td align="center">' . html_input_field($desc_num, $order->{$desc_num}, $extra_params . 'size="64" maxlength="64"') . '</td>' . chr(10);
        echo '<td align="center">' . html_input_field($dscnt_num, $currencies->format($currencies->clean_value($order->{$dscnt_num})), $extra_params . 'size="15" maxlength="20" onchange="updateRowTotal(' . $i . ')" style="text-align:right"') . '</td>' . chr(10);
        echo '<td align="center">' . html_input_field($total_num, $currencies->format($currencies->clean_value($order->{$total_num})), $extra_params . 'size="15" maxlength="20" onchange="updateUnitPrice(' . $i . ')" style="text-align:right"') . '</td>' . chr(10);
        echo '<td align="center">' . ($extra_params ? '&nbsp;' : html_checkbox_field($pay_num, '1', $order->{$pay_num} ? true : false, '', 'onclick="updatePayValues(' . $i . ')"')) . '</td>' . chr(10);
        echo '</tr>' . chr(10);
        $i++;
    }
}
?>
	</tbody>
  </table>
 function display_ajax($page_name = 'list', $id = '')
 {
     $display_links = '';
     $pages_array = array();
     for ($i = 1; $i <= $this->total_num_pages; $i++) {
         $pages_array[] = array('id' => $i, 'text' => $i);
     }
     if ($this->total_num_pages > 1) {
         if ($this->current_page_number > 1) {
             $display_links .= html_icon('actions/media-skip-backward.png', TEXT_GO_FIRST, 'small', 'onclick="tabPage(\'' . $id . '\', \'go_first\')" style="cursor:pointer;"');
             $display_links .= html_icon('phreebooks/media-playback-previous.png', TEXT_GO_PREVIOUS, 'small', 'onclick="tabPage(\'' . $id . '\', \'go_previous\')" style="cursor:pointer;"');
         } else {
             $display_links .= html_icon('actions/media-skip-backward.png', '', 'small', '');
             $display_links .= html_icon('phreebooks/media-playback-previous.png', '', 'small', '');
         }
         if (!$this->jump_page_displayed) {
             // only diplay pull down once (the rest are not read by browser)
             $display_links .= sprintf(TEXT_RESULT_PAGE, html_pull_down_menu($page_name, $pages_array, $this->current_page_number, 'onchange="tabPage(\'' . $id . '\', \'go_page\')"'), $this->total_num_pages);
             $this->jump_page_displayed = true;
         } else {
             $display_links .= sprintf(TEXT_RESULT_PAGE, $this->current_page_number, $this->total_num_pages);
         }
         if ($this->current_page_number < $this->total_num_pages && $this->total_num_pages != 1) {
             $display_links .= html_icon('actions/media-playback-start.png', TEXT_GO_NEXT, 'small', 'onclick="tabPage(\'' . $id . '\', \'go_next\')" style="cursor:pointer;"');
             $display_links .= html_icon('actions/media-skip-forward.png', TEXT_GO_LAST, 'small', 'onclick="tabPage(\'' . $id . '\', \'go_last\')" style="cursor:pointer;"');
         } else {
             $display_links .= html_icon('actions/media-playback-start.png', '', 'small', '');
             $display_links .= html_icon('actions/media-skip-forward.png', '', 'small', '');
         }
     } else {
         $display_links .= sprintf(TEXT_RESULT_PAGE, $this->total_num_pages, $this->total_num_pages);
         $display_links .= html_hidden_field($page_name, '1');
     }
     return $display_links;
 }
// | but WITHOUT ANY WARRANTY; without even the implied warranty of  |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the   |
// | GNU General Public License for more details.                    |
// |                                                                 |
// | The license that is bundled with this package is located in the |
// | file: /doc/manual/ch01-Introduction/license.html.               |
// | If not, see http://www.gnu.org/licenses/                        |
// +-----------------------------------------------------------------+
//  Path: /modules/services/pages/ship_mgr/template_main.php
//
// start the form
echo html_form('ship_mgr', FILENAME_DEFAULT, gen_get_all_get_params(array('action')), 'post', 'enctype="multipart/form-data"', true) . chr(10);
// include hidden fields
echo html_hidden_field('todo', '') . chr(10);
echo html_hidden_field('rowSeq', '') . chr(10);
echo html_hidden_field('module_id', '') . chr(10);
// customize the toolbar actions
$toolbar->icon_list['cancel']['params'] = 'onclick="location.href = \'' . html_href_link(FILENAME_DEFAULT, '', 'SSL') . '\'"';
$toolbar->icon_list['open']['show'] = false;
$toolbar->icon_list['save']['show'] = false;
$toolbar->icon_list['delete']['show'] = false;
$toolbar->icon_list['print']['show'] = false;
// pull in extra toolbar overrides and additions
if (count($extra_toolbar_buttons) > 0) {
    foreach ($extra_toolbar_buttons as $key => $value) {
        $toolbar->icon_list[$key] = $value;
    }
}
// add the help file index and build the toolbar
$toolbar->add_help('09');
echo $toolbar->build_toolbar($add_search = false, false, true);
?>
	    <?php 
if (isset($cInfo->serialize)) {
    echo ' ' . INV_ENTRY_INVENTORY_SERIALIZE;
}
?>
	  </td>
	  <td align="right"><?php 
if (isset($cInfo->image_with_path)) {
    echo INV_ENTRY_IMAGE_PATH;
}
?>
</td>
	  <td colspan="2"><?php 
if (isset($cInfo->image_with_path)) {
    echo html_hidden_field('image_with_path', $cInfo->image_with_path);
}
if (isset($cInfo->image_with_path)) {
    echo html_input_field('inventory_path', substr($cInfo->image_with_path, 0, strrpos($cInfo->image_with_path, '/')));
}
?>
	  </td>
	</tr>
	<tr>
	  <td align="right"><?php 
if (isset($cInfo->account_sales_income)) {
    echo INV_ENTRY_ACCT_SALES;
}
?>
</td>
	  <td><?php 
      <td align="center"><?php 
echo html_checkbox_field('Visible', '1', $FieldListings['defaults']['visible'] == '1' ? true : false);
?>
</td>
      <?php 
if ($Type != 'frm') {
    echo '<td>' . html_pull_down_menu('Processing', gen_build_pull_down($FormProcessing), $Params['processing']) . '</td>';
}
?>
      <td>
	    <?php 
if ($Type == 'frm') {
    if ($FieldListings['defaults']['buttonvalue'] == TEXT_NEW || $FieldListings['defaults']['buttonvalue'] == TEXT_ADD) {
        echo html_pull_down_menu('Params', gen_build_pull_down($FormEntries), $Params['index']);
    } else {
        echo $FormEntries[$Params['index']] . html_hidden_field('Params', $Params['index']);
    }
} else {
    echo html_pull_down_menu('Params', gen_build_pull_down($TotalLevels), $Params['index']);
}
?>
      </td>
	  <?php 
if ($Type != 'frm') {
    echo '<td>' . html_pull_down_menu('Align', gen_build_pull_down($FontAlign), $Params['align']) . '</td>';
}
?>
      <td align = "center">
	    <?php 
if ($FieldListings['defaults']['buttonvalue'] == TEXT_ADD) {
    echo html_icon('actions/list-add.png', TEXT_ADD, 'medium', 'onclick="submitToDo(\'add\')"');
		  <td align="center"><?php 
        echo html_icon('emblems/emblem-unreadable.png', TEXT_DELETE, 'small', 'onclick="if (confirm(\'' . RMA_ROW_DELETE_ALERT . '\')) removeItemRow(' . $i . ');"');
        ?>
</td>
		  <td class="main" align="center"><?php 
        echo html_input_field('qty_' . $i, $cInfo->item_rows[$j]['qty'], 'size="7" maxlength="6" style="text-align:right"');
        ?>
</td>
		  <td nowrap class="main" align="center"><?php 
        echo html_input_field('sku_' . $i, $cInfo->item_rows[$j]['sku'], 'size="' . (MAX_INVENTORY_SKU_LENGTH + 1) . '" maxlength="' . MAX_INVENTORY_SKU_LENGTH . '" onfocus="clearField(\'sku_' . $i . '\', \'' . TEXT_SEARCH . '\')" onBlur="setField(\'sku_' . $i . '\', \'' . TEXT_SEARCH . '\')"');
        ?>
		  <?php 
        echo '&nbsp;' . html_icon('status/folder-open.png', TEXT_SEARCH, 'small', 'align="absmiddle" style="cursor:pointer" onclick="ItemList(' . $i . ')"');
        ?>
		  <?php 
        echo html_hidden_field('id_' . $i, $cInfo->item_rows[$j]['id']);
        ?>
		  </td>
		  <td class="main"><?php 
        echo html_input_field('desc_' . $i, $cInfo->item_rows[$j]['desc'], 'size="64" maxlength="64"');
        ?>
</td>
		  <td class="main"><?php 
        echo html_pull_down_menu('actn_' . $i, gen_build_pull_down($action_codes), $cInfo->item_rows[$j]['actn']);
        ?>
</td>
		</tr>
<?php 
    }
} else {
    echo '  <script language="javascript">addItemRow();</script>' . chr(10);
?>
</td>
	   <td align="right"><?php 
echo INV_ENTRY_ITEM_TAXABLE;
?>
</td>
       <td><?php 
echo html_pull_down_menu('tax_id', $tax_rates, $cInfo->tax_id);
?>
</td>
       <td><?php 
echo ACT_CATEGORY_PAYMENT_TERMS;
?>
</td>
	   <td><?php 
echo html_hidden_field('terms', $cInfo->special_terms) . chr(10);
echo html_input_field('terms_text', gen_terms_to_language($cInfo->special_terms, true, $cInfo->terms_type), 'readonly="readonly" size="20"') . '&nbsp;' . chr(10);
echo html_icon('apps/accessories-text-editor.png', ACT_TERMS_DUE, 'small', 'style="cursor:pointer" onclick="TermsList()"');
?>
	   </td>
      </tr>
    </table>
  </fieldset>

<?php 
// *********************** Mailing/Main Address (only one allowed) ******************************
?>
  <fieldset>
    <legend><?php 
echo ACT_CATEGORY_M_ADDRESS;
?>
Example #21
0
// | This program is free software: you can redistribute it and/or   |
// | modify it under the terms of the GNU General Public License as  |
// | published by the Free Software Foundation, either version 3 of  |
// | the License, or any later version.                              |
// |                                                                 |
// | This program is distributed in the hope that it will be useful, |
// | but WITHOUT ANY WARRANTY; without even the implied warranty of  |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the   |
// | GNU General Public License for more details.                    |
// +-----------------------------------------------------------------+
//  Path: /modules/phreedom/pages/users/template_detail.php
//
echo html_form('users', FILENAME_DEFAULT, gen_get_all_get_params(array('action'))) . chr(10);
// include hidden fields
echo html_hidden_field('action', '') . chr(10);
echo html_hidden_field('rowSeq', $admin_id) . chr(10);
// customize the toolbar actions
$toolbar->icon_list['cancel']['params'] = 'onclick="location.href = \'' . html_href_link(FILENAME_DEFAULT, gen_get_all_get_params(array('action')), 'SSL') . '\'"';
$toolbar->icon_list['open']['show'] = false;
$toolbar->icon_list['delete']['show'] = false;
$toolbar->icon_list['print']['show'] = false;
if ($security_level > 2) {
    $toolbar->icon_list['save']['params'] = 'onclick="submitToDo(\'save\')"';
} else {
    $toolbar->icon_list['save']['show'] = false;
}
if (count($extra_toolbar_buttons) > 0) {
    foreach ($extra_toolbar_buttons as $key => $value) {
        $toolbar->icon_list[$key] = $value;
    }
}
// | modify it under the terms of the GNU General Public License as  |
// | published by the Free Software Foundation, either version 3 of  |
// | the License, or any later version.                              |
// |                                                                 |
// | This program is distributed in the hope that it will be useful, |
// | but WITHOUT ANY WARRANTY; without even the implied warranty of  |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the   |
// | GNU General Public License for more details.                    |
// |                                                                 |
// | The license that is bundled with this package is located in the |
// | file: /doc/manual/ch01-Introduction/license.html.               |
// | If not, see http://www.gnu.org/licenses/                        |
// +-----------------------------------------------------------------+
//  Path: /modules/accounts/pages/main/template_e_general.php
//
echo html_hidden_field('account_number', $cInfo->account_number);
// not used for employees
?>
<div id="cat_general" class="tabset_content">
  <h2 class="tabset_label"><?php 
echo TEXT_GENERAL;
?>
</h2>
  <fieldset class="formAreaTitle">
  <legend><?php 
echo ACT_CATEGORY_CONTACT;
?>
</legend>
  <table class="formArea" border="0" cellspacing="2" cellpadding="2">
    <tr>
     <td class="main" align="right"><?php 
Example #23
0
// | This program is free software: you can redistribute it and/or   |
// | modify it under the terms of the GNU General Public License as  |
// | published by the Free Software Foundation, either version 3 of  |
// | the License, or any later version.                              |
// |                                                                 |
// | This program is distributed in the hope that it will be useful, |
// | but WITHOUT ANY WARRANTY; without even the implied warranty of  |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the   |
// | GNU General Public License for more details.                    |
// +-----------------------------------------------------------------+
//  Path: /modules/phreebooks/pages/popup_orders/template_main.php
//
echo html_form('popup_orders', FILENAME_DEFAULT, gen_get_all_get_params(array('action', 'list'))) . chr(10);
// include hidden fields
echo html_hidden_field('action', '') . chr(10);
echo html_hidden_field('rowSeq', '') . chr(10);
// customize the toolbar actions
$toolbar->icon_list['cancel']['params'] = 'onclick="self.close()"';
$toolbar->icon_list['open']['show'] = false;
$toolbar->icon_list['save']['show'] = false;
$toolbar->icon_list['delete']['show'] = false;
$toolbar->icon_list['print']['show'] = false;
if (count($extra_toolbar_buttons) > 0) {
    foreach ($extra_toolbar_buttons as $key => $value) {
        $toolbar->icon_list[$key] = $value;
    }
}
switch (JOURNAL_ID) {
    case 3:
        $toolbar->add_help('07.02.04.02');
        break;
$ctoolbar->icon_list['delete']['show'] = false;
$ctoolbar->icon_list['print']['show'] = false;
$ctoolbar->add_icon('new', 'onclick="clearAddress(\'im\')"', $order = 10);
$ctoolbar->icon_list['new']['icon'] = 'actions/contact-new.png';
$ctoolbar->icon_list['new']['text'] = TEXT_NEW_CONTACT;
$ctoolbar->add_icon('copy', 'onclick="copyContactAddress(\'' . $type . '\')"', 20);
$ctoolbar->icon_list['copy']['text'] = TEXT_COPY_ADDRESS;
echo $output;
echo $ctoolbar->build_toolbar();
?>
    </td></tr>
    </table>
    <table class="ui-widget" style="border-collapse:collapse;width:100%;">
      <tr>
       <td align="right"><?php 
echo ACT_SHORT_NAME . html_hidden_field('i_id', '');
?>
</td>
       <td><?php 
echo html_input_field('i_short_name', $cInfo->i_short_name, 'size="21" maxlength="20"', true);
?>
</td>
       <td align="right"><?php 
echo TEXT_TITLE;
?>
</td>
       <td><?php 
echo html_input_field('i_contact_middle', $cInfo->i_contact_middle, 'size="33" maxlength="32"', false);
?>
</td>
      </tr>
Example #25
0
<?php 
    echo html_button_field('estimate', TEXT_ESTIMATE, 'onclick="FreightList()"');
    echo ORD_SHIP_CARRIER . ' ' . html_pull_down_menu('ship_carrier', $methods, $default = '', 'onchange="buildFreightDropdown()"');
    echo ' ' . ORD_FREIGHT_SERVICE . ' ' . html_pull_down_menu('ship_service', gen_null_pull_down(), '');
    echo ' ' . ORD_FREIGHT . ' ';
    echo html_input_field('freight', $currencies->format($order->freight ? $order->freight : '0.00', true, $order->currencies_code, $order->currencies_value), 'size="15" maxlength="20" onchange="updateTotalPrices()" style="text-align:right"');
    ?>
		  </td>
        </tr>
<?php 
} else {
    echo '        <tr style="display:none"><td colspan="2">' . chr(10);
    echo html_pull_down_menu('ship_carrier', gen_null_pull_down(), '', 'style="visibility:hidden"');
    echo html_pull_down_menu('ship_service', gen_null_pull_down(), '', 'style="visibility:hidden"');
    echo html_hidden_field('ship_gl_acct_id', '');
    echo html_hidden_field('freight', '0') . chr(10);
    echo '        </td></tr>' . chr(10);
}
?>
        <tr>
          <td><?php 
echo TEXT_SELECT_FILE_TO_ATTACH . ' ' . html_file_field('file_name');
?>
</td>
          <td align="right">
<?php 
echo $account_type == 'v' ? ORD_PURCHASE_TAX . ' ' : ORD_SALES_TAX . ' ';
echo ' ' . html_input_field('sales_tax', $currencies->format($order->sales_tax ? $order->sales_tax : '0.00', true, $order->currencies_code, $order->currencies_value), 'readonly="readonly" size="15" maxlength="20" onchange="updateTotalPrices()" style="text-align:right"');
?>
		  </td>
        </tr>
// |                                                                 |
// | This program is distributed in the hope that it will be useful, |
// | but WITHOUT ANY WARRANTY; without even the implied warranty of  |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the   |
// | GNU General Public License for more details.                    |
// |                                                                 |
// | The license that is bundled with this package is located in the |
// | file: /doc/manual/ch01-Introduction/license.html.               |
// | If not, see http://www.gnu.org/licenses/                        |
// +-----------------------------------------------------------------+
//  Path: /modules/general/pages/crash/template_main.php
//
// start the form
echo html_form('crash', FILENAME_DEFAULT, gen_get_all_get_params(array('action'))) . chr(10);
// include hidden fields
echo html_hidden_field('todo', '') . chr(10);
// customize the toolbar actions
$toolbar->icon_list['cancel']['params'] = 'onclick="location.href = \'' . html_href_link(FILENAME_DEFAULT, '', 'SSL') . '\'"';
$toolbar->icon_list['open']['show'] = false;
$toolbar->icon_list['delete']['show'] = false;
$toolbar->icon_list['save']['show'] = false;
$toolbar->icon_list['print']['show'] = false;
// pull in extra toolbar overrides and additions
if (count($extra_toolbar_buttons) > 0) {
    foreach ($extra_toolbar_buttons as $key => $value) {
        $toolbar->icon_list[$key] = $value;
    }
}
// add the help file index and build the toolbar
$toolbar->add_help('');
echo $toolbar->build_toolbar();
Example #27
0
// | This program is free software: you can redistribute it and/or   |
// | modify it under the terms of the GNU General Public License as  |
// | published by the Free Software Foundation, either version 3 of  |
// | the License, or any later version.                              |
// |                                                                 |
// | This program is distributed in the hope that it will be useful, |
// | but WITHOUT ANY WARRANTY; without even the implied warranty of  |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the   |
// | GNU General Public License for more details.                    |
// +-----------------------------------------------------------------+
//  Path: /modules/phreedom/pages/popup_setup/template_main.php
//
echo html_form('popup_setup', FILENAME_DEFAULT, gen_get_all_get_params(array('action')));
// include hidden fields
echo html_hidden_field('action', '') . chr(10);
echo html_hidden_field('rowSeq', $sID) . chr(10);
// customize the toolbar actions
$toolbar->icon_list['cancel']['params'] = 'onclick="self.close()"';
$toolbar->icon_list['open']['show'] = false;
$toolbar->icon_list['save']['params'] = 'onclick="submitToDo(\'save\')"';
$toolbar->icon_list['delete']['show'] = false;
$toolbar->icon_list['print']['show'] = false;
if (count($extra_toolbar_buttons) > 0) {
    foreach ($extra_toolbar_buttons as $key => $value) {
        $toolbar->icon_list[$key] = $value;
    }
}
if ($subject_module->help_path != '') {
    $toolbar->add_help($subject_module->help_path);
}
echo $toolbar->build_toolbar();
Example #28
0
// | published by the Free Software Foundation, either version 3 of  |
// | the License, or any later version.                              |
// |                                                                 |
// | This program is distributed in the hope that it will be useful, |
// | but WITHOUT ANY WARRANTY; without even the implied warranty of  |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the   |
// | GNU General Public License for more details.                    |
// +-----------------------------------------------------------------+
//  Path: /modules/cp_action/pages/main/template_detail.php
//
// start the form
echo html_form('capa', FILENAME_DEFAULT, gen_get_all_get_params(array('action')), 'post');
$hidden_fields = NULL;
// include hidden fields
echo html_hidden_field('action', '') . chr(10);
echo html_hidden_field('rowSeq', $cInfo->id) . chr(10);
// customize the toolbar actions
$toolbar->icon_list['cancel']['params'] = 'onclick="location.href = \'' . html_href_link(FILENAME_DEFAULT, gen_get_all_get_params(array('action', 'page')) . 'page=main', 'SSL') . '\'"';
$toolbar->icon_list['open']['show'] = false;
$toolbar->icon_list['delete']['show'] = false;
if ($cInfo->id && $security_level > 2 || !$cInfo->id && $security_level > 1) {
    $toolbar->icon_list['save']['params'] = 'onclick="submitToDo(\'save\')"';
} else {
    $toolbar->icon_list['save']['show'] = false;
}
$toolbar->icon_list['print']['show'] = false;
//$toolbar->add_help('');
echo $toolbar->build_toolbar();
?>
<h1><?php 
echo $_REQUEST['action'] == 'new' ? MENU_HEADING_NEW_CAPA : MENU_HEADING_CAPA . ' - ' . TEXT_CAPA_ID . '# ' . $cInfo->capa_num;
// |                                                                 |
// | The license that is bundled with this package is located in the |
// | file: /doc/manual/ch01-Introduction/license.html.               |
// | If not, see http://www.gnu.org/licenses/                        |
// +-----------------------------------------------------------------+
//  Path: /modules/reportwriter/pages/builder/template_TplFrmImg.php
//
$kFontColors = gen_build_pull_down($FontColors);
echo html_form('FrmImage', FILENAME_DEFAULT, gen_get_all_get_params(array('action')) . 'action=step6a', 'post', 'enctype="multipart/form-data"');
echo html_hidden_field('DisplayName', $DisplayName);
echo html_hidden_field('index', $Params['index']);
echo html_hidden_field('ID', $FormParams['id']);
echo html_hidden_field('SeqNum', $SeqNum);
echo html_hidden_field('ReportID', $ReportID);
echo html_hidden_field('ReportName', $description);
echo html_hidden_field('todo', '');
//  echo html_hidden_field('rowSeq', '');
// customize the toolbar actions
$toolbar->icon_list['cancel']['params'] = 'onclick="submitToDo(\'cancel\')"';
$toolbar->icon_list['open']['show'] = false;
$toolbar->icon_list['save']['params'] = 'onclick="submitToDo(\'update\');"';
$toolbar->icon_list['print']['show'] = false;
$toolbar->icon_list['delete']['show'] = false;
$toolbar->add_icon('finish', 'onclick="submitToDo(\'finish\')"', $order = 10);
$toolbar->add_help('11.01.01');
echo $toolbar->build_toolbar();
?>
<h2 align="center"><?php 
echo TEXT_FORM_FIELD . $DisplayName . ' - ' . TEXT_PROPERTIES;
?>
</h2>
<table border="0" width="100%" cellspacing="2" cellpadding="2">
  <tr>
	<td class="formArea"><table border="0" cellspacing="2" cellpadding="2">
	  <tr>
		<td class="main"><?php 
echo INV_FIELD_NAME;
?>
</td>
		<td class="main">
<?php 
$system_disable = false;
if ($cInfo->category_id == '0') {
    $system_disable = true;
}
if ($action != 'new' || $system_disable) {
    echo html_hidden_field('category_id', '0');
    echo html_input_field('field_name', $cInfo->field_name, 'readonly size="33" maxlength="32"', false);
} else {
    echo html_input_field('field_name', '', 'size="33" maxlength="32"', false);
}
?>
		</td>
		<td class="main" align="right"><?php 
echo INV_DESCRIPTION;
?>
</td>
		<td class="main">
<?php 
echo html_input_field('description', $cInfo->description, 'size="65" maxlength="64"', false);
?>
		</td>