當前位置: 首頁>>代碼示例>>PHP>>正文


PHP tform_actions::onShow方法代碼示例

本文整理匯總了PHP中tform_actions::onShow方法的典型用法代碼示例。如果您正苦於以下問題:PHP tform_actions::onShow方法的具體用法?PHP tform_actions::onShow怎麽用?PHP tform_actions::onShow使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在tform_actions的用法示例。


在下文中一共展示了tform_actions::onShow方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: onShow

 function onShow()
 {
     global $app;
     // Translate the items, very bad trick... :( because the language file is not loaded yet when the form file gets parsed
     foreach ($app->tform->formDef["tabs"]['remote_user']['fields']['remote_functions']['value'] as $key => $val) {
         $app->tform->formDef["tabs"]['remote_user']['fields']['remote_functions']['value'][$key] = $app->tform->lng($val) . '<br>';
     }
     parent::onShow();
 }
開發者ID:istrwei,項目名稱:ISPCluster,代碼行數:9,代碼來源:remote_user_edit.php

示例2: onShow

 function onShow()
 {
     global $app;
     //* Reset the page number of the list form for the dns
     //* records to 0 if we are on the first tab of the soa form.
     if ($app->tform->getNextTab() == 'dns_soa') {
         $_SESSION['search']['dns_a']['page'] = 0;
     }
     parent::onShow();
 }
開發者ID:shoaibali,項目名稱:ispconfig3,代碼行數:10,代碼來源:dns_soa_edit.php

示例3: onShow

 function onShow()
 {
     global $app, $conf;
     //* We do not want that messages get edited, so we switch to a
     //*  read only template  if a existing message is loaded
     if ($this->id > 0) {
         $app->tform->formDef['tabs']['message']['template'] = 'templates/support_message_view.htm';
     }
     //* call the onShow function of the parent class
     parent::onShow();
 }
開發者ID:falkbizz,項目名稱:ispconfig3,代碼行數:11,代碼來源:support_message_edit.php

示例4: onShow

 function onShow()
 {
     global $app, $conf;
     //* We do not want that messages get edited, so we switch to a
     //*  read only template  if a existing message is loaded
     if ($this->id > 0) {
         $app->tform->formDef['tabs']['message']['template'] = 'templates/support_message_view.htm';
         $record = $app->db->queryOneRecord("SELECT * FROM support_message WHERE support_message_id = " . $this->id);
         if ($record['tstamp'] > 0) {
             // is value int?
             if (preg_match("/^[0-9]+[\\.]?[0-9]*\$/", $record['tstamp'], $p)) {
                 $record['tstamp'] = date($app->lng('conf_format_datetime'), $record['tstamp']);
             } else {
                 $record['tstamp'] = date($app->lng('conf_format_datetime'), strtotime($record['tstamp']));
             }
         }
         $app->tpl->setVar("date", $record['tstamp']);
         //die(print_r($this->dataRecord));
     }
     //* call the onShow function of the parent class
     parent::onShow();
 }
開發者ID:istrwei,項目名稱:ISPCluster,代碼行數:22,代碼來源:support_message_edit.php

示例5: onShow

 function onShow()
 {
     global $app;
     $this->id = $app->functions->intval($_SESSION['s']['user']['mailuser_id']);
     parent::onShow();
 }
開發者ID:istrwei,項目名稱:ISPCluster,代碼行數:6,代碼來源:mail_user_spamfilter_edit.php

示例6: onShow

 function onShow()
 {
     $this->id = $_SESSION['s']['user']['mailuser_id'];
     parent::onShow();
 }
開發者ID:shoaibali,項目名稱:ispconfig3,代碼行數:5,代碼來源:mail_user_autoresponder_edit.php

示例7: onAfterUpdate

 function onAfterUpdate()
 {
     if ($this->_theme_changed == true) {
         // not the best way, but it works
         header('Content-Type: text/html');
         print '<script type="text/javascript">document.location.reload();</script>';
         exit;
     } else {
         parent::onShow();
     }
 }
開發者ID:shoaibali,項目名稱:ispconfig3,代碼行數:11,代碼來源:interface_settings.php


注:本文中的tform_actions::onShow方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。