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


PHP plxUtils类代码示例

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


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

示例1: step1

 public function step1()
 {
     echo L_UPDATE_USERS_MIGRATION . "<br />";
     # On génère le fichier XML
     $xml = "<?xml version=\"1.0\" encoding=\"" . PLX_CHARSET . "\"?>\n";
     $xml .= "<document>\n";
     foreach ($this->plxAdmin->aUsers as $user_id => $user) {
         $salt = plxUtils::charAleatoire(10);
         $password = sha1($salt . $user['password']);
         $xml .= "\t" . '<user number="' . $user_id . '" active="' . $user['active'] . '" profil="' . $user['profil'] . '" delete="' . $user['delete'] . '">' . "\n";
         $xml .= "\t\t" . '<login><![CDATA[' . plxUtils::cdataCheck($user['login']) . ']]></login>' . "\n";
         $xml .= "\t\t" . '<name><![CDATA[' . plxUtils::cdataCheck($user['name']) . ']]></name>' . "\n";
         $xml .= "\t\t" . '<infos><![CDATA[' . plxUtils::cdataCheck($user['infos']) . ']]></infos>' . "\n";
         $xml .= "\t\t" . '<password><![CDATA[' . $password . ']]></password>' . "\n";
         $xml .= "\t\t" . '<salt><![CDATA[' . $salt . ']]></salt>' . "\n";
         $xml .= "\t\t" . '<email><![CDATA[' . $user['email'] . ']]></email>' . "\n";
         $xml .= "\t\t" . '<lang><![CDATA[' . $user['lang'] . ']]></lang>' . "\n";
         $xml .= "\t</user>\n";
     }
     $xml .= "</document>";
     if (!plxUtils::write($xml, PLX_ROOT . $this->plxAdmin->aConf['users'])) {
         echo '<p class="error">' . L_UPDATE_ERR_USERS_MIGRATION . ' (' . $this->plxAdmin->aConf['users'] . ')</p>';
         return false;
     }
     return true;
 }
开发者ID:wafflefactor,项目名称:PluXml,代码行数:26,代码来源:update_5.1.1.php

示例2: OnActivate

 public function OnActivate()
 {
     if (version_compare(PHP_VERSION, PP_REQUIRED_PHP_VERSION) < 0) {
         exit(sprintf($this->getLang('L_PHP_VERSION_TOO_LOW'), PP_REQUIRED_PHP_VERSION));
     }
     if (!is_file(PLX_ROOT . 'data/configuration/plugins/pickypaste.site.css')) {
         $css = file_get_contents(PLX_PLUGINS . 'pickyPasteInPluxml/css/pickypaste.css');
         plxUtils::write($css, PLX_ROOT . 'data/configuration/plugins/pickyPasteInPluxml.site.css');
     }
 }
开发者ID:inscriptionweb,项目名称:pickyPasteInPluxml,代码行数:10,代码来源:pickyPasteInPluxml.php

示例3: validateFormToken

 /**
  * Méthode qui valide la durée de vide d'un token
  *
  * @parm	$request	(deprecated)
  * @return	stdio/null
  * @author	Stephane F
  **/
 public static function validateFormToken($request = '')
 {
     if ($_SERVER['REQUEST_METHOD'] == 'POST' and isset($_SESSION['formtoken'])) {
         if (empty($_POST['token']) or plxUtils::getValue($_SESSION['formtoken'][$_POST['token']]) < time() - 3600) {
             # 3600 seconds
             unset($_SESSION['formtoken']);
             die('Security error : invalid or expired token');
         }
         unset($_SESSION['formtoken'][$_POST['token']]);
     }
 }
开发者ID:wafflefactor,项目名称:PluXml,代码行数:18,代码来源:class.plx.token.php

示例4: __construct

 public function __construct($default_lang)
 {
     # appel du constructeur de la classe plxPlugin (obligatoire)
     parent::__construct($default_lang);
     # Récupération d'une instance de plxMotor
     $plxMotor = plxMotor::getInstance();
     #init path
     $this->imgFullPath = isset($plxMotor->aConf['medias']) ? plxUtils::getRacine() . $plxMotor->aConf['medias'] : plxUtils::getRacine() . $plxMotor->aConf['images'];
     $this->imgPath = isset($plxMotor->aConf['medias']) ? $plxMotor->aConf['medias'] : $plxMotor->aConf['images'];
     # PROFIL_ADMIN , PROFIL_MANAGER , PROFIL_MODERATOR , PROFIL_EDITOR , PROFIL_WRITER
     # Accès au menu admin réservé au profil administrateur
     $this->setAdminProfil(PROFIL_ADMIN, PROFIL_MANAGER);
     # droits pour accèder à la page config.php du plugin
     $this->setConfigProfil(PROFIL_ADMIN);
     # Déclaration des hooks
     $this->addHook('AdminMediasTop', 'AdminMediasTop');
 }
开发者ID:cfdev,项目名称:mfixrotate,代码行数:17,代码来源:mfixrotate.php

示例5: step4

 public function step4()
 {
     echo L_UPDATE_FILE . " (" . $this->plxAdmin->aConf['categories'] . ")<br />";
     $data = file_get_contents(PLX_ROOT . $this->plxAdmin->aConf['categories']);
     $tag = 'categorie';
     if (preg_match_all('{<' . $tag . '[^>]*>(.*?)</' . $tag . '>}', $data, $matches, PREG_PATTERN_ORDER)) {
         foreach ($matches[0] as $match) {
             if (!preg_match('/<title_htmltag>/', $match)) {
                 $str = str_replace('</' . $tag . '>', '<title_htmltag><![CDATA[]]></title_htmltag></' . $tag . '>', $match);
                 $data = str_replace($match, $str, $data);
             }
         }
         if (!plxUtils::write($data, PLX_ROOT . $this->plxAdmin->aConf['categories'])) {
             echo '<p class="error">' . L_UPDATE_ERR_FILE . '</p>';
             return false;
         }
     }
     return true;
 }
开发者ID:wafflefactor,项目名称:PluXml,代码行数:19,代码来源:update_5.1.6.php

示例6: step2

 public function step2()
 {
     echo L_UPDATE_ARTICLES_CONVERSION . "<br />";
     $plxGlob_arts = plxGlob::getInstance(PLX_ROOT . $this->plxAdmin->aConf['racine_articles']);
     if ($files = $plxGlob_arts->query('/(.*).xml$/', 'art')) {
         foreach ($files as $filename) {
             if (is_readable($filename)) {
                 $data = file_get_contents(PLX_ROOT . $this->plxAdmin->aConf['racine_articles'] . $filename);
                 if (!preg_match('/\\]\\]<\\/title_htmltag>/', $data)) {
                     $data = preg_replace("/<\\/document>\$/", "\t<title_htmltag>\n\t\t<![CDATA[]]>\n\t</title_htmltag>\n</document>", $data);
                 }
                 if (!plxUtils::write($data, PLX_ROOT . $this->plxAdmin->aConf['racine_articles'] . $filename)) {
                     echo '<p class="error">' . L_UPDATE_ERR_FILE_PROCESSING . ' : ' . $filename . '</p>';
                     return false;
                 }
             }
         }
     }
     return true;
 }
开发者ID:wafflefactor,项目名称:PluXml,代码行数:20,代码来源:update_5.1.4.php

示例7: step2

 public function step2()
 {
     echo L_UPDATE_UPDATE_PLUGINS_FILE . "<br />";
     # récupération de la liste des plugins
     $aPlugins = $this->loadConfig();
     # Migration du format du fichier plugins.xml
     $xml = "<?xml version='1.0' encoding='" . PLX_CHARSET . "'?>\n";
     $xml .= "<document>\n";
     foreach ($aPlugins as $k => $v) {
         if (isset($v['activate']) and $v['activate'] != '0') {
             $xml .= "\t<plugin name=\"{$k}\"></plugin>\n";
         }
     }
     $xml .= "</document>";
     if (!plxUtils::write($xml, path('XMLFILE_PLUGINS'))) {
         echo '<p class="error">' . L_UPDATE_ERR_FILE_PROCESSING . '</p>';
         return false;
     }
     return true;
 }
开发者ID:wafflefactor,项目名称:PluXml,代码行数:20,代码来源:update_5.2.php

示例8: array

					<?php 
echo '<input type="hidden" name="catNum[]" value="' . $new_catid . '" />';
plxUtils::printInput($new_catid . '_template', 'categorie.php', 'hidden');
plxUtils::printInput($new_catid . '_name', '', 'text', '10-50');
echo '</td><td>';
plxUtils::printInput($new_catid . '_url', '', 'text', '10-50');
echo '</td><td>';
plxUtils::printSelect($new_catid . '_active', array('1' => L_YES, '0' => L_NO), '1');
echo '</td><td>';
plxUtils::printSelect($new_catid . '_tri', $aTri, $plxAdmin->aConf['tri']);
echo '</td><td>';
plxUtils::printInput($new_catid . '_bypage', $plxAdmin->aConf['bypage'], 'text', '1-3');
echo '</td><td>';
plxUtils::printInput($new_catid . '_ordre', ++$num, 'text', '1-3');
echo '</td><td>';
plxUtils::printSelect($new_catid . '_menu', array('oui' => L_DISPLAY, 'non' => L_HIDE), '1');
echo '</td><td>&nbsp;';
?>
					</td>
				</tr>
			</tbody>
		</table>
	</div>

</form>

<?php 
# Hook Plugins
eval($plxAdmin->plxPlugins->callHook('AdminCategoriesFoot'));
# On inclut le footer
include dirname(__FILE__) . '/foot.php';
开发者ID:wafflefactor,项目名称:PluXml,代码行数:31,代码来源:categories.php

示例9: step9

    public function step9()
    {
        if (!is_file(PLX_ROOT . '.htaccess')) {
            echo "Cr&eacute;ation du fichier .htaccess<br />";
            $txt = '<Files "version">
    Order allow,deny
    Deny from all
</Files>';
            if (!plxUtils::write($txt, PLX_ROOT . '.htaccess')) {
                echo '<p class="error">Erreur pendant la cr&eacute;tion du fichier .htaccess</p>';
                return false;
            }
        }
        return true;
    }
开发者ID:Bivi,项目名称:pluxml_bvi,代码行数:15,代码来源:update_5.0.php

示例10:

" title="Revenir au site">Retour</a></p>
		<?php 
    } else {
        ?>
			<form action="index.php" method="post">
			<fieldset>
				<p><strong>Vous allez mettre &agrave; jour votre ancienne version de PluXml <?php 
        echo $plxUpdater->oldVersion;
        ?>
</strong></p>
				<?php 
        if (empty($plxUpdater->oldVersion)) {
            ?>
					<p>Veuillez s&eacute;lectionner dans la liste ci-dessous votre ancienne version de PluXml &agrave; mettre &agrave; jour.</p>
					<p><?php 
            plxUtils::printSelect('version', $versions, '');
            ?>
</p>
					<p>
						Si votre ancienne version n'est pas list&eacute;e ici, c'est qu'il n'existe pas de proc&eacute;dure automatis&eacute;e de mise &agrave; jour car votre version est trop vieille.<br />
						Nous vous sugg&eacute;rons de t&eacute;l&eacute;charger la derni&egrave;re version de <a href="http://pluxml.org">PluXml</a> et de faire une nouvelle installation.
					</p>
				<?php 
        }
        ?>
				<br />
				<p class="msg">Attention, avant de d&eacute;marrer la mise &agrave; jour, n'oubliez pas de faire une sauvegarde de vos donn&eacute;es en faisant une copie du dossier "data"</p>
				<p style="text-align:center"><input type="submit" name="submit" value="D&eacute;marrer la mise &agrave; jour" /></p>
			</fieldset>
			</form>
		<?php 
开发者ID:Bivi,项目名称:pluxml_bvi,代码行数:31,代码来源:index.php

示例11: array

plxUtils::printSelect('feed_chapo', array('1' => L_YES, '0' => L_NO), $plxAdmin->aConf['feed_chapo']);
?>
				<a class="hint"><span><?php 
echo L_CONFIG_VIEW_FEEDS_HEADLINE_HELP;
?>
</span></a>
			</div>
		</div>
		<div class="grid">
			<div class="col sml-12">
				<label for="id_content"><?php 
echo L_CONFIG_VIEW_FEEDS_FOOTER;
?>
&nbsp;:</label>
				<?php 
plxUtils::printArea('content', plxUtils::strCheck($plxAdmin->aConf['feed_footer']), 140, 5);
?>
			</div>
		</div>

	</fieldset>

	<?php 
eval($plxAdmin->plxPlugins->callHook('AdminSettingsDisplay'));
?>
	<?php 
echo plxToken::getTokenPostMethod();
?>

</form>
开发者ID:vovd,项目名称:PluXml,代码行数:30,代码来源:parametres_affichage.php

示例12: install

function install($content, $config)
{
    # gestion du timezone
    date_default_timezone_set($config['timezone']);
    # Création du fichier de configuration
    $xml = '<?xml version="1.0" encoding="' . PLX_CHARSET . '"?>' . "\n";
    $xml .= '<document>' . "\n";
    foreach ($config as $k => $v) {
        if (is_numeric($v)) {
            $xml .= "\t<parametre name=\"{$k}\">" . $v . "</parametre>\n";
        } else {
            $xml .= "\t<parametre name=\"{$k}\"><![CDATA[" . plxUtils::cdataCheck($v) . "]]></parametre>\n";
        }
    }
    $xml .= '</document>';
    plxUtils::write($xml, path('XMLFILE_PARAMETERS'));
    # Création du fichier des utilisateurs
    $salt = plxUtils::charAleatoire(10);
    $xml = '<?xml version="1.0" encoding="' . PLX_CHARSET . '"?>' . "\n";
    $xml .= "<document>\n";
    $xml .= "\t" . '<user number="001" active="1" profil="0" delete="0">' . "\n";
    $xml .= "\t\t" . '<login><![CDATA[' . trim($content['login']) . ']]></login>' . "\n";
    $xml .= "\t\t" . '<name><![CDATA[' . trim($content['name']) . ']]></name>' . "\n";
    $xml .= "\t\t" . '<infos><![CDATA[]]></infos>' . "\n";
    $xml .= "\t\t" . '<password><![CDATA[' . sha1($salt . md5(trim($content['pwd']))) . ']]></password>' . "\n";
    $xml .= "\t\t" . '<salt><![CDATA[' . $salt . ']]></salt>' . "\n";
    $xml .= "\t\t" . '<email><![CDATA[]]></email>' . "\n";
    $xml .= "\t\t" . '<lang><![CDATA[' . $config['default_lang'] . ']]></lang>' . "\n";
    $xml .= "\t</user>\n";
    $xml .= "</document>";
    plxUtils::write($xml, path('XMLFILE_USERS'));
    # Création du fichier des categories
    $xml = '<?xml version="1.0" encoding="' . PLX_CHARSET . '"?>' . "\n";
    $xml .= '<document>' . "\n";
    $xml .= "\t" . '<categorie number="001" active="1" homepage="1" tri="' . $config['tri'] . '" bypage="' . $config['bypage'] . '" menu="oui" url="' . L_DEFAULT_CATEGORY_URL . '" template="categorie.php"><name><![CDATA[' . plxUtils::strRevCheck(L_DEFAULT_CATEGORY_TITLE) . ']]></name><description><![CDATA[]]></description><meta_description><![CDATA[]]></meta_description><meta_keywords><![CDATA[]]></meta_keywords><title_htmltag><![CDATA[]]></title_htmltag></categorie>' . "\n";
    $xml .= '</document>';
    plxUtils::write($xml, path('XMLFILE_CATEGORIES'));
    # Création du fichier des pages statiques
    $xml = '<?xml version="1.0" encoding="' . PLX_CHARSET . '"?>' . "\n";
    $xml .= '<document>' . "\n";
    $xml .= "\t" . '<statique number="001" active="1" menu="oui" url="' . L_DEFAULT_STATIC_URL . '" template="static.php"><group><![CDATA[]]></group><name><![CDATA[' . plxUtils::strRevCheck(L_DEFAULT_STATIC_TITLE) . ']]></name><meta_description><![CDATA[]]></meta_description><meta_keywords><![CDATA[]]></meta_keywords><title_htmltag><![CDATA[]]></title_htmltag></statique>' . "\n";
    $xml .= '</document>';
    plxUtils::write($xml, path('XMLFILE_STATICS'));
    plxUtils::write(file_get_contents(PLX_CORE . '/lib/html.static.txt'), PLX_ROOT . $config['racine_statiques'] . '001.' . L_DEFAULT_STATIC_URL . '.php');
    # Création du premier article
    $html = explode('-----', file_get_contents(PLX_CORE . '/lib/html.article.txt'));
    $xml = '<?xml version="1.0" encoding="' . PLX_CHARSET . '"?>' . "\n";
    $xml .= '<document>
	<title><![CDATA[' . plxUtils::strRevCheck(L_DEFAULT_ARTICLE_TITLE) . ']]></title>
	<allow_com>1</allow_com>
	<template><![CDATA[article.php]]></template>
	<chapo>
		<![CDATA[' . $html[0] . ']]>
	</chapo>
	<content>
		<![CDATA[' . $html[1] . ']]>
	</content>
	<tags>
		<![CDATA[PluXml]]>
	</tags>
	<meta_description>
		<![CDATA[]]>
	</meta_description>
	<meta_keywords>
		<![CDATA[]]>
	</meta_keywords>
	<title_htmltag>
		<![CDATA[]]>
	</title_htmltag>
</document>';
    plxUtils::write($xml, PLX_ROOT . $config['racine_articles'] . '0001.001.001.' . date('YmdHi') . '.' . L_DEFAULT_ARTICLE_URL . '.xml');
    # Création du fichier des tags servant de cache
    $xml = '<?xml version="1.0" encoding="' . PLX_CHARSET . '"?>' . "\n";
    $xml .= '<document>' . "\n";
    $xml .= "\t" . '<article number="0001" date="' . date('YmdHi') . '" active="1"><![CDATA[PluXml]]></article>' . "\n";
    $xml .= '</document>';
    plxUtils::write($xml, path('XMLFILE_TAGS'));
    # Création du fichier des plugins
    $xml = '<?xml version="1.0" encoding="' . PLX_CHARSET . '"?>' . "\n";
    $xml .= '<document>' . "\n";
    $xml .= '</document>';
    plxUtils::write($xml, path('XMLFILE_PLUGINS'));
    # Création du premier commentaire
    $xml = '<?xml version="1.0" encoding="' . PLX_CHARSET . '"?>' . "\n";
    $xml .= '<comment>
	<author><![CDATA[pluxml]]></author>
		<type>normal</type>
		<ip>127.0.0.1</ip>
		<mail><![CDATA[contact@pluxml.org]]></mail>
		<site><![CDATA[http://www.pluxml.org]]></site>
		<content><![CDATA[' . plxUtils::strRevCheck(L_DEFAULT_COMMENT_CONTENT) . ']]></content>
	</comment>';
    plxUtils::write($xml, PLX_ROOT . $config['racine_commentaires'] . '0001.' . date('U') . '-1.xml');
}
开发者ID:vovd,项目名称:PluXml,代码行数:94,代码来源:install.php

示例13:

				<p>Par <strong><?php 
        echo $plxAdmin->plxRecord_coms->f('author');
        ?>
</strong> 
				le <?php 
        echo plxDate::dateIsoToHum($plxAdmin->plxRecord_coms->f('date'), '#day #num_day #month #num_year(4) &agrave; #hour:#minute');
        ?>
				 - <a href="commentaire.php<?php 
        echo !empty($_GET['a']) ? '?c=' . $comId . '&amp;a=' . $_GET['a'] : '?c=' . $comId;
        ?>
" title="&Eacute;diter ce commentaire">&eacute;diter</a>
				 - <a href="javascript:answerCom('content','<?php 
        echo $plxAdmin->plxRecord_coms->f('numero');
        ?>
','<?php 
        echo plxUtils::strCheck($plxAdmin->plxRecord_coms->f('author'));
        ?>
');" title="R&Eacute;pondre &agrave; ce commentaire">r&eacute;pondre</a>
				</p>
			</div>
			<blockquote><p><?php 
        echo nl2br($plxAdmin->plxRecord_coms->f('content'));
        ?>
</p></blockquote>
		</div>
	<?php 
    }
    ?>
	</div>
<?php 
}
开发者ID:Bivi,项目名称:pluxml_bvi,代码行数:31,代码来源:commentaire_new.php

示例14: pluginsList

function pluginsList($plugins, $defaultLang, $type)
{
    # plugins		array()		contient la liste des plugins à afficher
    # defaultLang	string		langue utilisée dans l'admin
    # type			true|false	true=liste des plugins actifs, false=liste des plugins inactifs
    $output = '';
    if (sizeof($plugins) > 0) {
        $num = 0;
        foreach ($plugins as $plugName => $plugInstance) {
            $ordre = ++$num;
            # détermination de l'icone à afficher
            if (is_file(PLX_PLUGINS . $plugName . '/icon.png')) {
                $icon = PLX_PLUGINS . $plugName . '/icon.png';
            } elseif (is_file(PLX_PLUGINS . $plugName . '/icon.jpg')) {
                $icon = PLX_PLUGINS . $plugName . '/icon.jpg';
            } elseif (is_file(PLX_PLUGINS . $plugName . '/icon.gif')) {
                $icon = PLX_PLUGINS . $plugName . '/icon.gif';
            } else {
                $icon = PLX_CORE . 'admin/theme/images/icon_plugin.png';
            }
            $output .= '<tr class="top">';
            # checkbox
            $output .= '<td>';
            $output .= '<input type="hidden" name="plugName[]" value="' . $plugName . '" />';
            $output .= '<input type="checkbox" name="chkAction[]" value="' . $plugName . '" />';
            $output .= '</td>';
            # icon
            $output .= '<td><img src="' . $icon . '" alt="" /></td>';
            # plugin infos
            $output .= '<td class="wrap">';
            # message d'alerte si plugin non configuré
            if ($type and file_exists(PLX_PLUGINS . $plugName . '/config.php') and !file_exists(PLX_ROOT . PLX_CONFIG_PATH . 'plugins/' . $plugName . '.xml')) {
                $output .= '<span style="margin-top:5px" class="alert red float-right">' . L_PLUGIN_NO_CONFIG . '</span>';
            }
            # title + version
            $output .= '<strong>' . plxUtils::strCheck($plugInstance->getInfo('title')) . '</strong> - ' . L_PLUGINS_VERSION . ' <strong>' . plxUtils::strCheck($plugInstance->getInfo('version')) . '</strong>';
            # date
            if ($plugInstance->getInfo('date') != '') {
                $output .= ' (' . plxUtils::strCheck($plugInstance->getInfo('date')) . ')';
            }
            # description
            $output .= '<br />' . plxUtils::strCheck($plugInstance->getInfo('description')) . '<br />';
            # author
            $output .= L_PLUGINS_AUTHOR . ' : ' . plxUtils::strCheck($plugInstance->getInfo('author'));
            # site
            if ($plugInstance->getInfo('site') != '') {
                $output .= ' - <a href="' . plxUtils::strCheck($plugInstance->getInfo('site')) . '">' . plxUtils::strCheck($plugInstance->getInfo('site')) . '</a>';
            }
            $output .= '</td>';
            # colonne pour trier les plugins
            if ($type) {
                $output .= '<td>';
                $output .= '<input size="2" maxlength="3" type="text" name="plugOrdre[' . $plugName . ']" value="' . $ordre . '" />';
                $output .= '</td>';
            }
            # affichage des liens du plugin
            $output .= '<td class="right">';
            # lien configuration
            if (is_file(PLX_PLUGINS . $plugName . '/config.php')) {
                $output .= '<a title="' . L_PLUGINS_CONFIG_TITLE . '" href="parametres_plugin.php?p=' . urlencode($plugName) . '">' . L_PLUGINS_CONFIG . '</a><br />';
            }
            # lien pour code css
            $output .= '<a title="' . L_PLUGINS_CSS_TITLE . '" href="parametres_plugincss.php?p=' . urlencode($plugName) . '">' . L_PLUGINS_CSS . '</a><br />';
            # lien aide
            if (is_file(PLX_PLUGINS . $plugName . '/lang/' . $defaultLang . '-help.php')) {
                $output .= '<a title="' . L_HELP_TITLE . '" href="parametres_help.php?help=plugin&amp;page=' . urlencode($plugName) . '">' . L_HELP . '</a>';
            }
            $output .= '</td>';
            $output .= '</tr>';
        }
    } else {
        $colspan = $_SESSION['selPlugins'] == '1' ? 5 : 4;
        $output .= '<tr><td colspan="' . $colspan . '" class="center">' . L_NO_PLUGIN . '</td></tr>';
    }
    return $output;
}
开发者ID:mathieu269,项目名称:PluXml,代码行数:76,代码来源:parametres_plugins.php

示例15: date

					<label><?php 
echo L_DATE_UPDATE;
?>
&nbsp;:</label>
					<div class="inline-form">
						<?php 
plxUtils::printInput('date_update_day', $date_update['day'], 'text', '2-2', false, 'day');
?>
						<?php 
plxUtils::printInput('date_update_month', $date_update['month'], 'text', '2-2', false, 'month');
?>
						<?php 
plxUtils::printInput('date_update_year', $date_update['year'], 'text', '2-4', false, 'year');
?>
						<?php 
plxUtils::printInput('date_update_time', $date_update['time'], 'text', '2-5', false, 'time');
?>
						<a class="ico_cal" href="javascript:void(0)" onclick="dateNow('date_update', <?php 
echo date('Z');
?>
); return false;" title="<?php 
L_NOW;
?>
">
							<img src="theme/images/date.png" alt="calendar" />
						</a>
					</div>
				</div>
			</div>
		</fieldset>
	<?php 
开发者ID:mathieu269,项目名称:PluXml,代码行数:31,代码来源:statique.php


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