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


PHP block_button函数代码示例

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


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

示例1: lang

$back_button = $this->block->generate_back_icon(site_url('seo/release/manage'));
$title = lang('content_detail') . $back_button;
echo block_header($title);
echo $this->block->generate_table($head, $data, array(), NULL, 'width: 40%; float:left');
$head = array(lang('username'), lang('password'), 'URL', lang('category'), 'language', 'Verification URL', lang('options'));
$data = array();
foreach ($resources as $resource) {
    if (isset($url_count[$resource->url]) && $url_count[$resource->url] > 3) {
        continue;
    }
    $submit_url = site_url('seo/release/save_verifying');
    $url = anchor($resource->url, 'Resource URL', array('target' => '_blank', 'title' => $resource->url));
    $config_drop = array('name' => 'drop', 'value' => lang('close'), 'type' => 'button', 'style' => 'margin:10px;padding:5px;', 'onclick' => "this.blur();submit_release('{$submit_url}', {$resource->id}, {$content->id},'drop', this);return true;");
    $drop_button = form_input($config_drop);
    $config_save = array('name' => 'save', 'value' => lang('release'), 'type' => 'button', 'style' => 'margin:10px;padding:5px;', 'onclick' => "this.blur();submit_release('{$submit_url}', {$resource->id}, {$content->id},'save', this);return true;");
    $save_button = block_button($config_save);
    $config_input = array('name' => 'validate_url_' . $resource->id, 'id' => 'validate_url_' . $resource->id, 'value' => $resource ? $resource->validate_url : '', 'maxlength' => '200', 'size' => '20');
    $data[] = array($resource->username, $resource->password, $url, $resource->cat_name, $resource->language, form_input($config_input) . $save_button, $drop_button);
}
$attributes = array('id' => 'release_form');
$save_url = site_url('seo/release/save_verifying');
echo form_open($save_url, $attributes);
$options = array();
$companys = $this->seo_service_company_model->fetch_all_service_companys();
$options[-1] = lang('all');
foreach ($companys as $company) {
    $options[$company->id] = $company->name;
}
$url = site_url_no_key('seo/content_edit/content_detail');
$url_key = site_key('seo/content_edit/content_detail');
$js = "onChange='filter_company_resource(\"{$url}\", \"{$url_key}\", {$content->id}, this.value);'";
开发者ID:ohjack,项目名称:mallerp_standard,代码行数:31,代码来源:content_detail.php

示例2: foreach

    foreach ($purchase_users as $purchase_user) {
        $config = array('name' => 'permissions[]', 'value' => $purchase_user->u_id, 'checked' => in_array($purchase_user->u_id, $permission_array) ? TRUE : FALSE, 'style' => 'margin:10px');
        $permission .= form_checkbox($config) . form_label($purchase_user->u_name);
    }
    $data[] = array($this->block->generate_required_mark(lang('purchase_permission')), $permission);
    $title = lang('edit_a_provider');
    $title .= $this->block->generate_back_icon(site_url('purchase/provider/management'));
    $back_button = $this->block->generate_back_icon(site_url('purchase/provider/management'));
} else {
    $title = lang('provider_detail');
    $title .= $this->block->generate_back_icon(site_url('purchase/provider/view_list'));
    $back_button = $this->block->generate_back_icon(site_url('purchase/provider/view_list'));
}
$option_users = array();
foreach ($purchase_users as $purchase_user) {
    $option_users[$purchase_user->u_id] = $purchase_user->u_name;
}
$data[] = array($this->block->generate_required_mark(lang('edit_creator')), form_dropdown('edit_user', $option_users, $provider ? $provider->edit_user : ''));
echo block_header($title);
$attributes = array('id' => 'edit_provider_form');
echo form_open(site_url('purchase/provider/edit_save'), $attributes);
echo $this->block->generate_table($head, $data);
if ($action == 'edit') {
    $url = site_url('purchase/provider/edit_save', array('provider_id' => $provider ? $provider->id : ''));
    $config = array('name' => 'submit', 'value' => 'Save provider!', 'type' => 'button', 'style' => 'margin:10px', 'onclick' => "this.blur();helper.ajax('{$url}',\$('edit_provider_form').serialize(true), 1);");
    $attributes = array('id' => $provider ? $provider->id : '', 'type' => 'button', 'style' => 'margin:10px');
    $url = site_url('purchase/provider/provider_sku_manage', array('provider_id' => $provider ? $provider->id : ''));
    $add_button = anchor($url, lang('manage_sku'), $attributes);
    echo '<h2>' . block_button($config) . $add_button . $back_button . '</h2>';
}
echo form_close();
开发者ID:ohjack,项目名称:mallerp_standard,代码行数:31,代码来源:edit.php

示例3: 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

示例4: array

<?php

$head = array('<br/>');
$config_input = array('name' => 'url_search', 'id' => 'url_search', 'maxlength' => '50', 'size' => '50');
$url = site_url('seo/seo_rank/seo_rank_result');
$id = "result";
$config_button = array('name' => 'submit', 'value' => lang('search'), 'type' => 'button', 'style' => 'margin:10px', 'onclick' => "return search('{$url}', '{$id}');");
$data[] = array('<div align="center">' . lang('search_by_url') . ': ' . form_input($config_input) . ' ' . block_button($config_button) . '<div>');
echo $this->block->generate_table($head, $data);
?>

<div id="result">
</div>
<script type='text/javascript'>

function search(url,id)
{
    var search = $('url_search').value;
    var params = {'url_search' : search};
    this.blur();
    helper.update_content(url, params,id, 1);
    return false;
}

</script>
开发者ID:ohjack,项目名称:mallerp_standard,代码行数:25,代码来源:seo_rank_search.php

示例5: form_open

echo form_open();
echo $this->block->generate_pagination('order');
echo $this->block->generate_reset_search($config);
echo $this->block->generate_table($head, $data, $filters, 'order');
echo form_close();
echo $this->block->generate_check_all();
$batch_confirm_url = site_url('order/regular_order/make_batch_confirmed');
$batch_confirm_order = lang('batch_confirm_order');
if (isset($confirm_type) && $confirm_type == 'wait_for_finance_confirmation') {
    //    $confirm_url = site_url('finance/finance_order/make_batch_confirmed');
    $batch_confirm_url = site_url('finance/finance_order/make_batch_confirmed');
    $batch_confirm_order = lang('batch_approve');
}
$config = array('name' => 'batch_confirm', 'id' => 'batch_confirm', 'value' => $batch_confirm_order, 'type' => 'button', 'onclick' => "batch_confirm_order('{$batch_confirm_url}');");
$batch_confirm = '<div style="float: right; ">';
$batch_confirm .= block_button($config);
$batch_confirm .= '</div>';
echo $batch_confirm;
echo '<div style="clear:both;"></div>';
echo $this->block->generate_pagination('order');
echo block_notice_div(lang('note') . ': <br/>' . lang('confirm_order_notice'));
?>

<script>
    function remove_item(obj)
    {
        if (confirm('Are you sure?'))
        { 
            $(obj.parentNode).remove(); 
        }
    }
开发者ID:ohjack,项目名称:mallerp_standard,代码行数:31,代码来源:confirm_order.php

示例6: array

<?php

$head = array(lang('ship_order_no'), lang('sku'), lang('box_contain_number'), lang('processing_status'), lang('storage_code'), lang('created_date'), lang('instock_num'), lang('options'));
$data = array();
foreach ($move_stock_lists as $move_stock_list) {
    if ($move_stock_list->status == 0) {
        $url = site_url('stock/move_stock/confirm_arrival_received', array($move_stock_list->id));
        //$url = site_url('stock/move_stock/confirm_arrival_received');
        $config = array('name' => 'name', 'value' => lang('confirm_arrival'), 'type' => 'button', 'onclick' => "confirm_arrival_received(this, '{$url}',{$move_stock_list->id});");
        $edit_button = '';
        $edit_button .= block_button($config);
        $config = array('type' => 'input', 'name' => 'received_count_' . $move_stock_list->id, 'id' => 'received_count_' . $move_stock_list->id, 'maxlength' => '50', 'size' => '14', 'value' => $move_stock_list->qty_str);
        $edit_button .= '<br/>' . lang('instock_num') . ' ' . form_input($config) . '<br/>' . lang('multi_products_seperate_by_comma');
    } else {
        $edit_button = '';
    }
    if ($move_stock_list->status == 0) {
        $status = lang('in_transit');
    } elseif ($move_stock_list->status == 1) {
        $status = lang('received');
    }
    $data[] = array($move_stock_list->ship_order_no, $move_stock_list->sku_str, $move_stock_list->qty_str, $status, $move_stock_list->storage_code, $move_stock_list->created_date, $move_stock_list->received_count, $edit_button);
}
$filters = array(array('type' => 'input', 'field' => 'ship_order_no'), array('type' => 'input', 'field' => 'sku_str'), '', $this->block->generate_search_dropdown('status', 'status'), '');
$config = array('filters' => $filters);
$title = lang('confirm_arrival');
echo block_header($title);
echo $this->block->generate_pagination('move_stock_list');
echo $this->block->generate_reset_search($config);
echo $this->block->generate_table($head, $data, $filters);
echo $this->block->generate_pagination('move_stock_list');
开发者ID:ohjack,项目名称:mallerp_standard,代码行数:31,代码来源:move_stock_list.php

示例7: lang

    $address = lang('address');
    $customer_information = <<<CUSTOMER
<div style='padding: 10px;'>
{$name}: {$order->name}<br/>
{$address}: {$order->address_line_1}  {$order->address_line_2}<br/>
{$town_city}: {$order->town_city}<br/>
{$state_province}: {$order->state_province}<br/>
{$country}: {$order->country}<br/>
{$zip_code}: {$order->zip_code}<br/><br/>
</div>
CUSTOMER;
    $row[] = $customer_information;
    $row[] = $order->input_date;
    $row[] = empty($order->stock_user_id) ? '' : element($order->stock_user_id, $all_stock_user_ids, '');
    $config = array('name' => 'confirm_' . $order->id, 'id' => 'confirm_' . $order->id, 'value' => lang('force_change'), 'onclick' => "force_change(this, '{$force_change_url}', {$order->id}, 1);");
    $give_back = block_button($config);
    $row[] = $give_back;
    $data[] = $row;
}
$title = lang('wait_for_purchase_order_list');
echo block_header($title);
$filters = array(NULL, array('type' => 'input', 'field' => 'item_no'), array('type' => 'input', 'field' => 'sku_str'), array('type' => 'input', 'field' => 'country|state_province|town_city|name'));
$filters[] = array('type' => 'date', 'field' => 'input_date', 'method' => 'from_to');
$filters[] = array('type' => 'dropdown', 'field' => 'stock_user_id', 'options' => $all_stock_user_ids, 'default' => $stock_user_id, 'method' => '=');
$config = array('filters' => $filters);
echo $this->block->generate_pagination('order_list');
echo form_open();
echo $this->block->generate_reset_search($config);
echo $this->block->generate_table($head, $data, $filters, 'order_list');
echo form_close();
echo $this->block->generate_pagination('order_list');
开发者ID:ohjack,项目名称:mallerp_standard,代码行数:31,代码来源:wait_for_purchase_order_list.php

示例8: lang

        $payment_options[$payment_state->s_id] = lang('not_review');
    } elseif ($payment_state->s_name == 'paid_zero') {
        $payment_options[$payment_state->s_id] = lang('paid_zero');
    } elseif ($payment_state->s_name == 'paid_part') {
        $payment_options[$payment_state->s_id] = lang('paid_part');
    } else {
        $payment_options[$payment_state->s_id] = lang('paid_all');
    }
}
$filters = array(NULL, array('type' => 'input', 'field' => 'purchase_order.item_no'), array('type' => 'input', 'field' => 'purchase_provider.name'), array('type' => 'dropdown', 'field' => 'purchase_order.payment_type', 'options' => $payment_types, 'method' => '='), array(), array(), array('type' => 'input', 'field' => 'purchase_order.item_cost'), array(), array('type' => 'dropdown', 'field' => 'status_map.status_id', 'options' => $payment_options, 'method' => '='), $review_state, array('type' => 'dropdown', 'field' => 'user.id', 'options' => $options, 'method' => '='));
echo $this->block->generate_pagination('finance_pending');
$config = array('filters' => $filters);
echo form_open();
echo $this->block->generate_reset_search($config);
echo $this->block->generate_table($head, $data, $filters, 'finance_pending');
$check_all = $this->block->generate_check_all();
echo $check_all;
$url_status = site_url('purchase/finance/batch_update_purchase_order_status', array('tag' => 'update_status'));
$config_status = array('name' => 'purchase_order_status', 'id' => 'purchase_order_status', 'value' => lang('modification_purchase_order_status'), 'type' => 'button', 'onclick' => "update_purchase_order_status('{$url_status}');");
$url_review = site_url('purchase/finance/batch_update_purchase_order_status', array('tag' => 'batch_review'));
$config_review = array('name' => 'batch_review', 'id' => 'batch_review', 'value' => lang('batch_approve'), 'type' => 'button', 'onclick' => "update_purchase_order_status('{$url_review}');");
$print_label = '<span style="padding-left: 20px;">';
$print_label .= block_button($config_status) . block_button($config_review);
$print_label .= '</span>';
echo $print_label;
echo form_close();
echo $this->block->generate_pagination('finance_pending');
?>


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

示例9: array

<?php

$head = array(lang('suggest_price'), lang('buyer_shipping_cost'), lang('list_fee'), lang('trade_fee'), lang('pay_fee'), lang('shipping_fee') . "-{$shipping_type_name}", lang('other_cost'), lang('total_cost'), lang('total_profit'), lang('total_profit_rate'), lang('options'));
$data = array();
$url = site_url('sale/price/calculate_profit');
$config = array('name' => 'calculate_profit', 'id' => 'calculate_profit', 'value' => lang('calculate_profit'), 'onclick' => "calculate_profit('{$url}');");
$calculate_profit = block_button($config);
$config = array('name' => 'suggest_price', 'id' => 'suggest_price', 'value' => price(to_foreigh_currency($currency_code, $suggest_price)), 'maxlength' => '20', 'size' => '8');
$suggest_price_str = "<div style='padding:5px;'>" . $currency_code . ": " . form_input($config) . br() . br() . $default_currency_code . ": " . price($suggest_price) . "</div>";
$total_weight_str = '';
if (isset($total_weight)) {
    $total_weight_str = "<div style='padding:5px;'>" . lang('total_weight') . ": " . $total_weight . "</div>";
}
$data[] = array($suggest_price_str, _get_currency_str($currency_code, $default_currency_code, $buyer_shipping_cost), _get_currency_str($currency_code, $default_currency_code, $list_fee), _get_currency_str($currency_code, $default_currency_code, $trade_fee), _get_currency_str($currency_code, $default_currency_code, $pay_fee), $total_weight_str . _get_currency_str($currency_code, $default_currency_code, $shipping_cost), _get_currency_str($currency_code, $default_currency_code, $other_cost), _get_currency_str($currency_code, $default_currency_code, $total_cost), $default_currency_code . ": " . price($total_profit), price($total_profit_rate, 4), $calculate_profit);
echo block_table($head, $data);
echo br();
function _get_currency_str($currency_code, $default_currency_code, $price)
{
    return "<div style='padding:5px;'>" . $currency_code . ": " . price(to_foreigh_currency($currency_code, $price)) . br() . br() . $default_currency_code . ": " . price($price) . "</div>";
}
开发者ID:ohjack,项目名称:mallerp_standard,代码行数:20,代码来源:calculate_price_result.php

示例10: lang

} else {
    $title = lang('add_a_new_catalog');
}
$back_button = $this->block->generate_back_icon(site_url('pi/catalog/manage'));
echo block_header($title . $back_button);
$attributes = array('id' => 'catalog_form');
echo form_open(site_url('pi/catalog/save_catalog'), $attributes);
echo $this->block->generate_table($head, $data);
$url = site_url('pi/catalog/save_catalog');
$old_tester = isset($product_catalog) ? $product_catalog->tester_id : '';
$old_seo_user_id = isset($product_catalog) ? $product_catalog->seo_user_id : '';
$lang = lang('check_tester');
$lang_seo = lang('check_seo_user_id');
$config = array('name' => 'submit', 'value' => 'Save product!', 'type' => 'button', 'style' => 'margin:10px', 'onclick' => "check_tester_data('{$url}','{$old_tester}','{$lang}','{$old_seo_user_id}','{$lang_seo}')");
echo form_hidden('catalog_id', isset($product_catalog) ? $product_catalog->id : '-1');
echo block_button($config) . $back_button;
$js_array = '$A([';
if (isset($product_catalog)) {
    $items = explode('>', $product_catalog->path);
    $count = count($items);
    for ($i = 0; $i < $count; $i++) {
        $js_array .= $items[$i];
        if ($i < $count - 1) {
            $js_array .= ',';
        }
    }
}
$js_array .= '])';
?>

<script>
开发者ID:ohjack,项目名称:mallerp_standard,代码行数:31,代码来源:add_edit_catalog.php

示例11: secs_to_readable

    $delay_time = secs_to_readable($shipping_order->delay_times);
    $which_table = $this->order_check_model->check_exists('order_list', array('id' => $shipping_order->id, 'transaction_id' => $shipping_order->transaction_id));
    //    $table_order_id = ($which_table > 0) ? 'o_l_' . $shipping_order->id : 'o_l_c_' . $shipping_order->id;
    $data[] = array($this->block->generate_select_checkbox($shipping_order->id), isset($shipping_order) ? $shipping_order->submit_date : '', $delay_time['days'] . lang('day') . $delay_time['hours'] . lang('hour'), $item_html, $shipping_order->gross, $detal_html, $this->block->generate_div("state_{$shipping_order->id}", empty($shipping_order->state) ? lang('select') : lang($shipping_order->state)), $shipping_order->submit_remark, $this->block->generate_div("answer_remark_{$shipping_order->id}", empty($shipping_order->answer_remark) ? '[edit]' : $shipping_order->answer_remark));
    echo $this->block->generate_editor("answer_remark_{$shipping_order->id}", 'shipping_orders_form', $shipping_order_url, "{id: {$shipping_order->id}, type: 'answer_remark'}");
    echo $this->block->generate_editor("state_{$shipping_order->id}", 'shipping_orders_form', $shipping_order_url, "{id: {$shipping_order->id}, type: 'state'}", "{$collection}");
}
$title = lang('order_check_manage');
$options[''] = lang('all');
$options['have_to_wait_for_the_result'] = lang('have_to_wait_for_the_result');
$options['determined_through_a'] = lang('determined_through_a');
$options['sure_is_lost'] = lang('sure_is_lost');
$options['obtain_compensation'] = lang('obtain_compensation');
$options['not_handled'] = lang('not_handled');
$options['closed'] = lang('closed');
$filters = array(NULL, array('type' => 'input', 'field' => 'submit_date'), NULL, array('type' => 'input', 'field' => 'item_no|track_number'), array('type' => 'input', 'field' => 'gross'), array('type' => 'input', 'field' => 'name|zip_code|contact_phone_number|transaction_id'), array('type' => 'dropdown', 'field' => 'state', 'options' => $options, 'method' => '='), array('type' => 'input', 'field' => 'order_check_list.submit_remark'), array('type' => 'input', 'field' => 'order_check_list.answer_remark'));
echo block_header($title);
$print_order_check_url = site_url('order/order_check/print_order_check');
echo form_open($print_order_check_url);
echo $this->block->generate_pagination('sale_orders_check');
$config = array('filters' => $filters);
echo $this->block->generate_reset_search($config);
echo $this->block->generate_table($head, $data, $filters, 'sale_orders_check');
echo $this->block->generate_check_all();
$config = array('name' => 'print_order_check', 'id' => 'print_order_check', 'value' => lang('print_order_check'), 'type' => 'submit');
$print_order_check = '<span style="padding-left: 20px;">';
$print_order_check .= block_button($config);
$print_order_check .= '</span>';
echo $print_order_check;
echo $this->block->generate_pagination('sale_orders_check');
echo form_close();
开发者ID:ohjack,项目名称:mallerp_standard,代码行数:31,代码来源:shipping_order_check_manage.php

示例12: array

    $item = array(anchor(site_url('seo/content_edit/add_edit', array('id' => $resource->content_id)), $resource->title), anchor(site_url('seo/resource/add_edit', array('id' => $resource->resource_id)), $resource->url), $resource->con_type, $resource->res_category);
    $item[] = fetch_user_name_by_id($resource->owner_id);
    //    $item[] = $resource->validate_url;
    $edit_button = $this->block->generate_edit_link(site_url('seo/release/update_validate_url', array($resource->id)));
    $validate_limit = string_limiter($resource->validate_url, 0, 20);
    $item[] = "<a href='{$resource->validate_url}' title='{$resource->validate_url}' target='_blank'>" . $validate_limit . "</a>" . $edit_button;
    $item[] = $resource->created_date;
    $item[] = $resource->remark;
    $item[] = $status;
    if ($priority > 1 && ($resource->status == '-1' || $resource->status == '0') || $CI->is_super_user() && ($resource->status == '-1' || $resource->status == '0') || $priority > 1 && 'personal' == $tag && ($resource->status == '-1' || $resource->status == '0')) {
        $url_successful = site_url('seo/release/released_validate', array('successful'));
        $config_successful = array('name' => 'submit', 'value' => lang('handwork_validate_successful'), 'type' => 'button', 'style' => 'margin:10px', 'onclick' => "handwork_validate(this, '{$url_successful}', {$resource->id}, 0, false);");
        $url_failure = site_url('seo/release/released_validate', array('failure'));
        $config_failure = array('name' => 'submit', 'value' => lang('handwork_validate_failure'), 'type' => 'button', 'style' => 'margin:10px', 'onclick' => "handwork_validate(this, '{$url_failure}', {$resource->id}, 0, true);");
        //        echo '<h2>'.block_button($config).'</h2>';
        $item[] = block_button($config_successful) . br() . block_button($config_failure);
    } else {
        $item[] = '';
    }
    $data[] = $item;
}
$users = $this->user_model->fetch_users_by_system_code('seo');
$user_options[''] = lang('all');
foreach ($users as $user) {
    $user_options[$user->u_id] = $user->u_name;
}
$con_types = $this->seo_model->fetch_all_content_type();
$con_type_options[''] = lang('all');
foreach ($con_types as $con_type) {
    $con_type_options[$con_type->name] = $con_type->name;
}
开发者ID:ohjack,项目名称:mallerp_standard,代码行数:31,代码来源:released_management.php

示例13: site_url

<?php

$url = site_url('admin/crontab/crontab_add_row');
$add_button = $this->block->generate_add_icon($url);
$head = array(lang('on'), lang('job'), lang('description'), lang('creator'), lang('created_date'), lang('options') . $add_button);
$data = array();
$crontab_url = site_url('admin/crontab/verify_crontab');
foreach ($crontabresult as $show_result) {
    $drop_button = $this->block->generate_drop_icon('admin/crontab/crontab_delete', "{id: {$show_result->id}}", TRUE);
    $data[] = array($this->block->generate_div("on_{$show_result->id}", empty($show_result->on) ? '[edit]' : $show_result->on), $this->block->generate_div("job_{$show_result->id}", empty($show_result->job) ? '[edit]' : $show_result->job), $this->block->generate_div("description_{$show_result->id}", empty($show_result->description) ? '[edit]' : $show_result->description), fetch_user_name_by_id($show_result->creator), $show_result->created_date, $drop_button);
    echo $this->block->generate_editor("on_{$show_result->id}", 'crontab_view_form', $crontab_url, "{id: {$show_result->id} ,type: 'on'}");
    echo $this->block->generate_editor("job_{$show_result->id}", 'crontab_view_form', $crontab_url, "{id: {$show_result->id} ,type: 'job'}");
    echo block_editor("description_{$show_result->id}", 'crontab_view_form', $crontab_url, "{id: {$show_result->id} ,type: 'description'}");
}
$title = lang('admin_crontab');
echo block_header($title);
echo $this->block->generate_table($head, $data);
$activate_crontab_url = site_url('admin/crontab/activate_crontab');
$view_crontab_url = site_url('admin/crontab/view_crontab_list');
$config = array('name' => 'activate_crontab', 'id' => 'activate_crontab', 'value' => lang('activate_crontab_again'), 'type' => 'button', 'onclick' => "helper.ajax('{$activate_crontab_url}', {}, 1);");
$activate_crontab = '<div style="float: right; ">';
echo br();
$activate_crontab .= block_button($config);
$attributes = "onclick=\"helper.update_content('{$view_crontab_url}', {}, 'crontab_list_div'); return false;\"";
$activate_crontab .= ' ' . anchor(current_url(), lang('view_crontab_list'), $attributes);
$activate_crontab .= '</div>';
echo $activate_crontab;
echo '<div style="clear:both;"></div>';
echo '<div id="crontab_list_div" style="display:none;"></div>';
开发者ID:ohjack,项目名称:mallerp_standard,代码行数:29,代码来源:crontab_view.php

示例14: array

if (isset($action) && $action == 'cost_view_list') {
    $filters[5] = array('type' => 'input', 'field' => 'shipping_cost');
    $filters[] = array('type' => 'date', 'field' => 'cost_date', 'method' => 'from_to');
    $title_html = block_header(lang('view_costs'));
}
echo $title_html;
echo $this->block->generate_pagination('accounting_cost');
$config = array('filters' => $filters);
echo form_open();
echo $this->block->generate_reset_search($config);
echo $this->block->generate_table($head, $data, $filters, 'accounting_cost');
$check_all = $this->block->generate_check_all();
echo $check_all;
$accounting_url = site_url('finance/accounting_cost/save_accounting_costs');
$config = array('name' => 'accounting_costs', 'id' => 'accounting_costs', 'value' => lang('accounting_costs'), 'type' => 'button', 'onclick' => "accounting_cost('{$accounting_url}');");
$print_label = '<span style="padding-left: 20px;">';
$print_label .= block_button($config);
$print_label .= '</span>';
echo $print_label;
echo form_close();
$attributes = array('id' => 'download_form');
$accounting_url_download = site_url('finance/accounting_cost/download_order_info');
echo "<div style='clear:both; margin-top:-25px;float:right;'>";
echo form_open($accounting_url_download, $attributes);
$config = array('name' => 'order_ids_str', 'id' => 'order_ids_str', 'value' => '', 'type' => 'hidden');
$config_download = array('name' => 'download', 'id' => 'download', 'value' => lang('download'), 'type' => 'submit', 'onClick' => "accounting_cost_download();");
echo block_button($config_download);
echo form_input($config);
echo form_close();
echo "</div>";
echo $this->block->generate_pagination('accounting_cost');
开发者ID:ohjack,项目名称:mallerp_standard,代码行数:31,代码来源:cost_management.php

示例15: array

        $duty = $this->user_model->get_user_name_by_id($record->duty);
    } else {
        $duty = '#';
    }
    $row = array();
    $row[] = $record->sku;
    $row[] = $this->block->generate_image($product_image_url);
    $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);
开发者ID:ohjack,项目名称:mallerp_standard,代码行数:31,代码来源:stock_differences_review.php


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