• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

PHP gen_spiffycal_db_date_short函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中gen_spiffycal_db_date_short函数的典型用法代码示例。如果您正苦于以下问题:PHP gen_spiffycal_db_date_short函数的具体用法?PHP gen_spiffycal_db_date_short怎么用?PHP gen_spiffycal_db_date_short使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了gen_spiffycal_db_date_short函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: Output

 function Output($params)
 {
     global $db, $currencies;
     // Build control box form data
     $control = '<div class="row">';
     $control .= '<div style="white-space:nowrap">' . TEXT_SHOW . TEXT_SHOW_NO_LIMIT;
     $control .= '<select name="num_rows" onchange="">';
     for ($i = 0; $i < MAX_NUM_SO_LIST; $i++) {
         $control .= '<option value="' . $i . '"' . ($params['num_rows'] == $i ? ' selected="selected"' : '') . '>' . $i . '</option>';
     }
     $control .= '</select> ' . TEXT_ITEMS . '&nbsp;&nbsp;&nbsp;&nbsp;';
     $control .= '<input type="submit" value="' . TEXT_SAVE . '" />';
     $control .= '</div></div>';
     // Build content box
     $sql = "select id, post_date, purchase_invoice_id, bill_primary_name, total_amount, currencies_code, currencies_value \r\n\t\t\tfrom " . TABLE_JOURNAL_MAIN . " \r\n\t\t\twhere journal_id = 10 and closed = '0' order by post_date DESC";
     if ($params['num_rows']) {
         $sql .= " limit " . $params['num_rows'];
     }
     $result = $db->Execute($sql);
     if ($result->RecordCount() < 1) {
         $contents = CP_SO_STATUS_NO_RESULTS;
     } else {
         while (!$result->EOF) {
             $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, 'cat=orders&amp;module=orders&amp;oID=' . $result->fields['id'] . '&amp;jID=10&amp;action=edit', 'SSL') . '">';
             $contents .= $result->fields['purchase_invoice_id'] . ' - ';
             $contents .= gen_spiffycal_db_date_short($result->fields['post_date']);
             $name = strlen($result->fields['bill_primary_name']) > 20 ? substr($result->fields['bill_primary_name'], 0, 20) . '...' : $result->fields['bill_primary_name'];
             $contents .= ' ' . htmlspecialchars($name);
             $contents .= '</a></div>' . chr(10);
             $result->MoveNext();
         }
     }
     return $this->build_div($this->title, $contents, $control);
 }
开发者ID:jigsmaheta,项目名称:puerto-argentino,代码行数:36,代码来源:so_status.php


示例2: array

            }
            $result->MoveNext();
            $last_fy->MoveNext();
        }
        break;
    default:
}
/*****************   prepare to display templates  *************************/
$result = $db->Execute("select period, start_date, end_date from " . TABLE_ACCOUNTING_PERIODS . " \r\n\twhere fiscal_year = '" . $fy . "' order by period");
$last_fy = $db->Execute("select period from " . TABLE_ACCOUNTING_PERIODS . " \r\n\twhere fiscal_year = '" . ($fy - 1) . "' order by period");
$next_fy = $db->Execute("select period from " . TABLE_ACCOUNTING_PERIODS . " \r\n\twhere fiscal_year = '" . ($fy + 1) . "' order by period");
$periods = array();
$lf_per = array();
$nf_per = array();
while (!$result->EOF) {
    $periods[$result->fields['period']] = $result->fields['period'] . ' - ' . gen_spiffycal_db_date_short($result->fields['start_date']) . ' - ' . gen_spiffycal_db_date_short($result->fields['end_date']);
    if (!$last_fy->EOF) {
        $lf_per[$last_fy->fields['period']] = 1;
    }
    if (!$next_fy->EOF) {
        $nf_per[$next_fy->fields['period']] = 1;
    }
    $result->MoveNext();
    $last_fy->MoveNext();
    $next_fy->MoveNext();
}
$result = $db->Execute("select id, period, budget from " . TABLE_CHART_OF_ACCOUNTS_HISTORY . " \r\n\twhere account_id = '" . $gl_acct . "' and period in (" . implode(',', array_keys($periods)) . ")");
if ($gl_acct && sizeof($lf_per) > 0) {
    $last_fy = $db->Execute("select budget from " . TABLE_CHART_OF_ACCOUNTS_HISTORY . " \r\n\twhere account_id = '" . $gl_acct . "' and period in (" . implode(',', array_keys($lf_per)) . ")");
} else {
    $next_fy = new objectInfo();
开发者ID:jigsmaheta,项目名称:puerto-argentino,代码行数:31,代码来源:pre_process.php


示例3: ctlSpiffyCalendarBox

<script type="text/javascript">
<!--
ajaxRH["skuDetails"] = "processSkuDetails";
ajaxRH["skuStock"]   = "processSkuStock";
ajaxRH["loadRecord"] = "processEditAdjustment";

// pass any php variables generated during pre-process that are used in the javascript functions.
// Include translations here as well.
var adj_qty = 0;
var unit_price_placeholder = false;
var unit_price_note = '<?php 
echo JS_COGS_AUTO_CALC;
?>
';
var dateReference = new ctlSpiffyCalendarBox("dateReference", "inv_adj", "post_date","btnDate1", "<?php 
echo isset($cInfo->post_date) ? gen_spiffycal_db_date_short($cInfo->post_date) : date(DATE_FORMAT, time());
?>
", scBTNMODE_CALBTN);

function init() {
  cssjsmenu('navbar');
  document.getElementById('sku_1').focus();
<?php 
if ($action == 'edit') {
    echo '  EditAdjustment(' . $oID . ')';
}
?>

}

function check_form() {
开发者ID:jigsmaheta,项目名称:puerto-argentino,代码行数:31,代码来源:js_include.php


示例4: objectInfo

    }
    // replace bID with ID from payment
} else {
    $bill = new objectInfo();
}
// select the customer and build the contact record
$contact = $db->Execute("select * from " . TABLE_CONTACTS . " where id = '" . $cID . "'");
$type = $contact->fields['type'];
define('ACCOUNT_TYPE', $type);
$bill_add = $db->Execute("select * from " . TABLE_ADDRESS_BOOK . " \r\n  where ref_id = '" . $cID . "' and type in ('" . $type . "m', '" . $type . "b')");
// fetch the line items
$invoices = fill_paid_invoice_array($bID, $cID, $type);
$item_list = $invoices['invoices'];
// some adjustments based on what we are doing
$bill->fields['payment_fields'] = $invoices['payment_fields'];
$bill->fields['post_date'] = gen_spiffycal_db_date_short($bill->fields['post_date']);
// build the form data
if ($contact->fields) {
    $xml .= "\t<contact>\n";
    foreach ($contact->fields as $key => $value) {
        $xml .= "\t\t" . xmlEntry($key, $value);
    }
    $xml .= "\t</contact>\n";
}
if ($bill_add->fields) {
    while (!$bill_add->EOF) {
        $xml .= "\t<billaddress>\n";
        foreach ($bill_add->fields as $key => $value) {
            $xml .= "\t\t" . xmlEntry($key, $value);
        }
        $xml .= "\t</billaddress>\n";
开发者ID:jigsmaheta,项目名称:puerto-argentino,代码行数:31,代码来源:load_bill.php


示例5: ProcessData

function ProcessData($strData, $Process)
{
    global $currencies, $posted_currencies, $rw_xtra_jrnl_defs;
    //echo 'process = ' . $Process . ' and posted cur = '; print_r($posted_currencies); echo '<br />';
    switch ($Process) {
        case "uc":
            return strtoupper_utf8($strData);
        case "lc":
            return strtolower_utf8($strData);
        case "neg":
            return -$strData;
        case "rnd2d":
            if (!is_numeric($strData)) {
                return $strData;
            } else {
                return number_format(round($strData, 2), 2, '.', '');
            }
        case "rnd_dec":
            if (!is_numeric($strData)) {
                return $strData;
            } else {
                return $currencies->format($strData);
            }
        case "rnd_pre":
            if (!is_numeric($strData)) {
                return $strData;
            } else {
                return $currencies->precise($strData);
            }
        case "def_cur":
            if (!is_numeric($strData)) {
                return $strData;
            } else {
                return $currencies->format_full($strData, true, DEFAULT_CURRENCY, 1, 'fpdf');
            }
        case "null_dcur":
            if (!is_numeric($strData)) {
                return $strData;
            } else {
                return !$strData ? '' : $currencies->format_full($strData, true, DEFAULT_CURRENCY, 1, 'fpdf');
            }
        case "posted_cur":
            if (!is_numeric($strData)) {
                return $strData;
            } else {
                return $currencies->format_full($strData, true, $posted_currencies['currencies_code'], $posted_currencies['currencies_value'], 'fpdf');
            }
        case "null_pcur":
            if (!is_numeric($strData)) {
                return $strData;
            } else {
                return !$strData ? '' : $currencies->format_full($strData, true, $posted_currencies['currencies_code'], $posted_currencies['currencies_value'], 'fpdf');
            }
        case "dlr":
            if (!is_numeric($strData)) {
                return $strData;
            } else {
                return '$ ' . number_format(round($strData, 2), 2);
            }
        case "euro":
            if (!is_numeric($strData)) {
                return $strData;
            } else {
                return chr(128) . ' ' . number_format(round($strData, 2), 2);
            }
            // assumes standard FPDF fonts
        // assumes standard FPDF fonts
        case "n2wrd":
            return value_to_words_en_us($strData);
            // for checks primarily
        // for checks primarily
        case "terms":
            return gen_terms_to_language($strData, $short = true, $type = 'ar');
        case "date":
            return gen_spiffycal_db_date_short($strData);
        case "null-dlr":
            return !$strData ? '' : '$ ' . number_format($strData, 2);
        case "ordr_qty":
            return pull_order_qty($strData);
        case "branch":
            return rw_get_branch_name($strData);
        case "rep_id":
            return rw_get_user_name($strData);
        case "ship_name":
            return rw_get_ship_name($strData);
        case 'j_desc':
            return isset($rw_xtra_jrnl_defs[$strData]) ? $rw_xtra_jrnl_defs[$strData] : $strData;
        case 'yesBno':
            return $strData ? TEXT_YES : '';
        case 'printed':
            return $strData ? '' : TEXT_DUPLICATE;
    }
    $processed_value = false;
    if (function_exists('rw_extra_processing')) {
        $processed_value = rw_extra_processing($strData, $Process);
    }
    return $processed_value === false ? $strData : $processed_value;
    // do nothing if Process not recognized
}
开发者ID:jigsmaheta,项目名称:puerto-argentino,代码行数:99,代码来源:generator_functions.php


示例6: ctlSpiffyCalendarBox

// | file: /doc/manual/ch01-Introduction/license.html.               |
// | If not, see http://www.gnu.org/licenses/                        |
// +-----------------------------------------------------------------+
//  Path: /modules/services/shipping/label_mgr/item/js_include.php
//
?>
<script type="text/javascript">
<!--
// pass any php variables generated during pre-process that are used in the javascript functions.
// Include translations here as well.
var dateShipped = new ctlSpiffyCalendarBox("dateShipped", "label_mgr", "ship_date","btnDate2", "<?php 
echo isset($sInfo->ship_date) ? gen_spiffycal_db_date_short($sInfo->ship_date) : date('m/d/Y', time());
?>
", scBTNMODE_CALBTN);
var dateExpected = new ctlSpiffyCalendarBox("dateExpected", "label_mgr", "deliver_date","btnDate2", "<?php 
echo isset($sInfo->deliver_date) ? gen_spiffycal_db_date_short($sInfo->deliver_date) : date('m/d/Y', time());
?>
", scBTNMODE_CALBTN);

function init() {
  <?php 
if (!$error && ($action == 'save' || $action == 'delete')) {
    echo '  window.opener.location.reload();' . chr(10);
    echo '  self.close();' . chr(10);
}
?>
}

function check_form() {
  return true;
}
开发者ID:jigsmaheta,项目名称:puerto-argentino,代码行数:31,代码来源:js_include.php


示例7: array

    case '9':
    case '10':
    case '12':
        //  case  '19':
        // check for stock available for SO, Customer Quote and Sales
        if ($qty > $inventory->fields['branch_qty_in_stock'] && strpos(COG_ITEM_TYPES, $inventory->fields['inventory_type']) !== false) {
            $stock_note = array(ORD_INV_STOCK_LOW);
            $stock_note[] = ORD_INV_STOCK_BAL . $inventory->fields['branch_qty_in_stock'];
            // fetch open orders
            $sku_history = gather_history($inventory->fields['sku']);
            if (is_array($sku_history['open_po'])) {
                $stock_note[] = ORD_INV_OPEN_POS;
                foreach ($sku_history['open_po'] as $value) {
                    $store = $value['store_id'] ? gen_get_account_name($value['store_id']) : COMPANY_NAME;
                    // get name from id
                    $stock_note[] = sprintf(ORD_INV_STOCK_STATUS, $store, $value['purchase_invoice_id'], $value['qty'], gen_spiffycal_db_date_short($value['date_1']));
                }
            }
        }
        break;
    case '7':
    case '13':
    default:
}
//put it all together
// echo back some submitted values
$xml .= xmlEntry("qty", $qty);
if ($cID) {
    $xml .= xmlEntry("cID", $cID);
}
if ($jID) {
开发者ID:jigsmaheta,项目名称:puerto-argentino,代码行数:31,代码来源:inv_details.php


示例8: array

$template_options = array();
switch (JOURNAL_ID) {
    case 3:
        $req_date = gen_spiffycal_db_date_short(gen_specific_date('', 0, 1, 0));
        $template_options['terminal_date'] = array('title' => constant('ORD_TEXT_' . JOURNAL_ID . '_EXPIRES'), 'field' => '<script type="text/javascript">dateRequired.writeControl(); dateRequired.displayLeft=true; dateRequired.dateFormat="' . DATE_FORMAT_SPIFFYCAL . '";</script>');
        $template_options['terms'] = array('title' => ACT_TERMS_DUE, 'field' => html_input_field('terms_text', gen_terms_to_language('0', true, 'ap'), 'readonly="readonly" size="25"') . '&nbsp;' . html_icon('apps/accessories-text-editor.png', ACT_TERMS_DUE, 'small', 'align="top" style="cursor:pointer" onclick="TermsList()"'));
        $template_options['closed'] = array('title' => TEXT_CLOSE, 'field' => html_checkbox_field('closed', '1', $order->closed ? true : false, '', ''));
        break;
    case 4:
        $req_date = gen_spiffycal_db_date_short(gen_specific_date('', 0, 1, 0));
        $template_options['terminal_date'] = array('title' => constant('ORD_TEXT_' . JOURNAL_ID . '_EXPIRES'), 'field' => '<script type="text/javascript">dateRequired.writeControl(); dateRequired.displayLeft=true; dateRequired.dateFormat="' . DATE_FORMAT_SPIFFYCAL . '";</script>');
        $template_options['terms'] = array('title' => ACT_TERMS_DUE, 'field' => html_input_field('terms_text', gen_terms_to_language('0', true, 'ap'), 'readonly="readonly" size="25"') . '&nbsp;' . html_icon('apps/accessories-text-editor.png', ACT_TERMS_DUE, 'small', 'align="top" style="cursor:pointer" onclick="TermsList()"'));
        $template_options['closed'] = array('title' => TEXT_CLOSE, 'field' => html_checkbox_field('closed', '1', $order->closed ? true : false, '', ''));
        break;
    case 6:
        $req_date = gen_spiffycal_db_date_short(gen_specific_date('', 0, 1, 0));
        $template_options['terms'] = array('title' => ACT_TERMS_DUE, 'field' => html_input_field('terms_text', gen_terms_to_language('0', true, 'ap'), 'readonly="readonly" size="25"') . '&nbsp;' . html_icon('apps/accessories-text-editor.png', ACT_TERMS_DUE, 'small', 'align="top" style="cursor:pointer" onclick="TermsList()"'));
        $template_options['waiting'] = array('title' => ORD_WAITING_FOR_INVOICE, 'field' => html_checkbox_field('waiting', '1', $order->waiting ? true : false, '', ''));
        break;
    case 7:
        $req_date = date(DATE_FORMAT, time());
        $template_options['terms'] = array('title' => ACT_TERMS_DUE, 'field' => html_input_field('terms_text', gen_terms_to_language('0', true, 'ap'), 'readonly="readonly" size="25"') . '&nbsp;' . html_icon('apps/accessories-text-editor.png', ACT_TERMS_DUE, 'small', 'align="top" style="cursor:pointer" onclick="TermsList()"'));
        $template_options['waiting'] = array('title' => ORD_WAITING_FOR_INVOICE, 'field' => html_checkbox_field('waiting', '1', $order->waiting ? true : false, '', ''));
        break;
    case 9:
        $req_date = date(DATE_FORMAT, time());
        $template_options['terminal_date'] = array('title' => constant('ORD_TEXT_' . JOURNAL_ID . '_EXPIRES'), 'field' => '<script type="text/javascript">dateRequired.writeControl(); dateRequired.displayLeft=true; dateRequired.dateFormat="' . DATE_FORMAT_SPIFFYCAL . '";</script>');
        $template_options['terms'] = array('title' => ACT_TERMS_DUE, 'field' => html_input_field('terms_text', gen_terms_to_language('0', true, 'ap'), 'readonly="readonly" size="25"') . '&nbsp;' . html_icon('apps/accessories-text-editor.png', ACT_TERMS_DUE, 'small', 'align="top" style="cursor:pointer" onclick="TermsList()"'));
        $template_options['closed'] = array('title' => TEXT_CLOSE, 'field' => html_checkbox_field('closed', '1', $order->closed ? true : false, '', ''));
        break;
    case 10:
开发者ID:jigsmaheta,项目名称:puerto-argentino,代码行数:31,代码来源:pre_process.php


示例9: ord_get_so_po_num

        case 7:
            $closed = $query_result->fields['waiting'];
            break;
    }
    $purch_order_id = $query_result->fields['so_po_ref_id'] ? ord_get_so_po_num($query_result->fields['so_po_ref_id']) : '';
    $total_amount = $currencies->format_full($query_result->fields['total_amount'], true, $query_result->fields['currencies_code'], $query_result->fields['currencies_value']);
    if (ENABLE_MULTI_CURRENCY) {
        $total_amount .= ' (' . $query_result->fields['currencies_code'] . ')';
    }
    ?>
  <tr class="dataTableRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="setReturnOrdr(<?php 
    echo $query_result->fields['id'];
    ?>
, false)">
	<td class="dataTableContent"><?php 
    echo gen_spiffycal_db_date_short($query_result->fields['post_date']);
    ?>
</td>
	<td class="dataTableContent"><?php 
    echo $query_result->fields['purchase_invoice_id'];
    ?>
</td>
	<?php 
    switch (JOURNAL_ID) {
        case 6:
        case 12:
            echo '<td class="dataTableContent">' . $purch_order_id . '</td>';
            break;
        case 7:
        case 13:
            echo '<td class="dataTableContent">' . $query_result->fields['purch_order_id'] . '</td>';
开发者ID:jigsmaheta,项目名称:puerto-argentino,代码行数:31,代码来源:template_main.php


示例10: ctlSpiffyCalendarBox

//  Path: /modules/assets/pages/main/js_include.php
//
?>
<script type="text/javascript">
<!--
// pass some php variables
var date1=new ctlSpiffyCalendarBox("date1", "assets", "acquisition_date","btnDate1", "<?php 
echo isset($cInfo->acquisition_date) ? gen_spiffycal_db_date_short($cInfo->acquisition_date) : '';
?>
", scBTNMODE_CALBTN);
var date2=new ctlSpiffyCalendarBox("date2", "assets", "maintenance_date","btnDate1", "<?php 
echo isset($cInfo->maintenance_date) ? gen_spiffycal_db_date_short($cInfo->maintenance_date) : '';
?>
", scBTNMODE_CALBTN);
var date3=new ctlSpiffyCalendarBox("date3", "assets", "terminal_date",   "btnDate1", "<?php 
echo isset($cInfo->terminal_date) ? gen_spiffycal_db_date_short($cInfo->terminal_date) : '';
?>
", scBTNMODE_CALBTN);

// required function called with every page load
function init() {
	cssjsmenu('navbar');

  <?php 
if ($action != 'new' && $action != 'edit') {
    // set focus for main window
    echo "  document.getElementById('search_text').focus();";
}
?>
  <?php 
if ($action == 'new') {
开发者ID:jigsmaheta,项目名称:puerto-argentino,代码行数:31,代码来源:js_include.php


示例11: ctlSpiffyCalendarBox

// | This program is distributed in the hope that it will be useful, |
// | but WITHOUT ANY WARRANTY; without even the implied warranty of  |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the   |
// | GNU General Public License for more details.                    |
// |                                                                 |
// | The license that is bundled with this package is located in the |
// | file: /doc/manual/ch01-Introduction/license.html.               |
// | If not, see http://www.gnu.org/licenses/                        |
// +-----------------------------------------------------------------+
//  Path: /modules/zencart/pages/main/js_include.php
//
?>
<script type="text/javascript">
<!--
// pass some php variables
var shipDate = new ctlSpiffyCalendarBox("shipDate", "zencart", "ship_date","btnDate1", "<?php 
echo gen_spiffycal_db_date_short($ship_date);
?>
", scBTNMODE_CALBTN);

// required function called with every page load
function init() {
  cssjsmenu('navbar');
}

function check_form() {
  return true;
}

// -->
</script>
开发者ID:jigsmaheta,项目名称:puerto-argentino,代码行数:31,代码来源:js_include.php


示例12: html_hidden_field

echo html_hidden_field('ship_acct_id', $order->ship_acct_id) . chr(10);
// id of the account in the ship to
echo html_hidden_field('ship_address_id', $order->ship_address_id) . chr(10);
echo html_hidden_field('terms', $order->terms) . chr(10);
echo html_hidden_field('item_count', $order->item_count) . chr(10);
echo html_hidden_field('weight', $order->weight) . chr(10);
echo html_hidden_field('currencies_code', $order->currencies_code) . chr(10);
echo html_hidden_field('printed', $order->printed);
if (!isset($template_options['closed'])) {
    echo html_hidden_field('closed', $order->closed);
}
if (!isset($template_options['waiting'])) {
    echo html_hidden_field('waiting', $order->waiting);
}
if (!isset($template_options['terminal_date'])) {
    echo html_hidden_field('terminal_date', gen_spiffycal_db_date_short($order->terminal_date));
}
if (!isset($template_options['terms'])) {
    echo html_hidden_field('terms_text', $order->terms_text);
}
// placeholder when not used
if (!ENABLE_MULTI_CURRENCY) {
    echo html_hidden_field('display_currency', DEFAULT_CURRENCY) . chr(10);
    echo html_hidden_field('currencies_value', '1') . chr(10);
}
if (!ENABLE_MULTI_BRANCH) {
    echo html_hidden_field('store_id', '0') . chr(10);
}
// customize the toolbar actions
$toolbar->icon_list['cancel']['params'] = 'onclick="location.href = \'' . html_href_link(FILENAME_DEFAULT, '', 'SSL') . '\'"';
$toolbar->icon_list['open']['params'] = 'onclick="OpenOrdrList(this)"';
开发者ID:jigsmaheta,项目名称:puerto-argentino,代码行数:31,代码来源:template_main.php


示例13: ctlSpiffyCalendarBox

// | file: /doc/manual/ch01-Introduction/license.html.               |
// | If not, see http://www.gnu.org/licenses/                        |
// +-----------------------------------------------------------------+
//  Path: /modules/general/pages/admin_tools/js_include.php
//
?>
<script type="text/javascript">
<!--
// pass any php variables generated during pre-process that are used in the javascript functions.
// Include translations here as well.
var startDate = new ctlSpiffyCalendarBox("startDate", "admin_tools", "start_date", "btnDate2", "<?php 
echo isset($start_date) ? gen_spiffycal_db_date_short($start_date) : date(DATE_FORMAT, time());
?>
", scBTNMODE_CALBTN);
var endDate = new ctlSpiffyCalendarBox("endDate", "admin_tools", "end_date", "btnDate2", "<?php 
echo isset($end_date) ? gen_spiffycal_db_date_short($end_date) : date(DATE_FORMAT, time());
?>
", scBTNMODE_CALBTN);

function init() {
  cssjsmenu('navbar');
}

function check_form() {
  return true;
}

// Insert other page specific functions here.

// -->
</script>
开发者ID:jigsmaheta,项目名称:puerto-argentino,代码行数:31,代码来源:js_include.php


示例14: Date

	var nextDay = new Date(thisYear, thisMonth, thisDay);
	var oneDay = 1000 * 60 * 60 * 24;
	var dateInMs = nextDay.getTime();
	dateInMs += oneDay;
	nextDay.setTime(dateInMs);
	thisDay = nextDay.getDate();
	if (thisDay < 10) thisDay = '0' + thisDay;
	thisMonth = nextDay.getMonth() + 1;
	if (thisMonth < 10) thisMonth = '0' + thisMonth;
	thisYear = nextDay.getFullYear();
	temp = thisYear + '-' + thisMonth + '-' + thisDay;
	document.getElementById('start_'+(index+1)).value = formatDate(temp);
  }
}

// -->
</script>
<?php 
// set up a calendar variable for each possible calendar
echo '<script type="text/javascript">' . chr(10);
$i = 0;
foreach ($fy_array as $key => $value) {
    if ($key > $max_period) {
        // only allow changes if nothing has bee posted above this period
        $ctl_end = 'P' . $i . 'End';
        echo 'var ' . $ctl_end . '=new ctlSpiffyCalendarBox("' . $ctl_end . '", "gl_utils", "end_' . $i . '", "btnDate2", "' . gen_spiffycal_db_date_short($value['end']) . '", scBTNMODE_CALBTN);' . chr(10);
        echo $ctl_end . '.readonly=true; ' . $ctl_end . '.displayLeft=true; ';
    }
    $i++;
}
echo '</script>' . chr(10);
开发者ID:jigsmaheta,项目名称:puerto-argentino,代码行数:31,代码来源:js_include.php


示例15: ctlSpiffyCalendarBox

// Include translations here as well.
var journalID    = '<?php 
echo JOURNAL_ID;
?>
';
var datePosted   = new ctlSpiffyCalendarBox("datePosted", "bulk_bills", "post_date", "btnDate2", "<?php 
echo gen_spiffycal_db_date_short($post_date);
?>
", scBTNMODE_CALBTN);
datePosted.JStoRunOnSelect="loadNewBalance();";
var dateInvoice  = new ctlSpiffyCalendarBox("dateInvoice", "bulk_bills", "invoice_date", "btnDate2", "<?php 
echo gen_spiffycal_db_date_short($invoice_date);
?>
", scBTNMODE_CALBTN);
var dateDiscount = new ctlSpiffyCalendarBox("dateDiscount", "bulk_bills", "discount_date", "btnDate2", "<?php 
echo gen_spiffycal_db_date_short($discount_date);
?>
", scBTNMODE_CALBTN);

function init() {
  cssjsmenu('navbar');
  checkShipAll();

<?php 
if ($post_success && $action == 'print') {
    echo '  var printWin = window.open("index.php?cat=reportwriter&module=popup_form&gn=' . POPUP_FORM_TYPE . '&cr0=' . TABLE_JOURNAL_MAIN . '.purchase_invoice_id:' . $check_range . '","forms","width=700px,height=550px,resizable=1,scrollbars=1,top=150px,left=200px");';
    echo '  printWin.focus();';
}
?>
}
开发者ID:jigsmaheta,项目名称:puerto-argentino,代码行数:30,代码来源:js_include.php


示例16: chr

</td>
		</tr>
<?php 
        if (sizeof($values['detail']) > 1) {
            $j = 0;
            $ref = $i;
            echo '<tr id="detail_' . $i . '" style="display:none"><td colspan="7"><table width="100%">' . chr(10);
            foreach ($values['detail'] as $detail) {
                ?>
		    <tr onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)">
			  <td width="16%" class="dataTableContent"><?php 
                echo '&nbsp;';
                ?>
</td>
			  <td width="10%" class="dataTableContent"><?php 
                echo gen_spiffycal_db_date_short($detail['post_date']);
                ?>
</td>
			  <td width="15%" class="dataTableContent" align="right"><?php 
                echo $detail['dep_amount'] ? $currencies->format($detail['dep_amount']) : '&nbsp;';
                ?>
</td>
			  <td width="15%" class="dataTableContent" align="right"><?php 
                echo $detail['pmt_amount'] ? $currencies->format($detail['pmt_amount']) : '&nbsp;';
                ?>
</td>
			  <td width="30%" class="dataTableContent"><?php 
                echo htmlspecialchars($detail['name']);
                ?>
</td>
			  <td width="7%" class="dataTableContent" align="center">
开发者ID:jigsmaheta,项目名称:puerto-argentino,代码行数:31,代码来源:template_main.php


示例17: ctlSpiffyCalendarBox

//  Path: /modules/rma/pages/main/js_include.php
//
?>
<script type="text/javascript">
<!--
// pass some php variables
var createDate = new ctlSpiffyCalendarBox("createDate", "rma", "creation_date","btnDate1", "<?php 
echo isset($cInfo->creation_date) ? gen_spiffycal_db_date_short($cInfo->creation_date) : '';
?>
", scBTNMODE_CALBTN);
var receiveDate = new ctlSpiffyCalendarBox("receiveDate", "rma", "receive_date", "btnDate1", "<?php 
echo isset($cInfo->receive_date) ? gen_spiffycal_db_date_short($cInfo->receive_date) : '';
?>
", scBTNMODE_CALBTN);
var closedDate = new ctlSpiffyCalendarBox("closedDate", "rma", "closed_date", "btnDate1", "<?php 
echo isset($cInfo->closed_date) ? gen_spiffycal_db_date_short($cInfo->closed_date) : '';
?>
", scBTNMODE_CALBTN);
var image_path = '<?php 
echo DIR_WS_ICONS;
?>
';
var image_delete_text = '<?php 
echo TEXT_DELETE;
?>
';
var image_delete_msg = '<?php 
echo RMA_ROW_DELETE_ALERT;
?>
';
var delete_icon_HTML = '<?php 
开发者ID:jigsmaheta,项目名称:puerto-argentino,代码行数:31,代码来源:js_include.php


示例18: gen_spiffycal_db_date_short

, 'edit')"><?php 
    echo $query_result->fields['default_sheet'] == '1' ? TEXT_YES : '';
    ?>
</td>
	<td class="dataTableContent" onclick="submitSeq(<?php 
    echo $query_result->fields['id'];
    ?>
, 'edit')"><?php 
    echo gen_spiffycal_db_date_short($query_result->fields['effective_date']);
    ?>
</td>
	<td class="dataTableContent" onclick="submitSeq(<?php 
    echo $query_result->fields['id'];
    ?>
, 'edit')"><?php 
    echo gen_spiffycal_db_date_short($query_result->fields['expiration_date']);
    ?>
</td>
	<td class="dataTableContent" align="center" onclick="submitSeq(<?php 
    echo $query_result->fields['id'];
    ?>
, 'edit')"><?php 
    echo $special_price;
    ?>
</td>
	<td class="dataTableContent" align="right">
<?php 
    // build the action toolbar
    // first pull in any extra buttons, this is dynamic since each row can have different buttons
    if (function_exists('add_extra_action_bar_buttons')) {
        echo add_extra_action_bar_buttons($query_result->fields);
开发者ID:jigsmaheta,项目名称:puerto-argentino,代码行数:31,代码来源:template_main.php


示例19: gen_spiffycal_db_date_short

<div id="cat_history" class="tabset_content">
  <h2 class="tabset_label"><?php 
echo TEXT_HISTORY;
?>
</h2>

<?php 
// ***********************  History Section  ******************************
?>
  <fieldset class="formAreaTitle">
    <legend><?php 
echo ACT_CONTACT_HISTORY;
?>
</legend>
    <table border="0" width="100%" cellspacing="6" cellpadding="0">
	  <tr>
	    <td width="50%"><?php 
echo ACT_FIRST_DATE . ' ' . gen_spiffycal_db_date_short($cInfo->first_date);
?>
</td>
	  </tr>
	  <tr>
	    <td width="50%"><?php 
echo ACT_LAST_DATE1 . ' ' . gen_spiffycal_db_date_short($cInfo->last_update);
?>
</td>
	  </tr>
	</table>
  </fieldset>

</div>
开发者ID:jigsmaheta,项目名称:puerto-argentino,代码行数:31,代码来源:template_i_history.php


示例20: ctlSpiffyCalendarBox

// | file: /doc/manual/ch01-Introduction/license.html.               |
// | If not, see http://www.gnu.org/licenses/                        |
// +-----------------------------------------------------------------+
//  Path: /modules/services/pages/popup_tracking/js_include.php
//
?>
<script type="text/javascript">
<!--
// pass any php variables generated during pre-process that are used in the javascript functions.
// Include translations here as well.
var ship_cal = new ctlSpiffyCalendarBox("ship_cal", "popup_tracking", "ship_date", "btnDate2", "<?php 
echo gen_spiffycal_db_date_short($cInfo->ship_date);
?>
", scBTNMODE_CALBTN);
var cal = new ctlSpiffyCalendarBox("cal", "popup_tracking", "deliver_date", "btnDate2", "<?php 
echo gen_spiffycal_db_date_short($cInfo->deliver_date);
?>
", scBTNMODE_CALBTN);

// list the freight options
<?php 
echo $shipping_methods;
?>

function init() {
  <?php 
if ($close_popup) {
    echo '  window.opener.location.reload();' . chr(10);
    echo '  self.close();' . chr(10);
}
?>
开发者ID:jigsmaheta,项目名称:puerto-argentino,代码行数:31,代码来源:js_include.php



注:本文中的gen_spiffycal_db_date_short函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP gen_subnet函数代码示例发布时间:2022-05-15
下一篇:
PHP gen_sort_selects函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap