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


PHP block_header函数代码示例

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


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

示例1: block_div

    }
    $change_count_div_id = 'change_count_' . $apply_id;
    $item[] = block_div($change_count_div_id, $product->change_count);
    echo block_editor($change_count_div_id, 'name_form', $update_instock_url, "{id: {$apply_id}, type: 'change_count'}");
    $item[] = $product->updated_time;
    $item[] = $options;
    $data[] = $item;
}
$options = array();
$options[''] = lang('all');
foreach ($purchase_users as $purchase_user) {
    $options[$purchase_user->u_id] = $purchase_user->u_name;
}
$filters = array(NULL, array('type' => 'input', 'field' => 'sku', 'method' => '='), array('type' => 'input', 'field' => 'shelf_code'), NULL, array('type' => 'input', 'field' => 'product_basic.name_cn|product_basic.name_en'), array('type' => 'dropdown', 'field' => 'user.id', 'options' => $options, 'method' => '='), array('type' => 'input', 'field' => 'product_more.stock_count', 'size' => 6), NUll);
$config = array('filters' => $filters);
echo block_header(lang('product_instock_verify'));
echo $this->block->generate_pagination('product_apply');
echo form_open();
echo $this->block->generate_reset_search($config);
echo $this->block->generate_table($head, $data, $filters, 'product_apply');
echo form_close();
echo $this->block->generate_check_all();
$batch_verify_url = site_url('stock/inout/proccess_batch_instock_verify');
$config = array('name' => 'batch_approve', 'id' => 'batch_approve', 'value' => lang('batch_approve'), 'type' => 'button', 'onclick' => "batch_verify_apply_instock('{$batch_verify_url}', 1);");
$batch_verify = '<div style="padding-top: 5px; float: right; ">';
$batch_verify .= block_button($config);
$batch_verify .= repeater('&nbsp;', 4);
$config = array('name' => 'batch_reject', 'id' => 'batch_reject', 'value' => lang('batch_reject'), 'type' => 'button', 'onclick' => "batch_verify_apply_instock('{$batch_verify_url}', -1);");
$batch_verify .= block_button($config);
$batch_verify .= '</div>';
echo $batch_verify;
开发者ID:ohjack,项目名称:mallerp_standard,代码行数:31,代码来源:instock_verify.php

示例2: block_button

    $confirm = '<br/><br/>' . block_button($config);
    $rejected_url = site_url('order/return_order_auditing/auditing_order_rejecteds');
    $config_rejected = array('name' => 'rejected_' . $order->id, 'id' => 'rejected_' . $order->id, 'value' => lang('reject_it'), 'onclick' => "auditing_order_by_rejected(this, '{$rejected_url}', {$order->id});");
    $rejected = '<br/>' . block_button($config_rejected);
    $data[] = array($this->block->generate_select_checkbox($order->id), $item_info, $order_info . "<br/>" . $ship_info, $product_info, lang($order->status_name), $order->return_remark, form_dropdown('refund_verify_type', $options, $order->refund_verify_type ? $order->refund_verify_type : (!empty($default_value_obj) ? $default_value_obj->id : ''), "id = 'refund_verify_type_{$order->id}'") . '<br/>' . form_textarea($config_content) . $confirm . $rejected, form_input($config_name), $problem_sku_html);
    echo $this->block->generate_ac('refund_duty_' . $order->id, array('user', 'name'));
}
$users = $this->user_model->fetch_users_by_system_code('order');
$user_options = array();
$user_options[''] = lang('all');
foreach ($users as $user) {
    $user_options[$user->login_name] = $user->u_name;
}
$status = array('' => lang('please_select'), '11' => lang('not_received_apply_for_partial_refund'), '13' => lang('not_received_apply_for_full_refund'), '15' => lang('not_received_apply_for_resending'), '18' => lang('received_apply_for_partial_refund'), '20' => lang('received_apply_for_full_refund'), '22' => lang('received_apply_for_resending'), '25' => lang('not_shipped_apply_for_refund'));
$filters = array(NULL, array('type' => 'input', 'field' => 'item_no'), array('type' => 'input', 'field' => 'from_email|name|transaction_id|item_id_str'), array('type' => 'input', 'field' => 'sku_str|qty_str|item_title_str|item_id_str'), array('type' => 'dropdown', 'field' => 'order_status', 'options' => $status, 'method' => '='), array('type' => 'input', 'field' => 'return_remark'), NULL, NULL, NULL);
echo block_header(lang('batch_auditing_order'));
echo $this->block->generate_pagination('return_order_auditing');
$config = array('filters' => $filters);
echo form_open();
echo $this->block->generate_reset_search($config);
echo $this->block->generate_table($head, $data, $filters, 'return_order_auditing');
echo $this->block->generate_check_all();
$auditing_url = site_url('order/return_order_auditing/save_auditings');
$config = array('name' => 'order_auditing', 'id' => 'order_auditing', 'value' => lang('batch_auditing_order'), 'type' => 'button', 'onclick' => "batch_auditing_order('{$auditing_url}');");
$auditing_url_rejected = site_url('order/return_order_auditing/save_rejecteds');
$config_rejected = array('name' => 'order_rejected', 'id' => 'order_rejected', 'value' => lang('batch_rejected_order'), 'type' => 'button', 'onclick' => "batch_auditing_order('{$auditing_url_rejected}');");
$print_label = '<span style="padding-left: 20px;">';
$print_label .= block_button($config) . block_button($config_rejected);
$print_label .= '</span>';
echo $print_label;
echo form_close();
开发者ID:ohjack,项目名称:mallerp_standard,代码行数:31,代码来源:auditing_management.php

示例3: array

<?php

$head = array(lang('login_name'), lang('username'), lang('paypal_email_setting'), lang('ebay_id_setting'));
$data = array();
$url = site_url('order/setting/update_ebay_info');
foreach ($users as $user) {
    $user_id = $user->u_id;
    $ebay_info = $this->user_model->fetch_user_ebay_info($user_id);
    $data[] = array($user->login_name, $user->u_name, $this->block->generate_div("paypal_email_{$user_id}", empty($ebay_info->paypal_email_str) ? '[edit]' : $ebay_info->paypal_email_str), $this->block->generate_div("ebay_id_{$user_id}", empty($ebay_info->ebay_id_str) ? '[edit]' : $ebay_info->ebay_id_str));
    echo $this->block->generate_editor("paypal_email_{$user_id}", 'user_form', $url, "{user_id: {$user_id}, type: 'paypal_email'}");
    echo $this->block->generate_editor("ebay_id_{$user_id}", 'user_form', $url, "{user_id: {$user_id}, type: 'ebay_id'}");
}
echo block_header(lang('paypal_email_ebay_id_setting'));
echo $this->block->generate_table($head, $data);
开发者ID:ohjack,项目名称:mallerp_standard,代码行数:14,代码来源:ebay_info.php

示例4: lang

$this->table->set_caption(lang('edit_ebay_info'));
$this->table->set_heading(lang('name'), lang('value'));
$this->table->add_row(lang('name'), form_input(array('name' => 'name', 'size' => '50', 'value' => $order->name)));
$this->table->add_row(lang('address_line_1'), form_input(array('name' => 'address_line_1', 'size' => '30', 'value' => $order->address_line_1)));
$this->table->add_row(lang('address_line_2'), form_input(array('name' => 'address_line_2', 'size' => '30', 'value' => $order->address_line_2)));
$this->table->add_row(lang('town_city'), form_input($config = array('name' => 'town_city', 'size' => '20', 'value' => $order->town_city)));
$this->table->add_row(lang('state_province'), form_input(array('name' => 'state_province', 'size' => '20', 'value' => $order->state_province)));
$this->table->add_row(lang('country'), form_input(array('name' => 'country', 'size' => '10', 'value' => $order->country)));
$this->table->add_row(lang('zip_code'), form_input(array('name' => 'zip_code', 'size' => '10', 'value' => $order->zip_code)));
$params = "\$('customer_form').serialize()";
$url = site_url('order/regular_order/proccess_edit_customer_info');
$config = array('name' => 'submit', 'value' => lang('save'), 'type' => 'button', 'style' => 'margin:10px;padding:5px;', 'onclick' => "this.blur();helper.ajax('{$url}', {$params}, 1);");
$save_button = block_button($config);
$back_button = '';
//block_back_icon(site_url('order/regular_order/confirm_order'));
echo block_header(lang('edit_customer_info') . "( {$order->item_no} )" . $back_button);
$attributes = array('id' => 'customer_form');
echo form_open('', $attributes);
//-- Display Table
$table = $this->table->generate();
$this->table->clear();
$this->table->set_caption(lang('view_paypal_info'));
$this->table->set_heading(lang('name'), lang('value'));
if ($paypal) {
    $this->table->add_row(lang('name'), form_input(array('size' => '50', 'value' => $paypal->buyer_name, 'readonly' => 'readonly')));
    $this->table->add_row(lang('address_line_1'), form_input(array('size' => '30', 'value' => $paypal->street1, 'readonly' => 'readonly')));
    $this->table->add_row(lang('address_line_2'), form_input(array('size' => '30', 'value' => $paypal->street2, 'readonly' => 'readonly')));
    $this->table->add_row(lang('town_city'), form_input($config = array('size' => '20', 'value' => $paypal->city, 'readonly' => 'readonly')));
    $this->table->add_row(lang('state_province'), form_input(array('size' => '20', 'value' => $paypal->province, 'readonly' => 'readonly')));
    $this->table->add_row(lang('country'), form_input(array('size' => '10', 'value' => $paypal->country, 'readonly' => 'readonly')));
    $this->table->add_row(lang('zip_code'), form_input(array('size' => '10', 'value' => $paypal->postal_code, 'readonly' => 'readonly')));
开发者ID:ohjack,项目名称:mallerp_standard,代码行数:31,代码来源:edit_customer_info.php

示例5: array

    $config = array('name' => 'confirm_' . $order->id, 'id' => 'confirm_' . $order->id, 'value' => $confirm_order, 'onclick' => "confirm_order(this, '{$confirm_url}', {$order->id}, {$last_order});");
    $confirm = block_button($config);
    if (isset($confirm_type) && $confirm_type == 'wait_for_finance_confirmation') {
        $confirm .= '&nbsp;';
        $config = array('name' => 'return_' . $order->id, 'id' => 'return_' . $order->id, 'value' => lang('give_order_back'), 'onclick' => "finance_order_back(this, '{$give_order_back_url}', {$order->id}, {$last_order});");
        $confirm .= block_button($config);
    }
    $confirm .= '<span style="float: right;margin: 10px;">';
    $confirm .= anchor('#', lang('hold_order'), array('onclick' => "return hold_order(this, '{$hold_url}', {$order->id}, {$last_order});"));
    $confirm .= '<br/><br/>' . anchor('#', lang('close_order'), array('onclick' => "return close_order(this, '{$close_url}', {$order->id}, {$last_order});"));
    $confirm .= '<br/><br/><a href=' . $split_url . ' target=_blank>' . lang('split_order') . '</a>';
    $confirm .= '</span>';
    $row[] = $confirm;
    $data[] = $row;
}
echo block_header(lang('confirm_order'));
$options = array();
if (isset($confirm_type) && $confirm_type == 'wait_for_finance_confirmation') {
    $values = array('wait_for_finance_confirmation', 'finance_holded');
} else {
    $values = array('wait_for_confirmation', 'holded');
}
$type = 'order_status';
foreach ($values as $value) {
    $key = fetch_status_id($type, $value);
    $options[$key] = lang($value);
}
$filters = array(NULL, array('type' => 'input', 'field' => 'id', 'method' => '='), array('type' => 'input', 'field' => 'item_no|buyer_id|from_email|name|country|zip_code'), array('type' => 'input', 'field' => 'item_id_str|invoice_number|sku_str'), array('type' => 'input', 'field' => 'track_number|transaction_id', 'method' => '='), array('type' => 'dropdown', 'field' => 'order_status', 'options' => $options, 'method' => '='));
$config = array('filters' => $filters);
echo form_open();
echo $this->block->generate_pagination('order');
开发者ID:ohjack,项目名称:mallerp_standard,代码行数:31,代码来源:confirm_order.php

示例6: get_instance

<?php

$CI =& get_instance();
$head = array(lang('second_glance_amount'), lang('total_amount'), lang('second_glance_rate'), lang('input_sales'));
$data = array();
$saler_name = array();
foreach ($statistics as $statistic) {
    $saler_name = $CI->purchase_statistics_model->fetch_saler_name_by_id($statistic->saler_id);
    $data[] = array($statistic->second_glance_amount, $statistic->totable_amount, $statistic->second_glance_rate, $saler_name);
}
echo block_header(lang('second_glance_rate_statistic'));
$start_year = 2004;
$end_year = date('Y');
$years = array();
for ($i = $start_year; $i <= $end_year; $i++) {
    $years[$i] = $i;
}
$months = array();
for ($i = 1; $i <= 12; $i++) {
    $months[$i] = $i;
}
echo $this->block->generate_pagination('statistics');
echo form_open(current_url());
echo br();
echo form_label(lang('year')) . ': ' . form_dropdown('year', $years, $year);
echo repeater('&nbsp;', 3);
echo form_label(lang('month')) . ': ' . form_dropdown('month', $months, $month);
echo repeater('&nbsp;', 3);
$config = array('name' => 'submit', 'value' => lang('submit'), 'type' => 'submit');
echo block_button($config);
echo form_close();
开发者ID:ohjack,项目名称:mallerp_standard,代码行数:31,代码来源:customer_second_glance_rate.php

示例7: get_instance

$CI =& get_instance();
$data = array();
$url = site_url('admin/group/update_permission');
foreach ($all_groups as $group) {
    $systems = $this->group_model->fetch_systems_by_group_id($group->id);
    $permission_text = '';
    $system_name = '';
    foreach ($systems as $system) {
        $system_name .= lang($system->s_name) . '<br/><br>';
        if (isset($all_navs[$system->bind])) {
            $nav = $all_navs[$system->bind];
            $group_id = $group->id;
            $permission_text .= '<fieldset>';
            $permission_text .= '<legend>' . lang($system->s_name) . '</legend>';
            foreach ($nav as $title => $items) {
                $permission_text .= '<h4>' . lang($title) . '</h4>';
                foreach ($items as $key => $value) {
                    $status = $CI->check_permission($group_id, $key);
                    $checkbox = array('name' => $value, 'id' => $value, 'value' => $key, 'checked' => $status ? TRUE : FALSE, 'style' => 'margin:10px', 'onclick' => "helper.ajax('{$url}', {group_id: {$group_id}, resource: '{$key}', checked: this.checked}, 1)");
                    $permission_text .= form_checkbox($checkbox) . form_label(lang($value));
                }
                $permission_text .= '<br/>';
            }
            $permission_text .= '</fieldset>';
        }
    }
    $data[] = array($group->name, $system_name, $permission_text);
}
$filters = array();
echo block_header(lang('group_permission'));
echo $this->block->generate_table($head, $data, $filters, 'permission');
开发者ID:ohjack,项目名称:mallerp_standard,代码行数:31,代码来源:permission.php

示例8: block_header

        $item[] = $key;
        $item[] = $myproduct->name_cn;
        $item[] = $customer_sku_count[$key];
        $item[] = $customer;
        $data[] = $item;
        $i++;
        if ($i >= $limit) {
            break;
        }
    }
}
$sortable[] = 'default';
$sortable[] = 'integer';
$sortable[] = 'integer';
$sortable[] = 'integer';
echo block_header(lang('sku_rank'));
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;';
$time_lines = array();
$time_lines[0] = lang('all');
$time_lines[1] = lang('today');
$time_lines[2] = lang('yesterday');
$time_lines[3] = lang('this_week');
$time_lines[4] = lang('last_week');
$time_lines[5] = lang('this_month');
$time_lines[6] = lang('last_month');
echo form_dropdown('time_line', $time_lines, isset($time_line) ? $time_line : '0');
echo form_dropdown('orderby', array(lang('order_count'), lang('sale_amount')), isset($orderby) ? $orderby : '0');
$config = array('name' => 'limit', 'id' => 'limit', 'value' => $limit, 'maxlength' => '5', 'size' => '5');
开发者ID:ohjack,项目名称:mallerp_standard,代码行数:31,代码来源:sku_rank.php

示例9: lang

        {$lang_weight} : {$order->ship_weight} <br/>
        {$lang_confirm_user} : {$order->ship_confirm_user} <br/>
        {$lang_ship_remark} : {$order->ship_remark} <br/> | {$order->descript} <br/>
        {$lang_receive_date} : {$order->order_receive_date} <br/>
        <abbr title="{$order->sys_remark}">{$lang_sys_remark}</abbr>

SHIP;
    $row[] = $ship_info;
    $status = '';
    if ($order->email_status == 0) {
        $status = lang('order_email_status_no');
    } elseif ($order->email_status == 1) {
        $status = lang('order_email_status_yes');
    } elseif ($order->email_status == -1) {
        $status = lang('order_email_status_fail');
    } elseif ($order->email_status == -2) {
        $status = lang('order_email_status_needless');
    }
    $row[] = $status . '<br/><br/>';
    $data[] = $row;
}
echo block_header(lang('email_manage'));
$status_options = array('0' => lang('order_email_status_no'), '1' => lang('order_email_status_yes'), '-1' => lang('order_email_status_fail'), '-2' => lang('order_email_status_needless'));
$filters = array(array('type' => 'input', 'field' => 'item_no|name|shipping_address|buyer_id'), array('type' => 'input', 'field' => 'gross|transaction_id|descript|track_number'), array('type' => 'input', 'field' => 'ship_confirm_date|ship_weight|ship_confirm_user'), array('type' => 'dropdown', 'field' => 'email_status', 'options' => $status_options, 'method' => '='));
$config = array('filters' => $filters);
echo $this->block->generate_pagination('order_email');
echo form_open();
echo $this->block->generate_reset_search($config);
echo $this->block->generate_table($head, $data, $filters, 'order_email');
echo form_close();
echo $this->block->generate_pagination('order_email');
开发者ID:ohjack,项目名称:mallerp_standard,代码行数:31,代码来源:view_order.php

示例10: lang

        {$lang_ship_remark} : {$order->ship_remark} <br/> | {$order->descript} <br/>
        {$lang_receive_date} : {$order->order_receive_date} <br/>
        <abbr title="{$order->sys_remark}">{$lang_sys_remark}</abbr>

SHIP;
    $row[] = $ship_info;
    $row[] = lang(element($order->order_status, $statuses)) . '<br/><br/>';
    $row[] = $order->input_date;
    if ($priority > 1 || $CI->is_super_user()) {
        $row[] = fetch_user_name_by_id($order->saler_id);
    }
    $data[] = $row;
}
$users = $this->user_model->fetch_users_by_system_code('sale');
$user_options = array();
$user_options[''] = lang('all');
foreach ($users as $user) {
    $user_options[$user->u_id] = $user->u_name;
}
echo block_header(lang('view_order'));
$filters = array(null, array('type' => 'input', 'field' => 'item_no|name|shipping_address|buyer_id'), array('type' => 'input', 'field' => 'item_title_str|item_id_str|sku_str|is_register'), array('type' => 'input', 'field' => 'gross|transaction_id|descript|track_number'), array('type' => 'input', 'field' => 'ship_confirm_date|ship_weight|ship_confirm_user'), $this->block->generate_search_dropdown('order_status', 'order_status'), array('type' => 'date', 'field' => 'input_date', 'method' => 'from_to'));
if ($priority > 1 || $CI->is_super_user()) {
    $filters[] = array('type' => 'dropdown', 'field' => 'user_saler_input_user_map.saler_id', 'options' => $user_options, 'method' => '=');
}
$config = array('filters' => $filters);
echo $this->block->generate_pagination('order');
echo form_open();
echo $this->block->generate_reset_search($config);
echo $this->block->generate_table($head, $data, $filters, 'order');
echo form_close();
echo $this->block->generate_pagination('order');
开发者ID:ohjack,项目名称:mallerp_standard,代码行数:31,代码来源:sale_orders.php

示例11: lang

    $row[] = $stock_checker;
    $row[] = $duty;
    $row[] = $confirmed[$record->review_status];
    $row[] = $record->before_change_count;
    $row[] = $record->change_count;
    $row[] = $record->after_change_count;
    $row[] = lang($record->differences_remark);
    if ($role > 1 || $CI->is_super_user()) {
        $row[] = lang('person_responsible') . form_dropdown('duty_' . $record->id, $all_stock_user_ids, $record->duty, "id='duty_{$record->id}'") . '<br/>' . form_textarea($config) . '<br/>' . block_button($button_config);
    } else {
        $row[] = form_textarea($config);
    }
    $row[] = $record->update_time;
    $data[] = $row;
}
echo block_header(lang('stock_differences_review'));
$stock_checkers = $this->stock_model->fetch_stock_checkers_and_duty();
$checkers = array();
$checkers[''] = lang('all');
$duty = array();
$duty[''] = lang('all');
foreach ($stock_checkers as $rows) {
    if ($rows->stock_checker > 0 && $rows->duty > 0) {
        $checkers[$rows->stock_checker] = $this->user_model->get_user_name_by_id($rows->stock_checker);
        $duty[$rows->duty] = $this->user_model->get_user_name_by_id($rows->duty);
    } else {
        $duty[$rows->duty] = '#';
    }
}
$filters = array(array('type' => 'input', 'field' => 'sku'), NULL, array('type' => 'dropdown', 'field' => 'stock_checker', 'options' => $checkers, 'method' => '='), array('type' => 'dropdown', 'field' => 'duty', 'options' => $duty, 'method' => '='), array('type' => 'dropdown', 'field' => 'review_status', 'options' => $confirmed, 'method' => '='), NULL, NULL, NULL, NULL, NULL, array('type' => 'date', 'field' => 'update_time', 'method' => 'from_to'));
$config = array('filters' => $filters);
开发者ID:ohjack,项目名称:mallerp_standard,代码行数:31,代码来源:stock_differences_review.php

示例12: array

$config_button = array('name' => 'submit', 'value' => lang('search'), 'type' => 'button', 'style' => 'margin:10px', 'onclick' => "search('{$url}','{$tag}');");
if ($tag == 'order') {
    $options = array('item_no' => lang('item_number'));
    $html = lang('order_item_no_search');
} else {
    $options = array('item_no' => lang('item_number'), 'name' => lang('name'), 'transaction_id' => lang('transaction_id'), 'buyer_id' => lang('buyer_id'), 'item_id_str' => lang('item_id_str'), 'track_number' => lang('track_number'));
    $html = lang('recommend_order_search');
}
$data[] = array('<div align="center">' . $html . ':' . form_input($config_input) . ' ' . form_dropdown('type', $options, 'item_no', "id='type'") . block_button($config_button) . '</div>');
echo "<div id='search_div'>";
if ($tag == 'qt') {
    echo block_header(lang('recommend_service_list_add'));
} elseif ($tag == 'order') {
    echo block_header(lang('copy_order'));
} elseif ($tag == 'shiping_edit_number') {
    echo block_header(lang('edit_number'));
}
echo $this->block->generate_table($head, $data);
echo "</div>";
?>
<script>

function search(url, tag)
{
    var search = $('search').value;
    var type = $('type').value;
    var params = {'search' : search, 'type' : type, 'tag' : tag};

    this.blur();
    helper.update_content(url, params, 'search_div',1);
}
开发者ID:ohjack,项目名称:mallerp_standard,代码行数:31,代码来源:search.php

示例13: array

<?php

$head = array(lang('order_option'), lang('full_name'));
$data = array();
$edit_url = block_edit_link(site_url('order/setting/update_view_all'));
$str = '';
foreach ($setted_users as $user) {
    $str .= $user->u_name . '&nbsp;&nbsp;';
}
$str .= $edit_url;
$data[] = array(lang('order_view_all'), $str);
echo block_header(lang('order_view_permission_setting'));
echo block_table($head, $data);
开发者ID:ohjack,项目名称:mallerp_standard,代码行数:13,代码来源:order_view_permission.php

示例14: block_header

<?php

echo block_header(lang('notification_mode_setting'));
$options = array('1' => lang('normal_mode'), '0' => lang('dev_mode'));
$select_mode = '';
$select_mode_html = "onchange     = 'toggle_email(this.value);' id='select_mode'";
$select_mode = form_label(lang('select_mode') . ': ') . form_dropdown('select_mode', $options, $notification_mode, $select_mode_html);
$config = array('name' => 'dev_email', 'id' => 'dev_email', 'value' => $notification_dev_mode_email, 'maxlength' => '50', 'size' => '50');
$dev_mode = form_label(lang('receive_email') . ': ') . form_input($config);
$disply_none = "";
if ($notification_mode == 1) {
    $disply_none = "display:none;";
}
$select_mode .= block_div('dev_mode', $dev_mode, 'style="padding-top: 10px;' . $disply_none . '"');
$url = site_url('order/setting/proccess_update_notification_mode');
$params = "{select_mode: \$('select_mode').value, dev_email: \$('dev_email').value}";
$config = array('name' => 'submit', 'value' => lang('save'), 'type' => 'button', 'style' => 'margin:10px;padding:5px;float:right;', 'onclick' => "this.blur();helper.ajax('{$url}', {$params}, 1);");
$select_mode .= block_button($config);
$mode = block_fieldset(lang('mode'), $select_mode);
echo form_open();
echo block_div('mode', $mode);
echo form_close();
?>

<script>
    function toggle_email(val)
    {
        if (val == 1)
        {
            $('dev_mode').hide();
        }
开发者ID:ohjack,项目名称:mallerp_standard,代码行数:31,代码来源:notification_mode.php

示例15: site_url

<?php

$this->load->helper('product_permission');
$this->load->model('user_model');
$html = '';
$url = site_url('order/regular_order/do_upload');
$html .= '<br/>' . block_form_uploads('userfile', $url, NULL, 'upload_csv_file');
$html .= '&nbsp;' . block_notice_div(lang('ali_csv_file_notice'));
$html .= '<br/>';
$head = array(lang('upload_file'));
$data = array();
$data[] = array($html);
echo $error;
echo block_header(lang('add_aliexpress'));
echo block_table($head, $data);
?>


开发者ID:ohjack,项目名称:mallerp_standard,代码行数:16,代码来源:aliexpress.php


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