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


PHP Ajax::getReloadCommand方法代码示例

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


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

示例1: Frontend

 * Window: user table
 * @package Runalyze\Plugins\Panels
 */
require '../../inc/class.Frontend.php';
use Runalyze\Activity\Duration;
use Runalyze\Activity\Weight;
$Frontend = new Frontend();
$Factory = new PluginFactory();
$Plugin = $Factory->newInstance('RunalyzePluginPanel_Sportler');
$Fields = array('time' => 'date', 'weight' => '', 'sleep_duration' => ' <small>h</small>');
$FieldsPulse = array('pulse_rest' => ' <small>bpm</small>', 'pulse_max' => ' <small>bpm</small>');
$FieldsFat = array('fat' => ' &#37;', 'water' => ' &#37;', 'muscles' => ' &#37;');
$Data = array_reverse(UserData::getFullArray());
if (Request::param('reload') == 'true') {
    Ajax::setReloadFlag(Ajax::$RELOAD_ALL);
    echo Ajax::getReloadCommand();
}
?>
<div class="panel-heading">
	<div class="panel-menu"><ul><li><?php 
echo $Plugin->addLink();
?>
</li></ul></div>
	<h1><?php 
_e('Body values');
?>
</h1>
</div>
<div class="panel-content">
	<table id="sportlerTable" class="zebra-style">
		<thead>
开发者ID:guancio,项目名称:Runalyze,代码行数:31,代码来源:window.sportler.table.php

示例2: handleGetPostRequest

 /**
  * Handle Get/Post-data and update database
  */
 private function handleGetPostRequest()
 {
     if (isset($_GET['active'])) {
         $this->setActive((int) $_GET['active']);
         Ajax::setReloadFlag(Ajax::$RELOAD_ALL);
         echo Ajax::getReloadCommand();
     }
 }
开发者ID:guancio,项目名称:Runalyze,代码行数:11,代码来源:class.Plugin.php

示例3: displayImportFinish

 /**
  * Display form: import finished 
  */
 protected function displayImportFinish()
 {
     require_once __DIR__ . '/class.RunalyzeBulkInsert.php';
     require_once __DIR__ . '/class.RunalyzeJsonImporterResults.php';
     require_once __DIR__ . '/class.RunalyzeJsonImporter.php';
     $fileName = '../data/DbBackup/import/' . $_POST['file'];
     $Importer = new RunalyzeJsonImporter($fileName);
     $Importer->importData();
     Filesystem::deleteFile($fileName);
     Ajax::setReloadFlag(Ajax::$RELOAD_ALL);
     $Fieldset = new FormularFieldset(__('Import data'));
     $Fieldset->addText(__('All data have been imported.'));
     $Fieldset->addText(__('It is recommended to use the <em>Database cleanup</em> tool.'));
     $Fieldset->addInfo($Importer->resultsAsString());
     $Fieldset->addBlock(Ajax::getReloadCommand());
     $Formular = new Formular();
     $Formular->setId('import-finished');
     $Formular->addFieldset($Fieldset);
     $Formular->display();
 }
开发者ID:guancio,项目名称:Runalyze,代码行数:23,代码来源:class.RunalyzePluginTool_DbBackup.php

示例4: display

 /**
  * Display tabs 
  */
 public function display()
 {
     if (Request::param('form') == 'true') {
         $this->Tabs[$this->getCurrentKey()]->parsePostData();
         $SubmitInfo = '<p class="okay"><em>' . __('The settings have been saved.') . '</em></p>';
         if (!empty(self::$Messages)) {
             $SubmitInfo .= implode('', self::$Messages);
         }
         echo '<div class="panel-heading" id="submit-info">' . $SubmitInfo . '</div>';
         echo Ajax::getReloadCommand();
     }
     if ($this->hasToShowDiv()) {
         echo '<div class="panel-menu panel-menu-floated">';
         $this->displayNavigation();
         echo '</div>';
         echo '<div id="' . self::$TABS_ID . '">';
     }
     $this->displayCurrentTab();
     if ($this->hasToShowDiv()) {
         echo '</div>';
     }
 }
开发者ID:n0rthface,项目名称:Runalyze,代码行数:25,代码来源:class.ConfigTabs.php

示例5: setReloadCommand

 /**
  * Set reload command
  */
 protected function setReloadCommand()
 {
     Ajax::setPluginIDtoReload($this->Plugin->id());
     Ajax::setReloadFlag(Ajax::$RELOAD_PLUGINS);
     echo Ajax::getReloadCommand();
 }
开发者ID:n0rthface,项目名称:Runalyze,代码行数:9,代码来源:class.PluginConfigurationWindow.php


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