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


PHP AForm::setForm方法代码示例

本文整理汇总了PHP中AForm::setForm方法的典型用法代码示例。如果您正苦于以下问题:PHP AForm::setForm方法的具体用法?PHP AForm::setForm怎么用?PHP AForm::setForm使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在AForm的用法示例。


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

示例1: main

 public function main()
 {
     //init controller data
     $this->extensions->hk_InitData($this, __FUNCTION__);
     $grid_settings = array('table_id' => 'report_purchased_grid', 'url' => $this->html->getSecureURL('listing_grid/report_purchased'), 'sortname' => 'quantity', 'columns_search' => false, 'multiselect' => 'false', 'search_form' => true);
     $grid_settings['colNames'] = array($this->language->get('column_name'), $this->language->get('column_model'), $this->language->get('column_quantity'), $this->language->get('column_total'));
     $grid_settings['colModel'] = array(array('name' => 'name', 'index' => 'name', 'width' => 300, 'align' => 'left', 'sortable' => false), array('name' => 'model', 'index' => 'model', 'width' => 80, 'align' => 'center', 'sortable' => false), array('name' => 'quantity', 'index' => 'quantity', 'width' => 50, 'align' => 'center', 'sortable' => false), array('name' => 'total', 'index' => 'total', 'width' => 90, 'align' => 'center', 'sortable' => false));
     $grid = $this->dispatch('common/listing_grid', array($grid_settings));
     $this->view->assign('listing_grid', $grid->dispatchGetOutput());
     //prepare the filter form
     //Note: External search form needs to be named [grid_name]_search
     //		In this case it will be auto submited to filter grid
     $form = new AForm();
     $form->setForm(array('form_name' => 'report_purchased_grid_search'));
     $this->data['grid_search_form'] = array();
     $this->data['grid_search_form']['id'] = 'report_purchased_grid_search';
     $this->data['grid_search_form']['form_open'] = $form->getFieldHtml(array('type' => 'form', 'name' => 'report_purchased_grid_search', 'action' => ''));
     $this->data['grid_search_form']['submit'] = $form->getFieldHtml(array('type' => 'button', 'name' => 'submit', 'text' => $this->language->get('button_go'), 'style' => 'button1'));
     $this->view->assign('js_date_format', format4Datepicker($this->language->get('date_format_short')));
     $this->data['grid_search_form']['fields']['date_start'] = $form->getFieldHtml(array('type' => 'input', 'name' => 'date_start', 'default' => dateInt2Display(strtotime('-30 day'))));
     $this->data['grid_search_form']['fields']['date_end'] = $form->getFieldHtml(array('type' => 'input', 'name' => 'date_end', 'default' => dateInt2Display(time())));
     $this->view->assign('search_form', $this->data['grid_search_form']);
     $this->document->initBreadcrumb(array('href' => $this->html->getSecureURL('index/home'), 'text' => $this->language->get('text_home'), 'separator' => FALSE));
     $this->document->addBreadcrumb(array('href' => $this->html->getSecureURL('report/purchased'), 'text' => $this->language->get('heading_title'), 'separator' => ' :: ', 'current' => true));
     $this->document->setTitle($this->language->get('heading_title'));
     $this->processTemplate('pages/report/purchased.tpl');
     //update controller data
     $this->extensions->hk_UpdateData($this, __FUNCTION__);
 }
开发者ID:siddht1,项目名称:abantecart-src,代码行数:29,代码来源:purchased.php

示例2: getBlockContent

 protected function getBlockContent($instance_id)
 {
     $block_info = $this->layout->getBlockDetails($instance_id);
     $custom_block_id = $block_info['custom_block_id'];
     $descriptions = $this->layout->getBlockDescriptions($custom_block_id);
     if ($descriptions[$this->config->get('storefront_language_id')]) {
         $key = $this->config->get('storefront_language_id');
     } else {
         $key = $descriptions ? key($descriptions) : null;
     }
     if ($descriptions[$key]['content']) {
         $content = unserialize($descriptions[$key]['content']);
     } else {
         $content = array('form_id' => null);
     }
     $this->loadModel('tool/forms_manager');
     $form_data = $this->model_tool_forms_manager->getForm($content['form_id']);
     if (empty($form_data)) {
         return array();
     }
     $field_types = $this->model_tool_forms_manager->getFieldTypes($content['form_id']);
     $form = new AForm();
     $form->loadFromDb($form_data['form_name']);
     $form_info = $form->getForm();
     $form_info['controller'] = $form_info['controller'] . '&form_id=' . $content['form_id'];
     $form->setForm($form_info);
     if (isset($this->session->data['custom_form_' . $content['form_id']]['errors'])) {
         $form->setErrors($this->session->data['custom_form_' . $content['form_id']]['errors']);
         unset($this->session->data['custom_form_' . $content['form_id']]['errors']);
     }
     $output = array('title' => $key ? $descriptions[$key]['title'] : '', 'content' => $form->getFormHtml(), 'block_wrapper' => $key ? $descriptions[$key]['block_wrapper'] : 0, 'block_framed' => $key ? (int) $descriptions[$key]['block_framed'] : 0);
     return $output;
 }
开发者ID:siddht1,项目名称:abantecart-src,代码行数:33,代码来源:custom_form_block.php

示例3: main

 public function main()
 {
     //init controller data
     $this->extensions->hk_InitData($this, __FUNCTION__);
     $grid_settings = array('table_id' => 'report_sales_grid', 'url' => $this->html->getSecureURL('listing_grid/report_sale'), 'sortname' => 'date_end', 'columns_search' => false, 'multiselect' => 'false');
     $form = new AForm();
     $form->setForm(array('form_name' => 'report_sales_grid_search'));
     $this->data['grid_search_form'] = array();
     $this->data['grid_search_form']['id'] = 'report_sales_grid_search';
     $this->data['grid_search_form']['form_open'] = $form->getFieldHtml(array('type' => 'form', 'name' => 'report_sales_grid_search', 'action' => ''));
     $this->data['grid_search_form']['submit'] = $form->getFieldHtml(array('type' => 'button', 'name' => 'submit', 'text' => $this->language->get('button_go'), 'style' => 'button1'));
     $this->data['grid_search_form']['reset'] = $form->getFieldHtml(array('type' => 'button', 'name' => 'reset', 'text' => $this->language->get('button_reset'), 'style' => 'button2'));
     $this->view->assign('js_date_format', format4Datepicker($this->language->get('date_format_short')));
     $this->data['grid_search_form']['fields']['date_start'] = $form->getFieldHtml(array('type' => 'input', 'name' => 'date_start', 'default' => dateInt2Display(strtotime('-7 day'))));
     $this->data['grid_search_form']['fields']['date_end'] = $form->getFieldHtml(array('type' => 'input', 'name' => 'date_end', 'default' => dateInt2Display(time())));
     $groups = array();
     $groups['year'] = $this->language->get('text_year');
     $groups['month'] = $this->language->get('text_month');
     $groups['week'] = $this->language->get('text_week');
     $groups['day'] = $this->language->get('text_day');
     $this->data['grid_search_form']['fields']['status'] = $form->getFieldHtml(array('type' => 'selectbox', 'name' => 'group', 'options' => $groups, 'value' => "week"));
     $grid_settings['search_form'] = true;
     $grid_settings['colNames'] = array($this->language->get('column_date_start'), $this->language->get('column_date_end'), $this->language->get('column_orders'), $this->language->get('column_total'));
     $grid_settings['colModel'] = array(array('name' => 'date_start', 'index' => 'date_start', 'width' => 100, 'align' => 'center', 'sorttype' => 'string'), array('name' => 'date_end', 'index' => 'date_end', 'width' => 100, 'align' => 'center', 'sorttype' => 'string'), array('name' => 'orders', 'index' => 'orders', 'width' => 100, 'align' => 'center', 'sorttype' => 'string'), array('name' => 'total', 'index' => 'total', 'width' => 110, 'align' => 'right'));
     $grid = $this->dispatch('common/listing_grid', array($grid_settings));
     $this->view->assign('listing_grid', $grid->dispatchGetOutput());
     $this->view->assign('search_form', $this->data['grid_search_form']);
     $this->document->setTitle($this->language->get('heading_title'));
     $this->document->initBreadcrumb(array('href' => $this->html->getSecureURL('index/home'), 'text' => $this->language->get('text_home'), 'separator' => FALSE));
     $this->document->addBreadcrumb(array('href' => $this->html->getSecureURL('report/viewed'), 'text' => $this->language->get('heading_title'), 'separator' => ' :: '));
     $this->document->addScript(RDIR_TEMPLATE . 'javascript/jquery/ui/jquery.ui.datepicker.js');
     $this->processTemplate('pages/report/sale.tpl');
     //update controller data
     $this->extensions->hk_UpdateData($this, __FUNCTION__);
 }
开发者ID:harshzalavadiya,项目名称:fatak,代码行数:35,代码来源:sale.php

示例4: main

 public function main()
 {
     $this->loadModel('tool/developer_tools');
     $this->loadLanguage('developer_tools/developer_tools');
     $prj_id = func_get_arg(0);
     $prj_config = $this->model_tool_developer_tools->getProjectConfig($prj_id);
     $this->data['text_layout_xml_tab'] = $this->language->get('text_layout_xml_tab');
     $this->data['text_select_template'] = $this->language->get('text_select_template');
     $this->data['filepath'] = DIR_EXT . $prj_config['extension_txt_id'] . '/layout.xml';
     $this->data['relative_path'] = 'extensions/' . $prj_config['extension_txt_id'] . '/layout.xml';
     $exist = file_exists($this->data['filepath']) ? true : false;
     if ($exist) {
         $this->data['text_view_layout_xml'] = $this->language->get('text_view_layout_xml');
     }
     $result = $this->db->query("SELECT DISTINCT template_id\n\t\t\t\t\t\t\t\t\tFROM " . DB_PREFIX . "layouts");
     foreach ($result->rows as $row) {
         $templates[$row['template_id']] = $row['template_id'];
     }
     $form = new AForm('ST');
     $form->setForm(array('form_name' => 'extLayoutFrm', 'update' => ''));
     $this->data['form']['id'] = 'extLayoutFrm';
     $this->data['form']['form_open'] = $form->getFieldHtml(array('type' => 'form', 'name' => 'extLayoutFrm', 'action' => $this->data['action']));
     $this->data['form']['submit'] = $form->getFieldHtml(array('type' => 'button', 'name' => 'submit', 'text' => $this->language->get('text_save_layout_xml'), 'style' => 'button1'));
     $this->data['form']['template'] = $form->getFieldHtml(array('type' => 'selectbox', 'name' => 'template_id', 'options' => $templates, 'value' => $prj_config['extension_txt_id']));
     $this->data['xml_build_url'] = $this->html->getSecureUrl('tool/developer_tools_other/savelayoutxml', '&prj_id=' . $prj_id);
     $this->data['text_save_layout_xml'] = $this->language->get('text_save_layout_xml');
     $this->view->batchAssign($this->data);
     $this->processTemplate('responses/tool/developer_tools_other.tpl');
 }
开发者ID:hakoobe247,项目名称:developer_tools_extension,代码行数:29,代码来源:developer_tools_other.php

示例5: main

 public function main()
 {
     $fields = array();
     $this->load->model('checkout/order');
     $this->loadLanguage('default_skrill/default_skrill');
     $cancel_url = $this->request->get['rt'] != 'checkout/guest_step_3' ? $this->html->getSecureURL('checkout/payment') : $this->html->getSecureURL('checkout/guest_step_2');
     if (is_file(DIR_RESOURCE . $this->config->get('config_logo'))) {
         $logo = HTTPS_DIR_RESOURCE . $this->config->get('config_logo');
     } else {
         $logo = $this->config->get('config_logo');
     }
     $order_info = $this->model_checkout_order->getOrder($this->session->data['order_id']);
     $products = '';
     foreach ($this->cart->getProducts() as $product) {
         $products .= $product['quantity'] . ' x ' . $product['name'] . ', ';
     }
     $this->load->library('encryption');
     $encryption = new AEncryption($this->config->get('encryption_key'));
     $skrill_url = 'https://pay.skrill.com';
     //$skrill_url = 'https://sandbox.dev.skrillws.net/pay';
     $fields = array('rid' => '53571612', 'ext_ref_id' => 'abantecart', 'pay_to_email' => $this->config->get('default_skrill_email'), 'recipient_description' => $this->config->get('store_name'), 'transaction_id' => $this->session->data['order_id'] . '_' . UNIQUE_ID, 'return_url' => $this->html->getSecureURL('checkout/success'), 'cancel_url' => $cancel_url, 'status_url' => $this->html->getSecureURL('extension/default_skrill/callback'), 'language' => $this->session->data['language'], 'logo_url' => $logo, 'pay_from_email' => $order_info['email'], 'firstname' => $order_info['payment_firstname'], 'lastname' => $order_info['payment_lastname'], 'address' => $order_info['payment_address_1'], 'address2' => $order_info['payment_address_2'], 'phone_number' => $order_info['telephone'], 'postal_code' => substr($order_info['payment_postcode'], 0, 9), 'city' => $order_info['payment_city'], 'state' => $order_info['payment_zone'], 'country' => $order_info['payment_iso_code_3'], 'amount' => $this->currency->format($order_info['total'], $order_info['currency'], $order_info['value'], FALSE), 'currency' => $order_info['currency'], 'detail1_text' => $products, 'merchant_fields' => 'order_id', 'order_id' => $encryption->encrypt($this->session->data['order_id']));
     $form = new AForm();
     $form->setForm(array('form_name' => 'checkout'));
     $data['form']['form_open'] = $form->getFieldHtml(array('type' => 'form', 'name' => 'checkout', 'action' => $skrill_url));
     foreach ($fields as $key => $value) {
         $data['form'][$key] = $form->getFieldHtml(array('type' => 'hidden', 'name' => $key, 'value' => $value));
     }
     $data['form']['back'] = $form->getFieldHtml(array('type' => 'button', 'name' => 'back', 'text' => $this->language->get('button_back'), 'style' => 'button', 'href' => $back));
     $data['form']['submit'] = $form->getFieldHtml(array('type' => 'submit', 'name' => $this->language->get('button_confirm')));
     $this->view->batchAssign($data);
     $this->processTemplate('responses/default_skrill.tpl');
 }
开发者ID:InquisitiveQuail,项目名称:abantecart-src,代码行数:32,代码来源:default_skrill.php

示例6: main

 public function main()
 {
     $this->load->model('checkout/order');
     $order_info = $this->model_checkout_order->getOrder($this->session->data['order_id']);
     $data['action'] = '';
     $form = new AForm();
     $form->setForm(array('form_name' => 'checkout'));
     $data['form']['form_open'] = $form->getFieldHtml(array('type' => 'form', 'name' => 'checkout', 'action' => 'https://www.liqpay.com/?do=clickNbuy'));
     $xml = '<response>';
     $xml .= '	<version>1.2</version>';
     $xml .= '	<result_url>' . $this->html->getSecureURL('checkout/success') . '</result_url>';
     $xml .= '	<server_url>' . $this->html->getSecureURL('extension/liqpay/callback') . '</server_url>';
     $xml .= '	<merchant_id>' . $this->config->get('default_liqpay_merchant') . '</merchant_id>';
     $xml .= '	<order_id>' . $this->session->data['order_id'] . '</order_id>';
     $xml .= '	<amount>' . $this->currency->format($order_info['total'], $order_info['currency'], $order_info['value'], FALSE) . '</amount>';
     $xml .= '	<currency>' . $order_info['currency'] . '</currency>';
     $xml .= '	<description>' . $this->config->get('store_name') . ' ' . $order_info['payment_firstname'] . ' ' . $order_info['payment_address_1'] . ' ' . $order_info['payment_address_2'] . ' ' . $order_info['payment_city'] . ' ' . $order_info['email'] . '</description>';
     $xml .= '	<sender_phone></sender_phone>';
     $xml .= '	<pay_way>' . $this->config->get('default_liqpay_type') . '</pay_way>';
     $xml .= '</response>';
     $data['form']['xml'] = $form->getFieldHtml(array('type' => 'hidden', 'name' => 'xml', 'value' => base64_encode($xml)));
     $data['form']['signature'] = $form->getFieldHtml(array('type' => 'hidden', 'name' => 'signature', 'value' => base64_encode(sha1($this->config->get('default_liqpay_signature') . $xml . $this->config->get('default_liqpay_signature'), TRUE))));
     $back = $this->request->get['rt'] != 'checkout/guest_step_3' ? $this->html->getSecureURL('checkout/payment') : $this->html->getSecureURL('checkout/guest_step_2');
     $data['form']['back'] = $form->getFieldHtml(array('type' => 'button', 'name' => 'back', 'text' => $this->language->get('button_back'), 'style' => 'button', 'href' => $back));
     $data['form']['submit'] = $form->getFieldHtml(array('type' => 'submit', 'name' => $this->language->get('button_confirm')));
     $this->view->batchAssign($data);
     $this->processTemplate('responses/default_liqpay.tpl');
 }
开发者ID:harshzalavadiya,项目名称:fatak,代码行数:28,代码来源:default_liqpay.php

示例7: main

 public function main()
 {
     //init controller data
     $this->extensions->hk_InitData($this, __FUNCTION__);
     $this->document->setTitle($this->language->get('heading_title'));
     $this->document->initBreadcrumb(array('href' => $this->html->getSecureURL('index/home'), 'text' => $this->language->get('text_home'), 'separator' => FALSE));
     $this->document->addBreadcrumb(array('href' => $this->html->getSecureURL('tool/cache'), 'text' => $this->language->get('heading_title'), 'separator' => ' :: ', 'current' => true));
     $this->data['sections'] = array(array('id' => 'configuration', 'text' => $this->language->get('text_configuration'), 'description' => $this->language->get('desc_configuration'), 'keywords' => 'settings,store,stores,attribute,attributes,length_class,contents,tax_class,order_status,stock_status,weight_class,storefront_menu,tables'), array('id' => 'layout', 'text' => $this->language->get('text_layouts_blocks'), 'description' => $this->language->get('desc_layouts_blocks'), 'keywords' => 'layout'), array('id' => 'flexyforms', 'text' => $this->language->get('text_flexyforms'), 'description' => $this->language->get('desc_flexyforms'), 'keywords' => 'forms'), array('id' => 'translation', 'text' => $this->language->get('text_translations'), 'description' => $this->language->get('desc_translations'), 'keywords' => 'lang'), array('id' => 'image', 'text' => $this->language->get('text_images'), 'description' => $this->language->get('desc_images'), 'keywords' => 'image,resources'), array('id' => 'product', 'text' => $this->language->get('text_products'), 'description' => $this->language->get('desc_products'), 'keywords' => 'product'), array('id' => 'category', 'text' => $this->language->get('text_categories'), 'description' => $this->language->get('desc_categories'), 'keywords' => 'category'), array('id' => 'manufacturer', 'text' => $this->language->get('text_manufacturers'), 'description' => $this->language->get('desc_manufacturers'), 'keywords' => 'manufacturer'), array('id' => 'localisation', 'text' => $this->language->get('text_localisations'), 'description' => $this->language->get('desc_localisations'), 'keywords' => 'currency,country,zone,language'), array('id' => 'error_log', 'text' => $this->language->get('text_error_log'), 'description' => $this->language->get('desc_error_log'), 'keywords' => 'error_log'));
     $form = new AForm('ST');
     $form->setForm(array('form_name' => 'cacheFrm'));
     $this->data['form']['form_open'] = $form->getFieldHtml(array('type' => 'form', 'name' => 'cacheFrm', 'action' => $this->html->getSecureURL('tool/cache/delete')));
     $this->data['form']['submit'] = $form->getFieldHtml(array('type' => 'button', 'name' => 'submit', 'text' => $this->language->get('text_clear_cache'), 'style' => 'button1'));
     if (isset($this->error['warning'])) {
         $this->data['error_warning'] = $this->error['warning'];
     } else {
         $this->data['error_warning'] = '';
     }
     if (isset($this->session->data['success'])) {
         $this->data['success'] = $this->session->data['success'];
         unset($this->session->data['success']);
     } else {
         $this->data['success'] = '';
     }
     $this->view->batchAssign($this->data);
     $this->view->assign('help_url', $this->gen_help_url());
     $this->processTemplate('pages/tool/cache.tpl');
     //update controller data
     $this->extensions->hk_UpdateData($this, __FUNCTION__);
 }
开发者ID:InquisitiveQuail,项目名称:abantecart-src,代码行数:29,代码来源:cache.php

示例8: main

 public function main()
 {
     //init controller data
     $this->extensions->hk_InitData($this, __FUNCTION__);
     if (!$this->customer->isLogged()) {
         $this->session->data['redirect'] = $this->html->getSecureURL('account/newsletter');
         $this->redirect($this->html->getSecureURL('account/login'));
     }
     $this->document->setTitle($this->language->get('heading_title'));
     if ($this->request->is_POST()) {
         $this->loadModel('account/customer');
         $this->model_account_customer->editNewsletter($this->request->post['newsletter']);
         $this->session->data['success'] = $this->language->get('text_success');
         $this->redirect($this->html->getURL('account/account'));
     }
     $this->document->resetBreadcrumbs();
     $this->document->addBreadcrumb(array('href' => $this->html->getURL('index/home'), 'text' => $this->language->get('text_home'), 'separator' => FALSE));
     $this->document->addBreadcrumb(array('href' => $this->html->getURL('account/account'), 'text' => $this->language->get('text_account'), 'separator' => $this->language->get('text_separator')));
     $this->document->addBreadcrumb(array('href' => $this->html->getURL('account/newsletter'), 'text' => $this->language->get('text_newsletter'), 'separator' => $this->language->get('text_separator')));
     $form = new AForm();
     $form->setForm(array('form_name' => 'newsFrm'));
     $this->data['form']['form_open'] = $form->getFieldHtml(array('type' => 'form', 'name' => 'newsFrm', 'action' => $this->html->getSecureURL('account/newsletter')));
     $this->data['form']['newsletter'] = $form->getFieldHtml(array('type' => 'radio', 'name' => 'newsletter', 'value' => $this->customer->getNewsletter(), 'options' => array('1' => $this->language->get('text_yes'), '0' => $this->language->get('text_no'))));
     $this->data['form']['continue'] = $form->getFieldHtml(array('type' => 'submit', 'icon' => 'fa fa-check', 'name' => $this->language->get('button_continue')));
     $this->data['back'] = $this->html->getURL('account/account');
     $back = HtmlElementFactory::create(array('type' => 'button', 'name' => 'back', 'text' => $this->language->get('button_back'), 'icon' => 'fa fa-arrow-left', 'style' => 'button'));
     $this->data['form']['back'] = $back;
     $this->view->batchAssign($this->data);
     $this->processTemplate('pages/account/newsletter.tpl');
     //init controller data
     $this->extensions->hk_UpdateData($this, __FUNCTION__);
 }
开发者ID:nelkihel,项目名称:abantecart-src,代码行数:32,代码来源:newsletter.php

示例9: main

 public function main()
 {
     $this->data = array();
     $run_level = $this->request->get['runlevel'];
     if (isset($run_level)) {
         if (!in_array((int) $run_level, array(1, 2, 3, 4, 5))) {
             $this->redirect(HTTP_SERVER . 'index.php?rt=activation' . '&admin_path=' . $this->request->post['admin_path']);
         }
         if (!$this->session->data['install_step_data'] && (int) $run_level == 1) {
             if (filesize(DIR_ABANTECART . 'system/config.php')) {
                 $this->redirect(HTTP_SERVER . 'index.php?rt=activation');
             } else {
                 $this->redirect(HTTP_SERVER . 'index.php?rt=license');
             }
         }
         echo $this->runlevel((int) $run_level);
         return null;
     }
     if ($this->request->is_POST() && $this->_validate()) {
         $this->session->data['install_step_data'] = $this->request->post;
         $this->redirect(HTTP_SERVER . 'index.php?rt=install&runlevel=1');
     }
     $this->data['error'] = $this->error;
     $this->data['action'] = HTTP_SERVER . 'index.php?rt=install';
     $fields = array('db_driver', 'db_host', 'db_user', 'db_password', 'db_name', 'db_prefix', 'username', 'password', 'password_confirm', 'email', 'admin_path');
     $defaults = array('', 'localhost', '', '', '', 'abc_', 'admin', '', '', '', '');
     $place_holder = array('Select Database Driver', 'Enter Database Hostname', 'Enter Database Username', 'Enter Password, if any', 'Enter Database Name', 'Add prefix to database tables', 'Enter new admin username', 'Enter Secret Admin Password', 'Repeat the password', 'Provide valid email of administrator', 'Enter your secret admin key');
     foreach ($fields as $k => $field) {
         if (isset($this->request->post[$field])) {
             $this->data[$field] = $this->request->post[$field];
         } else {
             $this->data[$field] = $defaults[$k];
         }
     }
     $form = new AForm('ST');
     $form->setForm(array('form_name' => 'form', 'update' => ''));
     $this->data['form']['id'] = 'form';
     $this->data['form']['form_open'] = $form->getFieldHtml(array('type' => 'form', 'name' => 'editFrm', 'action' => $this->data['action']));
     foreach ($fields as $k => $field) {
         if ($field != 'db_driver') {
             $this->data['form'][$field] = $form->getFieldHtml(array('type' => in_array($field, array('password', 'password_confirm')) ? 'password' : 'input', 'name' => $field, 'value' => $this->data[$field], 'placeholder' => $place_holder[$k], 'required' => in_array($field, array('db_host', 'db_user', 'db_name', 'username', 'password', 'password_confirm', 'email', 'admin_path'))));
         } else {
             $options = array();
             //regular mysql is not supported on PHP 5.5.+
             if (extension_loaded('mysql') && version_compare(phpversion(), '5.5.0', '<') == TRUE) {
                 $options['mysql'] = 'MySQL';
             }
             if (extension_loaded('mysqli')) {
                 $options['amysqli'] = 'MySQLi';
             }
             $this->data['form'][$field] = $form->getFieldHtml(array('type' => 'selectbox', 'name' => $field, 'value' => $this->data[$field], 'options' => $options, 'required' => true));
         }
     }
     $this->view->assign('back', HTTP_SERVER . 'index.php?rt=settings');
     $this->addChild('common/header', 'header', 'common/header.tpl');
     $this->addChild('common/footer', 'footer', 'common/footer.tpl');
     $this->view->batchAssign($this->data);
     $this->processTemplate('pages/install.tpl');
 }
开发者ID:Cali-gula,项目名称:abantecart-src,代码行数:59,代码来源:install.php

示例10: main

 public function main()
 {
     //init controller data
     $this->extensions->hk_InitData($this, __FUNCTION__);
     $this->loadLanguage('catalog/product');
     $this->document->setTitle($this->language->get('heading_title'));
     $this->loadModel('catalog/product');
     $this->loadModel('tool/image');
     if (isset($this->request->get['product_id'])) {
         $product_info = $this->model_catalog_product->getProduct($this->request->get['product_id']);
         if (!$product_info) {
             $this->session->data['warning'] = $this->language->get('error_product_not_found');
             $this->redirect($this->html->getSecureURL('catalog/product'));
         }
     }
     if ($this->request->server['REQUEST_METHOD'] == 'POST') {
         $this->model_catalog_product->updateProductImages($this->request->get['product_id'], $this->request->post);
         $this->session->data['success'] = $this->language->get('text_success');
         $this->redirect($this->html->getSecureURL('catalog/product_images', '&product_id=' . $this->request->get['product_id']));
     }
     $this->data['product_description'] = $this->model_catalog_product->getProductDescriptions($this->request->get['product_id']);
     $this->view->assign('error_warning', $this->error['warning']);
     $this->view->assign('success', $this->session->data['success']);
     if (isset($this->session->data['success'])) {
         unset($this->session->data['success']);
     }
     $this->document->initBreadcrumb(array('href' => $this->html->getSecureURL('index/home'), 'text' => $this->language->get('text_home'), 'separator' => FALSE));
     $this->document->addBreadcrumb(array('href' => $this->html->getSecureURL('catalog/product'), 'text' => $this->language->get('heading_title'), 'separator' => ' :: '));
     $this->document->addBreadcrumb(array('href' => $this->html->getSecureURL('catalog/product/update', '&product_id=' . $this->request->get['product_id']), 'text' => $this->language->get('text_edit') . '&nbsp;' . $this->language->get('text_product') . ' - ' . $this->data['product_description'][$this->session->data['content_language_id']]['name'], 'separator' => ' :: '));
     $this->document->addBreadcrumb(array('href' => $this->html->getSecureURL('catalog/product_images', '&product_id=' . $this->request->get['product_id']), 'text' => $this->language->get('tab_media'), 'separator' => ' :: '));
     $this->data['no_image'] = $this->model_tool_image->resize('no_image.jpg', 100, 100);
     $this->data['active'] = 'images';
     //load tabs controller
     $tabs_obj = $this->dispatch('pages/catalog/product_tabs', array($this->data));
     $this->data['product_tabs'] = $tabs_obj->dispatchGetOutput();
     unset($tabs_obj);
     $this->data['button_add_image'] = $this->html->buildButton(array('text' => $this->language->get('button_add_image'), 'style' => 'button1'));
     $this->data['action'] = $this->html->getSecureURL('catalog/product_images', '&product_id=' . $this->request->get['product_id']);
     $this->data['form_title'] = $this->language->get('text_edit') . '&nbsp;' . $this->language->get('text_product');
     $this->data['update'] = '';
     $form = new AForm('HS');
     $form->setForm(array('form_name' => 'productFrm', 'update' => $this->data['update']));
     $this->data['form']['id'] = 'productFrm';
     $this->data['form']['form_open'] = $form->getFieldHtml(array('type' => 'form', 'name' => 'productFrm', 'action' => $this->data['action']));
     $this->data['form']['submit'] = $form->getFieldHtml(array('type' => 'button', 'name' => 'submit', 'text' => $this->language->get('button_save'), 'style' => 'button1'));
     $this->data['form']['cancel'] = $form->getFieldHtml(array('type' => 'button', 'name' => 'cancel', 'text' => $this->language->get('button_cancel'), 'style' => 'button2'));
     $this->view->batchAssign($this->data);
     $this->view->assign('help_url', $this->gen_help_url('product_media'));
     $this->addChild('pages/catalog/product_summary', 'summary_form', 'pages/catalog/product_summary.tpl');
     $this->addChild('responses/common/resource_library/get_resources_html', 'resources_html', 'responses/common/resource_library_scripts.tpl');
     $resources_scripts = $this->dispatch('responses/common/resource_library/get_resources_scripts', array('object_name' => 'products', 'object_id' => $this->request->get['product_id'], 'types' => array('image', 'audio', 'video', 'pdf')));
     $this->view->assign('resources_scripts', $resources_scripts->dispatchGetOutput());
     $this->processTemplate('pages/catalog/product_images.tpl');
     //update controller data
     $this->extensions->hk_UpdateData($this, __FUNCTION__);
 }
开发者ID:harshzalavadiya,项目名称:fatak,代码行数:56,代码来源:product_images.php

示例11: main

 public function main()
 {
     //init controller data
     $this->extensions->hk_InitData($this, __FUNCTION__);
     $this->document->setTitle($this->language->get('heading_title'));
     $this->loadModel('setting/setting');
     if ($this->request->is_POST() && $this->_validate()) {
         $this->model_setting_setting->editSetting('sub_total', $this->request->post);
         $this->session->data['success'] = $this->language->get('text_success');
         $this->redirect($this->html->getSecureURL('total/sub_total'));
     }
     if (isset($this->error['warning'])) {
         $this->data['error_warning'] = $this->error['warning'];
     } else {
         $this->data['error_warning'] = '';
     }
     $this->data['success'] = $this->session->data['success'];
     if (isset($this->session->data['success'])) {
         unset($this->session->data['success']);
     }
     $this->document->initBreadcrumb(array('href' => $this->html->getSecureURL('index/home'), 'text' => $this->language->get('text_home'), 'separator' => FALSE));
     $this->document->addBreadcrumb(array('href' => $this->html->getSecureURL('extension/total'), 'text' => $this->language->get('text_total'), 'separator' => ' :: '));
     $this->document->addBreadcrumb(array('href' => $this->html->getSecureURL('total/sub_total'), 'text' => $this->language->get('heading_title'), 'separator' => ' :: ', 'current' => true));
     foreach ($this->fields as $f) {
         if (isset($this->request->post[$f])) {
             $this->data[$f] = $this->request->post[$f];
         } else {
             $this->data[$f] = $this->config->get($f);
         }
     }
     $this->data['action'] = $this->html->getSecureURL('total/sub_total');
     $this->data['cancel'] = $this->html->getSecureURL('extension/total');
     $this->data['heading_title'] = $this->language->get('text_edit') . ' ' . $this->language->get('text_total');
     $this->data['form_title'] = $this->language->get('heading_title');
     $this->data['update'] = $this->html->getSecureURL('listing_grid/total/update_field', '&id=sub_total');
     $form = new AForm('HS');
     $form->setForm(array('form_name' => 'editFrm', 'update' => $this->data['update']));
     $this->data['form']['form_open'] = $form->getFieldHtml(array('type' => 'form', 'name' => 'editFrm', 'action' => $this->data['action'], 'attr' => 'data-confirm-exit="true" class="aform form-horizontal"'));
     $this->data['form']['submit'] = $form->getFieldHtml(array('type' => 'button', 'name' => 'submit', 'text' => $this->language->get('button_save')));
     $this->data['form']['cancel'] = $form->getFieldHtml(array('type' => 'button', 'name' => 'cancel', 'text' => $this->language->get('button_cancel')));
     $this->data['form']['fields']['status'] = $form->getFieldHtml(array('type' => 'checkbox', 'name' => 'sub_total_status', 'value' => $this->data['sub_total_status'], 'style' => 'btn_switch status_switch'));
     $this->loadLanguage('extension/extensions');
     $options = array('subtotal' => $this->language->get('text_subtotal'), 'shipping' => $this->language->get('text_shipping'), 'fee' => $this->language->get('text_fee'), 'discount' => $this->language->get('text_discount'), 'total' => $this->language->get('text_total'), 'tax' => $this->language->get('text_tax'));
     $this->data['form']['fields']['total_type'] = $form->getFieldHtml(array('type' => 'selectbox', 'name' => 'sub_total_total_type', 'options' => $options, 'value' => $this->data['sub_total_total_type']));
     $this->data['form']['fields']['sort_order'] = $form->getFieldHtml(array('type' => 'input', 'name' => 'sub_total_sort_order', 'value' => $this->data['sub_total_sort_order']));
     $this->data['form']['fields']['calculation_order'] = $form->getFieldHtml(array('type' => 'input', 'name' => 'sub_total_calculation_order', 'value' => $this->data['sub_total_calculation_order']));
     $this->view->assign('help_url', $this->gen_help_url('edit_sub_total'));
     $this->view->batchAssign($this->data);
     $this->processTemplate('pages/total/form.tpl');
     //update controller data
     $this->extensions->hk_UpdateData($this, __FUNCTION__);
 }
开发者ID:InquisitiveQuail,项目名称:abantecart-src,代码行数:52,代码来源:sub_total.php

示例12: main

 public function main()
 {
     //init controller data
     $this->extensions->hk_InitData($this, __FUNCTION__);
     $this->document->setTitle($this->language->get('heading_title'));
     $this->loadModel('setting/setting');
     if ($this->request->server['REQUEST_METHOD'] == 'POST' && $this->_validate()) {
         $this->model_setting_setting->editSetting('balance', $this->request->post);
         $this->session->data['success'] = $this->language->get('text_success');
         $this->redirect($this->html->getSecureURL('total/balance'));
     }
     if (isset($this->error['warning'])) {
         $this->data['error_warning'] = $this->error['warning'];
     } else {
         $this->data['error_warning'] = '';
     }
     $this->data['success'] = $this->session->data['success'];
     if (isset($this->session->data['success'])) {
         unset($this->session->data['success']);
     }
     $this->document->initBreadcrumb(array('href' => $this->html->getSecureURL('index/home'), 'text' => $this->language->get('text_home'), 'separator' => FALSE));
     $this->document->addBreadcrumb(array('href' => $this->html->getSecureURL('extension/total'), 'text' => $this->language->get('text_total'), 'separator' => ' :: '));
     $this->document->addBreadcrumb(array('href' => $this->html->getSecureURL('total/balance'), 'text' => $this->language->get('heading_title'), 'separator' => ' :: '));
     foreach ($this->fields as $f) {
         if (isset($this->request->post[$f])) {
             $this->data[$f] = $this->request->post[$f];
         } else {
             $this->data[$f] = $this->config->get($f);
         }
     }
     $this->data['action'] = $this->html->getSecureURL('total/balance');
     $this->data['cancel'] = $this->html->getSecureURL('extension/total');
     $this->data['heading_title'] = $this->language->get('text_edit') . ' ' . $this->language->get('text_total');
     $this->data['form_title'] = $this->language->get('heading_title');
     $this->data['update'] = $this->html->getSecureURL('listing_grid/total/update_field', '&id=balance');
     $form = new AForm('HS');
     $form->setForm(array('form_name' => 'editFrm', 'update' => $this->data['update']));
     $this->data['form']['form_open'] = $form->getFieldHtml(array('type' => 'form', 'name' => 'editFrm', 'action' => $this->data['action']));
     $this->data['form']['submit'] = $form->getFieldHtml(array('type' => 'button', 'name' => 'submit', 'text' => $this->language->get('button_save'), 'style' => 'button1'));
     $this->data['form']['cancel'] = $form->getFieldHtml(array('type' => 'button', 'name' => 'cancel', 'text' => $this->language->get('button_cancel'), 'style' => 'button2'));
     $this->data['form']['fields']['status'] = $form->getFieldHtml(array('type' => 'checkbox', 'name' => 'balance_status', 'value' => $this->data['balance_status'], 'style' => 'btn_switch'));
     $this->data['form']['fields']['sort_order'] = $form->getFieldHtml(array('type' => 'input', 'name' => 'balance_sort_order', 'value' => $this->data['balance_sort_order']));
     $this->data['form']['fields']['calculation_order'] = $form->getFieldHtml(array('type' => 'input', 'name' => 'balance_calculation_order', 'value' => $this->data['balance_calculation_order']));
     $this->view->assign('help_url', $this->gen_help_url('edit_balance'));
     $this->view->batchAssign($this->data);
     $this->processTemplate('pages/total/form.tpl');
     //update controller data
     $this->extensions->hk_UpdateData($this, __FUNCTION__);
 }
开发者ID:harshzalavadiya,项目名称:fatak,代码行数:49,代码来源:balance.php

示例13: main

 public function main()
 {
     $this->load->model('checkout/order');
     $this->loadLanguage('default_moneybookers/default_moneybookers');
     $form = new AForm();
     $form->setForm(array('form_name' => 'checkout'));
     $data['form']['form_open'] = $form->getFieldHtml(array('type' => 'form', 'name' => 'checkout', 'action' => 'https://www.moneybookers.com/app/payment.pl?rid=10111486'));
     $data['form']['pay_to_email'] = $form->getFieldHtml(array('type' => 'hidden', 'name' => 'pay_to_email', 'value' => $this->config->get('default_moneybookers_email')));
     $data['form']['recipient_description'] = $form->getFieldHtml(array('type' => 'hidden', 'name' => 'recipient_description', 'value' => $this->config->get('store_name')));
     $data['form']['transaction_id'] = $form->getFieldHtml(array('type' => 'hidden', 'name' => 'transaction_id', 'value' => $this->session->data['order_id']));
     $data['form']['return_url'] = $form->getFieldHtml(array('type' => 'hidden', 'name' => 'return_url', 'value' => $this->html->getSecureURL('checkout/success')));
     $back = $this->request->get['rt'] != 'checkout/guest_step_3' ? $this->html->getSecureURL('checkout/payment') : $this->html->getSecureURL('checkout/guest_step_2');
     $data['form']['cancel_url'] = $form->getFieldHtml(array('type' => 'hidden', 'name' => 'cancel_url', 'value' => $back));
     $data['form']['status_url'] = $form->getFieldHtml(array('type' => 'hidden', 'name' => 'status_url', 'value' => $this->html->getSecureURL('extension/moneybookers/callback')));
     $data['form']['language'] = $form->getFieldHtml(array('type' => 'hidden', 'name' => 'language', 'value' => $this->session->data['language']));
     if (is_file(DIR_RESOURCE . $this->config->get('config_logo'))) {
         $logo = HTTP_DIR_RESOURCE . $this->config->get('config_logo');
     } else {
         $logo = $this->config->get('config_logo');
     }
     $data['form']['logo_url'] = $form->getFieldHtml(array('type' => 'hidden', 'name' => 'logo_url', 'value' => $logo));
     /* * */
     $order_info = $this->model_checkout_order->getOrder($this->session->data['order_id']);
     $data['form']['pay_from_email'] = $form->getFieldHtml(array('type' => 'hidden', 'name' => 'pay_from_email', 'value' => $order_info['email']));
     $data['form']['firstname'] = $form->getFieldHtml(array('type' => 'hidden', 'name' => 'firstname', 'value' => $order_info['payment_firstname']));
     $data['form']['lastname'] = $form->getFieldHtml(array('type' => 'hidden', 'name' => 'lastname', 'value' => $order_info['payment_lastname']));
     $data['form']['address'] = $form->getFieldHtml(array('type' => 'hidden', 'name' => 'address', 'value' => $order_info['payment_address_1']));
     $data['form']['address2'] = $form->getFieldHtml(array('type' => 'hidden', 'name' => 'address2', 'value' => $order_info['payment_address_2']));
     $data['form']['phone_number'] = $form->getFieldHtml(array('type' => 'hidden', 'name' => 'phone_number', 'value' => $order_info['telephone']));
     $data['form']['postal_code'] = $form->getFieldHtml(array('type' => 'hidden', 'name' => 'postal_code', 'value' => $order_info['payment_postcode']));
     $data['form']['city'] = $form->getFieldHtml(array('type' => 'hidden', 'name' => 'city', 'value' => $order_info['payment_city']));
     $data['form']['state'] = $form->getFieldHtml(array('type' => 'hidden', 'name' => 'state', 'value' => $order_info['payment_zone']));
     $data['form']['country'] = $form->getFieldHtml(array('type' => 'hidden', 'name' => 'country', 'value' => $order_info['payment_iso_code_3']));
     $data['form']['amount'] = $form->getFieldHtml(array('type' => 'hidden', 'name' => 'amount', 'value' => $this->currency->format($order_info['total'], $order_info['currency'], $order_info['value'], FALSE)));
     $data['form']['currency'] = $form->getFieldHtml(array('type' => 'hidden', 'name' => 'currency', 'value' => $order_info['currency']));
     $products = '';
     foreach ($this->cart->getProducts() as $product) {
         $products .= $product['quantity'] . ' x ' . $product['name'] . ', ';
     }
     $data['form']['detail1_text'] = $form->getFieldHtml(array('type' => 'hidden', 'name' => 'detail1_text', 'value' => $products));
     $data['form']['merchant_fields'] = $form->getFieldHtml(array('type' => 'hidden', 'name' => 'merchant_fields', 'value' => 'order_id'));
     $this->load->library('encryption');
     $encryption = new AEncryption($this->config->get('encryption_key'));
     $data['form']['order_id'] = $form->getFieldHtml(array('type' => 'hidden', 'name' => 'order_id', 'value' => $encryption->encrypt($this->session->data['order_id'])));
     $data['form']['back'] = $form->getFieldHtml(array('type' => 'button', 'name' => 'back', 'text' => $this->language->get('button_back'), 'style' => 'button', 'href' => $back));
     $data['form']['submit'] = $form->getFieldHtml(array('type' => 'submit', 'name' => $this->language->get('button_confirm')));
     $this->view->batchAssign($data);
     $this->processTemplate('responses/default_moneybookers.tpl');
 }
开发者ID:harshzalavadiya,项目名称:fatak,代码行数:49,代码来源:default_moneybookers.php

示例14: main

 public function main()
 {
     $this->load->model('checkout/order');
     $order_info = $this->model_checkout_order->getOrder($this->session->data['order_id']);
     $order_id = $this->session->data['order_id'];
     $description = 'Order #' . $order_id;
     $order_id .= '#' . time();
     $return_url = $this->html->getSecureURL('checkout/success');
     $callback_url = $this->html->getSecureURL('extension/default_liqpay/callback');
     $private_key = $this->config->get('default_liqpay_private_key');
     $public_key = $this->config->get('default_liqpay_public_key');
     $currency = $order_info['currency'];
     if ($currency == 'RUR') {
         $currency = 'RUB';
     }
     $amount = $this->currency->format($order_info['total'], $order_info['currency_code'], $order_info['currency_value'], false);
     $language = $this->language->getCurrentLanguage();
     $language_code = $language['code'] == 'ru' ? 'ru' : 'en';
     $fields = array();
     $fields['version'] = 3;
     $fields['public_key'] = $public_key;
     $fields['amount'] = $amount;
     $fields['currency'] = $currency;
     $fields['description'] = $description;
     $fields['order_id'] = $order_id;
     $fields['result_url'] = $return_url;
     $fields['server_url'] = $callback_url;
     $fields['type'] = 'buy';
     $fields['pay_way'] = 'card,liqpay';
     $fields['language'] = $language_code;
     $fields['sandbox'] = (int) $this->config->get('default_liqpay_test_mode');
     //data - result of base64_encode( $json_string )
     //signature - result of base64_encode( sha1( $private_key . $data . $private_key ) )
     $params = array();
     $params['data'] = base64_encode(json_encode($fields));
     $params['signature'] = base64_encode(sha1($private_key . $params['data'] . $private_key, 1));
     $form = new AForm();
     $form->setForm(array('form_name' => 'checkout'));
     $data['form']['form_open'] = $form->getFieldHtml(array('type' => 'form', 'name' => 'checkout', 'action' => 'https://www.liqpay.com/api/checkout'));
     foreach ($params as $k => $val) {
         $data['form']['fields'][$k] = $form->getFieldHtml(array('type' => 'hidden', 'name' => $k, 'value' => $val));
     }
     $back = $this->request->get['rt'] != 'checkout/guest_step_3' ? $this->html->getSecureURL('checkout/payment') : $this->html->getSecureURL('checkout/guest_step_2');
     $data['form']['back'] = $form->getFieldHtml(array('type' => 'button', 'name' => 'back', 'text' => $this->language->get('button_back'), 'style' => 'button', 'href' => $back));
     $data['form']['submit'] = $form->getFieldHtml(array('type' => 'submit', 'name' => $this->language->get('button_confirm')));
     $this->view->batchAssign($data);
     $this->processTemplate('responses/default_liqpay.tpl');
 }
开发者ID:siddht1,项目名称:abantecart-src,代码行数:48,代码来源:default_liqpay.php

示例15: main

 public function main()
 {
     //init controller data
     $this->extensions->hk_InitData($this, __FUNCTION__);
     $this->loadModel('user/user');
     $this->loadLanguage('user/user');
     $this->document->setTitle($this->language->get('text_edit_details'));
     $this->document->addBreadcrumb(array('href' => $this->html->getSecureURL('index/home'), 'text' => $this->language->get('text_home'), 'separator' => FALSE));
     $this->document->addBreadcrumb(array('href' => $this->html->getSecureURL('index/edit_details'), 'text' => $this->language->get('text_edit_details'), 'separator' => ' :: ', 'current' => true));
     $this->view->assign('success', $this->session->data['success']);
     if (isset($this->session->data['success'])) {
         unset($this->session->data['success']);
     }
     if ($this->request->is_POST() && $this->_validate()) {
         $this->model_user_user->editUser($this->user->getId(), $this->request->post);
         $this->session->data['success'] = $this->language->get('text_success_details');
         $this->redirect($this->html->getSecureURL('index/edit_details'));
     }
     if ($this->request->is_POST() && $this->_validate()) {
         $this->redirect($this->html->getSecureURL('index/edit_details'));
     }
     $this->data['login'] = $this->html->getSecureURL('index/login');
     $this->data['error'] = $this->error;
     $user_info = $this->model_user_user->getUser($this->user->getId());
     $fields = array('firstname', 'lastname', 'email');
     foreach ($fields as $f) {
         if (isset($this->request->post[$f])) {
             $this->data[$f] = $this->request->post[$f];
         } else {
             $this->data[$f] = $user_info[$f];
         }
     }
     $this->data['action'] = $this->html->getSecureURL('index/edit_details');
     $this->data['update'] = $this->html->getSecureURL('listing_grid/user/update_field', '&id=' . $this->user->getId());
     $form = new AForm('HS');
     $form->setForm(array('form_name' => 'editFrm', 'update' => $this->data['update']));
     $this->data['form']['id'] = 'editFrm';
     $this->data['form']['form_open'] = $form->getFieldHtml(array('type' => 'form', 'name' => 'editFrm', 'attr' => 'data-confirm-exit="true"', 'action' => $this->data['action']));
     $this->data['form']['submit'] = $form->getFieldHtml(array('type' => 'button', 'name' => 'submit', 'text' => $this->language->get('button_save'), 'style' => 'button3'));
     foreach ($fields as $f) {
         $this->data['form']['fields'][$f] = $form->getFieldHtml(array('type' => 'input', 'name' => $f, 'value' => $this->data[$f], 'required' => true));
     }
     $this->data['form']['fields']['password'] = $form->getFieldHtml(array('type' => 'passwordset', 'name' => 'password', 'value' => $this->data['password']));
     $this->view->batchAssign($this->data);
     $this->processTemplate('pages/index/edit_details.tpl');
     //update controller data
     $this->extensions->hk_UpdateData($this, __FUNCTION__);
 }
开发者ID:InquisitiveQuail,项目名称:abantecart-src,代码行数:48,代码来源:edit_details.php


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