Example #1
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 #2
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);
 }
Example #3
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 #4
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;
 }
 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;
 }
Example #6
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;
 }
Example #7
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;
 }
Example #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));
     }
 }
Example #9
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);
 }
?>
';
var acct_period          = '<?php 
echo CURRENT_ACCOUNTING_PERIOD;
?>
';
var item_col_1_enable    = '<?php 
echo $item_col_1_enable ? '1' : '0';
?>
';
var item_col_2_enable    = '<?php 
echo $item_col_2_enable ? '1' : '0';
?>
';
var ship_search_HTML     = '<?php 
echo GEN_CUSTOMER_ID . " " . html_input_field("ship_search", $order->ship_short_name) . "&nbsp;" . html_icon("status/folder-open.png", TEXT_SEARCH, "small", 'align="top" style="cursor:pointer" title="' . TEXT_SEARCH . '" onclick="DropShipList(this)"');
?>
';
var delete_icon_HTML     = '<?php 
echo substr(html_icon("emblems/emblem-unreadable.png", TEXT_DELETE, "small", "onclick=\"if (confirm(\\'" . ORD_ROW_DELETE_ALERT . "\\')) removeInvRow("), 0, -2);
?>
';
var payments_installed   = <?php 
echo count($payment_choices) ? 'true' : 'false';
?>
;
var serial_num_prompt    = '<?php 
echo ORD_JS_SERIAL_NUM_PROMPT;
?>
';
var no_stock_a           = '<?php 
?>
</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>
</div>
Example #12
0
?>
</h1>
  <table>
    <tr>
	  <th nowrap="nowrap" colspan="2"><?php 
echo ASSETS_ENTER_ASSET_ID;
?>
</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 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 
echo ZENCART_PARTIAL_ID;
?>
</td>
    <td><?php 
echo html_input_field('zencart_partial_id', $partial_id ? $partial_id : '', 'size="3"');
?>
</td>
  </tr>
</table>
</fieldset>
</form>
?>
</td>
    <td><?php 
echo html_input_field('company_email', $_POST['company_email'] ? $_POST['company_email'] : COMPANY_EMAIL, '');
?>
</td>
  </tr>
  <tr>
    <td><?php 
echo CD_01_14_DESC;
?>
</td>
    <td><?php 
echo html_input_field('company_website', $_POST['company_website'] ? $_POST['company_website'] : COMPANY_WEBSITE, '');
?>
</td>
  </tr>
  <tr>
    <td><?php 
echo CD_01_15_DESC;
?>
</td>
    <td><?php 
echo html_input_field('tax_id', $_POST['tax_id'] ? $_POST['tax_id'] : TAX_ID, '');
?>
</td>
  </tr>
 </tbody>
</table>
</div>
Example #15
0
    <td><?php 
echo GEN_DISPLAY_NAME . ' ' . html_input_field('display_name', $uInfo->display_name, 'size="25"');
?>
</td>
   </tr>
   <tr>
    <td align="right"><?php 
echo TEXT_PASSWORD . ' ' . html_password_field('password_new', '');
?>
</td>
    <td><?php 
echo '&nbsp;';
?>
</td>
    <td><?php 
echo GEN_EMAIL . ' ' . html_input_field('admin_email', $uInfo->admin_email, 'size="33"');
?>
</td>
   </tr>
   <tr>
    <td align="right"><?php 
echo TEXT_CONFIRM_PASSWORD . ' ' . html_password_field('password_conf', '');
?>
</td>
    <td><?php 
echo '&nbsp;';
?>
</td>
    <td><?php 
echo GEN_ACCOUNT_LINK . ' ' . html_pull_down_menu('account_id', gen_get_contact_array_by_type('e'), $uInfo->account_id, '');
?>
<?php 
echo html_radio_field('entry_type', $value = 'decimal', $cInfo->entry_type == 'decimal' ? true : false, '', $system_disable ? ' disabled ' : '');
echo '&nbsp;' . INV_LABEL_DECIMAL_FIELD;
?>
		</td>
		<td class="main">
<?php 
foreach ($decimal_lengths as $key => $value) {
    $decimal_pulldown_array[] = array('id' => $key, 'text' => $value);
}
echo INV_LABEL_DECIMAL_RANGE;
echo html_pull_down_menu('decimal_range', $decimal_pulldown_array, $cInfo->decimal_range, $system_disable ? ' disabled ' : '');
echo '<br>' . INV_LABEL_DEFAULT_DISPLAY_VALUE;
echo html_input_field('decimal_display', $cInfo->decimal_display, ($system_disable ? ' disabled ' : '') . 'size="6" maxlength="5"', false);
echo '<br>' . INV_LABEL_DEFAULT_TEXT_VALUE;
echo html_input_field('decimal_default', $cInfo->decimal_default, ($system_disable ? ' disabled ' : '') . 'size="16"', false);
?>
		</td>
	  </tr>
	  <tr>
		<td class="main" valign="top">
<?php 
echo html_radio_field('entry_type', $value = 'drop_down', $cInfo->entry_type == 'drop_down' ? true : false, '', $system_disable ? ' disabled ' : '');
echo '&nbsp;' . INV_LABEL_DROP_DOWN_FIELD;
echo '<br>' . html_radio_field('entry_type', $value = 'radio', $cInfo->entry_type == 'radio' ? true : false, '', $system_disable ? ' disabled ' : '');
echo '&nbsp;' . INV_LABEL_RADIO_FIELD;
?>
		</td>
		<td class="main">
<?php 
echo INV_LABEL_CHOICES;
$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['print']['show'] = false;
$toolbar->icon_list['delete']['show'] = false;
if ($ShowReplace) {
    $toolbar->add_icon('rename', 'onclick="submitToDo(\'rename\')"', $order = 10);
}
$toolbar->add_help('11.02');
echo $toolbar->build_toolbar();
?>
<h2 align="center"><?php 
echo RW_TITLE_RPTFRM . stripslashes($Prefs['description']) . ' - ' . RW_TITLE_PAGESAVE;
?>
</h2>
  <table width="400" align="center" border="1" cellspacing="1" cellpadding="1">
	<tr>
	  <th><?php 
echo RW_RPT_RPTENTER;
?>
</th>
	</tr>
	<tr>
	  <td align="center"><?php 
echo html_input_field('ReportName', $Prefs['description'], 'size="32" maxlength="30"');
?>
</td>
	</tr>
  </table>
</form>
?>
</div>
  <table width="500" align="center" cellspacing="0" cellpadding="1">
    <tr>
	  <th nowrap="nowrap" colspan="2"><?php 
echo INV_ENTER_SKU;
?>
</th>
    </tr>
    <tr>
	  <td class="main" align="right"><?php 
echo TEXT_SKU;
?>
</td>
	  <td class="main"><?php 
echo html_input_field('sku', $sku, 'size="' . (MAX_INVENTORY_SKU_LENGTH + 2) . '" maxlength="' . MAX_INVENTORY_SKU_LENGTH . '"');
?>
</td>
    </tr>
    <tr>
	  <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 
Example #19
0
 function build_form_html($action, $id = '')
 {
     global $db;
     $sql = "select category_id, category_name, category_description, sort_order from " . $this->db_table . " where category_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' ? INV_INFO_HEADING_NEW_CATEGORY : INV_INFO_HEADING_EDIT_CATEGORY) . '</th>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '  <tr class="dataTableRow">' . chr(10);
     $output .= '    <td colspan="2">' . ($action == 'new' ? INV_INFO_INSERT_INTRO : INV_EDIT_INTRO) . '</td>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '  <tr class="dataTableRow">' . chr(10);
     $output .= '    <td>' . INV_INFO_CATEGORY_NAME . '</td>' . chr(10);
     $output .= '    <td>' . html_input_field('category_name', $cInfo->category_name) . '</td>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '  <tr class="dataTableRow">' . chr(10);
     $output .= '    <td>' . INV_INFO_CATEGORY_DESCRIPTION . '</td>' . chr(10);
     $output .= '    <td>' . html_textarea_field('category_description', 30, 10, $cInfo->category_description) . '</td>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '  <tr class="dataTableRow">' . chr(10);
     $output .= '    <td>' . TEXT_SORT_ORDER . '</td>' . chr(10);
     $output .= '    <td>' . html_input_field('sort_order', $cInfo->sort_order) . '</td>' . chr(10);
     $output .= '  </tr>' . chr(10);
     $output .= '</table>' . chr(10);
     return $output;
 }
Example #20
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;
 }
// end if
?>
	  </td>
	  <?php 
if ($Type != 'frm') {
    echo '<td>' . html_combo_box('FieldName', CreateSpecialDropDown($ReportID), $FieldListings['defaults']['fieldname']) . '</td>';
}
?>
      <td><?php 
echo html_input_field('DisplayDesc', $FieldListings['defaults']['displaydesc'], 'size="20" maxlength="25"');
?>
</td>
      <?php 
if ($Type != 'frm') {
    echo '<td align="center">' . html_checkbox_field('ColumnBreak', '1', $FieldListings['defaults']['columnbreak'] == '1' ? true : false) . '</td>';
    echo '<td align="center">' . html_input_field('ColumnWidth', $Params['columnwidth'] ? $Params['columnwidth'] : RW_DEFAULT_COLUMN_WIDTH, 'size="4" maxlength="3"') . '</td>';
    echo '<td align="center">&nbsp;</td>';
}
?>
      <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 (SHIPPING_DEFAULT_HANDLING_CHARGE_SHOW) {
    echo html_checkbox_field('handling_charge', '1', $pkg->handling_charge);
    echo SHIPPING_HANDLING_CHARGE;
    echo html_input_field('handling_charge_value', $pkg->handling_charge_value, 'size="6"') . '&nbsp;';
    echo html_pull_down_menu('handling_charge_currency', $currency_array, $pkg->handling_charge_currency, $parameters = '', $required = false);
} else {
    echo '&nbsp;';
}
?>
		</td></tr>
		<tr><td colspan="2" class="dataTableContent">
		<?php 
if (SHIPPING_DEFAULT_COD_SHOW) {
    echo html_checkbox_field('cod', '1', $pkg->cod);
    echo SHIPPING_COD_AMOUNT;
    echo html_input_field('cod_amount', $pkg->cod_amount, 'size="6"') . '&nbsp;';
    echo html_pull_down_menu('cod_currency', $currency_array, $pkg->cod_currency, $parameters = '', $required = false) . '&nbsp;';
    echo html_pull_down_menu('cod_payment_type', gen_build_pull_down($shipping_defaults['cod_funds_code']), $pkg->cod_payment_type, $parameters = '', $required = false);
} else {
    echo '&nbsp;';
}
?>
		</td></tr>
		<tr></tr><td class="dataTableContent">
		<?php 
if (SHIPPING_DEFAULT_SATURDAY_PICKUP_SHOW) {
    echo html_checkbox_field('saturday_pickup', '1', $pkg->saturday_pickup);
    echo SHIPPING_SATURDAY_PICKUP;
} else {
    echo '&nbsp;';
}
<h2 align="center"><?php 
echo $FormParams['heading'];
?>
</h2>
  <table align="center"  border="1" cellspacing="1" cellpadding="1">
   <tr>
     <td><?php 
if ($Type == 'frm') {
    echo RW_FRM_RPTENTER;
} else {
    echo RW_RPT_RPTENTER;
}
?>
</td>
     <td><?php 
echo html_input_field('ReportName', isset($_POST['ReportName']) ? $_POST['ReportName'] : '') . RW_RPT_MAX30;
?>
</td>
   </tr>
   <?php 
if (!$ReportID) {
    ?>
	   <tr>
		 <th colspan="2"><?php 
    echo RW_RPT_TYPECREATE;
    ?>
</th>
	   </tr>
	   <tr>
		 <td><?php 
    echo html_radio_field('NewType', 'rpt') . TEXT_REPORT . ' ====&gt; ' . RW_RPT_RPTGRP;
</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 
echo ZENCART_PARTIAL_ID;
?>
</td>
	    <td><?php 
echo html_input_field('zencart_status_partial_id', $_POST['zencart_status_partial_id'] ? $_POST['zencart_status_partial_id'] : ZENCART_STATUS_PARTIAL_ID, '');
?>
</td>
	  </tr>
	</tbody>
</table>
</fieldset>
</div>
		  <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);
}
?>
      </table>
	</td>
Example #26
0
 function add_search()
 {
     $output = '<div id="tb_search_' . $this->id . '" class="toolbar_right">' . "\n";
     $output .= HEADING_TITLE_SEARCH_DETAIL . '<br />';
     $output .= html_input_field('search_text', $this->search_text, $params = '');
     if ($this->search_text) {
         $output .= '&nbsp;' . html_icon('actions/view-refresh.png', TEXT_RESET, 'small', 'onclick="location.href = \'index.php?' . gen_get_all_get_params(array('search_text', 'search_period', 'search_date', 'page', 'action')) . '\';" style="cursor:pointer;"');
     }
     $output .= '&nbsp;' . html_icon('actions/system-search.png', TEXT_SEARCH, 'small', 'onclick="searchPage(\'' . gen_get_all_get_params(array('search_text', 'page', 'action')) . '\')" style="cursor:pointer;" id="search_mini_icon" ');
     $output .= '</div>' . "\n";
     return $output;
 }
echo html_input_field('i_contact_last', $cInfo->i_contact_last, 'size="33" maxlength="32"', false);
?>
</td>
      </tr>
      <tr>
        <td align="right"><?php 
echo ACT_ACCOUNT_NUMBER;
?>
</td>
        <td><?php 
echo html_input_field('i_account_number', $cInfo->i_account_number, 'size="17" maxlength="16"');
?>
</td>
        <td align="right"><?php 
echo ACT_ID_NUMBER;
?>
</td>
        <td><?php 
echo html_input_field('i_gov_id_number', $cInfo->i_gov_id_number, 'size="17" maxlength="16"');
?>
</td>
      </tr>
    </table>
    <table id="im_address_form" class="ui-widget" style="border-collapse:collapse;width:100%;">
      <?php 
echo draw_address_fields($cInfo->contact, 'im', false, false, false);
?>
    </table>
  </fieldset>
</div>
		</tr>
		<?php 
    $i++;
}
?>
  <tr>
	<td colspan="3" align="right"><?php 
echo TEXT_TOTAL;
?>
</td>
	<td align="right"><?php 
echo html_input_field('debit_total', '0', 'readonly="readonly" style="text-align:right" size="13"');
?>
</td>
	<td align="right"><?php 
echo html_input_field('credit_total', '0', 'readonly="readonly" style="text-align:right" size="13"');
?>
</td>
  </tr>
  <tr>
	<td colspan="4" align="right"><?php 
echo GL_OUT_OF_BALANCE;
?>
</td>
	<td align="right"><?php 
echo html_input_field('balance_total', '0', 'readonly="readonly" style="text-align:right" size="13"');
?>
</td>
  </tr>
</table>
</form>
      <td width="50%" align="center">
	    <?php 
echo TEXT_ABSCISSA . html_input_field('LineXStrt', !$Params['LineXStrt'] ? '10' : $Params['LineXStrt'], 'size="4" maxlength="3"');
?>
      </td>
      <td width="50%" align="center">
	    <?php 
echo TEXT_ORDINATE . html_input_field('LineYStrt', !$Params['LineYStrt'] ? '10' : $Params['LineYStrt'], 'size="4" maxlength="3"');
?>
      </td>
    </tr>
    <tr>
      <th colspan="2"><?php 
echo RW_RPT_IMAGEDIM;
?>
</th>
    </tr>
    <tr>
      <td align="center">
	    <?php 
echo TEXT_WIDTH . html_input_field('BoxWidth', !$Params['BoxWidth'] ? '' : $Params['BoxWidth'], 'size="4" maxlength="3"');
?>
      </td>
      <td align="center">
	    <?php 
echo TEXT_HEIGHT . html_input_field('BoxHeight', !$Params['BoxHeight'] ? '' : $Params['BoxHeight'], 'size="4" maxlength="3"');
?>
      </td>
    </tr>
  </table>
</form>
Example #30
0
    $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();
}
?>
	</tbody>
  </table>
</div>
</form>