Changeset 15477


Ignore:
Timestamp:
Jun 2, 2012, 12:14:12 PM (8 years ago)
Author:
mistic100
Message:

improve a bit the admin page

Location:
extensions/typetags
Files:
6 added
15 edited

Legend:

Unmodified
Added
Removed
  • extensions/typetags/admin.php

    r15149 r15477  
    279279    'COLOR'=> isset($edited_typetag['color']) ? $edited_typetag['color'] : $row['color'],
    280280  ));
     281 
     282  $template->assign('IN_EDIT', true);
    281283}
    282284
  • extensions/typetags/admin/farbtastic/index.php

    r9863 r15477  
    11<?php
    2 // +-----------------------------------------------------------------------+
    3 // | PhpWebGallery - a PHP based picture gallery                           |
    4 // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
    5 // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
    6 // +-----------------------------------------------------------------------+
    7 // | file          : $Id: index.php 1912 2007-03-16 06:30:07Z rub $
    8 // | last update   : $Date: 2007-03-16 07:30:07 +0100 (ven, 16 mar 2007) $
    9 // | last modifier : $Author: rub $
    10 // | revision      : $Revision: 1912 $
    11 // +-----------------------------------------------------------------------+
    12 // | This program is free software; you can redistribute it and/or modify  |
    13 // | it under the terms of the GNU General Public License as published by  |
    14 // | the Free Software Foundation                                          |
    15 // |                                                                       |
    16 // | This program is distributed in the hope that it will be useful, but   |
    17 // | WITHOUT ANY WARRANTY; without even the implied warranty of            |
    18 // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
    19 // | General Public License for more details.                              |
    20 // |                                                                       |
    21 // | You should have received a copy of the GNU General Public License     |
    22 // | along with this program; if not, write to the Free Software           |
    23 // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
    24 // | USA.                                                                  |
    25 // +-----------------------------------------------------------------------+
    26 
    27 // Recursive call
    282$url = '../';
    293header( 'Request-URI: '.$url );
  • extensions/typetags/admin/index.php

    r3301 r15477  
    11<?php
    2 // +-----------------------------------------------------------------------+
    3 // | PhpWebGallery - a PHP based picture gallery                           |
    4 // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
    5 // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
    6 // +-----------------------------------------------------------------------+
    7 // | file          : $Id: index.php 1912 2007-03-16 06:30:07Z rub $
    8 // | last update   : $Date: 2007-03-16 07:30:07 +0100 (ven, 16 mar 2007) $
    9 // | last modifier : $Author: rub $
    10 // | revision      : $Revision: 1912 $
    11 // +-----------------------------------------------------------------------+
    12 // | This program is free software; you can redistribute it and/or modify  |
    13 // | it under the terms of the GNU General Public License as published by  |
    14 // | the Free Software Foundation                                          |
    15 // |                                                                       |
    16 // | This program is distributed in the hope that it will be useful, but   |
    17 // | WITHOUT ANY WARRANTY; without even the implied warranty of            |
    18 // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
    19 // | General Public License for more details.                              |
    20 // |                                                                       |
    21 // | You should have received a copy of the GNU General Public License     |
    22 // | along with this program; if not, write to the Free Software           |
    23 // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
    24 // | USA.                                                                  |
    25 // +-----------------------------------------------------------------------+
    26 
    27 // Recursive call
    282$url = '../';
    293header( 'Request-URI: '.$url );
  • extensions/typetags/admin/typetags_admin.tpl

    r15149 r15477  
    7272  <h2>TypeT@gs</h2>
    7373</div>
    74 
    75 <form action="{$typetags_ADMIN}" method="post" name="form">
    76 <fieldset>
    77   <legend>{'Configuration'|@translate}</legend>
    78   <b>{'Display colored tags'|@translate}</b>
    79   <label><input type="radio" name="show_all" value="false" {if not $SHOW_ALL}checked="checked"{/if}> {'Only on tags page'|@translate}</label>
    80   <label><input type="radio" name="show_all" value="true" {if $SHOW_ALL}checked="checked"{/if}> {'Everywhere'|@translate}</label>
    81   <p><input class="submit" type="submit" name="save_config" value="{'Submit'|@translate}"></p>
    82 </fieldset>
    83 </form>
    8474 
    8575<form action="{$typetags_ADMIN}" method="post" name="form">
    8676  <fieldset>
    87   {if isset($edited_typetag)}
     77  {if isset($IN_EDIT)}
    8878    <legend>{'Edit typetag'|@translate}</legend>
    8979    <div class="edit-container">
    90       <div id="colorpicker" style="float:right;"></div>
     80      <div id="colorpicker"></div>
    9181      <p><b>{'Edited TypeTag'|@translate} : <input type="text" readonly="readonly" size="18" style="background-color:{$typetag.OLD_COLOR};color:{$typetag.COLOR_TEXT};" value="{$typetag.OLD_NAME}"></b></p>
    9282      <p>&nbsp;</p>
     
    10393    <legend>{'Create a Typetag'|@translate}</legend>
    10494    <div class="edit-container">
    105       <div id="colorpicker" style="float:right;"></div>
    106       <p>&nbsp;</p>
     95      <div id="colorpicker"></div>
    10796      <p>{'New TypeTag'|@translate} : <input type="text" size="18" name="typetag_name" value="{if isset($typetag.NAME)}{$typetag.NAME}{/if}"></p>
    10897      <p>{'Color TypeTag'|@translate} : <input type="text" id="hexval" name="typetag_color" size="7" maxlength="7" value="{if isset($typetag.COLOR)}{$typetag.COLOR}{else}#444444{/if}"></p>
     
    116105</form>
    117106
    118 {if !empty($typetags_selection)}
     107{if !empty($typetags_selection) and !isset($IN_EDIT)}
    119108<form action="{$typetags_ADMIN}" method="post" name="form" onsubmit="save_datas(this);">
    120109  <fieldset>
     
    151140</form>
    152141{/if}
     142
     143{if !isset($IN_EDIT)}
     144<form action="{$typetags_ADMIN}" method="post" name="form">
     145<fieldset>
     146  <legend>{'Configuration'|@translate}</legend>
     147  <b>{'Display colored tags'|@translate}</b>
     148  <label><input type="radio" name="show_all" value="false" {if not $SHOW_ALL}checked="checked"{/if}> {'Only on tags page'|@translate}</label>
     149  <label><input type="radio" name="show_all" value="true" {if $SHOW_ALL}checked="checked"{/if}> {'Everywhere'|@translate}</label>
     150  <p><input class="submit" type="submit" name="save_config" value="{'Submit'|@translate}"></p>
     151</fieldset>
     152</form>
     153{/if}
  • extensions/typetags/admin/typetags_style.css

    r15149 r15477  
    22  width: 500px;
    33  margin: auto;
     4}
     5
     6#colorpicker {
     7  float:right;
     8  margin-top:-15px;
    49}
    510
  • extensions/typetags/index.php

    r3301 r15477  
    11<?php
    2 // +-----------------------------------------------------------------------+
    3 // | PhpWebGallery - a PHP based picture gallery                           |
    4 // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
    5 // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
    6 // +-----------------------------------------------------------------------+
    7 // | file          : $Id: index.php 1912 2007-03-16 06:30:07Z rub $
    8 // | last update   : $Date: 2007-03-16 07:30:07 +0100 (ven, 16 mar 2007) $
    9 // | last modifier : $Author: rub $
    10 // | revision      : $Revision: 1912 $
    11 // +-----------------------------------------------------------------------+
    12 // | This program is free software; you can redistribute it and/or modify  |
    13 // | it under the terms of the GNU General Public License as published by  |
    14 // | the Free Software Foundation                                          |
    15 // |                                                                       |
    16 // | This program is distributed in the hope that it will be useful, but   |
    17 // | WITHOUT ANY WARRANTY; without even the implied warranty of            |
    18 // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
    19 // | General Public License for more details.                              |
    20 // |                                                                       |
    21 // | You should have received a copy of the GNU General Public License     |
    22 // | along with this program; if not, write to the Free Software           |
    23 // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
    24 // | USA.                                                                  |
    25 // +-----------------------------------------------------------------------+
    26 
    27 // Recursive call
    282$url = '../';
    293header( 'Request-URI: '.$url );
  • extensions/typetags/language/de_DE/index.php

    r8268 r15477  
    11<?php
    2 // +-----------------------------------------------------------------------+
    3 // | PhpWebGallery - a PHP based picture gallery                           |
    4 // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
    5 // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
    6 // +-----------------------------------------------------------------------+
    7 // | file          : $Id$
    8 // | last update   : $Date$
    9 // | last modifier : $Author$
    10 // | revision      : $Revision$
    11 // +-----------------------------------------------------------------------+
    12 // | This program is free software; you can redistribute it and/or modify  |
    13 // | it under the terms of the GNU General Public License as published by  |
    14 // | the Free Software Foundation                                          |
    15 // |                                                                       |
    16 // | This program is distributed in the hope that it will be useful, but   |
    17 // | WITHOUT ANY WARRANTY; without even the implied warranty of            |
    18 // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
    19 // | General Public License for more details.                              |
    20 // |                                                                       |
    21 // | You should have received a copy of the GNU General Public License     |
    22 // | along with this program; if not, write to the Free Software           |
    23 // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
    24 // | USA.                                                                  |
    25 // +-----------------------------------------------------------------------+
    26 
    27 // Recursive call
    282$url = '../';
    293header( 'Request-URI: '.$url );
  • extensions/typetags/language/en_UK/index.php

    r3609 r15477  
    11<?php
    2 // +-----------------------------------------------------------------------+
    3 // | PhpWebGallery - a PHP based picture gallery                           |
    4 // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
    5 // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
    6 // +-----------------------------------------------------------------------+
    7 // | file          : $Id: index.php 1912 2007-03-16 06:30:07Z rub $
    8 // | last update   : $Date: 2007-03-16 07:30:07 +0100 (ven, 16 mar 2007) $
    9 // | last modifier : $Author: rub $
    10 // | revision      : $Revision: 1912 $
    11 // +-----------------------------------------------------------------------+
    12 // | This program is free software; you can redistribute it and/or modify  |
    13 // | it under the terms of the GNU General Public License as published by  |
    14 // | the Free Software Foundation                                          |
    15 // |                                                                       |
    16 // | This program is distributed in the hope that it will be useful, but   |
    17 // | WITHOUT ANY WARRANTY; without even the implied warranty of            |
    18 // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
    19 // | General Public License for more details.                              |
    20 // |                                                                       |
    21 // | You should have received a copy of the GNU General Public License     |
    22 // | along with this program; if not, write to the Free Software           |
    23 // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
    24 // | USA.                                                                  |
    25 // +-----------------------------------------------------------------------+
    26 
    27 // Recursive call
    282$url = '../';
    293header( 'Request-URI: '.$url );
  • extensions/typetags/language/es_ES/index.php

    r3609 r15477  
    11<?php
    2 // +-----------------------------------------------------------------------+
    3 // | PhpWebGallery - a PHP based picture gallery                           |
    4 // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
    5 // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
    6 // +-----------------------------------------------------------------------+
    7 // | file          : $Id: index.php 1912 2007-03-16 06:30:07Z rub $
    8 // | last update   : $Date: 2007-03-16 07:30:07 +0100 (ven, 16 mar 2007) $
    9 // | last modifier : $Author: rub $
    10 // | revision      : $Revision: 1912 $
    11 // +-----------------------------------------------------------------------+
    12 // | This program is free software; you can redistribute it and/or modify  |
    13 // | it under the terms of the GNU General Public License as published by  |
    14 // | the Free Software Foundation                                          |
    15 // |                                                                       |
    16 // | This program is distributed in the hope that it will be useful, but   |
    17 // | WITHOUT ANY WARRANTY; without even the implied warranty of            |
    18 // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
    19 // | General Public License for more details.                              |
    20 // |                                                                       |
    21 // | You should have received a copy of the GNU General Public License     |
    22 // | along with this program; if not, write to the Free Software           |
    23 // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
    24 // | USA.                                                                  |
    25 // +-----------------------------------------------------------------------+
    26 
    27 // Recursive call
    282$url = '../';
    293header( 'Request-URI: '.$url );
  • extensions/typetags/language/fr_FR/index.php

    r3609 r15477  
    11<?php
    2 // +-----------------------------------------------------------------------+
    3 // | PhpWebGallery - a PHP based picture gallery                           |
    4 // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
    5 // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
    6 // +-----------------------------------------------------------------------+
    7 // | file          : $Id: index.php 1912 2007-03-16 06:30:07Z rub $
    8 // | last update   : $Date: 2007-03-16 07:30:07 +0100 (ven, 16 mar 2007) $
    9 // | last modifier : $Author: rub $
    10 // | revision      : $Revision: 1912 $
    11 // +-----------------------------------------------------------------------+
    12 // | This program is free software; you can redistribute it and/or modify  |
    13 // | it under the terms of the GNU General Public License as published by  |
    14 // | the Free Software Foundation                                          |
    15 // |                                                                       |
    16 // | This program is distributed in the hope that it will be useful, but   |
    17 // | WITHOUT ANY WARRANTY; without even the implied warranty of            |
    18 // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
    19 // | General Public License for more details.                              |
    20 // |                                                                       |
    21 // | You should have received a copy of the GNU General Public License     |
    22 // | along with this program; if not, write to the Free Software           |
    23 // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
    24 // | USA.                                                                  |
    25 // +-----------------------------------------------------------------------+
    26 
    27 // Recursive call
    282$url = '../';
    293header( 'Request-URI: '.$url );
  • extensions/typetags/language/index.php

    r3609 r15477  
    11<?php
    2 // +-----------------------------------------------------------------------+
    3 // | PhpWebGallery - a PHP based picture gallery                           |
    4 // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
    5 // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
    6 // +-----------------------------------------------------------------------+
    7 // | file          : $Id: index.php 1912 2007-03-16 06:30:07Z rub $
    8 // | last update   : $Date: 2007-03-16 07:30:07 +0100 (ven, 16 mar 2007) $
    9 // | last modifier : $Author: rub $
    10 // | revision      : $Revision: 1912 $
    11 // +-----------------------------------------------------------------------+
    12 // | This program is free software; you can redistribute it and/or modify  |
    13 // | it under the terms of the GNU General Public License as published by  |
    14 // | the Free Software Foundation                                          |
    15 // |                                                                       |
    16 // | This program is distributed in the hope that it will be useful, but   |
    17 // | WITHOUT ANY WARRANTY; without even the implied warranty of            |
    18 // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
    19 // | General Public License for more details.                              |
    20 // |                                                                       |
    21 // | You should have received a copy of the GNU General Public License     |
    22 // | along with this program; if not, write to the Free Software           |
    23 // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
    24 // | USA.                                                                  |
    25 // +-----------------------------------------------------------------------+
    26 
    27 // Recursive call
    282$url = '../';
    293header( 'Request-URI: '.$url );
  • extensions/typetags/language/it_IT/index.php

    r11529 r15477  
    11<?php
    2 // +-----------------------------------------------------------------------+
    3 // | Piwigo - a PHP based photo gallery                                    |
    4 // +-----------------------------------------------------------------------+
    5 // | Copyright(C) 2008-2011 Piwigo Team                  http://piwigo.org |
    6 // | Copyright(C) 2003-2008 PhpWebGallery Team    http://phpwebgallery.net |
    7 // | Copyright(C) 2002-2003 Pierrick LE GALL   http://le-gall.net/pierrick |
    8 // +-----------------------------------------------------------------------+
    9 // | This program is free software; you can redistribute it and/or modify  |
    10 // | it under the terms of the GNU General Public License as published by  |
    11 // | the Free Software Foundation                                          |
    12 // |                                                                       |
    13 // | This program is distributed in the hope that it will be useful, but   |
    14 // | WITHOUT ANY WARRANTY; without even the implied warranty of            |
    15 // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
    16 // | General Public License for more details.                              |
    17 // |                                                                       |
    18 // | You should have received a copy of the GNU General Public License     |
    19 // | along with this program; if not, write to the Free Software           |
    20 // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
    21 // | USA.                                                                  |
    22 // +-----------------------------------------------------------------------+
    23 
    24 // Recursive call
    252$url = '../';
    263header( 'Request-URI: '.$url );
  • extensions/typetags/language/lv_LV/index.php

    r8230 r15477  
    11<?php
    2 // +-----------------------------------------------------------------------+
    3 // | PhpWebGallery - a PHP based picture gallery                           |
    4 // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
    5 // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
    6 // +-----------------------------------------------------------------------+
    7 // | file          : $Id$
    8 // | last update   : $Date$
    9 // | last modifier : $Author$
    10 // | revision      : $Revision$
    11 // +-----------------------------------------------------------------------+
    12 // | This program is free software; you can redistribute it and/or modify  |
    13 // | it under the terms of the GNU General Public License as published by  |
    14 // | the Free Software Foundation                                          |
    15 // |                                                                       |
    16 // | This program is distributed in the hope that it will be useful, but   |
    17 // | WITHOUT ANY WARRANTY; without even the implied warranty of            |
    18 // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
    19 // | General Public License for more details.                              |
    20 // |                                                                       |
    21 // | You should have received a copy of the GNU General Public License     |
    22 // | along with this program; if not, write to the Free Software           |
    23 // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
    24 // | USA.                                                                  |
    25 // +-----------------------------------------------------------------------+
    26 
    27 // Recursive call
    282$url = '../';
    293header( 'Request-URI: '.$url );
  • extensions/typetags/language/no_NO/index.php

    r9196 r15477  
    11<?php
    2 // +-----------------------------------------------------------------------+
    3 // | PhpWebGallery - a PHP based picture gallery                           |
    4 // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
    5 // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
    6 // +-----------------------------------------------------------------------+
    7 // | file          : $Id$
    8 // | last update   : $Date$
    9 // | last modifier : $Author$
    10 // | revision      : $Revision$
    11 // +-----------------------------------------------------------------------+
    12 // | This program is free software; you can redistribute it and/or modify  |
    13 // | it under the terms of the GNU General Public License as published by  |
    14 // | the Free Software Foundation                                          |
    15 // |                                                                       |
    16 // | This program is distributed in the hope that it will be useful, but   |
    17 // | WITHOUT ANY WARRANTY; without even the implied warranty of            |
    18 // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
    19 // | General Public License for more details.                              |
    20 // |                                                                       |
    21 // | You should have received a copy of the GNU General Public License     |
    22 // | along with this program; if not, write to the Free Software           |
    23 // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
    24 // | USA.                                                                  |
    25 // +-----------------------------------------------------------------------+
    26 
    27 // Recursive call
    282$url = '../';
    293header( 'Request-URI: '.$url );
  • extensions/typetags/language/sk_SK/index.php

    r9841 r15477  
    11<?php
    2 // +-----------------------------------------------------------------------+
    3 // | PhpWebGallery - a PHP based picture gallery                           |
    4 // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
    5 // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
    6 // +-----------------------------------------------------------------------+
    7 // | file          : $Id: index.php 1912 2007-03-16 06:30:07Z rub $
    8 // | last update   : $Date: 2007-03-16 07:30:07 +0100 (ven, 16 mar 2007) $
    9 // | last modifier : $Author: rub $
    10 // | revision      : $Revision: 1912 $
    11 // +-----------------------------------------------------------------------+
    12 // | This program is free software; you can redistribute it and/or modify  |
    13 // | it under the terms of the GNU General Public License as published by  |
    14 // | the Free Software Foundation                                          |
    15 // |                                                                       |
    16 // | This program is distributed in the hope that it will be useful, but   |
    17 // | WITHOUT ANY WARRANTY; without even the implied warranty of            |
    18 // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
    19 // | General Public License for more details.                              |
    20 // |                                                                       |
    21 // | You should have received a copy of the GNU General Public License     |
    22 // | along with this program; if not, write to the Free Software           |
    23 // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
    24 // | USA.                                                                  |
    25 // +-----------------------------------------------------------------------+
    26 
    27 // Recursive call
    282$url = '../';
    293header( 'Request-URI: '.$url );
Note: See TracChangeset for help on using the changeset viewer.