-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfunction.admin_exportitemstab.php
51 lines (47 loc) · 3.23 KB
/
function.admin_exportitemstab.php
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php
#-------------------------------------------------------------------------
# Module: MultiParser - This module lets you grab any XML, RSS or Atom Feed as well as JSON Data which you can integrate on your website.
# Fork Author: Goran Ilic - [email protected]
#-------------------------------------------------------------------------
# Fork of Module: XMLMadeSimple - This module allow you to grab an XML or RSS feed and to integrate it in your website very easily.
# Version: 0.0.1, Jean-Christophe Cuvelier
# Project Homepage: http://dev.cmsmadesimple.org/projects/xmlmadesimple
#-------------------------------------------------------------------------
# CMS - CMS Made Simple is (c) 2009 by Ted Kulp ([email protected])
# This project's homepage is: http://www.cmsmadesimple.org
#-------------------------------------------------------------------------
#
# This program 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.
#
# This program 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 this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Or read it online: http://www.gnu.org/licenses/licenses.html#GPL
#
#-------------------------------------------------------------------------
if (!$this->CheckAccess()) {
return $this->DisplayErrorPage($id, $params, $returnid, $this->Lang('accessdenied'));
}
$admintheme = cmsms()->get_variable('admintheme');
$exportitems = DoGetExport::doSelect();
foreach ($exportitems as $item) {
$item->edit_url = $this->CreateLink($id, 'admin_manage_exportitem', $returnid, $item->getTitle(), array('item_id' => $item->getId()), '');
$item->edit = $this->CreateLink($id, 'admin_manage_exportitem', $returnid, $admintheme->DisplayImage('icons/system/edit.gif', $item->getTitle(), '', '', 'systemicon'), array('item_id' => $item->getId()), '');
$item->delete = $this->CreateLink($id, 'admin_delete_exportitem', $returnid, $admintheme->DisplayImage('icons/system/delete.gif', $item->getTitle(), '', '', 'systemicon'), array('item_id' => $item->getId()), '');
}
$smarty->assign('exportitems', $exportitems);
$smarty->assign('exportitem_title', $this->Lang('item_title'));
$smarty->assign('exportitem_type', $this->Lang('item_type'));
$smarty->assign('exportitem_url', $this->Lang('exportitem_url'));
$smarty->assign('exportitem_description', $this->Lang('item_description'));
$smarty-> assign('add_exportitem_link', $this->CreateLink($id, 'admin_manage_exportitem', '', $this->Lang('title_add_item'), array()));
$smarty-> assign('add_exportitem_icon', $this->CreateLink($id, 'admin_manage_exportitem', '', $admintheme->DisplayImage('icons/system/newobject.gif', $this -> Lang('title_add_item'), '', '', 'systemicon'), array()));
$smarty->assign('exportitems_tab', $this->ProcessTemplate('admin.exportitems_tab.tpl'));
?>