[ Index ]
 

Code source de Plume CMS 1.2.2

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/manager/tools/visualedit/ -> index.php (source)

   1  <?php
   2  /* -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
   3  /*
   4  # ***** BEGIN LICENSE BLOCK *****
   5  # This file is part of Plume CMS, a website management application.
   6  # Copyright (C) 2001-2005 Loic d'Anterroches and contributors.
   7  # 
   8  # Credits: Olivier Meunier
   9  #
  10  # Plume CMS is free software; you can redistribute it and/or modify
  11  # it under the terms of the GNU General Public License as published by
  12  # the Free Software Foundation; either version 2 of the License, or
  13  # (at your option) any later version.
  14  #
  15  # Plume CMS is distributed in the hope that it will be useful,
  16  # but WITHOUT ANY WARRANTY; without even the implied warranty of
  17  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  18  # GNU General Public License for more details.
  19  #
  20  # You should have received a copy of the GNU General Public License
  21  # along with this program; if not, write to the Free Software
  22  # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
  23  #
  24  # ***** END LICENSE BLOCK ***** */
  25  
  26  
  27  require_once dirname(__FILE__).'/../../path.php';
  28  require_once $_PX_config['manager_path'].'/prepend.php';
  29  auth::checkAuth(PX_AUTH_NORMAL);
  30  
  31  $m = new Manager();
  32  $_px_theme = $m->user->getTheme();
  33  $m->l10n->loadPlugin($m->user->lang, 'visualedit');
  34  $px_title = __('Add a link');
  35  
  36  
  37  /* Can be include only after the creation of the user ($u) and the manager ($m)
  38     objects as they are used here. */
  39  header('Content-Type: text/html; charset='.strtolower($GLOBALS['_PX_config']['encoding']));
  40  ?>
  41  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  42   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  43  <html xmlns="http://www.w3.org/1999/xhtml">
  44  <head>
  45    <title><?php echo $px_title; ?> - PLUME CMS</title>
  46    <script type="text/javascript" src="../../tools.js"> </script>
  47    <script type="text/javascript">
  48    addLoadEvent(function() {
  49        if (window.opener && window.opener.the_toolbar)
  50            tb = window.opener.the_toolbar;
  51    });
  52    </script>
  53    <script type="text/javascript" src="js/common.js"></script>
  54    <script type="text/javascript" src="js/popup_link.js"></script>
  55    <link rel="stylesheet" type="text/css" href="../../themes/<?php echo $_px_theme; ?>/style.css" />
  56    <meta http-equiv="Content-Type" content="text/html; charset=<?php echo strtolower($GLOBALS['_PX_config']['encoding']); ?>" />
  57    <script type="text/javascript">
  58    <!--  
  59    var pxThemeid = '<?php echo $_px_theme; ?>';  
  60    //-->
  61    </script>
  62  </head>
  63  <body>
  64  <div id="main-pop">
  65  <div id="content">
  66  
  67  
  68  <?php
  69  if(!empty($_GET['msg'])) {
  70      echo '<p class="message">'.$_GET['msg'].'</p>';
  71  }
  72  if (false !== ($px_error = $m->error(true, false)) )
  73      echo "\n\n" . $px_error . "\n\n"; 
  74  
  75  echo '<p style="text-align: right;"><a href="#" onclick="window.close(); return false;">'.__('Close this window').'</a></p>';
  76  
  77  $href = !empty($_GET['href']) ? $_GET['href'] : '';
  78  $title = !empty($_GET['title']) ? $_GET['title'] : '';
  79  $hreflang = !empty($_GET['hreflang']) ? $_GET['hreflang'] : '';
  80  
  81  echo
  82  '<form id="link-insert-form" action="#" method="get">'.
  83  '<p><label class="required" title="'.__('Required field').'">'.__('Link URL:').' '.
  84  form::textField('href', 35, 255, $href).'</label></p>'.
  85  '<p><label>'.__('Link title:').' '.
  86  form::textField('title',35,255,$title).'</label></p>'.
  87  '<p><label>'.__('Link language:').' '.
  88  form::textField('hreflang',5,5,$hreflang).'</label></p>'.
  89  '</form>'.
  90  
  91  '<p><a href="#" id="link-insert-cancel">'.__('cancel').'</a> - '.
  92  '<strong><a href="#" id="link-insert-ok">'.__('insert link').'</a></strong></p>';
  93  
  94  echo '<p style="text-align: right;"><a href="#" onclick="window.close(); return false;">'.__('Close this window').'</a></p>';
  95  include dirname(__FILE__).'/../../mtemplates/_pop_bottom.php';
  96  
  97  ?>


Généré le : Mon Nov 26 11:57:01 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics