当前位置: 首页>>代码示例>>PHP>>正文


PHP block_time_picker函数代码示例

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


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

示例1: price

    $total_count = $skus[$sku];
    $retrun_rate = price($count / $total_count * 100) . '%';
    $all_return += $count;
    $all_total += $total_count;
    $data[] = array($sku, $count, $total_count, $retrun_rate);
}
if ($all_total == 0) {
    $all_rate = 0;
} else {
    $all_rate = price($all_return / $all_total * 100) . "%";
}
$data[] = array(lang('statistics'), $all_return, $all_total, $all_rate);
$sortable[] = 'integer';
$sortable[] = 'integer';
$title = lang('received_partial_refunded_statistics') . "-" . lang('by_sku');
echo block_header($title);
echo "<br>";
echo form_open(current_url());
echo lang('from') . ' ' . block_time_picker('begin_time', $begin_time) . '&nbsp;&nbsp;';
echo lang('to') . ' ' . block_time_picker('end_time', $end_time) . '&nbsp;&nbsp;';
$users = array();
foreach ($input_users as $input_user) {
    $users[$input_user->input_user] = $input_user->input_user;
}
$users = array_merge(array(lang('all_input_user')), $users);
echo form_dropdown('input_user', $users, $current_user);
$config = array('name' => 'submit', 'value' => lang('submit'), 'type' => 'submit');
echo block_button($config);
echo form_close();
echo js_sortabl();
echo block_js_sortable_table($head, $data, $sortable, "width: 100%;border-collapse: collapse;");
开发者ID:ohjack,项目名称:mallerp_standard,代码行数:31,代码来源:by_sku.php

示例2: array

            $today_all_orders_detail .= '<br/>';
        }
    }
}
$head = array(lang('name'), lang('value'));
$options = array(lang('ocean_shipping') => lang('ocean_shipping'), lang('air_express') => lang('air_express'), 'EMS' => 'EMS', 'DHL' => 'DHL', 'UPS' => 'UPS');
$data[] = array($this->block->generate_required_mark(lang('log_type')), form_dropdown('log_type', $options, isset($apply_obj) ? $apply_obj->log_type : lang('air_express')));
$options = array('UK' => 'UK', 'DE' => 'DE', 'AU' => 'AU', 'YB' => 'YB');
$data[] = array($this->block->generate_required_mark(lang('storage_code')), form_dropdown('storage_code', $options, isset($apply_obj) ? $apply_obj->storage_code : '1'));
$data[] = array($this->block->generate_required_mark(lang('arrive_time')), block_time_picker('arrive_time', isset($apply_obj) ? $apply_obj->arrive_time : date('Y-m-d', mktime(00, 00, 00, date("m"), date("d") + 3, date("Y")))));
$options = array(lang('GuangZhou') => lang('GuangZhou'), lang('ShenZhen') => lang('ShenZhen'));
$data[] = array($this->block->generate_required_mark(lang('locale')), form_dropdown('locale', $options, isset($apply_obj) ? $apply_obj->locale : '1'));
$options = array('1' => lang('yes'), '0' => lang('no'));
$data[] = array($this->block->generate_required_mark(lang('is_collect')), form_dropdown('is_collect', $options, isset($apply_obj) ? $apply_obj->is_collect : '1'));
$tomorrow = mktime(00, 00, 00, date("m"), date("d") + 1, date("Y"));
$data[] = array($this->block->generate_required_mark(lang('collect_time')), block_time_picker('collect_time', isset($apply_obj) ? $apply_obj->collect_time : date('Y-m-d', $tomorrow) . " 12:00:00"));
$config = array('name' => 'collect_address', 'id' => 'collect_address', 'value' => isset($apply_obj) ? $apply_obj->collect_address : lang('mallerp_company_address'), 'maxlength' => '50', 'size' => '50');
$data[] = array($this->block->generate_required_mark(lang('collect_address')), form_input($config));
$options = array('许先生' => '许先生', '发货员' => '发货员');
$data[] = array($this->block->generate_required_mark(lang('collect_contact')), form_dropdown('collect_contact', $options, isset($apply_obj) ? $apply_obj->collect_contact : '1'));
$options = array('0755-83998006-8020' => '0755-83998006-8020', '0755-83998006-8021' => '0755-83998006-8021');
$data[] = array($this->block->generate_required_mark(lang('collect_phone')), form_dropdown('collect_phone', $options, isset($apply_obj) ? $apply_obj->collect_phone : '1'));
$config = array('name' => 'abroad_stock_remark', 'id' => 'abroad_stock_remark', 'value' => isset($apply_obj) ? $apply_obj->remark : '', 'maxlength' => '200', 'size' => '80');
$data[] = array(lang('abroad_stock_remark'), form_input($config));
echo "<div id='in_store_list_div'>";
echo block_notice_div($today_all_orders_detail);
echo '<br/>';
$title = lang('bfe_in_store_apply');
echo block_header($title);
$attributes = array('id' => 'in_store_list_info_form');
$url = site_url('stock/abroad_stock/in_store_case');
开发者ID:ohjack,项目名称:mallerp_standard,代码行数:31,代码来源:in_store_apply_page.php

示例3: array

    $data[] = array($this->block->generate_required_mark(lang('msn')), form_input($config));
    $config = array('name' => 'msn_pwd', 'id' => 'msn_pwd', 'value' => $user ? $user->msn_pwd : '', 'maxlength' => '255', 'size' => '30');
    $data[] = array($this->block->generate_required_mark(lang('msn_pwd')), form_input($config));
    $config = array('name' => 'skype', 'id' => 'skype', 'value' => $user ? $user->skype : '', 'maxlength' => '255', 'size' => '30');
    $data[] = array($this->block->generate_required_mark(lang('skype')), form_input($config));
    $config = array('name' => 'skype_pwd', 'id' => 'skype_pwd', 'value' => $user ? $user->skype_pwd : '', 'maxlength' => '255', 'size' => '30');
    $data[] = array($this->block->generate_required_mark(lang('skype_pwd')), form_input($config));
    $config = array('name' => 'taobao_username', 'id' => 'taobao_username', 'value' => $user ? $user->taobao_username : '', 'maxlength' => '255', 'size' => '30');
    $data[] = array($this->block->generate_required_mark(lang('taobao_username')), form_input($config));
    $config = array('name' => 'taobao_pwd', 'id' => 'taobao_pwd', 'value' => $user ? $user->taobao_pwd : '', 'maxlength' => '255', 'size' => '30');
    $data[] = array($this->block->generate_required_mark(lang('taobao_pwd')), form_input($config));
}
$data[] = array($this->block->generate_required_mark(lang('birthday')), block_time_picker('birthday', $user ? $user->birthday : ''));
$data[] = array($this->block->generate_required_mark(lang('contrct_time')), block_time_picker('contrct_time', $user ? $user->contrct_time : ''));
$config = array('name' => 'trial_end_time', 'id' => 'trial_end_time', 'value' => $user ? $user->trial_end_time : '', 'maxlength' => '255', 'size' => '30');
$data[] = array($this->block->generate_required_mark(lang('trial_end_time')), block_time_picker('trial_end_time', $user ? $user->trial_end_time : ''));
if ($action == "edit") {
    $title = lang('edit_user');
    $title .= $this->block->generate_back_icon(site_url('myinfo/myaccount/staff_manage'));
    $back_button = $this->block->generate_back_icon(site_url('myinfo/myaccount/staff_manage'));
}
echo block_header($title);
$attributes = array('id' => 'edit_user_form');
echo form_open(site_url('myinfo/myaccount/edit_save'), $attributes);
echo $this->block->generate_table($head, $data);
if ($action == 'edit') {
    $url = site_url('myinfo/myaccount/edit_save', array('user_id' => $user ? $user->id : ''));
    $config = array('name' => 'submit', 'value' => 'Save user!', 'type' => 'button', 'style' => 'margin:10px', 'onclick' => "this.blur();helper.ajax('{$url}',\$('edit_user_form').serialize(true), 1);");
    $attributes = array('id' => $user ? $user->id : '', 'type' => 'button', 'style' => 'margin:10px');
    echo '<h2>' . block_button($config) . $back_button . '</h2>';
}
开发者ID:ohjack,项目名称:mallerp_standard,代码行数:31,代码来源:edit_user.php

示例4: base_url

<?php

$this->load->helper('product_permission');
$this->load->model('user_model');
$base_url = base_url();
$head = array(lang('name'), lang('value'));
$data = array();
$config = array('name' => 'ship_order_no', 'id' => 'ship_order_no', 'value' => '', 'maxlength' => '30', 'size' => '30');
$data[] = array($this->block->generate_required_mark(lang('ship_order_no')), form_input($config));
$options = array(lang('ocean_shipping') => lang('ocean_shipping'), lang('air_express') => lang('air_express'), 'EMS' => 'EMS', 'DHL' => 'DHL', 'UPS' => 'UPS');
$data[] = array($this->block->generate_required_mark(lang('log_type')), form_dropdown('log_type', $options, isset($apply_obj) ? $apply_obj->log_type : lang('air_express')));
$options = array('UK' => 'UK', 'DE' => 'DE', 'AU' => 'AU', 'YB' => 'YB');
$data[] = array($this->block->generate_required_mark(lang('storage_code')), form_dropdown('storage_code', $options, isset($apply_obj) ? $apply_obj->storage_code : '1'));
$data[] = array($this->block->generate_required_mark(lang('ship_confirm_date')), block_time_picker('ship_confirm_date', isset($apply_obj) ? $apply_obj->ship_confirm_date : date('Y-m-d', mktime(00, 00, 00, date("m"), date("d"), date("Y")))));
$options = array(lang('GuangZhou') => lang('GuangZhou'), lang('ShenZhen') => lang('ShenZhen'));
$data[] = array($this->block->generate_required_mark(lang('locale')), form_dropdown('locale', $options, isset($apply_obj) ? $apply_obj->locale : '1'));
$config = array('name' => 'collect_address', 'id' => 'collect_address', 'value' => isset($apply_obj) ? $apply_obj->collect_address : lang('mallerp_company_address'), 'maxlength' => '50', 'size' => '50');
$data[] = array($this->block->generate_required_mark(lang('ship_address')), form_input($config));
$options = array('许先生' => '许先生', '发货员' => '发货员');
$data[] = array($this->block->generate_required_mark(lang('ship_confirm_user')), form_dropdown('ship_confirm_user', $options, isset($apply_obj) ? $apply_obj->ship_confirm_user : '1'));
$config_sku = array('name' => 'sku[]', 'id' => 'sku', 'maxlength' => '100', 'size' => '30');
$config_qty = array('name' => 'qty[]', 'id' => 'qty', 'maxlength' => '100', 'size' => '30');
$add_item = $this->block->generate_add_icon_only("add_item_for_product_list('{$base_url}');");
$delete_span = "<span onclick='\$(this.parentNode).remove();'>" . lang('delete') . "</span>";
$div = "<div id='item_div'></div>";
$product_list = '';
if ($action == 'copy') {
    for ($i = 0; $i < count($sku_arr); $i++) {
        $config_sku = array('name' => 'sku[]', 'id' => 'sku', 'value' => $sku_arr[$i], 'maxlength' => '100', 'size' => '30');
        $config_qty = array('name' => 'qty[]', 'id' => 'qty', 'value' => $qty_arr[$i], 'maxlength' => '100', 'size' => '30');
        $product_list = $product_list . '<div>' . lang('sku_str') . form_input($config_sku) . lang('qty_str') . form_input($config_qty) . "&nbsp;&nbsp;&nbsp;{$delete_span}&nbsp;&nbsp;&nbsp;" . '<br/></div>';
开发者ID:ohjack,项目名称:mallerp_standard,代码行数:31,代码来源:move_form.php

示例5: array

    $config = array('name' => 'sku_price_' . $index, 'id' => 'sku_price_' . $index, 'value' => isset($purchase_sku) ? $purchase_sku->s_price : '', 'maxlength' => '50', 'size' => '8');
    $price = form_input($config);
    $on_way_count = on_way_count(isset($purchase_sku) ? $purchase_sku->s_sku : '[edit]');
    $data[] = array($this->block->generate_div("sku_{$purchase_sku->s_id}", isset($purchase_sku) ? $purchase_sku->s_sku : '[edit]') . form_hidden('sku_id_' . $index, $purchase_sku->s_id), "<img src='{$purchase_sku->m_image_url}' width='40' height='30' />", $purchase_sku->b_name_cn, $purchase_sku->m_stock_count, $purchase_sku->dueout_count, $purchase_sku->min_stock_number, $on_way_count, $quantity, $price, $url);
    echo $this->block->generate_editor("sku_{$purchase_sku->s_id}", 'sku_form', $sku_url, "{id: {$purchase_sku->s_id}, type: 'sku'}");
    echo $this->block->generate_editor("sku_quantity_{$purchase_sku->s_id}", 'sku_form', $sku_url, "{id: {$purchase_sku->s_id}, type: 'sku_quantity'}");
    $index++;
}
$common_head = array(lang('provider'), lang('arrival_date'), lang('payment_type'), lang('sku_note'));
$payment_options = array();
$payment_types = $this->purchase_order_model->fetch_all_payment_types();
foreach ($payment_types as $payment_type) {
    $payment_options[$payment_type->status_id] = lang($payment_type->status_name);
}
$config = array('name' => 'arrival_date', 'id' => 'arrival_date', 'maxlength' => '50', 'size' => '20');
$arrival_date = block_time_picker('arrival_date');
$config = array('name' => 'remarks', 'id' => 'remarks', 'rows' => '5', 'cols' => '40');
$remarks = form_textarea($config);
$provider_options = array();
for ($i = 0; $i < count($providers_id); $i++) {
    $provider_options[$providers_id[$i]] = $providers_name[$i];
}
$js = 'id="provider_id" onChange="change_provider(this.value);"';
$common_data = array();
$common_data[] = array(form_dropdown('provider_id', $provider_options, '', $js), $arrival_date . lang('for_example') . ':(2011-01-01 00:00:00)', form_dropdown('payment_type', $payment_options, ''), $remarks);
$title = lang('the_freedom_of_purchase_orders');
$back_button = $this->block->generate_back_icon(site_url('purchase/purchase_list/view_list'));
echo block_header($title . $back_button);
echo '<h4>' . lang('order_number') . ':' . $item_no . '</h4>';
$attributes = array('id' => 'order_form');
echo form_open(site_url('purchase/order/save_add_order'), $attributes);
开发者ID:ohjack,项目名称:mallerp_standard,代码行数:31,代码来源:add_order.php

示例6: array

$data_b[] = array(lang('country'), form_input($config1), lang('gross'), form_input($config2) . " - " . form_input($config3));
$config1 = array('name' => 'skus_b', 'id' => 'skus_b', 'value' => isset($skus_b) ? $skus_b : NULL);
$config2 = array('name' => 'shipping_cost_b_from', 'id' => 'shipping_cost_b_from', 'maxlength' => '10', 'size' => '10', 'value' => isset($shipping_cost_b_from) ? $shipping_cost_b_from : NULL);
$config3 = array('name' => 'shipping_cost_b_to', 'id' => 'shipping_cost_b_to', 'maxlength' => '10', 'size' => '10', 'value' => isset($shipping_cost_b_to) ? $shipping_cost_b_to : NULL);
$data_b[] = array('sku', form_input($config1), lang('shipping_cost'), form_input($config2) . " - " . form_input($config3));
$config2 = array('name' => 'profit_rate_b_from', 'id' => 'profit_rate_b_from', 'maxlength' => '10', 'size' => '10', 'value' => isset($profit_rate_b_from) ? $profit_rate_b_from : NULL);
$config3 = array('name' => 'profit_rate_b_to', 'id' => 'profit_rate_b_to', 'maxlength' => '10', 'size' => '10', 'value' => isset($profit_rate_b_to) ? $profit_rate_b_to : NULL);
$data_b[] = array(lang('order_status'), form_dropdown('order_status_b', $status_name, isset($cur_status_b) ? $cur_status_b : NULL, 'id = order_status_b'), lang('profit_rate'), form_input($config2) . ' - ' . form_input($config3));
$config2 = array('name' => 'ship_weight_b_from', 'id' => 'ship_weight_b_from', 'maxlength' => '10', 'size' => '10', 'value' => isset($ship_weight_b_from) ? $ship_weight_b_from : NULL);
$config3 = array('name' => 'ship_weight_b_to', 'id' => 'ship_weight_b_to', 'maxlength' => '10', 'size' => '10', 'value' => isset($ship_weight_b_to) ? $ship_weight_b_to : NULL);
$data_b[] = array(lang('saler_name'), form_dropdown('saler_id_b', $sales, isset($cur_sales_b) ? $cur_sales_b : NULL, 'id = saler_id_b'), lang('ship_weight'), form_input($config2) . ' - ' . form_input($config3));
$data_b[] = array(lang('refund_verify_type'), form_dropdown('refund_verify_type_b', $refund_types, isset($cur_refund_type_b) ? $cur_refund_type_b : NULL, 'id = refund_verify_type_b'), lang('input_date'), lang('from') . block_time_picker('input_datetime_b_from', isset($input_datetime_b_from) ? $input_datetime_b_from : NULL) . lang('to') . block_time_picker('input_datetime_b_to', isset($input_datetime_b_to) ? $input_datetime_b_to : NULL));
$config1 = array('name' => 'item_titles_b', 'id' => 'item_titles_b', 'value' => isset($item_titles_b) ? $item_titles_b : NULL);
$data_b[] = array('Item titles (*)', form_input($config1), lang('ship_confirm_date'), lang('from') . block_time_picker('ship_confirm_date_b_from', isset($ship_confirm_date_b_from) ? $ship_confirm_date_b_from : NULL) . lang('to') . block_time_picker('ship_confirm_date_b_to', isset($ship_confirm_date_b_to) ? $ship_confirm_date_b_to : NULL));
$config1 = array('name' => 'item_no_b', 'id' => 'item_no_b', 'value' => isset($item_no_b) ? $item_no_b : NULL);
$data_b[] = array('Item No (*)', form_input($config1), lang('enter_cost_date'), lang('from') . block_time_picker('cost_date_b_from', isset($cost_date_b_from) ? $cost_date_b_from : NULL) . lang('to') . block_time_picker('cost_date_b_to', isset($cost_date_b_to) ? $cost_date_b_to : NULL));
$config1 = array('name' => 'state_province_b', 'id' => 'state_province_b', 'value' => isset($state_province_b) ? $state_province_b : NULL);
$data_b[] = array(lang('state_province'), form_input($config1), lang('shipping_code'), form_dropdown('shipping_code_b', $shipping_code, isset($cur_ship_code_b) ? $cur_ship_code_b : NULL, 'id = shipping_code_b'));
$config1 = array('name' => 'town_city_b', 'id' => 'town_city_b', 'value' => isset($town_city_b) ? $town_city_b : NULL);
$data_b[] = array(lang('town_city'), form_input($config1), lang('receipt_way'), form_dropdown('payment_type_b', $payment_type, isset($cur_payment_type_b) ? $cur_payment_type_b : NULL, 'id = payment_type_b'));
$config1 = array('name' => 'qties_b', 'id' => 'qties_b', 'value' => isset($qties_b) ? $qties_b : NULL);
$data_b[] = array(lang('currency_code'), form_dropdown('currency_b', $currency, isset($cur_currency_b) ? $cur_currency_b : NULL, 'id = currency_b'), lang('qty_str'), form_input($config1));
if (!isset($subscriptions)) {
    $subscriptions = array();
}
array_unshift($subscriptions, lang('select'));
$config1 = array('name' => 'reflesh', 'id' => 'reflesh', 'type' => 'submit', 'value' => lang('reflesh'), 'onclick' => 'check_reflesh()');
$url_reflesh = site_url('seo/email_search/save_subscription');
$data_b[] = array($this->block->generate_required_mark('subscription'), form_dropdown('sub_id', $subscriptions, '0', 'id = sub_id') . form_submit($config1), NULL, NULL);
/*--------------------排除查询结束---------------------------------------*/
$title = lang('email_advanced_search');
开发者ID:ohjack,项目名称:mallerp_standard,代码行数:31,代码来源:email_advanced_search.php


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