当前位置: 首页>>代码示例>>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;未经允许,请勿转载。