Author: cyb
Date: Fri Apr 27 14:25:46 2007
New Revision: 387

URL: http://svn.gna.org/viewcvs/phplinker?rev=387&view=rev
Log:
removed

Removed:
    trunk/www/admin/manage_tags.php

Removed: trunk/www/admin/manage_tags.php
URL: 
http://svn.gna.org/viewcvs/phplinker/trunk/www/admin/manage_tags.php?rev=386&view=auto
==============================================================================
--- trunk/www/admin/manage_tags.php (original)
+++ trunk/www/admin/manage_tags.php (removed)
@@ -1,278 +1,0 @@
-<?php
-/*
-    This file is part of PHPLinker.
-
-    PHPLinker is free software; you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation; either version 2 of the License, or
-    (at your option) any later version.
-
-    PHPLinker is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU General Public License for more details.
-
-    You should have received a copy of the GNU General Public License
-    along with PHPLinker; if not, write to the Free Software
-    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-*/
-  /**
-   * @version $Id$
-   * @copyright Copyright (c) by ISVTEC
-   * @license GPL v2
-   */
-?>
-<?php
-require("../includes/start.php");
-require("includes/auth.php");
-
-$xajax = new xajax();
-$xajax->registerFunction("linker_xajax_tag_delete");
-$xajax->registerFunction("linker_xajax_tag_save_session");
-$xajax->registerFunction("linker_xajax_tag_save_modifications");
-$xajax->registerFunction("linker_xajax_tag_cancel_modifications");
-$xajax->registerFunction("linker_xajax_clear_opened_branches");
-$xajax->registerFunction("linker_xajax_add_opened_branch");
-$xajax->registerFunction("linker_xajax_notification");
-$xajax->processRequests();
-
-require("includes/header.php");
-
-$Tree =& new TafelTree('divTree', '../imgs/tafeltree/', null, null, array(
-                                                                         
'generate' => true,
-                                                                         
'checkboxes' => true,
-                                                                         
'openAtLoad' => false,
-                                                                         
'cookies' => true,
-                                                                         
"reopenFromServer" => true,
-                                                                         
'defaultImg' => 'page.gif',
-                                                                         )
-                      );
-
-$tree=linker_get_categories_tree_array();
-
-$result=sql_query('die', __FILE__, __LINE__, __FUNCTION__,
-                 "SELECT id, name FROM category WHERE id_parent=0" );
-
-$tags=linker_get_tags();
-
-//show
-if(isset($_SESSION['tag2category']['add'])){
-  foreach($_SESSION['tag2category']['add'] as $tag_id => $tag_txt ){
-    $tags[]=array("id" => $tag_id , "description" => $tag_txt);
-  }
-  //sort
-  foreach ($tags as $key => $row) {
-    $ids[$key]  = $row['id'];
-    $descriptions[$key] = $row['description'];
-  }
-  array_multisort($descriptions, SORT_STRING, $tags);
- }
-
-
-foreach($tags as $tag){
-
-  //hide
-  if( isset($_SESSION['tag2category']['delete'] , 
$_SESSION['tag2category']['delete'][$tag['id']]) ){
-    continue;
-  }
-
-  $txt=$tag['description'];
-  if( isset($_SESSION['tag2category']['edit'][$tag['id']]) ){
-    $txt = $_SESSION['tag2category']['edit'][$tag['id']];
-  }
-
-  ${$tag['id']} =& $Tree->addBranch($tag['id'], $txt ,
-                                   array( 'onopenpopulate' => 'myOpenPopulate',
-                                          'openlink' => 
"tag2category.php?id_tag=".$tag['id'] ,
-                                          'canhavechildren' => true,
-                                          'oneditajax' => 'myEdit',
-                                          'editlink' => 
"tag_edit.php?id_tag=".$tag['id'],
-                                          'acceptdrop' => false,
-                                          "img" => "page.gif",
-                                          "imgopen" => "folderopen.gif",
-                                          "imgclose" => "folder.gif",
-                                          "imgselected" => "page.gif",
-                                          "imgopenselected" => 
"folderopen.gif",
-                                          "imgcloseselected" => "folder.gif",
-                                          "checkbox" => false,
-                                          "onmouseover" => 'tagMouseOver',
-                                          "onmouseout" => 'tagMouseOut'
-                                          )
-                                   );
-}
-
-?>
-<html>
-<head>
-  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-  <title>Manage tags</title>
-  <link rel="stylesheet" type="text/css" href="css/tree.css" />
-  <link rel='stylesheet' type='text/css' href='css/themes/main/main.css' />
-  <script type='text/javascript' src='../js/inpage_popup.js'></script>
-  <script type="text/javascript" src="../js/prototype.js"></script>
-  <script type="text/javascript" 
src="../js/scriptaculous/scriptaculous.js"></script>
- <script type="text/javascript" 
src="../js/tafeltree/Tree-optimized.js"></script>
-<!--  <script type="text/javascript" src="../js/tafeltree/Tree.js"></script> 
-->
-
-  <script type="text/javascript" src="../js/util.js"></script>
-  <script type="text/javascript" src="../js/fixed.js"></script>
-  <script type='text/javascript' src='../js/ask_confirmation.js'></script>
-  <script type="text/javascript" src="../js/manage_tags.js"></script>
-
-  <?=$xajax->printJavascript('../lib/xajax/')?>
-
-  <script type="text/javascript">
- <?
-  if(count($tags)>0){
-    echo $Tree->display();
-  }
- ?>
-  var keys = [
-             {
-               "key" : 46,
-               "func" : myOnDelete
-             }
-             ];
-TafelTreeManager.setKeys(keys);
-
-String.prototype.trim = function () {
-  return this.replace(/^\s*/, "").replace(/\s*$/, "");
-}
-
-var isModified = <?=(isset($_SESSION['tag2category']) && 
count($_SESSION['tag2category'])>0 )?1:0?> ;
-var hasTagChecked = <?=(isset($_SESSION['tag2category']['tag']) && 
count($_SESSION['tag2category']['tag'])>0 )?1:0?> ;
-
-</script>
-
-</head>
-<body onLoad="modified();">
-<?php
-  $categ_help="<b>Pour éditer une catégorie</b> : 
<br/>&nbsp;&nbsp;&nbsp;appuyer sur le nom de la catégorie";
-  $tag_help="<b>Pour supprimer un tag</b> : 
<br/>&nbsp;&nbsp;&nbsp;sélectionner et appuyer sur la touche 'Suppr'<br>".
-  "<b>Pour supprimer plusieurs tags en m&ecirc;me temps</b> : 
<br/>&nbsp;&nbsp;&nbsp;sélectionner les tags en appuyant la touche 'Ctrl' ".
-  "puis appuyer sur la touche 'Suppr'<br/>".
-  "<b>Pour renommer un tag</b> : <br/>&nbsp;&nbsp;&nbsp;cliquer 2 fois sur le 
tag ou sélectionner le tag et appuyer sur la touche 'F2'";
-?>
-<table border='0' bordercolor='#FFFFFF' width="100%">
- <tr>
- <td valign='top' width='30'>
-   <table border='0' cellspacing='10' cellpadding='0' style='height: 100%'>
-    <tr>
-     <td style='text-align: center' width='150' valign='top'>
-      <div class='nav'><div 
id='menu_3'><h1>Administration</h1><?=$buttons?></div><div 
id='menu_3'><h1>Outils marketing</h1><?=$buttons2?></div><div 
id='menu_3'><h1>Outils mod&eacute;ration</h1><?=$buttons1?></div><div 
id='menu_3'><h1>Outils ing&eacute;nierie</h1><?= $buttons3?></div></div>
-      <img height='200' width='1' src='/imgs/blank.gif' /><br />
-     </td>
-    </tr>
-  </table>
- </td>
- <td valign='top'>
-<!-- start content -->
-
-<form id="main_form">
-<table border="0" width="50%">
-<tr>
-
-
- <td align="center">
-    <input style="width: 75px; background: #eee; color: #7f7f7f; border: solid 
1px #aaa;"
-   id="submit_button"
-   onclick="saveData();"
-   type="button"
-   value="<?= _('Enregistrer') ?>" />
- </td>
-
- <td align="center">
-   <input style="width: 75px; background: #eee; color: #7f7f7f; border: solid 
1px #aaa;"
-   id="cancel_button"
-   type="button"
-   onclick="cancel();"
-   value="<?= _('Annuler') ?>" />
- </td>
-</tr>
-</table>
-</form>
-
-<form id="addTagForm" action="javascript:void(null);" onsubmit="submitTag();">
-<table>
- <tr>
- <td><input type="text" name="tag_name" value="" size="15"/></td>
- <td align='center' colspan='2'>
-  <input id="submitButton"
-    style="width: 75px;"
-    type="submit" value="Add"> </td>
-</tr>
-</table>
-</form>
-<?php
-  if(count($tags)>0){
-?>
-<div id='legend' class="legend">
-- en <b>gras</b> : la catégorie appartient à ce tag<br/>
-- <span class='categ_invisible'>couleur gris claire</span> : la catégorie et 
ses enfants n'ont aucun tag<br/>
-- en <i>italique</i> : sous-catégorie(s) taggée(s) avec le tag en cours<br/>
-- simple : la catégorie appartient déjà à un autre tag<br/>
-</div>
-<div id='categ_help' style="visibility:hidden;" 
class="info"><?=$categ_help?></div>
-<div id='tag_help' style="visibility:hidden;" class="info"><?=$tag_help?></div>
-<?php
-if(isset($_SESSION['open']) && count($_SESSION['open'])>0 ) {
-?>
- <a href ="#" onClick="collapseTree()">Collapse</a>
-<?php
-}
-?>
-<div id="divTree"></div>
-<?php
-if(isset($_SESSION['open']) && count($_SESSION['open'])>0 ) {
-?>
- <br/>
- <a href ="#" onClick="collapseTree()">Collapse</a>
-<?php
-}
-?>
-<?
-  }
-?>
-
-<!-- end content -->
- </td>
- </tr>
-</table>
-
-</body>
-</html>
-<?php
-if($linker_config['linker_debug']){
-  echo "<br/><br/>";
-  echo '<div><pre>';
-  echo '<b>GET:</b>';
-  print_r($_GET);
-  echo '<b>POST:</b>';
-  print_r($_POST);
-  echo '<b>SESSION:</b>';
-  print_r($_SESSION);
-  echo '<b>COOKIES:</b>';
-  print_r($HTTP_COOKIE_VARS);
-  echo '<b>$_SERVER:</b>';
-  print_r($_SERVER);
-
-  echo "<b>Query number</b>: $query_number\n";
-
-  echo "<b>mysql stats:</b>\n";
-  $status = explode('  ', mysql_stat());
-  print_r($status);
-
-  echo "<b>mysql processes</b>:\n";
-  $result = mysql_list_processes();
-  while ($row = mysql_fetch_assoc($result)){
-    printf("%s %s %s %s %s\n", $row["Id"], $row["Host"], $row["db"],
-          $row["Command"], $row["Time"]);
-  }
-  mysql_free_result($result);
-  echo "<b>Locales:</b>\n";
-  system("locale");
-
-  echo '</pre></div>';
-}
-
-?>


_______________________________________________
PHPLinker-commits mailing list
[email protected]
https://mail.gna.org/listinfo/phplinker-commits

Reply via email to