Пример #1
0
 function Output($params)
 {
     global $db, $currencies;
     if (count($params) != $this->size_params) {
         //upgrading
         $params = $this->Upgrade($params);
     }
     $list_length = array();
     $contents = '';
     $control = '';
     for ($i = 0; $i <= $this->max_length; $i++) {
         $list_length[] = array('id' => $i, 'text' => $i);
     }
     $list_order = array(array('id' => 'asc', 'text' => TEXT_ASC), array('id' => 'desc', 'text' => TEXT_DESC));
     $list_limit = array(array('id' => '0', 'text' => TEXT_NO), array('id' => '1', 'text' => TEXT_YES));
     // Build control box form data
     $control = '<div class="row">';
     $control .= '  <div style="white-space:nowrap">';
     $control .= TEXT_SHOW . TEXT_SHOW_NO_LIMIT . '&nbsp' . html_pull_down_menu('po_status_field_0', $list_length, $params['num_rows']) . '<br />';
     $control .= CP_PO_STATUS_SORT_ORDER . '&nbsp' . html_pull_down_menu('po_status_field_1', $list_order, $params['order']) . '<br />';
     $control .= CP_PO_STATUS_HIDE_FUTURE . '&nbsp' . html_pull_down_menu('po_status_field_2', $list_limit, $params['limit']);
     $control .= html_submit_field('sub_po_status', TEXT_SAVE);
     $control .= '  </div>';
     $control .= '</div>';
     if (count($params) != $this->size_params) {
         $this->update();
     }
     // Build content box
     $sql = "select id, post_date, purchase_invoice_id, bill_primary_name, total_amount, currencies_code, currencies_value \n\t\t  from " . TABLE_JOURNAL_MAIN . " where journal_id = 4 and closed = '0'";
     if ($params['limit'] == '1') {
         $sql .= " and post_date <= '" . date('Y-m-d') . "'";
     }
     if ($params['order'] == 'desc') {
         $sql .= " order by post_date desc";
     }
     if ($params['num_rows']) {
         $sql .= " limit " . $params['num_rows'];
     }
     $result = $db->Execute($sql);
     if ($result->RecordCount() < 1) {
         $contents = ACT_NO_RESULTS;
     } else {
         while (!$result->EOF) {
             $contents .= '<div style="float:right">';
             $contents .= html_button_field('invoice_' . $result->fields['id'], TEXT_RECEIVE, 'onclick="window.open(\'' . html_href_link(FILENAME_DEFAULT, 'module=phreebooks&amp;page=orders&amp;oID=' . $result->fields['id'] . '&amp;jID=6&amp;action=prc_so', 'SSL') . '\',\'_blank\')"') . "  ";
             $contents .= $currencies->format_full($result->fields['total_amount'], true, $result->fields['currencies_code'], $result->fields['currencies_value']);
             $contents .= '</div>';
             $contents .= '<div>';
             $contents .= '<a href="' . html_href_link(FILENAME_DEFAULT, 'module=phreebooks&amp;page=orders&amp;oID=' . $result->fields['id'] . '&amp;jID=4&amp;action=edit', 'SSL') . '">';
             $contents .= $result->fields['purchase_invoice_id'] . ' - ';
             $contents .= gen_locale_date($result->fields['post_date']);
             $contents .= ' ' . htmlspecialchars(gen_trim_string($result->fields['bill_primary_name'], 20, true));
             $contents .= '</a>';
             $contents .= '</div>' . chr(10);
             $result->MoveNext();
         }
     }
     return $this->build_div('', $contents, $control);
 }
 function Output($params)
 {
     global $db, $currencies;
     if (count($params) != $this->size_params) {
         //upgrading
         $params = $this->Upgrade($params);
     }
     $list_length = array();
     $contents = '';
     $control = '';
     for ($i = 0; $i <= $this->max_length; $i++) {
         $list_length[] = array('id' => $i, 'text' => $i);
     }
     // Build control box form data
     $control = '<div class="row">';
     $control .= '<div style="white-space:nowrap">' . TEXT_SHOW . TEXT_SHOW_NO_LIMIT;
     $control .= html_pull_down_menu('to_receive_inv_field_0', $list_length, $params['num_rows']);
     $control .= html_submit_field('sub_to_receive_inv', TEXT_SAVE);
     $control .= '</div></div>';
     // Build content box
     $total = 0;
     $sql = "select id, purchase_invoice_id, total_amount, bill_primary_name, currencies_code, currencies_value, post_date, journal_id \n\t\t  from " . TABLE_JOURNAL_MAIN . " \n\t\t  where journal_id in (6,7) and waiting = '1' order by post_date DESC, purchase_invoice_id DESC";
     if ($params['num_rows']) {
         $sql .= " limit " . $params['num_rows'];
     }
     $result = $db->Execute($sql);
     if ($result->RecordCount() < 1) {
         $contents = ACT_NO_RESULTS;
     } else {
         while (!$result->EOF) {
             $inv_balance = $result->fields['total_amount'] - fetch_partially_paid($result->fields['id']);
             if ($result->fields['journal_id'] == 7) {
                 $inv_balance = -$inv_balance;
             }
             $total += $inv_balance;
             $contents .= '<div style="float:right">' . $currencies->format_full($inv_balance, true, $result->fields['currencies_code'], $result->fields['currencies_value']) . '</div>';
             $contents .= '<div>';
             $contents .= '<a href="' . html_href_link(FILENAME_DEFAULT, "module=phreebooks&amp;page=orders&amp;oID={$result->fields['id']}&amp;jID={$result->fields['journal_id']}&amp;action=edit", 'SSL') . '">';
             $contents .= gen_locale_date($result->fields['post_date']) . ' - ';
             if ($result->fields['purchase_invoice_id'] != '') {
                 $contents .= $result->fields['purchase_invoice_id'] . ' - ';
             }
             $contents .= htmlspecialchars($result->fields['bill_primary_name']);
             $contents .= '</a></div>' . chr(10);
             $result->MoveNext();
         }
     }
     if (!$params['num_rows'] && $result->RecordCount() > 0) {
         $contents .= '<div style="float:right">' . $currencies->format_full($total, true, DEFAULT_CURRENCY, 1) . '</div>';
         $contents .= '<div><b>' . TEXT_TOTAL . '</b></div>' . chr(10);
     }
     return $this->build_div('', $contents, $control);
 }
Пример #3
0
 function configure($key)
 {
     switch ($key) {
         case 'MODULE_SHIPPING_TABLE_MODE':
             $temp = array(array('id' => 'price', 'text' => TEXT_PRICE), array('id' => 'weight', 'text' => TEXT_WEIGHT));
             $html .= html_pull_down_menu(strtolower($key), $temp, constant($key));
             break;
         default:
             $html .= html_input_field(strtolower($key), constant($key), '');
     }
     return $html;
 }
Пример #4
0
 function selection()
 {
     global $order;
     for ($i = 1; $i < 13; $i++) {
         $expires_month[] = array('id' => sprintf('%02d', $i), 'text' => strftime('%B', mktime(0, 0, 0, $i, 1, 2000)));
     }
     $today = getdate();
     for ($i = $today['year']; $i < $today['year'] + 10; $i++) {
         $expires_year[] = array('id' => strftime('%y', mktime(0, 0, 0, 1, 1, $i)), 'text' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i)));
     }
     $selection = array('id' => $this->code, 'module' => MODULE_PAYMENT_FIRSTDATA_TEXT_CATALOG_TITLE, 'fields' => array(array('title' => MODULE_PAYMENT_FIRSTDATA_TEXT_CREDIT_CARD_OWNER, 'field' => html_input_field('firstdata_field_0', $order->firstdata_field_0)), array('title' => MODULE_PAYMENT_FIRSTDATA_TEXT_CREDIT_CARD_NUMBER, 'field' => html_input_field('firstdata_field_1', $order->firstdata_field_1)), array('title' => MODULE_PAYMENT_FIRSTDATA_TEXT_CREDIT_CARD_EXPIRES, 'field' => html_pull_down_menu('firstdata_field_2', $expires_month, $order->firstdata_field_2) . '&nbsp;' . html_pull_down_menu('firstdata_field_3', $expires_year, $order->firstdata_field_3)), array('title' => MODULE_PAYMENT_FIRSTDATA_TEXT_CVV, 'field' => html_input_field('firstdata_field_4', $order->firstdata_field_4, 'size="4" maxlength="4"'))));
     return $selection;
 }
Пример #5
0
 /**
  * Display Credit Card Information Submission Fields on the Checkout Payment Page
  *
  * @return array
  */
 function selection()
 {
     global $order;
     for ($i = 1; $i < 13; $i++) {
         $j = $i < 10 ? '0' . $i : $i;
         $expires_month[] = array('id' => sprintf('%02d', $i), 'text' => $j . '-' . strftime('%B', mktime(0, 0, 0, $i, 1, 2000)));
     }
     $today = getdate();
     for ($i = $today['year']; $i < $today['year'] + 10; $i++) {
         $expires_year[] = array('id' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i)), 'text' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i)));
     }
     $selection = array('id' => $this->code, 'page' => $this->title, 'fields' => array(array('title' => MODULE_PAYMENT_CC_TEXT_CREDIT_CARD_OWNER, 'field' => html_input_field('nova_xml_field_0', $this->field_0)), array('title' => MODULE_PAYMENT_CC_TEXT_CREDIT_CARD_NUMBER, 'field' => html_input_field('nova_xml_field_1', $this->field_1)), array('title' => MODULE_PAYMENT_CC_TEXT_CREDIT_CARD_EXPIRES, 'field' => html_pull_down_menu('nova_xml_field_2', $expires_month, $this->field_2) . '&nbsp;' . html_pull_down_menu('nova_xml_field_3', $expires_year, $this->field_3)), array('title' => MODULE_PAYMENT_CC_TEXT_CVV, 'field' => html_input_field('nova_xml_field_4', $this->field_4, 'size="4" maxlength="4"' . ' id="' . $this->code . '-cc-cvv"') . ' ' . '<a href="javascript:popupWindow(\'' . html_href_link(FILENAME_POPUP_CVV_HELP) . '\')">' . TEXT_MORE_INFO . '</a>')));
     return $selection;
 }
Пример #6
0
 function selection()
 {
     global $order;
     for ($i = 1; $i < 13; $i++) {
         $j = $i < 10 ? '0' . $i : $i;
         $expires_month[] = array('id' => sprintf('%02d', $i), 'text' => $j . '-' . strftime('%B', mktime(0, 0, 0, $i, 1, 2000)));
     }
     $today = getdate();
     for ($i = $today['year']; $i < $today['year'] + 10; $i++) {
         $expires_year[] = array('id' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i)), 'text' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i)));
     }
     $selection = array('id' => $this->code, 'page' => $this->title, 'fields' => array(array('title' => MODULE_PAYMENT_PAYPAL_NVP_TEXT_CREDIT_CARD_OWNER, 'field' => html_input_field('paypal_nvp_field_0', $order->paypal_nvp_field_0, 'size="12" maxlength="25"') . '&nbsp;' . html_input_field('paypal_nvp_field_5', $order->paypal_nvp_field_5, 'size="12" maxlength="25"')), array('title' => MODULE_PAYMENT_CC_TEXT_CREDIT_CARD_NUMBER, 'field' => html_input_field('paypal_nvp_field_1', $order->paypal_nvp_field_1)), array('title' => MODULE_PAYMENT_CC_TEXT_CREDIT_CARD_EXPIRES, 'field' => html_pull_down_menu('paypal_nvp_field_2', $expires_month, $order->paypal_nvp_field_2) . '&nbsp;' . html_pull_down_menu('paypal_nvp_field_3', $expires_year, $order->paypal_nvp_field_3)), array('title' => MODULE_PAYMENT_CC_TEXT_CVV, 'field' => html_input_field('paypal_nvp_field_4', $order->paypal_nvp_field_4, 'size="4" maxlength="4"'))));
     return $selection;
 }
Пример #7
0
 function Output($params)
 {
     global $db, $currencies;
     if (count($params) != $this->size_params) {
         //upgrading
         $params = $this->Upgrade($params);
     }
     $list_length = array();
     $contents = '';
     $control = '';
     for ($i = 0; $i <= $this->max_length; $i++) {
         $list_length[] = array('id' => $i, 'text' => $i);
     }
     // Build control box form data1
     $control = '<div class="row">';
     $control .= '<div style="white-space:nowrap">' . CP_AUDIT_LOG_DISPLAY;
     $control .= '<select name="today_minus" onchange="">';
     for ($i = 0; $i <= 365; $i++) {
         $control .= '<option value="' . $i . '"' . ($params['today_minus'] == $i ? ' selected="selected"' : '') . '>' . $i . '</option>';
     }
     $control .= '</select>' . CP_AUDIT_LOG_DISPLAY2 . '&nbsp;&nbsp;&nbsp;&nbsp;';
     $control .= '</div></div>';
     // Build control box form data2
     $control .= '<div class="row">';
     $control .= '<div style="white-space:nowrap">' . TEXT_SHOW . TEXT_SHOW_NO_LIMIT;
     $control .= html_pull_down_menu('audit_log_num_rows', $list_length, $params['num_rows']);
     $control .= html_submit_field('sub_audit_log', TEXT_SAVE);
     $control .= '</div></div>';
     // Build content box
     $sql = "select a.action_date, a.action, a.reference_id, a.amount, u.display_name from " . TABLE_AUDIT_LOG . " as a, " . TABLE_USERS . " as u \n          where a.user_id = u.admin_id and a.action_date >= '" . date('Y-m-d', strtotime('-' . $params['today_minus'] . ' day')) . "'  \n          and a.action_date <= '" . date('Y-m-d', strtotime('-' . $params['today_minus'] + 1 . ' day')) . "' order by a.action_date desc";
     if ($params['num_rows']) {
         $sql .= " limit " . $params['num_rows'];
     }
     $result = $db->Execute($sql);
     if ($result->RecordCount() < 1) {
         $contents = ACT_NO_RESULTS;
     } else {
         while (!$result->EOF) {
             $contents .= '<div style="float:right">' . $currencies->format_full($result->fields['amount'], true, DEFAULT_CURRENCY, 1, 'fpdf') . '</div>';
             $contents .= '<div>';
             $contents .= $result->fields['display_name'] . '-->';
             $contents .= $result->fields['action'] . '-->';
             $contents .= $result->fields['reference_id'];
             $contents .= '</div>' . chr(10);
             $result->MoveNext();
         }
     }
     $this->title = CP_AUDIT_LOG_TITLE . " " . date('Y-m-d', strtotime('-' . $params['today_minus'] . ' day'));
     return $this->build_div('', $contents, $control);
 }
Пример #8
0
 function configure($key)
 {
     switch ($key) {
         case 'MODULE_PAYMENT_' . strtoupper($this->code) . '_OPEN_POS_DRAWER':
             $temp = array(array('id' => '0', 'text' => TEXT_NO), array('id' => '1', 'text' => TEXT_YES));
             return html_pull_down_menu(strtolower($key), $temp, constant($key));
         case 'MODULE_PAYMENT_' . strtoupper($this->code) . '_SHOW_IN_POS':
             $temp = array(array('id' => '0', 'text' => TEXT_NO), array('id' => '1', 'text' => TEXT_YES));
             return html_pull_down_menu(strtolower($key), $temp, constant($key));
         case 'MODULE_PAYMENT_' . strtoupper($this->code) . '_POS_GL_ACCT':
             return html_pull_down_menu(strtolower($key), gen_coa_pull_down(), constant($key));
         default:
             return html_input_field(strtolower($key), constant($key));
     }
 }
Пример #9
0
 function Output($params)
 {
     global $db, $currencies;
     if (count($params) != $this->size_params) {
         //upgrading
         $params = $this->Upgrade($params);
     }
     $list_length = array();
     $contents = '';
     $control = '';
     for ($i = 0; $i <= $this->max_length; $i++) {
         $list_length[] = array('id' => $i, 'text' => $i);
     }
     // Build control box form data
     $control = '<div class="row">';
     $control .= '<div style="white-space:nowrap">' . TEXT_SHOW . TEXT_SHOW_NO_LIMIT;
     $control .= html_pull_down_menu('todays_s_quotes_field_0', $list_length, $params['num_rows']);
     $control .= html_submit_field('sub_todays_s_quotes', TEXT_SAVE);
     $control .= '</div></div>';
     // Build content box
     $total = 0;
     $sql = "select id, purchase_invoice_id, total_amount, bill_primary_name, currencies_code, currencies_value \n\t\t  from " . TABLE_JOURNAL_MAIN . " \n\t\t  where journal_id = 9 and post_date = '" . date('Y-m-d') . "' order by purchase_invoice_id";
     if ($params['num_rows']) {
         $sql .= " limit " . $params['num_rows'];
     }
     $result = $db->Execute($sql);
     if ($result->RecordCount() < 1) {
         $contents = ACT_NO_RESULTS;
     } else {
         while (!$result->EOF) {
             $total += $result->fields['total_amount'];
             $contents .= '<div style="float:right">' . $currencies->format_full($result->fields['total_amount'], true, $result->fields['currencies_code'], $result->fields['currencies_value']) . '</div>';
             $contents .= '<div>';
             //			$contents .= '<a href="' . html_href_link(FILENAME_DEFAULT, 'module=phreebooks&amp;page=orders&amp;oID=' . $result->fields['id'] . '&amp;jID=10&amp;action=edit', 'SSL') . '">';
             $contents .= '<a href="' . html_href_link(FILENAME_DEFAULT, 'module=phreebooks&amp;page=orders&amp;oID=' . $result->fields['id'] . '&amp;jID=9&amp;action=edit', 'SSL') . '">';
             //          $contents .= '<a href="' . html_href_link(FILENAME_DEFAULT, 'cat=orders&amp;module=orders&amp;oID=' . $result->fields['id'] . '&amp;jID=9&amp;action=edit', 'SSL') . '">';
             $contents .= $result->fields['purchase_invoice_id'] . ' - ';
             $contents .= htmlspecialchars($result->fields['bill_primary_name']);
             $contents .= '</a></div>' . chr(10);
             $result->MoveNext();
         }
     }
     if (!$params['num_rows'] && $result->RecordCount() > 0) {
         $contents .= '<div style="float:right">' . $currencies->format_full($total, true, $result->fields['currencies_code'], $result->fields['currencies_value']) . '</div>';
         $contents .= '<div><b>' . TEXT_TOTAL . '</b></div>' . chr(10);
     }
     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);
 }
Пример #11
0
 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);
 }
      <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\')"');
} else {
    echo html_icon('actions/view-refresh.png', TEXT_CHANGE, 'medium', 'onclick="submitToDo(\'change\')"');
}
?>
	  </td>
    </tr>
    <tr><th id="fieldListHeading" colspan="20"><?php 
echo RW_RPT_FLDLIST;
?>
}
?>
		<?php 
if (SHIPPING_DEFAULT_DRY_ICE_SHOW) {
    echo '<tr><td class="dataTableContent">';
    echo html_checkbox_field('dry_ice', '1', $pkg->dry_ice);
    echo SHIPPING_TEXT_DRY_ICE;
    echo '</td></tr>';
}
?>
		<?php 
if (SHIPPING_DEFAULT_RETURN_SERVICE_SHOW) {
    echo '<tr><td class="dataTableContent">';
    echo html_checkbox_field('return_service', '1', $pkg->return_service);
    echo SHIPPING_TEXT_RETURN_SERVICES;
    echo html_pull_down_menu('return_service_value', gen_build_pull_down($shipping_defaults['return_label']), $pkg->return_service_value, $parameters = '', $required = false);
    echo '</td></tr>';
}
?>
	</table></td>
  </tr>
  <tr>
	<td colspan="2">&nbsp;</td>
  </tr>
  <tr>
    <th colspan="2" align="center"><?php 
echo SHIPPING_TEXT_METHODS;
?>
</th>
  </tr>
<?php 
Пример #14
0
	  <td class="main" align="right"><?php 
echo INV_ENTRY_INVENTORY_TYPE;
?>
</td>
	  <td class="main"><?php 
echo html_pull_down_menu('inventory_type', gen_build_pull_down($inventory_types), isset($inventory_type) ? $inventory_type : 'si', 'onchange="setSkuLength()"');
?>
</td>
    </tr>
    <tr>
	  <td class="main" align="right"><?php 
echo INV_ENTRY_INVENTORY_COST_METHOD;
?>
</td>
	  <td class="main"><?php 
echo html_pull_down_menu('cost_method', gen_build_pull_down($cost_methods), isset($cost_method) ? $cost_method : 'f');
?>
</td>
	  <script> 
	/* por default, marco la opcion LIFO*/
		$("#cost_method option[value='l']").attr('selected', 'selected');

	/* si al ingresar el sku/codigo de barras, ingresan un enter (a mano o lo hace el lector), 	se ejecutará un submit del formulario para que vaya al siguiente*/
		$("#sku").keydown(function(event) {
			if (event.keyCode == '13') {
			     event.preventDefault();
			     submitToDo('create')
			   }
		});
	  </script>
    </tr>
	    <td><?php 
echo ACT_PAYMENT_CREDIT_CARD_NUMBER;
?>
</td>
		<td><?php 
echo html_input_field('payment_cc_number', $cInfo->payment_cc_number, 'size="20" maxlength="19"');
?>
</td>
	  </tr>
	  <tr>
	    <td><?php 
echo ACT_PAYMENT_CREDIT_CARD_EXPIRES;
?>
</td>
		<td><?php 
echo html_pull_down_menu('payment_exp_month', $expires_month, $cInfo->payment_exp_month) . '&nbsp;' . html_pull_down_menu('payment_exp_year', $expires_year, $cInfo->payment_exp_year);
?>
</td>
	  </tr>
	  <tr>
	    <td><?php 
echo ACT_PAYMENT_CREDIT_CARD_CVV2;
?>
</td>
		<td><?php 
echo html_input_field('payment_cc_cvv2', $cInfo->payment_cc_cvv2, 'size="5" maxlength="4"');
?>
</td>
	  </tr>
    </table>
  </fieldset>
Пример #16
0
?>
</th>
    </tr>
    <tr>
	  <td align="right"><?php 
echo TEXT_ASSET_ID;
?>
</td>
	  <td><?php 
echo html_input_field('asset_id', $asset_id, 'size="17" maxlength="16"');
?>
</td>
    </tr>
    <tr>
	  <td align="right"><?php 
echo ASSETS_ENTRY_ASSET_TYPE;
?>
</td>
	  <td><?php 
echo html_pull_down_menu('asset_type', gen_build_pull_down($assets_types), isset($asset_type) ? $asset_type : 'vh');
?>
</td>
    </tr>
    <tr>
	  <td nowrap="nowrap" colspan="2"><?php 
echo '&nbsp;';
?>
</td>
    </tr>
  </table>
</form>
Пример #17
0
    <td><?php 
echo CD_01_08_DESC;
?>
</td>
    <td><?php 
echo html_input_field('company_postal_code', $_POST['company_postal_code'] ? $_POST['company_postal_code'] : COMPANY_POSTAL_CODE, '');
?>
</td>
  </tr>
  <tr>
    <td><?php 
echo CD_01_09_DESC;
?>
</td>
    <td><?php 
echo html_pull_down_menu('company_country', gen_get_countries(), $_POST['company_country'] ? $_POST['company_country'] : COMPANY_COUNTRY, '');
?>
</td>
  </tr>
  <tr>
    <td><?php 
echo CD_01_10_DESC;
?>
</td>
    <td><?php 
echo html_input_field('company_telephone1', $_POST['company_telephone1'] ? $_POST['company_telephone1'] : COMPANY_TELEPHONE1, '');
?>
</td>
  </tr>
  <tr>
    <td><?php 
Пример #18
0
			<td align="right"><?php 
echo BNK_CASH_ACCOUNT . '&nbsp;';
?>
</td>
			<td align="right"><?php 
echo html_pull_down_menu('gl_acct_id', $gl_array_list, $gl_acct_id, 'onchange="loadNewBalance()"');
?>
</td>
		  </tr>
		  <tr>
			<td align="right"><?php 
echo BNK_DISCOUNT_ACCOUNT . '&nbsp;';
?>
</td>
			<td align="right"><?php 
echo html_pull_down_menu('gl_disc_acct_id', $gl_array_list, $gl_disc_acct_id, '');
?>
</td>
		  </tr>
		</table>
	  </td>
	</tr>
	<tr>
	  <td colspan="3"><hr /></td>
	</tr>
	<tr>
	  <td align="right" valign="top">
	    <?php 
echo BNK_INVOICES_DUE_BY . '&nbsp;' . html_calendar_field($cal_bills1);
?>
	    <?php 
		  <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);
}
?>
      </table>
	</td>
  </tr>
  <tr>
    <td align="left"><?php 
echo html_icon('actions/list-add.png', TEXT_ADD, 'medium', 'onclick="addItemRow()"');
Пример #20
0
		  </td>
          <td align="right">
<?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"');
?>
Пример #21
0
 function add_period()
 {
     $output = '<div id="tb_period_' . $this->id . '" class="toolbar_right">' . "\n";
     $output .= TEXT_INFO_SEARCH_PERIOD_FILTER . '<br />' . "\n";
     $output .= html_pull_down_menu('search_period', gen_get_period_pull_down($this->period_strict), $this->search_period, 'onchange="periodPage(\'' . gen_get_all_get_params(array('page', 'action')) . '\')"');
     $output .= '</div>' . "\n";
     return $output;
 }
Пример #22
0
</td>
	    <td><?php 
echo html_pull_down_menu('auto_inc_vend_id', $sel_yes_no, $_POST['auto_inc_vend_id'] ? $_POST['auto_inc_vend_id'] : AUTO_INC_VEND_ID, '');
?>
</td>
	  </tr>
	  <tr>
	    <td colspan="3"><?php 
echo CD_03_40_DESC;
?>
</td>
	    <td><?php 
echo html_pull_down_menu('ap_show_contact_status', $sel_yes_no, $_POST['ap_show_contact_status'] ? $_POST['ap_show_contact_status'] : AP_SHOW_CONTACT_STATUS, '');
?>
</td>
	  </tr>
	  <tr>
	    <td colspan="3"><?php 
echo CD_03_50_DESC;
?>
</td>
	    <td><?php 
echo html_pull_down_menu('ap_tax_before_discount', $sel_yes_no, $_POST['ap_tax_before_discount'] ? $_POST['ap_tax_before_discount'] : AP_TAX_BEFORE_DISCOUNT, '');
?>
</td>
	  </tr>
	 </tbody>
	</table>
  </fieldset>
</div>
Пример #23
0
</td>
    <td><?php 
echo '&nbsp;';
?>
</td>
  </tr>
  </table>
  </fieldset>

  <fieldset>
  <legend><?php 
echo TEXT_SECURITY_SETTINGS;
?>
</legend>
    <div><?php 
echo TEXT_FILL_ALL_LEVELS . ' ' . html_pull_down_menu('fill_all', $fill_all_values, '-1', 'onchange="submitToDo(\'fill_all\')"');
?>
</div>
	<div id="accesstabs">
	<ul>
<?php 
foreach ($mainmenu as $key => $value) {
    if ($value['text'] == TEXT_HOME || $value['text'] == TEXT_LOGOUT) {
        continue;
    }
    echo add_tab_list('tab_' . $key, $value['text']) . chr(10);
}
?>
    </ul>
<?php 
$settings = gen_parse_permissions($uInfo->admin_security);
Пример #24
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;
?>
Пример #25
0
    <td><?php 
echo ZENCART_USE_PRICES;
?>
</td>
    <td><?php 
echo html_checkbox_field('zencart_use_prices', '1', $use_prices ? true : false, '', 'onclick="togglePriceSheets()"');
?>
</td>
  </tr>
  <tr id="price_sheet_row">
    <td><?php 
echo ZENCART_TEXT_PRICE_SHEET;
?>
</td>
    <td><?php 
echo html_pull_down_menu('zencart_price_sheet', pull_down_price_sheet_list(), $price_sheet ? $price_sheet : '', '');
?>
</td>
  </tr>
  <tr>
    <td><?php 
echo ZENCART_SHIP_ID;
?>
</td>
    <td><?php 
echo html_input_field('zencart_shipped_id', $shipped_id ? $shipped_id : '', 'size="3"');
?>
</td>
  </tr>
  <tr>
    <td><?php 
		</td>
	  </tr>
	  <tr>
		<td class="main" valign="top">
<?php 
echo html_radio_field('entry_type', $value = 'check_box', $cInfo->entry_type == 'check_box' ? true : false, '', $system_disable ? ' disabled ' : '');
echo '&nbsp;' . INV_LABEL_CHECK_BOX_FIELD;
?>
		</td>
		<td class="main">
<?php 
foreach ($check_box_choices as $key => $value) {
    $check_box_pulldown_array[] = array('id' => $key, 'text' => $value);
}
echo INV_LABEL_DEFAULT_TEXT_VALUE;
echo html_pull_down_menu('check_box_range', $check_box_pulldown_array, $cInfo->check_box_range, $system_disable ? ' disabled ' : '');
?>
		</td>
	  </tr>
	  <tr>
		<td class="main" valign="top">
<?php 
echo html_radio_field('entry_type', $value = 'date', $cInfo->entry_type == 'date' ? true : false, '', $system_disable ? ' disabled ' : '');
echo '&nbsp;' . TEXT_DATE;
?>
		</td>
		<td class="main">&nbsp;</td>
	  </tr>
	  <tr>
		<td class="main" valign="top">
<?php 
Пример #27
0
 function build_form_html($action, $id = '')
 {
     global $db, $project_cost_types;
     if ($action != 'new' && $this->error == false) {
         $sql = "select description_short, description_long, cost_type, inactive \n\t       from " . $this->db_table . " where cost_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' ? SETUP_INFO_HEADING_NEW_PROJECT_COSTS : SETUP_INFO_HEADING_EDIT_PROJECT_COSTS) . '</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' ? SETUP_PROJECT_COSTS_INSERT_INTRO : HR_EDIT_INTRO) . '</td>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '  <tr>' . chr(10);
     $output .= '    <td>' . SETUP_INFO_DESC_SHORT . '</td>' . chr(10);
     $output .= '    <td>' . html_input_field('description_short', $this->description_short, 'size="17" maxlength="16"') . '</td>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '  <tr>' . chr(10);
     $output .= '    <td>' . SETUP_INFO_DESC_LONG . '</td>' . chr(10);
     $output .= '    <td>' . html_input_field('description_long', $this->description_long, 'size="50" maxlength="64"') . '</td>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '  <tr>' . chr(10);
     $output .= '    <td>' . SETUP_INFO_COST_TYPE . '</td>' . chr(10);
     $output .= '    <td>' . html_pull_down_menu('cost_type', gen_build_pull_down($project_cost_types), $this->cost_type) . '</td>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '  <tr>' . chr(10);
     $output .= '    <td>' . TEXT_INACTIVE . '</td>' . chr(10);
     $output .= '    <td>' . html_checkbox_field('inactive', '1', $this->inactive ? true : false) . '</td>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '  </tbody>' . "\n";
     $output .= '</table>' . chr(10);
     return $output;
 }
Пример #28
0
	    <td colspan="4"><?php 
echo ZENCART_USE_PRICES;
?>
</td>
	    <td><?php 
echo html_pull_down_menu('zencart_use_price_sheets', $sel_yes_no, $_POST['zencart_use_price_sheets'] ? $_POST['zencart_use_price_sheets'] : ZENCART_USE_PRICE_SHEETS, 'onclick="togglePriceSheets()"');
?>
</td>
	  </tr>
  	  <tr id="price_sheet_row">
	    <td colspan="4"><?php 
echo ZENCART_TEXT_PRICE_SHEET;
?>
</td>
        <td><?php 
echo html_pull_down_menu('zencart_price_sheet', pull_down_price_sheet_list(), $_POST['zencart_price_sheet'] ? $_POST['zencart_price_sheet'] : ZENCART_PRICE_SHEET, '');
?>
</td>
	  </tr>
	  <tr>
	    <td colspan="4"><?php 
echo ZENCART_SHIP_ID;
?>
</td>
	    <td><?php 
echo html_input_field('zencart_status_confirm_id', $_POST['zencart_status_confirm_id'] ? $_POST['zencart_status_confirm_id'] : ZENCART_STATUS_CONFIRM_ID, '');
?>
</td>
	  </tr>
	  <tr>
	    <td colspan="4"><?php 
</th>
    </tr>
	<tr>
	  <td><?php 
echo html_radio_field('ImgChoice', 'Upload') . RW_RPT_IMAGEUPLOAD;
?>
</td>
	  <td><input type="file" name="imagefile"></td>
    </tr>
	<tr>
	  <td><?php 
echo html_radio_field('ImgChoice', 'Select', true) . RW_RPT_IMAGESTORED;
?>
</td>
	  <td><?php 
echo html_pull_down_menu('ImgFileName', ReadImages(), $Params['filename'], 'size="6"');
?>
</td>
    </tr>
    <tr>
      <th colspan="2"><?php 
echo RW_RPT_STARTPOS;
?>
</th>
    </tr>
    <tr>
      <td width="50%" align="center">
	    <?php 
echo TEXT_ABSCISSA . html_input_field('LineXStrt', !$Params['LineXStrt'] ? '10' : $Params['LineXStrt'], 'size="4" maxlength="3"');
?>
      </td>
Пример #30
0
	   </tr>
	   <tr>
		 <td><?php 
    echo html_radio_field('NewType', 'rpt') . TEXT_REPORT . ' ====&gt; ' . RW_RPT_RPTGRP;
    ?>
</td>
		 <td><?php 
    echo html_pull_down_menu('GroupName', gen_build_pull_down($ReportGroups));
    ?>
</td>
	   </tr>
	   <tr>
		 <th colspan="2">&nbsp;</th>
	   </tr>
	   <tr>
		 <td><?php 
    echo html_radio_field('NewType', 'frm') . TEXT_FORM . ' ====&gt; ' . RW_FRM_RPTGRP;
    ?>
</td>
		 <td><?php 
    echo html_pull_down_menu('FormGroup', gen_build_pull_down($FormGroups));
    ?>
</td>
	   </tr>
   <?php 
}
// end if
?>
  </table>
</form>