[ Index ]
 

Code source de CMS made simple 1.0.5

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/admin/ -> listusertags.php (source)

   1  <?php
   2  #CMS - CMS Made Simple
   3  #(c)2004 by Ted Kulp (wishy@users.sf.net)
   4  #This project's homepage is: http://cmsmadesimple.sf.net
   5  #
   6  #This program is free software; you can redistribute it and/or modify
   7  #it under the terms of the GNU General Public License as published by
   8  #the Free Software Foundation; either version 2 of the License, or
   9  #(at your option) any later version.
  10  #
  11  #This program is distributed in the hope that it will be useful,
  12  #but WITHOUT ANY WARRANTY; without even the implied warranty of
  13  #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14  #GNU General Public License for more details.
  15  #You should have received a copy of the GNU General Public License
  16  #along with this program; if not, write to the Free Software
  17  #Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  18  #
  19  #$Id: listusertags.php 3452 2006-09-20 11:12:41Z dittmann $
  20  
  21  $CMS_ADMIN_PAGE=1;
  22  
  23  require_once ("../include.php");
  24  
  25  check_login();
  26  
  27  $plugin = '';
  28  if (isset($_GET['plugin'])) $plugin = $_GET['plugin'];
  29  
  30  $action = '';
  31  if (isset($_GET['action'])) $action = $_GET['action'];
  32  
  33  $userid = get_userid();
  34  $access = check_permission($userid, 'Modify Modules');
  35  
  36  $smarty = new Smarty_CMS($gCms->config);
  37  
  38  include_once ("header.php");
  39  
  40  if (FALSE == empty($_GET['message'])) {
  41      echo $themeObject->ShowMessage(lang($_GET['message']));
  42  }
  43  
  44  echo '<div class="pagecontainer">';
  45  echo '<div class="pageoverflow">';
  46  echo $themeObject->ShowHeader('userdefinedtags');
  47  echo "<table cellspacing=\"0\" class=\"pagetable\">\n";
  48  echo '<thead>';
  49  echo "<tr>\n";
  50  echo "<th>".lang('name')."</th>\n";
  51  echo "<th class=\"pageicon\">&nbsp;</th>\n";
  52  echo "<th class=\"pageicon\">&nbsp;</th>\n";
  53  echo "</tr>\n";
  54  echo '</thead>';
  55  echo '<tbody>';
  56  
  57  $curclass = "row1";
  58  
  59  foreach($gCms->cmsplugins as $oneplugin)
  60  {
  61      if (array_key_exists($oneplugin, $gCms->userplugins))
  62      {
  63          echo "<tr class=\"".$curclass."\" onmouseover=\"this.className='".$curclass.'hover'."';\" onmouseout=\"this.className='".$curclass."';\">\n";
  64          echo "<td><a href=\"edituserplugin.php?userplugin_id=".$gCms->userplugins[$oneplugin]."\">$oneplugin</a></td>\n";
  65          echo "<td class=\"icons_wide\"><a href=\"edituserplugin.php?userplugin_id=".$gCms->userplugins[$oneplugin]."\">";
  66          echo $themeObject->DisplayImage('icons/system/edit.gif', lang('edit'),'','','systemicon');
  67          echo "</a></td>\n";
  68          echo "<td class=\"icons_wide\"><a href=\"deleteuserplugin.php?userplugin_id=".$gCms->userplugins[$oneplugin]."\" onclick=\"return confirm('".lang('deleteconfirm')."');\">";
  69          echo $themeObject->DisplayImage('icons/system/delete.gif', lang('delete'),'','','systemicon');
  70          echo "</a></td>\n";
  71  
  72          echo "</tr>\n";
  73  
  74          ($curclass=="row1"?$curclass="row2":$curclass="row1");
  75      }
  76  }
  77  
  78      ?>
  79      </tbody>
  80  </table>
  81      <div class="pageoptions">
  82          <p class="pageoptions">
  83              <a href="adduserplugin.php">
  84                  <?php
  85                      echo $themeObject->DisplayImage('icons/system/newobject.gif', lang('addusertag'),'','','systemicon').'</a>';
  86                      echo ' <a class="pageoptions" href="adduserplugin.php">'.lang("addusertag");
  87                  ?>
  88              </a>
  89          </p>
  90      </div>
  91  </div>
  92  </div>
  93  <?php
  94  echo '<p class="pageback"><a class="pageback" href="'.$themeObject->BackUrl().'">&#171; '.lang('back').'</a></p>';
  95  include_once ("footer.php");
  96  
  97  # vim:ts=4 sw=4 noet
  98  ?>


Généré le : Tue Apr 3 18:50:37 2007 par Balluche grâce à PHPXref 0.7