Overview
Comment: | Utilisation d'une page du wiki comme page d'accueil à la connexion |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
1e79f6cd3b96ce3ba5bc9bc26caa5200 |
User & Date: | bohwaz on 2012-12-23 03:15:19 |
Other Links: | manifest | tags |
Context
2012-12-23
| ||
03:34 | Correction pour namespaces check-in: c0095fd2ba user: bohwaz tags: trunk | |
03:15 | Utilisation d'une page du wiki comme page d'accueil à la connexion check-in: 1e79f6cd3b user: bohwaz tags: trunk | |
03:13 | Corrections pour namespaces check-in: 9c4927d404 user: bohwaz tags: trunk | |
Changes
Modified templates/admin/config/index.tpl from [b691b0a79e] to [df0ace960c].
︙ | ︙ | |||
65 66 67 68 69 70 71 | <dd><input type="text" name="email_envoi_automatique" id="f_email_envoi_automatique" value="{form_field data=$config name=email_envoi_automatique}" /></dd> </dl> </fieldset> <fieldset> <legend>Wiki</legend> <dl> | | > > > > > | 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 | <dd><input type="text" name="email_envoi_automatique" id="f_email_envoi_automatique" value="{form_field data=$config name=email_envoi_automatique}" /></dd> </dl> </fieldset> <fieldset> <legend>Wiki</legend> <dl> <dt><label for="f_accueil_wiki">Page d'accueil du wiki</label> <b title="(Champ obligatoire)">obligatoire</b></dt> <dd>Indiquer ici l'adresse unique de la page qui sera utilisée comme page d'accueil du wiki.</dd> <dd><input type="text" name="accueil_wiki" id="f_accueil_wiki" value="{form_field data=$config name=accueil_wiki}" /></dd> <dt><label for="f_accueil_connexion">Page d'accueil à la connexion</label> <b title="(Champ obligatoire)">obligatoire</b></dt> <dd>Indiquer ici l'adresse unique de la page qui sera affichée à la connexion d'un membre.</dd> <dd><input type="text" name="accueil_connexion" id="f_accueil_connexion" value="{form_field data=$config name=accueil_connexion}" /></dd> </dl> </fieldset> <p class="submit"> {csrf_field key="config"} <input type="submit" name="save" value="Enregistrer →" /> </p> </form> {include file="admin/_foot.tpl"} |
Modified templates/admin/index.tpl from [386daead73] to [3ef801d675].
|
| | | > | | > < > > > | < | < | > > | < > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | {include file="admin/_head.tpl" title="Bonjour `$user.nom` !" current="home"} <div class="infos_asso"> <h3>{$config.nom_asso|escape}</h3> {if !empty($config.adresse_asso)} <p> {$config.adresse_asso|escape|nl2br} </p> {/if} {if !empty($config.email_asso)} <p> E-Mail : {mailto address=$config.email_asso} </p> {/if} {if !empty($config.site_asso)} <p> Web : <a href="{$config.site_asso|escape}">{$config.site_asso|escape}</a> </p> {/if} </div> <ul class="actions"> <li><a href="{$admin_url}mes_infos.php">Modifier mes informations personnelles</a></li> <li>Cotisation : {if empty($user.date_cotisation)}<b class="error">jamais réglée</b> {elseif $verif_cotisation === true}<b class="confirm">À jour :-)</b> {else}<b class="alert">En retard !</b>{/if} </li> </ul> <div class="wikiContent"> {$page.contenu.contenu|format_wiki|liens_wiki:'?'} </div> {include file="admin/_foot.tpl"} |
Modified www/admin/config/index.php from [7317baac5f] to [468c346e92].
︙ | ︙ | |||
26 27 28 29 30 31 32 33 34 35 36 37 38 39 | try { $config->set('nom_asso', utils::post('nom_asso')); $config->set('email_asso', utils::post('email_asso')); $config->set('adresse_asso', utils::post('adresse_asso')); $config->set('site_asso', utils::post('site_asso')); $config->set('email_envoi_automatique', utils::post('email_envoi_automatique')); $config->set('accueil_wiki', utils::post('accueil_wiki')); $config->set('pays', utils::post('pays')); $config->set('monnaie', utils::post('monnaie')); $config->save(); utils::redirect('/admin/config/?ok'); | > | 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | try { $config->set('nom_asso', utils::post('nom_asso')); $config->set('email_asso', utils::post('email_asso')); $config->set('adresse_asso', utils::post('adresse_asso')); $config->set('site_asso', utils::post('site_asso')); $config->set('email_envoi_automatique', utils::post('email_envoi_automatique')); $config->set('accueil_wiki', utils::post('accueil_wiki')); $config->set('accueil_connexion', utils::post('accueil_connexion')); $config->set('pays', utils::post('pays')); $config->set('monnaie', utils::post('monnaie')); $config->save(); utils::redirect('/admin/config/?ok'); |
︙ | ︙ |
Modified www/admin/index.php from [fa023c719f] to [abba5d78d2].
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | <?php namespace Garradin; require_once __DIR__ . '/_inc.php'; $cats = new Membres_Categories; $categorie = $cats->get($user['id_categorie']); $tpl->assign('categorie', $categorie); $tpl->assign('verif_cotisation', Membres::checkCotisation($user['date_cotisation'], $categorie['duree_cotisation'])); $tpl->display('admin/index.tpl'); ?> | > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | <?php namespace Garradin; require_once __DIR__ . '/_inc.php'; $cats = new Membres_Categories; $categorie = $cats->get($user['id_categorie']); $tpl->assign('categorie', $categorie); $tpl->assign('verif_cotisation', Membres::checkCotisation($user['date_cotisation'], $categorie['duree_cotisation'])); $wiki = new Wiki; $page = $wiki->getByURI($config->get('accueil_connexion')); $tpl->assign('page', $page); $tpl->display('admin/index.tpl'); ?> |
Modified www/admin/install.php from [c31ecdf400] to [91c497d948].
︙ | ︙ | |||
130 131 132 133 134 135 136 | $id_page = $wiki->create(array( 'titre' => utils::post('nom_asso'), 'uri' => $page, )); $wiki->editRevision($id_page, 0, array( 'id_auteur' => $id_membre, | | > > > > > > > > > > > > > > | 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 | $id_page = $wiki->create(array( 'titre' => utils::post('nom_asso'), 'uri' => $page, )); $wiki->editRevision($id_page, 0, array( 'id_auteur' => $id_membre, 'contenu' => "Bienvenue dans le wiki de ".utils::post('nom_asso')." !\n\nCliquez sur le bouton « éditer » pour modifier cette page.", )); // Création page wiki connexion $page = Wiki::transformTitleToURI('Bienvenue'); $config->set('accueil_connexion', $page); $id_page = $wiki->create(array( 'titre' => 'Bienvenue', 'uri' => $page, )); $wiki->editRevision($id_page, 0, array( 'id_auteur' => $id_membre, 'contenu' => "Bienvenue dans l'administration de ".utils::post('nom_asso')." !\n\n" . "Utilisez le menu à gauche pour accéder aux différentes rubriques.", )); // Mise en place compta $comptes = new Compta_Comptes; $comptes->importPlan(); $comptes = new Compta_Categories; $comptes->importCategories(); |
︙ | ︙ |
Modified www/admin/static/admin.css from [ff7103a9c1] to [8fe29bd679].
︙ | ︙ | |||
904 905 906 907 908 909 910 911 912 913 914 915 916 917 | margin-bottom: .5em; } dl.describe > dd { margin-bottom: .5em; margin-left: 15em; } @media print { body { background: #fff; } .header .menu { display: none; | > > > > > > > > > | 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 | margin-bottom: .5em; } dl.describe > dd { margin-bottom: .5em; margin-left: 15em; } .infos_asso { width: 20%; float: right; margin: .5em; border: .1em solid #ccc; background: #eee; padding: .5em; } @media print { body { background: #fff; } .header .menu { display: none; |
︙ | ︙ |
Modified www/admin/upgrade.php from [ccc2bd00cb] to [378998832e].
︙ | ︙ | |||
50 51 52 53 54 55 56 57 58 59 60 61 62 | $comptes->importCategories(); } if (version_compare($v, '0.4.3', '<')) { $db->exec(file_get_contents(GARRADIN_ROOT . '/include/data/0.4.3.sql')); } utils::clearCaches(); $config->setVersion(garradin_version()); echo '<h4>Mise à jour terminée.</h4> | > > > > > > > > > > > > > > > > > > > > > > > > > > > > | > > > > > | 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 | $comptes->importCategories(); } if (version_compare($v, '0.4.3', '<')) { $db->exec(file_get_contents(GARRADIN_ROOT . '/include/data/0.4.3.sql')); } if (version_compare($v, '0.5.0', '<')) { // Mise à jour plan comptable $comptes = new Compta_Comptes; $comptes->importPlan(); // Création page wiki connexion $wiki = new Wiki; $page = Wiki::transformTitleToURI('Bienvenue'); $config->set('accueil_connexion', $page); if (!$wiki->getByUri($page)) { $id_page = $wiki->create(array( 'titre' => 'Bienvenue', 'uri' => $page, )); $wiki->editRevision($id_page, 0, array( 'contenu' => "Bienvenue dans l'administration de ".$config->get('nom_asso')." !\n\n" . "Utilisez le menu à gauche pour accéder aux différentes rubriques.", )); } $config->set('accueil_connexion', $page); $config->save(); } utils::clearCaches(); $config->setVersion(garradin_version()); echo '<h4>Mise à jour terminée.</h4> <p><a href="'.WWW_URL.'admin/">Retour</a></p> <script type="text/javascript"> window.setTimeout(function () { window.location.href = "'.WWW_URL.'admin/"; }, 1000); </script>'; ?> |