Esempio n. 1
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);
 }
Esempio n. 2
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);
 }
Esempio n. 3
0
function create_menu(array $array)
{
    if ($array['security_id'] != 1 && $_SESSION['admin_id'] != 1) {
        if (isset($array['security_id']) && $array['security_id'] != '') {
            if (array_key_exists($array['security_id'], $_SESSION['admin_security']) == false || $_SESSION['admin_security'][$array['security_id']] < 1) {
                return '';
            }
        }
    }
    if (isset($array['submenu'])) {
        usort($array['submenu'], 'sortByOrder');
        if (check_permission($array['submenu'])) {
            echo '  <li><a href="' . $array['link'] . '" ' . $array['params'] . '>' . (isset($array['icon']) ? $array['icon'] . ' ' . $array['text'] : $array['text']) . '</a>' . chr(10);
            echo '    <ul>' . chr(10);
            foreach ($array['submenu'] as $menu_item) {
                create_menu($menu_item);
            }
            echo '    </ul>' . chr(10);
            echo '  </li>' . chr(10);
        }
    } else {
        echo '  <li><a href="' . $array['link'] . '" ' . $array['params'] . '>' . chr(10);
        if ($array['text'] == TEXT_HOME && ENABLE_ENCRYPTION && strlen($_SESSION['admin_encrypt']) > 0) {
            echo html_icon('emblems/emblem-readonly.png', TEXT_ENCRYPTION_ENABLED, 'small');
        }
        echo (isset($array['icon']) ? $array['icon'] . ' ' . $array['text'] : $array['text']) . '</a>  </li>' . chr(10);
    }
    return true;
}
Esempio n. 4
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);
 }
function add_extra_action_bar_buttons($query_fields)
{
    $output = '';
    if (defined('ZENCART_URL') && $_SESSION['admin_security'][SECURITY_ID_MAINTAIN_INVENTORY] > 1 && $query_fields['catalog'] == '1') {
        $output .= html_icon('../../../../my_files/custom/zencart/images/zencart.gif', ZENCART_IVENTORY_UPLOAD, 'small', 'onclick="submitSeq(' . $query_fields['id'] . ', \'upload\')"', '16', '16') . chr(10);
    }
    return $output;
}
 function add($message, $type = 'error')
 {
     if ($type == 'error') {
         $this->errors[] = array('params' => 'class="messageStackError"', 'text' => html_icon('emblems/emblem-unreadable.png', TEXT_ERROR) . '&nbsp;' . $message);
     } elseif ($type == 'warning') {
         $this->errors[] = array('params' => 'class="messageStackWarning"', 'text' => html_icon('emblems/emblem-important.png', TEXT_CAUTION) . '&nbsp;' . $message);
     } elseif ($type == 'success') {
         if (!HIDE_SUCCESS_MESSAGES) {
             $this->errors[] = array('params' => 'class="messageStackSuccess"', 'text' => html_icon('emotes/face-smile.png', TEXT_SUCCESS) . '&nbsp;' . $message);
         }
     } elseif ($type == 'caution') {
         $this->errors[] = array('params' => 'class="messageStackCaution"', 'text' => html_icon('emblems/emblem-important.png', TEXT_CAUTION) . '&nbsp;' . $message);
     } else {
         $this->errors[] = array('params' => 'class="messageStackError"', 'text' => $message);
     }
     $this->size++;
     return true;
 }
Esempio n. 7
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);
 }
Esempio n. 8
0
 function build_main_html()
 {
     global $db, $messageStack;
     $content = array();
     $content['thead'] = array('value' => array(TEXT_TITLE, TEXT_DESCRIPTION, TEXT_SORT_ORDER, TEXT_ACTION), 'params' => 'width="100%" cellspacing="0" cellpadding="1"');
     $result = $db->Execute("select id, tab_name, description, sort_order from " . TABLE_EXTRA_TABS . " where module_id='assets'");
     $rowCnt = 0;
     while (!$result->EOF) {
         $actions = '';
         if ($_SESSION['admin_security'][SECURITY_ID_CONFIGURATION] > 1) {
             $actions .= html_icon('actions/edit-find-replace.png', TEXT_EDIT, 'small', 'onclick="loadPopUp(\'tabs_edit\', \'' . $result->fields['id'] . '\')"') . chr(10);
         }
         if ($_SESSION['admin_security'][SECURITY_ID_CONFIGURATION] > 3) {
             $actions .= html_icon('emblems/emblem-unreadable.png', TEXT_DELETE, 'small', 'onclick="if (confirm(\'' . EXTRA_TABS_DELETE_INTRO . '\')) subjectDelete(\'tabs\', ' . $result->fields['id'] . ')"') . chr(10);
         }
         $content['tbody'][$rowCnt] = array(array('value' => htmlspecialchars($result->fields['tab_name']), 'params' => 'style="cursor:pointer" onclick="loadPopUp(\'tabs_edit\',\'' . $result->fields['id'] . '\')"'), array('value' => htmlspecialchars($result->fields['description']), 'params' => 'style="cursor:pointer" onclick="loadPopUp(\'tabs_edit\',\'' . $result->fields['id'] . '\')"'), array('value' => $result->fields['sort_order'], 'params' => 'style="cursor:pointer" onclick="loadPopUp(\'tabs_edit\',\'' . $result->fields['id'] . '\')"'), array('value' => $actions, 'params' => 'align="right"'));
         $result->MoveNext();
         $rowCnt++;
     }
     return html_datatable('tab_table', $content);
 }
 function build_main_html()
 {
     global $db, $messageStack, $currencies;
     $content = array();
     $content['thead'] = array('value' => array(TEXT_DESCRIPTION, TEXT_GL_ACCOUNT, TEXT_BANK_ACCOUNT, TEXT_ACTION), 'params' => 'width="100%" cellspacing="0" cellpadding="1"');
     $result = $db->Execute("select * from " . $this->db_table);
     $rowCnt = 0;
     while (!$result->EOF) {
         $actions = '';
         if ($this->security_id > 1) {
             $actions .= html_icon('actions/edit-find-replace.png', TEXT_EDIT, 'small', 'onclick="loadPopUp(\'' . $this->code . '_edit\', ' . $result->fields['kt_id'] . ')"') . chr(10);
         }
         if ($this->security_id > 3) {
             $actions .= html_icon('emblems/emblem-unreadable.png', TEXT_DELETE, 'small', 'onclick="if (confirm(\'' . SETUP_TILL_DELETE_INTRO . '\')) subjectDelete(\'' . $this->code . '\', ' . $result->fields['kt_id'] . ')"') . chr(10);
         }
         $content['tbody'][$rowCnt] = array(array('value' => htmlspecialchars($result->fields['description']), 'params' => 'style="cursor:pointer" onclick="loadPopUp(\'' . $this->code . '_edit\',\'' . $result->fields['kt_id'] . '\')"'), array('value' => gen_get_type_description(TABLE_CHART_OF_ACCOUNTS, $result->fields['gl_acct_id']), 'params' => 'style="cursor:pointer" onclick="loadPopUp(\'' . $this->code . '_edit\',\'' . $result->fields['kt_id'] . '\')"'), array('value' => $result->fields['bank_account'], 'params' => 'style="cursor:pointer" onclick="loadPopUp(\'' . $this->code . '_edit\',\'' . $result->fields['kt_id'] . '\')"'), array('value' => $actions, 'params' => 'align="right"'));
         $result->MoveNext();
         $rowCnt++;
     }
     return html_datatable('' . $this->code . '_table', $content);
 }
Esempio n. 10
0
 function build_main_html()
 {
     global $db, $messageStack;
     $tax_authorities_array = gen_build_tax_auth_array();
     $content = array();
     $content['thead'] = array('value' => array(SETUP_TAX_DESC_SHORT, TEXT_DESCRIPTION, SETUP_HEADING_TOTAL_TAX, SETUP_HEADING_TAX_FREIGHT, TEXT_ACTION), 'params' => 'width="100%" cellspacing="0" cellpadding="1"');
     $result = $db->Execute("select tax_rate_id, description_short, description_long, rate_accounts, freight_taxable \n\t\tfrom " . $this->db_table . " where type = '" . $this->type . "'");
     $rowCnt = 0;
     while (!$result->EOF) {
         $actions = '';
         if ($this->security_id > 1) {
             $actions .= html_icon('actions/edit-find-replace.png', TEXT_EDIT, 'small', 'onclick="loadPopUp(\'' . $this->code . '_edit\', ' . $result->fields['tax_rate_id'] . ')"') . chr(10);
         }
         if ($this->security_id > 3) {
             $actions .= html_icon('emblems/emblem-unreadable.png', TEXT_DELETE, 'small', 'onclick="if (confirm(\'' . SETUP_TAX_DELETE_INTRO . '\')) subjectDelete(\'' . $this->code . '\', ' . $result->fields['tax_rate_id'] . ')"') . chr(10);
         }
         $content['tbody'][$rowCnt] = array(array('value' => htmlspecialchars($result->fields['description_short']), 'params' => 'style="cursor:pointer" onclick="loadPopUp(\'' . $this->code . '_edit\',\'' . $result->fields['tax_rate_id'] . '\')"'), array('value' => htmlspecialchars($result->fields['description_long']), 'params' => 'style="cursor:pointer" onclick="loadPopUp(\'' . $this->code . '_edit\',\'' . $result->fields['tax_rate_id'] . '\')"'), array('value' => gen_calculate_tax_rate($result->fields['rate_accounts'], $tax_authorities_array), 'params' => 'style="cursor:pointer" onclick="loadPopUp(\'' . $this->code . '_edit\',\'' . $result->fields['tax_rate_id'] . '\')"'), array('value' => $result->fields['freight_taxable'] ? TEXT_YES : TEXT_NO, 'params' => 'style="cursor:pointer" onclick="loadPopUp(\'' . $this->code . '_edit\',\'' . $result->fields['tax_rate_id'] . '\')"'), array('value' => $actions, 'params' => 'style="cursor:pointer" align="right"'));
         $result->MoveNext();
         $rowCnt++;
     }
     return html_datatable('' . $this->code . '_' . $this->type . '_table', $content);
 }
Esempio n. 11
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);
 }
function build_form_href($array_tree, $ref = '')
{
    $entry_string = '';
    if (is_array($array_tree)) {
        foreach ($array_tree as $key => $entry) {
            $new_ref = $ref . $key;
            $entry_string .= '<table border="0" cellpadding="1" cellspacing="1"><tr>' . chr(10);
            if (isset($entry['children'])) {
                $entry_string .= '<td><a id="rpt_' . $new_ref . '" href="javascript:Toggle(\'' . $new_ref . '\');">';
                $entry_string .= html_icon('status/folder-open.png', TEXT_EXPAND, 'small', $params = 'hspace="0" vspace="0"') . '</a>';
            } else {
                $entry_string .= '<td>' . html_radio_field('id', 'f' . $key, false);
            }
            $entry_string .= '&nbsp;' . $entry['desc'] . '</td>' . chr(10);
            $entry_string .= '</tr></table>' . chr(10);
            if (isset($entry['children'])) {
                $entry_string .= '<div id="' . $new_ref . '" style="display:none; margin-left:1em;">' . chr(10) . chr(10);
                $entry_string .= build_form_href($entry['children'], $new_ref) . chr(10);
                $entry_string .= '</div>' . chr(10);
            }
        }
    }
    return $entry_string;
}
?>
</td></tr>
      <tr><th colspan="2"><?php 
echo ACT_PAYMENT_MESSAGE;
?>
</th></tr>
	  <tr>
	    <td><?php 
echo ACT_CARDHOLDER_NAME;
?>
</td>
		<td><?php 
echo html_input_field('payment_cc_name', $cInfo->payment_cc_name, 'size="50" maxlength="48"');
?>
		  <?php 
echo html_icon('actions/view-refresh.png', TEXT_RESET, 'small', 'onclick="clearPmtForm()"');
?>
</td>
	  </tr>
	  <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 
Esempio n. 14
0
?>
';
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 
echo ORD_JS_NO_STOCK_A;
?>
';
var no_stock_b           = '<?php 
Esempio n. 15
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;
 }
Esempio n. 16
0
	</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 
echo '<br />' . BNK_DISCOUNT_LOST_BY . '&nbsp;' . html_calendar_field($cal_bills2);
?>
	  </td>
	  <td align="center">
		<?php 
echo '&nbsp;' . html_icon('actions/system-search.png', TEXT_SEARCH, 'large', 'style="cursor:pointer;" onclick="submitToDo(\'search\')"');
?>
	  </td>
	  <td align="right" valign="top">
		<table class="ui-widget" style="border-collapse:collapse">
		  <tr>
			<td align="right"><?php 
echo BNK_ACCOUNT_BALANCE . '&nbsp;';
?>
</td>
			<td align="right">
			  <?php 
echo html_input_field('acct_balance', $currencies->format($acct_balance), 'readonly="readonly" size="15" maxlength="20" style="text-align:right"');
?>
			  <?php 
echo ENABLE_MULTI_CURRENCY ? ' (' . DEFAULT_CURRENCY . ')' : '';
        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()"');
?>
</td>
  </tr></table>
</fieldset>

</form>
Esempio n. 18
0
</th>
	<th><?php 
echo TEXT_ACTION;
?>
</th>
  </tr>
	<?php 
$result = $db->Execute("select id, shipment_id, ref_id, method, deliver_date, tracking_id, cost \r\n\t\tfrom " . TABLE_SHIPPING_LOG . " \r\n\t\twhere carrier = 'freeshipper' and ship_date = '" . $date . "'");
if ($result->RecordCount() > 0) {
    while (!$result->EOF) {
        echo '  <tr>' . chr(10);
        echo '    <td class="dataTableContent" align="right">' . $result->fields['shipment_id'] . '</td>' . chr(10);
        echo '    <td class="dataTableContent" align="right">' . $result->fields['ref_id'] . '</td>' . chr(10);
        echo '    <td class="dataTableContent" align="center">' . constant('freeshipper_' . $result->fields['method']) . '</td>' . chr(10);
        echo '    <td class="dataTableContent" align="right">' . ($result->fields['deliver_date'] ? gen_spiffycal_db_date_short($result->fields['deliver_date']) : '&nbsp;') . '</td>' . chr(10);
        echo '    <td class="dataTableContent" align="right">' . ($result->fields['actual_date'] ? gen_spiffycal_db_date_short($result->fields['actual_date']) : '&nbsp;') . '</td>' . chr(10);
        echo '    <td class="dataTableContent" align="right">' . $result->fields['tracking_id'] . '</td>' . chr(10);
        echo '    <td class="dataTableContent" align="right">' . $currencies->format_full($result->fields['cost']) . '</td>' . chr(10);
        echo '    <td class="dataTableContent" align="right">';
        echo html_icon('phreebooks/stock_id.png', TEXT_VIEW_SHIP_LOG, 'small', 'onclick="loadPopUp(\'freeshipper\', \'edit\', ' . $result->fields['id'] . ')"') . chr(10);
        //	  		echo html_icon('actions/document-print.png', TEXT_PRINT, 'small', 'onclick="window.open(\'' . html_href_link(FILENAME_DEFAULT, gen_get_all_get_params(array('carrier', 'labels', 'date')) . 'carrier=freeshipper&date=' . $date . '&labels=' . $result->fields['tracking_id'], 'SSL') . '\',\'label_mgr\',\'width=800,height=700,resizable=1,scrollbars=1,top=50,left=50\')"') . chr(10);
        echo html_icon('emblems/emblem-unreadable.png', TEXT_DELETE, 'small', 'onclick="if (confirm(\'' . SHIPPING_DELETE_CONFIRM . '\')) window.open(\'index.php?cat=services&module=popup_label_mgr&subject=freeshipper&sID=' . $result->fields['shipment_id'] . '&action=delete\',\'ship_mgr\',\'width=800,height=700,resizable=1,scrollbars=1,top=50,left=50\')"') . chr(10);
        echo '    </td>';
        echo '  </tr>' . chr(10);
        $result->MoveNext();
    }
} else {
    echo '  <tr><td align="center" colspan="8">' . SHIPPING_NO_SHIPMENTS . '</td></tr>';
}
?>
</table>
Esempio n. 19
0
</legend>
   <table class="ui-widget" style="border-collapse:collapse;margin-left:auto;margin-right:auto;">
    <thead class="ui-widget-header">
     <tr><th colspan="3"><?php 
echo TEXT_ATTACHMENTS;
?>
</th></tr>
    </thead>
    <tbody class="ui-widget-content">
     <tr><td colspan="3"><?php 
echo TEXT_SELECT_FILE_TO_ATTACH . ' ' . html_file_field('file_name');
?>
</td></tr>
     <tr  class="ui-widget-header">
      <th><?php 
echo html_icon('emblems/emblem-unreadable.png', TEXT_DELETE, 'small');
?>
</th>
      <th><?php 
echo TEXT_FILENAME;
?>
</th>
      <th><?php 
echo TEXT_ACTION;
?>
</th>
     </tr>
<?php 
if (sizeof($cInfo->attachments) > 0) {
    foreach ($cInfo->attachments as $key => $value) {
        echo '<tr>';
Esempio n. 20
0
        echo add_extra_action_bar_buttons($query_result->fields);
    }
    if ($security_level > 1) {
        echo html_icon('actions/edit-find-replace.png', TEXT_EDIT, 'small', 'onclick="submitSeq(' . $query_result->fields['id'] . ', \'edit\')"') . chr(10);
    }
    if ($security_level > 3) {
        echo html_icon('apps/accessories-text-editor.png', TEXT_RENAME, 'small', 'onclick="renameItem(' . $query_result->fields['id'] . ')"') . chr(10);
    }
    if ($security_level > 1) {
        echo html_icon('actions/edit-copy.png', TEXT_COPY_TO, 'small', 'onclick="copyItem(' . $query_result->fields['id'] . ')"') . chr(10);
    }
    if ($attach_exists) {
        echo html_icon('status/mail-attachment.png', TEXT_DOWNLOAD_ATTACHMENT, 'small', 'onclick="submitSeq(' . $query_result->fields['id'] . ', \'dn_attach\', true)"') . chr(10);
    }
    if ($security_level > 3) {
        echo html_icon('emblems/emblem-unreadable.png', TEXT_DELETE, 'small', 'onclick="if (confirm(\'' . ASSETS_MSG_DELETE_ASSET . '\')) deleteItem(' . $query_result->fields['id'] . ')"') . chr(10);
    }
    ?>
	</td>
  </tr> 
<?php 
    $query_result->MoveNext();
    $odd = !$odd;
}
?>
 </tbody>
</table>
<div style="float:right"><?php 
echo $query_split->display_links();
?>
</div>
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;
}
)"><?php 
        echo $crm_contacts->fields['telephone4'];
        ?>
</td>
		<td class="dataTableContent" onclick="editContact(<?php 
        echo $crm_contacts->fields['id'];
        ?>
)"><?php 
        echo $crm_contacts->fields['email'];
        ?>
</td>
		<td class="dataTableContent" align="right">
	<?php 
        // build the action toolbar
        if ($security_level > 1) {
            echo html_icon('actions/edit-find-replace.png', TEXT_EDIT, 'small', 'onclick="editContact(' . $crm_contacts->fields['id'] . ')"') . chr(10);
        }
        //		if ($security_level > 3) echo html_icon('emblems/emblem-unreadable.png', TEXT_DELETE, 'small', 'onclick="if (confirm(\'' . ACT_WARN_DELETE_ACCOUNT . '\')) submitSeq(' . $crm_contacts->fields['id'] . ', \'crm_delete\')"') . chr(10);
        ?>
		</td>
	  </tr>
	<?php 
        $crm_contacts->MoveNext();
    }
    ?>
	</table>
  </fieldset>
  <?php 
}
?>
  <?php 
Esempio n. 23
0
}
echo $toolbar->build_toolbar();
// Build the page
?>
<h1><?php 
echo constant('ORD_TEXT_' . JOURNAL_ID . '_' . strtoupper($type) . '_WINDOW_TITLE');
?>
</h1>
<div>
 <table class="ui-widget" style="border-style:none;width:100%">
  <tbody class="ui-widget-content">
	<tr>
	  <td valign="top">
<?php 
echo ($type == 'c' ? GEN_CUSTOMER_ID : GEN_VENDOR_ID) . ' ' . html_input_field('search', $order->search, 'onfocus="clearField(\'search\', \'' . TEXT_SEARCH . '\')" onblur="setField(\'search\', \'' . TEXT_SEARCH . '\');"');
echo '&nbsp;' . html_icon('actions/system-search.png', TEXT_SEARCH, 'small', 'align="top" style="cursor:pointer" onclick="AccountList()"');
?>
	  </td>
	  <td align="right">
	    <?php 
echo JOURNAL_ID == 20 || !isset($_SESSION['admin_encrypt']) ? '&nbsp;' : BNK_TEXT_SAVE_PAYMENT_INFO . html_checkbox_field('save_payment', '1', $order->save_payment ? true : false, '', '');
?>
	  </td>
	  <td>
	    <?php 
echo html_pull_down_menu('payment_id', gen_null_pull_down(), '', 'style="visibility:hidden" onchange=\'fillPayment()\'') . chr(10);
?>
	  </td>
	</tr>
	<tr>
	  <td valign="top">
Esempio n. 24
0
 function build_main_html()
 {
     global $db, $messageStack;
     // Build heading bar
     $output = '<table border="0" width="100%" cellspacing="0" cellpadding="1">' . chr(10);
     $output .= '  <tr class="dataTableHeadingRow" valign="top">' . chr(10);
     $heading_array = array('category_name' => INV_HEADING_CATEGORY_NAME, 'category_description' => TEXT_DESCRIPTION, 'sort_order' => TEXT_SORT_ORDER);
     $result = html_heading_bar($heading_array, $_GET['list_order']);
     $output .= $result['html_code'];
     $disp_order = $result['disp_order'];
     $output .= '  </tr>' . chr(10);
     // Build field data
     $query_raw = "select category_id, category_name, category_description, sort_order from " . $this->db_table . " order by {$disp_order}";
     $page_split = new splitPageResults($_GET['page'], MAX_DISPLAY_SEARCH_RESULTS, $query_raw, $query_numrows);
     $result = $db->Execute($query_raw);
     while (!$result->EOF) {
         $output .= '  <tr class="dataTableRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)">' . chr(10);
         $output .= '    <td class="dataTableContent" onclick="loadPopUp(\'edit\', \'' . $result->fields['category_id'] . '\')">' . htmlspecialchars($result->fields['category_name']) . '</td>' . chr(10);
         $output .= '    <td class="dataTableContent" onclick="loadPopUp(\'edit\', \'' . $result->fields['category_id'] . '\')">' . htmlspecialchars($result->fields['category_description']) . '</td>' . chr(10);
         $output .= '    <td class="dataTableContent" onclick="loadPopUp(\'edit\', \'' . $result->fields['category_id'] . '\')">' . $result->fields['sort_order'] . '</td>' . chr(10);
         $output .= '    <td class="dataTableContent" align="right">' . chr(10);
         if ($this->security_id > 1) {
             $output .= html_icon('actions/edit-find-replace.png', TEXT_EDIT, 'small', 'onclick="loadPopUp(\'edit\', \'' . $result->fields['category_id'] . '\')"') . chr(10);
         }
         if ($this->security_id > 3) {
             $output .= html_icon('emblems/emblem-unreadable.png', TEXT_DELETE, 'small', 'onclick="if (confirm(\'' . INV_INFO_DELETE_INTRO . '\')) submitSeq(\'' . $result->fields['category_id'] . '\', \'delete\')"') . chr(10);
         }
         $output .= '    </td>' . chr(10);
         $output .= '  </tr>' . chr(10);
         $result->MoveNext();
     }
     $output .= '</table>' . chr(10);
     $output .= '<div class="page_count_right">' . $page_split->display_links($query_numrows, MAX_DISPLAY_SEARCH_RESULTS, MAX_DISPLAY_PAGE_LINKS, $_GET['page']) . '</div>' . chr(10);
     $output .= '<div class="page_count">' . $page_split->display_count($query_numrows, MAX_DISPLAY_SEARCH_RESULTS, $_GET['page'], TEXT_DISPLAY_NUMBER_OF_CATEGORIES) . '</div>' . chr(10);
     return $output;
 }
Esempio n. 25
0
 function build_main_html()
 {
     global $db, $messageStack;
     // Build heading bar
     $output = '<table border="0" width="100%" cellspacing="0" cellpadding="1">' . chr(10);
     $output .= '  <tr class="dataTableHeadingRow" valign="top">' . chr(10);
     $heading_array = array('title' => SETUP_CURRENCY_NAME, 'code' => SETUP_CURRENCY_CODES, 'value' => TEXT_VALUE);
     $result = html_heading_bar($heading_array, $_GET['list_order']);
     $output .= $result['html_code'];
     $disp_order = $result['disp_order'];
     $output .= '  </tr>' . chr(10);
     // Build field data
     $query_raw = "select currencies_id, title, code, symbol_left, symbol_right, decimal_point, thousands_point, decimal_places, last_updated, value \r\n\t    from " . TABLE_CURRENCIES . " order by {$disp_order}";
     $page_split = new splitPageResults($_GET['page'], MAX_DISPLAY_SEARCH_RESULTS, $query_raw, $query_numrows);
     $currency = $db->Execute($query_raw);
     while (!$currency->EOF) {
         $output .= '  <tr class="dataTableRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)">' . chr(10);
         if (DEFAULT_CURRENCY == $currency->fields['code']) {
             $output .= '    <td class="dataTableContent" onclick="loadPopUp(\'edit\', ' . $currency->fields['currencies_id'] . ')"><b>' . htmlspecialchars($currency->fields['title']) . ' (' . TEXT_DEFAULT . ')</b></td>' . chr(10);
         } else {
             $output .= '    <td class="dataTableContent" onclick="loadPopUp(\'edit\', ' . $currency->fields['currencies_id'] . ')">' . htmlspecialchars($currency->fields['title']) . '</td>' . chr(10);
         }
         $output .= '    <td class="dataTableContent" onclick="loadPopUp(\'edit\', ' . $currency->fields['currencies_id'] . ')">' . $currency->fields['code'] . '</td>' . chr(10);
         $output .= '    <td class="dataTableContent" align="right" onclick="loadPopUp(\'edit\', ' . $currency->fields['currencies_id'] . ')">' . number_format($currency->fields['value'], 8) . '</td>' . chr(10);
         $output .= '    <td class="dataTableContent" align="right">' . chr(10);
         if ($this->security_id > 1) {
             $output .= html_icon('actions/edit-find-replace.png', TEXT_EDIT, 'small', 'onclick="loadPopUp(\'edit\', ' . $currency->fields['currencies_id'] . ')"') . chr(10);
         }
         if ($this->security_id > 3) {
             $output .= html_icon('emblems/emblem-unreadable.png', TEXT_DELETE, 'small', 'onclick="if (confirm(\'' . SETUP_CURR_DELETE_INTRO . '\')) submitSeq(' . $currency->fields['currencies_id'] . ', \'delete\')"') . chr(10);
         }
         $output .= '    </td>' . chr(10);
         $output .= '  </tr>' . chr(10);
         $currency->MoveNext();
     }
     $output .= '</table>' . chr(10);
     $output .= '<div class="page_count_right">' . $page_split->display_links($query_numrows, MAX_DISPLAY_SEARCH_RESULTS, MAX_DISPLAY_PAGE_LINKS, $_GET['page']) . '</div>' . chr(10);
     $output .= '<div class="page_count">' . $page_split->display_count($query_numrows, MAX_DISPLAY_SEARCH_RESULTS, $_GET['page'], TEXT_DISPLAY_NUMBER_OF_CURRENCIES) . '</div>' . chr(10);
     return $output;
 }
Esempio n. 26
0
</td>
		<td onclick="getAddress(<?php 
        echo $entry->address['m'][0]->address_id;
        ?>
, 'im')"><?php 
        echo $entry->address['m'][0]->email;
        ?>
</td>
		<td align="right">
<?php 
        // build the action toolbar
        if ($security_level > 1) {
            echo html_icon('actions/edit-find-replace.png', TEXT_EDIT, 'small', 'onclick="getAddress(' . $entry->address['m'][0]->address_id . ', \'im\')"') . chr(10);
        }
        if ($security_level > 3) {
            echo html_icon('emblems/emblem-unreadable.png', TEXT_DELETE, 'small', 'onclick="if (confirm(\'' . ACT_WARN_DELETE_ACCOUNT . '\')) deleteAddress(' . $entry->address['m'][0]->address_id . ')"') . chr(10);
        }
        ?>
		</td>
	  </tr>
<?php 
        $odd = !$odd;
    }
    ?>
	  </tbody>
	</table>
  </fieldset>
  <?php 
}
?>
  <?php 
Esempio n. 27
0
 function build_main_html()
 {
     global $db, $messageStack, $project_cost_types;
     $content = array();
     $content['thead'] = array('value' => array(TEXT_SHORT_NAME, TEXT_COST_TYPE, TEXT_INACTIVE, TEXT_ACTION), 'params' => 'width="100%" cellspacing="0" cellpadding="1"');
     $result = $db->Execute("select cost_id, description_short, cost_type, inactive from " . $this->db_table);
     $rowCnt = 0;
     while (!$result->EOF) {
         $params = unserialize($result->fields['params']);
         $actions = '';
         if ($this->security_id > 1) {
             $actions .= html_icon('actions/edit-find-replace.png', TEXT_EDIT, 'small', 'onclick="loadPopUp(\'project_costs_edit\', ' . $result->fields['cost_id'] . ')"') . chr(10);
         }
         if ($this->security_id > 3) {
             $actions .= html_icon('emblems/emblem-unreadable.png', TEXT_DELETE, 'small', 'onclick="if (confirm(\'' . SETUP_PROJECT_COSTS_DELETE_INTRO . '\')) subjectDelete(\'project_costs\', ' . $result->fields['cost_id'] . ')"') . chr(10);
         }
         $content['tbody'][$rowCnt] = array(array('value' => htmlspecialchars($result->fields['description_short']), 'params' => 'style="cursor:pointer" onclick="loadPopUp(\'project_costs_edit\',\'' . $result->fields['cost_id'] . '\')"'), array('value' => $project_cost_types[$result->fields['cost_type']], 'params' => 'style="cursor:pointer" onclick="loadPopUp(\'project_costs_edit\',\'' . $result->fields['cost_id'] . '\')"'), array('value' => $result->fields['inactive'] ? TEXT_YES : '', 'params' => 'style="cursor:pointer" onclick="loadPopUp(\'project_costs_edit\',\'' . $result->fields['cost_id'] . '\')"'), array('value' => $actions, 'params' => 'align="right"'));
         $result->MoveNext();
         $rowCnt++;
     }
     return html_datatable('proj_cost_table', $content);
 }
Esempio n. 28
0
        echo add_extra_action_bar_buttons($query_result->fields);
    }
    if ($security_level > 1) {
        echo html_icon('actions/edit-find-replace.png', TEXT_EDIT, 'small', 'onclick="window.open(\'' . html_href_link(FILENAME_DEFAULT, 'module=inventory&amp;page=main&amp;cID=' . $query_result->fields['id'] . '&amp;action=edit&amp;inventory_type=' . $query_result->fields['inventory_type'], 'SSL') . "','_blank')\"") . chr(10);
    }
    if ($security_level > 3 && $query_result->fields['inventory_type'] != 'mi' && $query_result->fields['inventory_type'] != 'ia') {
        echo html_icon('apps/accessories-text-editor.png', TEXT_RENAME, 'small', "onclick='renameItem({$query_result->fields['id']},\"{$query_result->fields['inventory_type']}\")'") . chr(10);
    }
    if ($security_level > 3 && $query_result->fields['inventory_type'] != 'mi' && $query_result->fields['inventory_type'] != 'ia' && ($query_result->fields['last_journal_date'] != '0000-00-00 00:00:00' || $query_result->fields['last_journal_date'] != '')) {
        echo html_icon('emblems/emblem-unreadable.png', TEXT_DELETE, 'small', "onclick='if (confirm(\"" . INV_MSG_DELETE_INV_ITEM . "\")) deleteItem({$query_result->fields['id']},\"{$query_result->fields['inventory_type']}\")'") . chr(10);
    }
    if ($security_level > 1 && $query_result->fields['inventory_type'] != 'mi' && $query_result->fields['inventory_type'] != 'ia') {
        echo html_icon('actions/edit-copy.png', TEXT_COPY, 'small', "onclick='copyItem({$query_result->fields['id']},\"{$query_result->fields['inventory_type']}\")'") . chr(10);
    }
    if ($security_level > 2) {
        echo html_icon('mimetypes/x-office-spreadsheet.png', BOX_SALES_PRICE_SHEETS, 'small', "onclick='priceMgr({$query_result->fields['id']}, \"\",{$query_result->fields['full_price']}, \"c\")'") . chr(10);
    }
    ?>
	</td>
  </tr> 
<?php 
    $query_result->MoveNext();
    $odd = !$odd;
}
?>
 </tbody>
</table>
<div style="float:right"><?php 
echo $query_split->display_links();
?>
</div>
Esempio n. 29
0
if ($id) {
    $docbar->icon_list['go_up'] = array('show' => true, 'icon' => 'actions/go-up.png', 'params' => 'onclick="dirAction(\'go_up\')"', 'text' => 'Up', 'order' => 2);
}
if ($_REQUEST['action'] != 'search') {
    $fieldset_content .= $docbar->build_toolbar() . chr(10);
}
// build the table contents
$doc_cnt = 0;
$fieldset_content .= '<table class="ui-widget" style="border-collapse:collapse;width:100%"><tbody class="ui-widget-content">' . chr(10);
$fieldset_content .= '  <tr>' . $list_header . '</tr>' . chr(10);
$odd = true;
while (!$query_result->EOF) {
    if (security_check($query_result->fields['security'])) {
        $folder = $query_result->fields['doc_type'] == '0' ? true : false;
        $fieldset_content .= '  <tr class="' . ($odd ? 'odd' : 'even') . '" style="cursor:pointer">' . chr(10);
        $fieldset_content .= '	<td onclick="fetch_doc(' . $query_result->fields['id'] . ')">' . html_icon(get_mime_image($query_result->fields['doc_ext'], $folder), '', 'small') . '</td>' . chr(10);
        $fieldset_content .= '	<td onclick="fetch_doc(' . $query_result->fields['id'] . ')">' . $query_result->fields['doc_title'] . '</td>' . chr(10);
        $fieldset_content .= '	<td align="right"> ' . '&nbsp;' . '</td>' . chr(10);
        // action space
        $fieldset_content .= '  </tr>' . chr(10);
        $doc_cnt++;
        $odd = !$odd;
    }
    $query_result->MoveNext();
}
if ($doc_cnt > 0) {
    $fieldset_content .= '</tbody></table>' . chr(10);
    $fieldset_content .= '<div style="height:19px">' . $query_split->display_count(TEXT_DISPLAY_NUMBER . TEXT_FILES) . chr(10);
    $fieldset_content .= '<div style="float:right">' . $query_split->display_links() . '</div>' . chr(10);
    $fieldset_content .= '</div>' . chr(10);
} else {
        echo $Type == 'frm' ? $FormEntries[$Params['index']] : $TotalLevels[$Params['index']];
        ?>
&nbsp;</td>
		  <?php 
        if ($Type != 'frm') {
            echo '<td>' . $FontAlign[$Params['align']] . '&nbsp;</td>';
        }
        ?>
		  <td nowrap="nowrap">
		    <?php 
        echo html_icon('actions/go-up.png', TEXT_UP, 'small', 'onclick="submitSeq(' . $FieldDetails['seqnum'] . ', \'up\')"');
        echo html_icon('actions/go-down.png', TEXT_DOWN, 'small', 'onclick="submitSeq(' . $FieldDetails['seqnum'] . ', \'down\')"');
        echo html_icon('actions/edit-find-replace.png', TEXT_EDIT, 'small', 'onclick="submitSeq(' . $FieldDetails['seqnum'] . ', \'edit\')"');
        echo html_icon('emblems/emblem-unreadable.png', TEXT_DELETE, 'small', 'onclick="if (confirm(\'' . TEXT_DELETE_ENTRY . '\')) submitSeq(' . $FieldDetails['seqnum'] . ', \'delete\')"');
        if ($Type == 'frm') {
            echo html_icon('actions/document-properties.png', TEXT_PROPERTIES, 'small', 'onclick="submitSeq(' . $FieldDetails['seqnum'] . ', \'properties\')"');
        }
        ?>
		  </td>
		</tr>
	  <?php 
    }
    // end foreach
    if ($Type != 'frm') {
        echo '<tr><td colspan="20">' . RW_RPT_FIELD_HELP . '</td></tr>';
    }
}
// end else
?>
  </table>
</form>