コード例 #1
0
ファイル: EpesiStore_0.php プロジェクト: 62BRAINS/EPESI
 public function display_invoices()
 {
     if ($this->is_back()) {
         return false;
     }
     Base_ActionBarCommon::add('back', __('Back'), $this->create_back_href());
     $action_url = Base_EssClientCommon::get_invoices_url();
     $params = array('key' => Base_EssClientCommon::get_license_key(), 'noheader' => 1);
     print create_html_form($form_name, $action_url, $params, 'invoices');
     print '<iframe name="invoices" width="800px" style="border: none;" height="600px"></iframe>';
     eval_js("document.{$form_name}.submit();");
     return true;
 }
コード例 #2
0
ファイル: EssClient_0.php プロジェクト: cretzu89/EPESI
 public function license_key_form()
 {
     if ($this->is_back()) {
         return false;
     }
     Base_ActionBarCommon::add('back', __('Back'), $this->create_back_href());
     $f = $this->init_module(Libs_QuickForm::module_name());
     $f->addElement('text', 'license_key', __('License Key'), array('maxlength' => 64, 'size' => 64, 'style' => 'width:395px;'));
     if ($f->validate()) {
         $x = $f->exportValues();
         Base_EssClientCommon::set_license_key($x['license_key']);
         return false;
     }
     $f->setDefaults(array('license_key' => Base_EssClientCommon::get_license_key()));
     Base_ActionBarCommon::add('save', __('Save'), $f->get_submit_form_href());
     print '<span class="important_notice"><center>';
     print __('On this screen you can manually set your License Key for this installation. This feature should only be used in case of system recovery or migration. If you are uncertain how to use this feature, it\'s best to leave this screen immediately.') . '<br><br>';
     $f->display_as_column();
     print '</center></span>';
     return true;
 }