Ejemplo n.º 1
0
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>
Ejemplo n.º 2
0
echo '<a href="' . $plxAdmin->racine . '">' . $plxAdmin->racine . '</a>';
?>
</li>
	<li>Article attach&eacute; : <?php 
echo $article;
?>
</li>
</ul>

<form action="commentaire_new.php?<?php 
echo $get;
?>
" method="post" id="change-com-content">
	<fieldset>
		<?php 
plxUtils::printArea('content', plxUtils::strCheck($content), 60, 7);
?>
		<p class="center">
			<input type="submit" name="create" value="Enregistrer"/>
		</p>
	</fieldset>
</form>

<?php 
if ($plxAdmin->plxGlob_coms->count and !empty($plxAdmin->plxRecord_coms->size)) {
    # On a des commentaires
    ?>
	<h2>Commentaires de cet article (du plus r&eacute;cent au plus ancien) :</h2>
	<div id="comments">
	<?php 
    while ($plxAdmin->plxRecord_coms->loop()) {
Ejemplo n.º 3
0
<h2>Edition de votre profil</h2>

<form action="profil.php" method="post" id="change-profil-file">
	<fieldset class="withlabel">
		<legend>Profil :</legend>
		<p class="field"><label>Login de connexion&nbsp;:</label>&nbsp;<strong><?php 
echo plxUtils::strCheck($profil['login']);
?>
</strong></p>
		<p class="field"><label>Nom d'utilisateur&nbsp;:</label></p>
		<?php 
plxUtils::printInput('name', plxUtils::strCheck($profil['name']), 'text', '20-255');
?>
		<p class="field"><label>Informations&nbsp;:</label></p>
		<?php 
plxUtils::printArea('infos', plxUtils::strCheck($profil['infos']), 140, 5);
?>
	</fieldset>
	<p class="center"><input type="submit" name="profil" value="Modifier votre profil" /></p>	
	<fieldset class="withlabel">
		<legend>Changement du mot de passe :</legend>
		<p class="field"><label>Mot de passe&nbsp;:</label></p>
		<?php 
plxUtils::printInput('password1', '', 'password', '20-255');
?>
		<p class="field"><label>Confirmation du mot de passe&nbsp;:</label></p>
		<?php 
plxUtils::printInput('password2', '', 'password', '20-255');
?>
		
	</fieldset>
Ejemplo n.º 4
0
echo L_EDITCAT_DISPLAY_HOMEPAGE;
?>
&nbsp;:</label>
				<?php 
plxUtils::printSelect('homepage', array('1' => L_YES, '0' => L_NO), $plxAdmin->aCats[$id]['homepage']);
?>
			</div>
		</div>
		<div class="grid">
			<div class="col sml-12">
				<label for="id_content"><?php 
echo L_EDITCAT_DESCRIPTION;
?>
&nbsp;:</label>
				<?php 
plxUtils::printArea('content', plxUtils::strCheck($plxAdmin->aCats[$id]['description']), 95, 8, false, 'full-width');
?>
			</div>
		</div>
		<div class="grid">
			<div class="col sml-12">
				<label for="id_template"><?php 
echo L_EDITCAT_TEMPLATE;
?>
&nbsp;:</label>
				<?php 
plxUtils::printSelect('template', $aTemplates, $plxAdmin->aCats[$id]['template']);
?>
			</div>
		</div>
		<div class="grid">
Ejemplo n.º 5
0
	</div>

	<?php 
eval($plxAdmin->plxPlugins->callHook('AdminSettingsEdittplTop'));
?>

	<div class="grid">
		<div class="col sml-12">
			<label for="id_content"><?php 
echo L_CONTENT_FIELD;
?>
&nbsp;:</label>
			<?php 
plxUtils::printInput('tpl', plxUtils::strCheck($tpl), 'hidden');
?>
			<?php 
plxUtils::printArea('content', plxUtils::strCheck($content), 60, 20, false, 'full-width');
?>
			<?php 
eval($plxAdmin->plxPlugins->callHook('AdminSettingsEdittpl'));
?>
		</div>
	</div>
	
</form>

<?php 
# Hook Plugins
eval($plxAdmin->plxPlugins->callHook('AdminSettingsEdittplFoot'));
# On inclut le footer
include dirname(__FILE__) . '/foot.php';
Ejemplo n.º 6
0
			<div class="col sml-12">
				<label for="id_content"><?php 
echo L_COMMENT_ARTICLE_FIELD;
?>
 :</label>
				<?php 
if ($plxAdmin->plxRecord_coms->f('type') == 'admin') {
    ?>
					<?php 
    plxUtils::printArea('content', plxUtils::strCheck($plxAdmin->plxRecord_coms->f('content')), 60, 7, false, 'full-width');
    ?>
				<?php 
} else {
    ?>
					<?php 
    plxUtils::printArea('content', $plxAdmin->plxRecord_coms->f('content'), 60, 7, false, 'full-width');
    ?>
				<?php 
}
?>
				<?php 
eval($plxAdmin->plxPlugins->callHook('AdminComment'));
?>
			</div>
		</div>

	</fieldset>
</form>

<?php 
# Hook Plugins
Ejemplo n.º 7
0
&nbsp;:</label>
			</div>
			<div class="col sml-12 med-7">
				<?php 
plxUtils::printInput('email', plxUtils::strCheck($plxAdmin->aUsers[$id]['email']), 'text', '30-255');
?>
			</div>
		</div>
		<div class="grid">
			<div class="col sml-12">
				<label for="id_content"><?php 
echo L_USER_INFOS;
?>
&nbsp;:</label>
				<?php 
plxUtils::printArea('content', plxUtils::strCheck($plxAdmin->aUsers[$id]['infos']), 95, 8);
?>
			</div>
		</div>
	</fieldset>
	<?php 
eval($plxAdmin->plxPlugins->callHook('AdminUser'));
?>

</form>

<?php 
# Hook Plugins
eval($plxAdmin->plxPlugins->callHook('AdminUserFoot'));
# On inclut le footer
include dirname(__FILE__) . '/foot.php';
Ejemplo n.º 8
0
echo $view;
?>
&amp;o=<?php 
echo $origine;
?>
" method="post" id="change-art-content">
	<fieldset>
		<?php 
$label = $view == 'chapo' ? 'Chap&ocirc; (facultatif)' : 'Contenu';
?>
		<p class="field"><label><?php 
echo $label;
?>
&nbsp;:</label></p>
		<?php 
plxUtils::printArea($view, plxUtils::strCheck($content), 60, 30);
?>
		<p style="clear:both;text-align:center">
			<?php 
if ($origine == 'article') {
    ?>
				<input type="submit" name="preview" value="Aper&ccedil;u" />
			<?php 
}
?>
			<input type="submit" name="update" value="Mettre &agrave; jour" onclick="updater()" />
			<input type="submit" name="close" value="Fermer" onclick="window.close()" />
		</p>
	</fieldset>
</form>
<?php 
Ejemplo n.º 9
0
			<?php 
if ($_SESSION['profil'] < PROFIL_WRITER) {
    plxUtils::printSelect('author', $users, $author);
} else {
    echo '<input type="hidden" name="author" value="' . $author . '" />';
    echo '<strong>' . plxUtils::strCheck($plxAdmin->aUsers[$author]['name']) . '</strong>';
}
?>
			</p>
			<p class="field"><label>Chap&ocirc; (facultatif)&nbsp;:</label></p>
			<?php 
plxUtils::printArea('chapo', plxUtils::strCheck($chapo), 95, 8);
?>
			<p class="field"><label>Contenu&nbsp;:</label></p>
			<?php 
plxUtils::printArea('content', plxUtils::strCheck($content), 95, 20);
?>
		</fieldset>
	</div>
	<div style="float:right;width:270px">
		<p class="head">&Eacute;tat&nbsp;:&nbsp;<strong> 
		<?php 
if (is_array($catId) and sizeof($catId) > 0) {
    echo in_array('draft', $catId) ? 'Brouillon' : 'Publi&eacute;';
} else {
    echo "Brouillon";
}
?>
</strong>
		</p>	
		<fieldset>
Ejemplo n.º 10
0
				<label for="id_frontend"><?php 
echo L_CONTENT_FIELD_FRONTEND;
?>
&nbsp;:</label>
				<?php 
plxUtils::printArea('frontend', plxUtils::strCheck($frontend), 60, 20, false, 'full-width');
?>
			</div>
		</div>
		<div class="grid">
			<div class="col sml-12">
				<label for="id_backend"><?php 
echo L_CONTENT_FIELD_BACKEND;
?>
&nbsp;:</label>
				<?php 
plxUtils::printArea('backend', plxUtils::strCheck($backend), 60, 20, false, 'full-width');
?>
				<?php 
eval($plxAdmin->plxPlugins->callHook('AdminPluginCss'));
?>
				<?php 
echo plxToken::getTokenPostMethod();
?>
			</div>
		</div>
	</fieldset>
</form>
<?php 
# On inclut le footer
include dirname(__FILE__) . '/foot.php';
Ejemplo n.º 11
0
<?php

if (!defined('PLX_ROOT')) {
    exit;
}
# Control du token du formulaire
plxToken::validateFormToken($_POST);
if (!empty($_POST)) {
    $plxPlugin->setParam('buttons', $_POST['buttons'], 'cdata');
    $plxPlugin->saveParams();
    header('Location: parametres_plugin.php?p=plxToolbarEditor');
    exit;
}
?>


<div id="form" class="plxToolbarEditor" >
<form class="inline-form" action="parametres_plugin.php?p=plxToolbarEditor" method="post" id="form_test">

<?php 
plxUtils::printArea('buttons', $plxPlugin->getParam('buttons'), '50', '50');
?>

<p class="in-action-bar"><?php 
echo plxToken::getTokenPostMethod();
?>
<input type="submit" name="submit" value="Enregistrer" /></p>

</div>
Ejemplo n.º 12
0
				block_select_image.style.display="none";
			}
		</script>
		
		<p>
		<?php 
echo $image != "" ? '<img class="product_image" src="' . PLX_ROOT . $plxPlugin->cheminImages . $image . '">' : '';
?>
		</p>
		
		<p id="p_content"><label for="id_content"><?php 
echo L_CONTENT_FIELD;
?>
&nbsp;:</label></p>
		<?php 
plxUtils::printArea('content', plxUtils::strCheck($content), 140, 30);
?>
		
		<?php 
if ($active) {
    $link = $plxAdmin->urlRewrite('index.php?product' . intval($id) . '/' . $url);
    $codeTexte = $modProduit ? 'L_PRODUCT_VIEW_PAGE_ON_SITE' : 'L_CAT_VIEW_PAGE_ON_SITE';
    $texte = sprintf($plxPlugin->getLang($codeTexte), $title);
    ?>
			<p>
				<a href="<?php 
    echo $link;
    ?>
">
					<?php 
    echo plxUtils::strCheck($texte);
Ejemplo n.º 13
0
echo L_PROFIL_ADMIN_LANG;
?>
&nbsp;:</label>
				<?php 
plxUtils::printSelect('lang', plxUtils::getLangs(), $_profil['lang']);
?>
			</div>
		</div>
		<div class="grid">
			<div class="col sml-12">
				<label for="id_content"><?php 
echo L_PROFIL_INFOS;
?>
&nbsp;:</label>
				<?php 
plxUtils::printArea('content', plxUtils::strCheck($_profil['infos']), 140, 5, false, 'full-width');
?>
			</div>
		</div>
	</fieldset>
	<?php 
eval($plxAdmin->plxPlugins->callHook('AdminProfil'));
?>
	<?php 
echo plxToken::getTokenPostMethod();
?>

</form>

<h3><?php 
echo L_PROFIL_CHANGE_PASSWORD;
Ejemplo n.º 14
0
		<?php 
plxUtils::printInput('favicon', $plxPlugin->getParam('favicon'), 'text', '25-250');
?>
		
		<h2><?php 
echo $plxPlugin->getLang('L_CONFIG_CSS');
?>
</h2>
		<?php 
plxUtils::printArea('css', $plxPlugin->getParam('css'), 20, 75);
?>
		
		<h2><?php 
echo $plxPlugin->getLang('L_CONFIG_HTML');
?>
</h2>
		<?php 
plxUtils::printArea('html', $plxPlugin->getParam('html'), 20, 75);
?>

	</fieldset>
	<br />
	<?php 
echo plxToken::getTokenPostMethod();
?>
	<input type="submit" name="submit" value="<?php 
echo $plxPlugin->getLang('L_CONFIG_SAVE');
?>
" />
</form>
Ejemplo n.º 15
0
            echo '</td><td>';
            plxUtils::printInput($userid . '_password', '', 'password', '11-255');
            echo '</td><td>';
            if ($userid == '001') {
                plxUtils::printSelect($userid . '_profil', $aProfils, $user['profil'], true, 'readonly');
                echo '</td><td>';
                plxUtils::printSelect($userid . '_active', array('0' => 'Non', '1' => 'Oui'), $user['active'], true, 'readonly');
            } else {
                plxUtils::printSelect($userid . '_profil', $aProfils, $user['profil']);
                echo '</td><td>';
                plxUtils::printSelect($userid . '_active', array('0' => 'Non', '1' => 'Oui'), $user['active']);
            }
            echo '</td><td class="tc7"><a id="link_' . $userid . '" href="#" onclick="toggleTR(\'link_' . $userid . '\', \'tr_' . $userid . '\')">Options</a></td></tr>';
            echo '<tr style="display:none" id="tr_' . $userid . '"><td style="width:100%" colspan="8">';
            echo '<p>Informations&nbsp;:</p>';
            plxUtils::printArea($userid . '_infos', plxUtils::strCheck($user['infos']), 60, 5);
            echo '</td></tr>';
        }
    }
    # On r�cup�re le dernier identifiant
    $a = array_keys($plxAdmin->aUsers);
    rsort($a);
} else {
    $a['0'] = 0;
}
$new_userid = str_pad($a['0'] + 1, 3, "0", STR_PAD_LEFT);
?>
		<tr style="background-color:#e0e0e0">
		<td>&nbsp;</td>
			<td class="tc6">Nouvel utilisateur</td>
			<td>
Ejemplo n.º 16
0
	<fieldset>
		<?php 
plxUtils::printInput('comId', $_GET['c'], 'hidden');
?>
		<p class="field"><label>Commentaire&nbsp;:</label></p>
		<?php 
if ($plxAdmin->plxRecord_coms->f('type') == 'admin') {
    ?>
			<?php 
    plxUtils::printArea('content', plxUtils::strCheck($plxAdmin->plxRecord_coms->f('content')), 60, 7);
    ?>
		<?php 
} else {
    ?>
			<?php 
    plxUtils::printArea('content', $plxAdmin->plxRecord_coms->f('content'), 60, 7);
    ?>
		<?php 
}
?>
		<p class="center">
			<input class="bgred" type="submit" name="delete" value="Supprimer" onclick="Check=confirm('Supprimer ce commentaire ?');if(Check==false) return false;"/>
			&nbsp;&nbsp;&nbsp;&nbsp;
			<?php 
if (preg_match('/^_/', $_GET['c'])) {
    ?>
				<input type="submit" name="mod" value="Valider la publication" /> 
			<?php 
} else {
    ?>
				<input type="submit" name="mod" value="Mettre hors ligne" />