mirror of
https://github.com/easy-wi/developer.git
synced 2025-02-20 11:23:28 +08:00
parent
10b5684e5c
commit
5c84d514cd
14
web/ajax.php
14
web/ajax.php
@ -93,16 +93,26 @@ if ($ui->smallletters('w', 9, 'get') == 'datatable') {
|
||||
|
||||
require_once(EASYWIDIR . '/stuff/ajax/datatable_appmasterserver.php');
|
||||
|
||||
// GS images
|
||||
// GS images
|
||||
} else if ($ui->smallletters('d', 10, 'get') =='gameimages' and isset($admin_id) and isset($reseller_id) and isset($resellerLockupID) and $pa['gimages']) {
|
||||
|
||||
require_once(EASYWIDIR . '/stuff/ajax/datatable_gameimages.php');
|
||||
|
||||
// GS addons
|
||||
// GS addons
|
||||
} else if ($ui->smallletters('d', 16, 'get') =='gameserveraddons' and isset($admin_id) and isset($reseller_id) and isset($resellerLockupID) and $pa['addons']) {
|
||||
|
||||
require_once(EASYWIDIR . '/stuff/ajax/datatable_gameaddons.php');
|
||||
|
||||
// List of imported news feeds
|
||||
} else if ($ui->smallletters('d', 16, 'get') =='feedsnewsentries' and isset($admin_id) and isset($reseller_id) and isset($resellerLockupID) and $pa['addons']) {
|
||||
|
||||
require_once(EASYWIDIR . '/stuff/ajax/datatable_feedsnewsentries.php');
|
||||
|
||||
// List of feeds
|
||||
} else if ($ui->smallletters('d', 5, 'get') =='feeds' and isset($admin_id) and isset($reseller_id) and isset($resellerLockupID) and $pa['addons']) {
|
||||
|
||||
require_once(EASYWIDIR . '/stuff/ajax/datatable_feeds.php');
|
||||
|
||||
// Code wise it seems odd, but this way we can get plausible userIDs for following queries up front
|
||||
} else {
|
||||
|
||||
|
@ -239,77 +239,8 @@ if ($ui->w('action', 4, 'post') and !token(true)) {
|
||||
$template_file = 'admin_feeds_md.tpl';
|
||||
}
|
||||
} else {
|
||||
$table = array();
|
||||
$o = $ui->st('o', 'get');
|
||||
if ($ui->st('o', 'get') == 'au') {
|
||||
$orderby = '`feedUrl` ASC';
|
||||
} else if ($ui->st('o', 'get') == 'du') {
|
||||
$orderby = '`feedUrl` DESC';
|
||||
} else if ($ui->st('o', 'get') == 'as') {
|
||||
$orderby = '`active` ASC';
|
||||
} else if ($ui->st('o', 'get') == 'ds') {
|
||||
$orderby = '`active` DESC';
|
||||
} else if ($ui->st('o', 'get') == 'at') {
|
||||
$orderby = '`twitter` ASC';
|
||||
} else if ($ui->st('o', 'get') == 'dt') {
|
||||
$orderby = '`twitter` DESC';
|
||||
} else if ($ui->st('o', 'get') == 'ai') {
|
||||
$orderby = '`feedID` ASC';
|
||||
} else {
|
||||
$orderby = '`feedID` DESC';
|
||||
$o = 'di';
|
||||
}
|
||||
$query = $sql->prepare("SELECT `feedID`,`active`,`twitter`,`feedUrl` FROM `feeds_url` WHERE `resellerID`=? ORDER BY $orderby LIMIT $start,$amount");
|
||||
$query->execute(array($lookUpID));
|
||||
foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
||||
if ($row['active'] == 'Y') {
|
||||
$imgName = '16_ok';
|
||||
$imgAlt = 'Active';
|
||||
} else {
|
||||
$imgName = '16_bad';
|
||||
$imgAlt = 'Inactive';
|
||||
}
|
||||
$twitter=($row['twitter'] == 'Y') ? $gsprache->yes : $gsprache->no;
|
||||
$table[] = array('id' => $row['feedID'], 'img' => $imgName,'alt' => $imgAlt,'twitter' => $twitter,'feedUrl' => $row['feedUrl'], 'active' => $row['active']);
|
||||
}
|
||||
$next = $start+$amount;
|
||||
$countp = $sql->prepare("SELECT COUNT(`feedID`) AS `amount` FROM `feeds_url` WHERE `resellerID`=?");
|
||||
$countp->execute(array($lookUpID));
|
||||
$colcount = $countp->fetchColumn();
|
||||
if ($colcount>$next) {
|
||||
$vor = $start+$amount;
|
||||
} else {
|
||||
$vor = $start;
|
||||
}
|
||||
$back = $start - $amount;
|
||||
if ($back>="0"){
|
||||
$zur = $start - $amount;
|
||||
} else {
|
||||
$zur = $start;
|
||||
}
|
||||
$pageamount = ceil($colcount / $amount);
|
||||
$link='<a href="admin.php?w=fe&d=md&a=';
|
||||
if (!isset($amount)) {
|
||||
$link .="20";
|
||||
} else {
|
||||
$link .= $amount;
|
||||
}
|
||||
if ($start==0) {
|
||||
$link .= '&p=0" class="bold">1</a>';
|
||||
} else {
|
||||
$link .= '&p=0">1</a>';
|
||||
}
|
||||
$pages[] = $link;
|
||||
$i = 2;
|
||||
while ($i<=$pageamount) {
|
||||
$selectpage = ($i - 1) * $amount;
|
||||
if ($start==$selectpage) {
|
||||
$pages[] = '<a href="admin.php?w=fe&d=md&a=' . $amount . '&p=' . $selectpage . '" class="bold">' . $i . '</a>';
|
||||
} else {
|
||||
$pages[] = '<a href="admin.php?w=fe&d=md&a=' . $amount . '&p=' . $selectpage . '">' . $i . '</a>';
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
$pages=implode(', ',$pages);
|
||||
|
||||
configureDateTables('-1', '1, "desc"', 'ajax.php?w=datatable&d=feeds');
|
||||
|
||||
$template_file = 'admin_feeds_list.tpl';
|
||||
}
|
@ -51,108 +51,43 @@ if ($reseller_id == 0) {
|
||||
$logsubuser=(isset($_SESSION['oldid'])) ? $_SESSION['oldid'] : 0;
|
||||
$logreseller = 0;
|
||||
}
|
||||
$lookUpID=($reseller_id != 0 and $admin_id != $reseller_id) ? $admin_id: $reseller_id;
|
||||
|
||||
$lookUpID = ($reseller_id != 0 and $admin_id != $reseller_id) ? $admin_id: $reseller_id;
|
||||
|
||||
if ($ui->st('d', 'get') == 'ud') {
|
||||
|
||||
$newsInclude = true;
|
||||
|
||||
include(EASYWIDIR . '/stuff/methods/feeds_function.php');
|
||||
|
||||
} else if ($ui->st('d', 'get') == 'md') {
|
||||
$ids=(array)$ui->active('ids', 'post');
|
||||
$delete = $sql->prepare("DELETE FROM `feeds_news` WHERE `newsID`=? AND `resellerID`=? LIMIT 1");
|
||||
$update = $sql->prepare("UPDATE `feeds_news` SET `active`=? WHERE `newsID`=? AND `resellerID`=?");
|
||||
foreach($ids as $id=>$values) {
|
||||
if (isset($values->dl) and $values->dl== 'Y') {
|
||||
$delete->execute(array($id,$lookUpID));
|
||||
|
||||
$ids = (array) $ui->active('ids', 'post');
|
||||
|
||||
$query = $sql->prepare("DELETE FROM `feeds_news` WHERE `newsID`=? AND `resellerID`=? LIMIT 1");
|
||||
$query2 = $sql->prepare("UPDATE `feeds_news` SET `active`=? WHERE `newsID`=? AND `resellerID`=?");
|
||||
|
||||
foreach($ids as $id => $values) {
|
||||
|
||||
if (isset($values->dl) and $values->dl == 'Y') {
|
||||
|
||||
$query->execute(array($id, $lookUpID));
|
||||
|
||||
} else {
|
||||
|
||||
if (isset($values->active) and $values->active == 'Y') {
|
||||
$update->execute(array('Y',$id,$lookUpID));
|
||||
$query2->execute(array('Y', $id, $lookUpID));
|
||||
} else {
|
||||
$update->execute(array('N',$id,$lookUpID));
|
||||
$query2->execute(array('N', $id, $lookUpID));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$template_file = $spracheResponse->table_add;
|
||||
|
||||
} else {
|
||||
$table = array();
|
||||
$o = $ui->st('o', 'get');
|
||||
if ($ui->st('o', 'get') == 'au') {
|
||||
$orderby = 'u.`feedUrl` ASC';
|
||||
} else if ($ui->st('o', 'get') == 'du') {
|
||||
$orderby = 'u.`feedUrl` DESC';
|
||||
} else if ($ui->st('o', 'get') == 'ah') {
|
||||
$orderby = 'n.`title` ASC,n.`description` ASC';
|
||||
} else if ($ui->st('o', 'get') == 'dh') {
|
||||
$orderby = 'n.`title` DESC,n.`description` DESC';
|
||||
} else if ($ui->st('o', 'get') == 'as') {
|
||||
$orderby = 'n.`active` ASC';
|
||||
} else if ($ui->st('o', 'get') == 'ds') {
|
||||
$orderby = 'n.`active` DESC';
|
||||
} else if ($ui->st('o', 'get') == 'at') {
|
||||
$orderby = 'u.`twitter` ASC';
|
||||
} else if ($ui->st('o', 'get') == 'dt') {
|
||||
$orderby = 'u.`twitter` DESC';
|
||||
} else if ($ui->st('o', 'get') == 'ai') {
|
||||
$orderby = 'n.`newsID` ASC';
|
||||
} else if ($ui->st('o', 'get') == 'di') {
|
||||
$orderby = 'n.`newsID` DESC';
|
||||
} else if ($ui->st('o', 'get') == 'ad') {
|
||||
$orderby = 'n.`pubDate` ASC';
|
||||
} else {
|
||||
$orderby = 'n.`pubDate` DESC';
|
||||
$o = 'dd';
|
||||
}
|
||||
$query = $sql->prepare("SELECT n.`newsID`,n.`active`,n.`title`,n.`link`,n.`pubDate`,n.`description`,u.`twitter`,u.`feedUrl` FROM `feeds_news` n LEFT JOIN `feeds_url` u ON n.`feedID`=u.`feedID` WHERE n.`resellerID`=? ORDER BY $orderby LIMIT $start,$amount");
|
||||
$query->execute(array($lookUpID));
|
||||
foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
||||
if ($row['active'] == 'Y') {
|
||||
$imgName = '16_ok';
|
||||
$imgAlt = 'Active';
|
||||
} else {
|
||||
$imgName = '16_bad';
|
||||
$imgAlt = 'Inactive';
|
||||
}
|
||||
$twitter=($row['twitter'] == 'Y') ? $gsprache->yes : $gsprache->no;
|
||||
$title = $row['title'];
|
||||
if (strlen($row['title'])<=1) $title = $row['link'];
|
||||
$table[] = array('id' => $row['newsID'], 'active' => $row['active'], 'img' => $imgName,'alt' => $imgAlt,'pubDate' => $row['pubDate'], 'twitter' => $twitter,'title' => $title,'link' => $row['link'], 'feedUrl' => $row['feedUrl']);
|
||||
}
|
||||
$next = $start+$amount;
|
||||
$query = $sql->prepare("SELECT COUNT(`newsID`) AS `amount` FROM `feeds_news` WHERE `resellerID`=?");
|
||||
$query->execute(array($lookUpID));
|
||||
$colcount = $query->fetchColumn();
|
||||
if ($colcount>$next) {
|
||||
$vor = $start+$amount;
|
||||
} else {
|
||||
$vor = $start;
|
||||
}
|
||||
$back = $start - $amount;
|
||||
if ($back>=0){
|
||||
$zur = $start - $amount;
|
||||
} else {
|
||||
$zur = $start;
|
||||
}
|
||||
$pageamount = ceil($colcount / $amount);
|
||||
$link='<a href="admin.php?w=fn&a=';
|
||||
if (!isset($amount)) {
|
||||
$link .="20";
|
||||
} else {
|
||||
$link .= $amount;
|
||||
}
|
||||
if ($start==0) {
|
||||
$link .= '&p=0" class="bold">1</a>';
|
||||
} else {
|
||||
$link .= '&p=0">1</a>';
|
||||
}
|
||||
$pages[] = $link;
|
||||
$i = 2;
|
||||
while ($i<=$pageamount) {
|
||||
$selectpage = ($i - 1) * $amount;
|
||||
if ($start==$selectpage) {
|
||||
$pages[] = '<a href="admin.php?w=fn&a=' . $amount . '&p=' . $selectpage . '" class="bold">' . $i . '</a>';
|
||||
} else {
|
||||
$pages[] = '<a href="admin.php?w=fn&a=' . $amount . '&p=' . $selectpage . '">' . $i . '</a>';
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
$pages=implode(', ',$pages);
|
||||
|
||||
configureDateTables('-2', '2, "desc"', 'ajax.php?w=datatable&d=feedsnewsentries');
|
||||
|
||||
$template_file = 'admin_feeds_entries_list.tpl';
|
||||
}
|
78
web/stuff/ajax/datatable_feeds.php
Normal file
78
web/stuff/ajax/datatable_feeds.php
Normal file
@ -0,0 +1,78 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* File: datatable_feeds.php.
|
||||
* Author: Ulrich Block
|
||||
* Date: 20.09.14
|
||||
* Contact: <ulrich.block@easy-wi.com>
|
||||
*
|
||||
* This file is part of Easy-WI.
|
||||
*
|
||||
* Easy-WI 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 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* Easy-WI 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 Easy-WI. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
* Diese Datei ist Teil von Easy-WI.
|
||||
*
|
||||
* Easy-WI ist Freie Software: Sie koennen es unter den Bedingungen
|
||||
* der GNU General Public License, wie von der Free Software Foundation,
|
||||
* Version 3 der Lizenz oder (nach Ihrer Wahl) jeder spaeteren
|
||||
* veroeffentlichten Version, weiterverbreiten und/oder modifizieren.
|
||||
*
|
||||
* Easy-WI wird in der Hoffnung, dass es nuetzlich sein wird, aber
|
||||
* OHNE JEDE GEWAEHELEISTUNG, bereitgestellt; sogar ohne die implizite
|
||||
* Gewaehrleistung der MARKTFAEHIGKEIT oder EIGNUNG FUER EINEN BESTIMMTEN ZWECK.
|
||||
* Siehe die GNU General Public License fuer weitere Details.
|
||||
*
|
||||
* Sie sollten eine Kopie der GNU General Public License zusammen mit diesem
|
||||
* Programm erhalten haben. Wenn nicht, siehe <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
if (!defined('AJAXINCLUDED')) {
|
||||
die('Do not access directly!');
|
||||
}
|
||||
|
||||
$query = $sql->prepare("SELECT COUNT(`feedID`) AS `amount` FROM `feeds_url` WHERE `resellerID`=?");
|
||||
$query->execute(array($resellerLockupID));
|
||||
|
||||
$array['iTotalRecords'] = $query->fetchColumn();
|
||||
|
||||
if ($sSearch) {
|
||||
$query = $sql->prepare("SELECT COUNT(`feedID`) AS `amount` FROM `feeds_url` WHERE `resellerID`=:reseller_id AND (`feedID` LIKE :search OR `feedUrl` LIKE :search)");
|
||||
$query->execute(array(':search' => '%' . $sSearch . '%', ':reseller_id' => $resellerLockupID));
|
||||
|
||||
$array['iTotalDisplayRecords'] = $query->fetchColumn();
|
||||
} else {
|
||||
$array['iTotalDisplayRecords'] = $array['iTotalRecords'];
|
||||
}
|
||||
|
||||
$orderFields = array(0 => '`feedUrl`', 1 => '`feedID`', 2 => '`active`');
|
||||
|
||||
if (isset($orderFields[$iSortCol]) and is_array($orderFields[$iSortCol])) {
|
||||
$orderBy = implode(' ' . $sSortDir . ', ', $orderFields[$iSortCol]) . ' ' . $sSortDir;
|
||||
} else if (isset($orderFields[$iSortCol]) and !is_array($orderFields[$iSortCol])) {
|
||||
$orderBy = $orderFields[$iSortCol] . ' ' . $sSortDir;
|
||||
} else {
|
||||
$orderBy = '`feedID` DESC';
|
||||
}
|
||||
|
||||
if ($sSearch) {
|
||||
$query = $sql->prepare("SELECT `feedID`,`feedUrl` FROM `feeds_url` WHERE `resellerID`=:reseller_id AND (`feedID` LIKE :search OR `feedUrl` LIKE :search) ORDER BY $orderBy LIMIT {$iDisplayStart},{$iDisplayLength}");
|
||||
$query->execute(array(':search' => '%' . $sSearch . '%', ':reseller_id' => $resellerLockupID));
|
||||
} else {
|
||||
$query = $sql->prepare("SELECT `feedID`,`feedUrl` FROM `feeds_url` WHERE `resellerID`=? ORDER BY $orderBy LIMIT {$iDisplayStart},{$iDisplayLength}");
|
||||
$query->execute(array($resellerLockupID));
|
||||
}
|
||||
|
||||
while ($row = $query->fetch(PDO::FETCH_ASSOC)) {
|
||||
$array['aaData'][] = array($row['feedUrl'], $row['feedID'], returnButton($template_to_use, 'ajax_admin_buttons_dl.tpl', 'fe', 'dl', $row['feedID'], $gsprache->del) . ' ' . returnButton($template_to_use, 'ajax_admin_buttons_md.tpl', 'fe', 'md', $row['feedID'], $gsprache->mod));
|
||||
}
|
78
web/stuff/ajax/datatable_feedsnewsentries.php
Normal file
78
web/stuff/ajax/datatable_feedsnewsentries.php
Normal file
@ -0,0 +1,78 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* File: datatable_feedsnewsentries.php.
|
||||
* Author: Ulrich Block
|
||||
* Date: 20.09.14
|
||||
* Contact: <ulrich.block@easy-wi.com>
|
||||
*
|
||||
* This file is part of Easy-WI.
|
||||
*
|
||||
* Easy-WI 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 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* Easy-WI 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 Easy-WI. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
* Diese Datei ist Teil von Easy-WI.
|
||||
*
|
||||
* Easy-WI ist Freie Software: Sie koennen es unter den Bedingungen
|
||||
* der GNU General Public License, wie von der Free Software Foundation,
|
||||
* Version 3 der Lizenz oder (nach Ihrer Wahl) jeder spaeteren
|
||||
* veroeffentlichten Version, weiterverbreiten und/oder modifizieren.
|
||||
*
|
||||
* Easy-WI wird in der Hoffnung, dass es nuetzlich sein wird, aber
|
||||
* OHNE JEDE GEWAEHELEISTUNG, bereitgestellt; sogar ohne die implizite
|
||||
* Gewaehrleistung der MARKTFAEHIGKEIT oder EIGNUNG FUER EINEN BESTIMMTEN ZWECK.
|
||||
* Siehe die GNU General Public License fuer weitere Details.
|
||||
*
|
||||
* Sie sollten eine Kopie der GNU General Public License zusammen mit diesem
|
||||
* Programm erhalten haben. Wenn nicht, siehe <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
if (!defined('AJAXINCLUDED')) {
|
||||
die('Do not access directly!');
|
||||
}
|
||||
|
||||
$query = $sql->prepare("SELECT COUNT(`newsID`) AS `amount` FROM `feeds_news` WHERE `resellerID`=?");
|
||||
$query->execute(array($resellerLockupID));
|
||||
|
||||
$array['iTotalRecords'] = $query->fetchColumn();
|
||||
|
||||
if ($sSearch) {
|
||||
$query = $sql->prepare("SELECT COUNT(`newsID`) AS `amount` FROM `feeds_news` WHERE `resellerID`=:reseller_id AND (`newsID` LIKE :search OR `pubDate` LIKE :search OR ((LENGTH(`title`)<2 AND `link` LIKE :search) OR (LENGTH(`title`)>1 AND `title` LIKE :search)))");
|
||||
$query->execute(array(':search' => '%' . $sSearch . '%', ':reseller_id' => $resellerLockupID));
|
||||
|
||||
$array['iTotalDisplayRecords'] = $query->fetchColumn();
|
||||
} else {
|
||||
$array['iTotalDisplayRecords'] = $array['iTotalRecords'];
|
||||
}
|
||||
|
||||
$orderFields = array(0 => 'n.`title`', 1 => 'n.`newsID`', 2 => 'n.`pubDate`');
|
||||
|
||||
if (isset($orderFields[$iSortCol]) and is_array($orderFields[$iSortCol])) {
|
||||
$orderBy = implode(' ' . $sSortDir . ', ', $orderFields[$iSortCol]) . ' ' . $sSortDir;
|
||||
} else if (isset($orderFields[$iSortCol]) and !is_array($orderFields[$iSortCol])) {
|
||||
$orderBy = $orderFields[$iSortCol] . ' ' . $sSortDir;
|
||||
} else {
|
||||
$orderBy = 'n.`newsID` ASC';
|
||||
}
|
||||
|
||||
if ($sSearch) {
|
||||
$query = $sql->prepare("SELECT n.`newsID`,n.`title`,n.`link`,n.`pubDate`,n.`active` FROM `feeds_news` n LEFT JOIN `feeds_url` u ON n.`feedID`=u.`feedID` WHERE n.`resellerID`=:reseller_id AND (n.`newsID` LIKE :search OR n.`pubDate` LIKE :search OR ((LENGTH(n.`title`)<2 AND n.`link` LIKE :search) OR (LENGTH(n.`title`)>1 AND n.`title` LIKE :search))) ORDER BY $orderBy LIMIT {$iDisplayStart},{$iDisplayLength}");
|
||||
$query->execute(array(':search' => '%' . $sSearch . '%', ':reseller_id' => $resellerLockupID));
|
||||
} else {
|
||||
$query = $sql->prepare("SELECT n.`newsID`,n.`title`,n.`link`,n.`pubDate`,n.`active` FROM `feeds_news` n LEFT JOIN `feeds_url` u ON n.`feedID`=u.`feedID` WHERE n.`resellerID`=? ORDER BY $orderBy LIMIT {$iDisplayStart},{$iDisplayLength}");
|
||||
$query->execute(array($resellerLockupID));
|
||||
}
|
||||
|
||||
while ($row = $query->fetch(PDO::FETCH_ASSOC)) {
|
||||
$array['aaData'][] = array((strlen($row['title']) < 2) ? $row['link'] : $row['title'], $row['newsID'], $row['pubDate'], returnButton($template_to_use, 'ajax_admin_feed_active.tpl', $row['active'], '', $row['newsID'], ''), returnButton($template_to_use, 'ajax_admin_feed_del.tpl', '', '', $row['newsID'], '') . returnButton($template_to_use, 'ajax_admin_feed_hidden.tpl', '', '', $row['newsID'], ''));
|
||||
}
|
@ -78,16 +78,13 @@ if (isset($orderFields[$iSortCol]) and is_array($orderFields[$iSortCol])) {
|
||||
}
|
||||
|
||||
if ($sSearch) {
|
||||
|
||||
$query = $sql->prepare("SELECT a.`id`,a.`menudescription`,a.`type`,(SELECT GROUP_CONCAT(DISTINCT s.`shorten` ORDER BY s.`shorten` ASC SEPARATOR ', ') AS `list` FROM `addons_allowed` AS al INNER JOIN `servertypes` AS s ON al.`servertype_id`=s.`id` WHERE al.`addon_id`=a.`id`) AS `list` FROM `addons` AS a WHERE a.`resellerid`=:reseller_id AND (`id` LIKE :search OR `type` LIKE :search OR `menudescription` LIKE :search $addonInQuery) ORDER BY $orderBy LIMIT {$iDisplayStart},{$iDisplayLength}");
|
||||
$query->execute(array(':search' => '%' . $sSearch . '%', ':reseller_id' => $resellerLockupID));
|
||||
|
||||
} else {
|
||||
$query = $sql->prepare("SELECT a.`id`,a.`menudescription`,a.`type`,(SELECT GROUP_CONCAT(DISTINCT s.`shorten` ORDER BY s.`shorten` ASC SEPARATOR ', ') AS `list` FROM `addons_allowed` AS al INNER JOIN `servertypes` AS s ON al.`servertype_id`=s.`id` WHERE al.`addon_id`=a.`id`) AS `list` FROM `addons` AS a WHERE a.`resellerid`=? ORDER BY $orderBy LIMIT {$iDisplayStart},{$iDisplayLength}");
|
||||
$query->execute(array($resellerLockupID));
|
||||
}
|
||||
|
||||
while ($row = $query->fetch(PDO::FETCH_ASSOC)) {
|
||||
|
||||
$array['aaData'][] = array($row['menudescription'], $row['id'], ($row['type'] == 'map') ? (string) $sprache->map : (string) $sprache->tool, $row['list'], returnButton($template_to_use, 'ajax_admin_buttons_ex.tpl', 'ad', 'ex', $row['id'], $gsprache->export) . ' ' . returnButton($template_to_use, 'ajax_admin_buttons_dl.tpl', 'ad', 'dl', $row['id'], $gsprache->del) . ' ' . returnButton($template_to_use, 'ajax_admin_buttons_md.tpl', 'ad', 'md', $row['id'], $gsprache->mod));
|
||||
}
|
@ -105,5 +105,5 @@ if ($sSearch) {
|
||||
}
|
||||
}
|
||||
foreach ($query->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
||||
$array['aaData'][] = array($row['date'], str_replace($placeholders2, $replace2, $row['action']), returnButton($template_to_use, 'ajax_admin_show_status.tpl', '', '', $row['status'], ''), $row['name'], str_replace($placeholders, $replace, $row['type']), returnButton($template_to_use, 'ajax_admin_form_input.tpl', '', '', $row['jobID'], ''));
|
||||
$array['aaData'][] = array($row['date'], str_replace($placeholders2, $replace2, $row['action']), returnButton($template_to_use, 'ajax_admin_show_status.tpl', '', '', $row['status'], ''), $row['name'], str_replace($placeholders, $replace, $row['type']), returnButton($template_to_use, 'ajax_admin_job_checkbox.tpl', '', '', $row['jobID'], ''));
|
||||
}
|
@ -7,38 +7,73 @@
|
||||
</ol>
|
||||
</section>
|
||||
|
||||
<!-- Main Content -->
|
||||
<section class="content">
|
||||
<div class="box box-info">
|
||||
<div class="box-body">
|
||||
<form role="form" action="admin.php?w=fe&d=ad&r=fe" onsubmit="return confirm('<?php echo $gsprache->sure; ?>');" method="post">
|
||||
<input type="hidden" name="token" value="<?php echo token();?>">
|
||||
<input type="hidden" name="action" value="ad">
|
||||
<div class="form-group">
|
||||
<label for="inputActive"><?php echo $sprache->active;?></label>
|
||||
<select class="form-control" id="inputActive" name="active">
|
||||
<option value="N"><?php echo $gsprache->no;?></option>
|
||||
<option value="Y"><?php echo $gsprache->yes;?></option>
|
||||
</select>
|
||||
<div class="row">
|
||||
<div class="col-md-11">
|
||||
<div class="box box-success">
|
||||
|
||||
<form role="form" action="admin.php?w=fe&d=ad&r=fe" onsubmit="return confirm('<?php echo $gsprache->sure; ?>');" method="post">
|
||||
|
||||
<input type="hidden" name="token" value="<?php echo token();?>">
|
||||
<input type="hidden" name="action" value="ad">
|
||||
|
||||
<div class="box-body">
|
||||
<div class="form-group">
|
||||
<label for="inputActive"><?php echo $sprache->active;?></label>
|
||||
<select class="form-control" id="inputActive" name="active">
|
||||
<option value="N"><?php echo $gsprache->no;?></option>
|
||||
<option value="Y"><?php echo $gsprache->yes;?></option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label" for="inputTwitter">Twitter</label>
|
||||
<select class="form-control" id="inputTwitter" name="twitter" onchange="SwitchShowHideRows(this.value, 'switch', 1);">
|
||||
<option value="N"><?php echo $gsprache->no;?></option>
|
||||
<option value="Y"><?php echo $gsprache->yes;?></option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="Y display_none switch form-group">
|
||||
<label for="inputTwitterLoginname">Twitter Loginname</label>
|
||||
<input class="form-control" id="inputTwitterLoginname" type="text" name="loginName" value="">
|
||||
</div>
|
||||
|
||||
<div class="N switch form-group">
|
||||
<label for="inputFeedUrl">URL</label>
|
||||
<input class="form-control" id="inputFeedUrl" type="text" name="feedUrl" value="">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="box-footer">
|
||||
<button class="btn btn-success" id="inputEdit" type="submit"><i class="fa fa-plus-circle"> <?php echo $gsprache->add;?></i></button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label" for="inputTwitter">Twitter</label>
|
||||
<select class="form-control" id="inputTwitter" name="twitter" onchange="SwitchShowHideRows(this.value);">
|
||||
<option value="N"><?php echo $gsprache->no;?></option>
|
||||
<option value="Y"><?php echo $gsprache->yes;?></option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="Y display_none switch form-group">
|
||||
<label for="inputTwitterLoginname">Twitter Loginname</label>
|
||||
<input class="form-control" id="inputTwitterLoginname" type="text" name="loginName" value="">
|
||||
</div>
|
||||
<div class="N switch form-group">
|
||||
<label for="inputFeedUrl">URL</label>
|
||||
<input class="form-control" id="inputFeedUrl" type="text" name="feedUrl" value="">
|
||||
</div>
|
||||
<label for="inputEdit"></label>
|
||||
<button class="btn btn-primary" id="inputEdit" type="submit"><i class="fa fa-save"> <?php echo $gsprache->save;?></i></button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
|
||||
<script type="text/javascript">
|
||||
window.onDomReady = initReady;
|
||||
|
||||
function initReady(fn) {
|
||||
if(document.addEventListener) {
|
||||
document.addEventListener("DOMContentLoaded", fn, false);
|
||||
} else {
|
||||
document.onreadystatechange = function() {
|
||||
readyState(fn);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function readyState(func) {
|
||||
if(document.readyState == "interactive" || document.readyState == "complete") {
|
||||
func();
|
||||
}
|
||||
}
|
||||
|
||||
window.onDomReady(onReady); function onReady() {
|
||||
SwitchShowHideRows('init_ready');
|
||||
}
|
||||
</script>
|
@ -8,21 +8,28 @@
|
||||
</ol>
|
||||
</section>
|
||||
|
||||
<!-- Main Content -->
|
||||
<section class="content">
|
||||
<div class="box box-info">
|
||||
<div class="box-body">
|
||||
<form role="form" action="admin.php?w=fe&d=dl&id=<?php echo $id;?>&r=fe" onsubmit="return confirm('<?php echo $gsprache->sure; ?>');" method="post">
|
||||
<input type="hidden" name="token" value="<?php echo token();?>">
|
||||
<input type="hidden" name="action" value="dl">
|
||||
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon"><i class="fa fa-rss"></i></span>
|
||||
<input for="inputEdit" class="form-control" value="<?php echo $feedUrl;?>" disabled>
|
||||
</div>
|
||||
<br />
|
||||
<button class="btn btn-danger" id="inputEdit" type="submit"><i class="fa fa-trash-o"></i> <?php echo $gsprache->del;?></button>
|
||||
</form>
|
||||
<div class="row">
|
||||
<div class="col-md-11">
|
||||
<div class="box box-danger">
|
||||
|
||||
<form role="form" action="admin.php?w=fe&d=dl&id=<?php echo $id;?>&r=fe" onsubmit="return confirm('<?php echo $gsprache->sure; ?>');" method="post">
|
||||
|
||||
<input type="hidden" name="token" value="<?php echo token();?>">
|
||||
<input type="hidden" name="action" value="dl">
|
||||
|
||||
<div class="box-body">
|
||||
<div class="form-group">
|
||||
<label for="inputFeedUrl">URL</label>
|
||||
<input class="form-control" id="inputFeedUrl" type="text" name="feedUrl" value="<?php echo $feedUrl;?>" disabled="disabled">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="box-footer">
|
||||
<button class="btn btn-danger" id="inputEdit" type="submit"><i class="fa fa-trash-o"></i> <?php echo $gsprache->del;?></button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
@ -6,55 +6,51 @@
|
||||
</ol>
|
||||
</section>
|
||||
|
||||
<!-- Main Content -->
|
||||
<section class="content">
|
||||
|
||||
<?php echo $gsprache->feeds.' '.$gsprache->news;?> <a href="admin.php?w=fn&d=ud&r=fn"><span class="btn btn-primary btn-sm"><i class="fa fa-plus"></i></span></a>
|
||||
|
||||
<div class="box-footer clearfix">
|
||||
<ul class="pagination pagination-sm no-margin pull-right">
|
||||
<li><a href="admin.php?w=fn&a=<?php if(!isset($amount)) echo "20"; else echo $amount; ?>&p=<?php echo $zur;?>"><i class="fa fa-step-backward"></i></a></li>
|
||||
<li><a href="admin.php?w=fn&o=<?php echo $o;?>&a=20&p=<?php echo $start; ?>">20</a></li>
|
||||
<li><a href="admin.php?w=fn&o=<?php echo $o;?>&a=50&p=<?php echo $start; ?>">50</a></li>
|
||||
<li><a href="admin.php?w=fn&o=<?php echo $o;?>&a=100&p=<?php echo $start; ?>">100</a></li>
|
||||
<li><a href="admin.php?w=fn&a=<?php if(!isset($amount)) echo "20"; else echo $amount; ?>&p=<?php echo $vor;?>"><i class="fa fa-step-forward"></i></a></li>
|
||||
</ul>
|
||||
<div class="row">
|
||||
<div class="col-md-11">
|
||||
<?php echo $gsprache->feeds.' '.$gsprache->news;?> <a href="admin.php?w=fn&d=ud&r=fn"><span class="btn btn-success btn-sm"><i class="fa fa-plus-circle"></i> <?php echo $gsprache->add;?></span></a>
|
||||
</div>
|
||||
</div>
|
||||
<br/>
|
||||
<hr>
|
||||
|
||||
<form action="admin.php?w=fn&d=md&r=fn" method="post" onsubmit="return confirm('<?php echo $gsprache->sure;?>');">
|
||||
<input type="hidden" name="action" value="md">
|
||||
<div class="box box-info">
|
||||
<div class="box-body table-responsive no-padding">
|
||||
<table class="table table-bordered table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th data-class="expand"><a href="admin.php?w=fn&a=<?php if(!isset($amount)) echo "20"; else echo $amount; ?>&p=<?php echo $start;?>&o=<?php if ($o=='ah') { echo 'dh'; } else { echo 'ah'; } ?>"><?php echo $sprache->title;?></a></th>
|
||||
<th data-hide="phone,tablet"><a href="admin.php?w=fn&a=<?php if(!isset($amount)) echo "20"; else echo $amount; ?>&p=<?php echo $start;?>&o=<?php if ($o=='di') { echo 'ai'; } else { echo 'di'; } ?>">ID:</a></th>
|
||||
<th data-hide="phone,tablet"><a href="admin.php?w=fn&a=<?php if(!isset($amount)) echo "20"; else echo $amount; ?>&p=<?php echo $start;?>&o=<?php if ($o=='at') { echo 'dt'; } else { echo 'at'; } ?>">Twitter:</th>
|
||||
<th data-hide="phone,tablet"><a href="admin.php?w=fn&a=<?php if(!isset($amount)) echo "20"; else echo $amount; ?>&p=<?php echo $start;?>&o=<?php if ($o=='dd') { echo 'ad'; } else { echo 'dd'; } ?>"><?php echo $sprache->pubDate;?></a></th>
|
||||
<th><a href="admin.php?w=fn&a=<?php if(!isset($amount)) echo "20"; else echo $amount; ?>&p=<?php echo $start;?>&o=<?php if ($o=='ds') { echo 'as'; } else { echo 'ds'; } ?>"><?php echo $sprache->status;?></a></th>
|
||||
<th><?php echo $gsprache->del;?>:</a></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach ($table as $table_row) { ?>
|
||||
<tr>
|
||||
<td><a href="<?php echo $table_row['link'];?>" target="_blank"><?php echo $table_row['title'];?></a></td>
|
||||
<td><?php echo $table_row['id'];?><input type="hidden" name="ids[<?php echo $table_row['id'];?>][id]" value="<?php echo $table_row['id'];?>"></td>
|
||||
<td><?php echo $table_row['twitter'];?></td>
|
||||
<td><?php echo $table_row['pubDate'];?></td>
|
||||
<td><img src="images/<?php echo $table_row['img'];?>.png" alt="<?php echo $table_row['alt'];?>" title="<?php echo $table_row['alt'];?>" /> <input type="checkbox" name="ids[<?php echo $table_row['id'];?>][active]" value="Y" <?php if($table_row['active']=='Y') echo 'checked="checked"'; ?>/></td>
|
||||
<td><input type="checkbox" name="ids[<?php echo $table_row['id'];?>][dl]" value="Y"/></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="box-body">
|
||||
<label for="inputEdit"></label>
|
||||
<button class="btn btn-primary" id="inputEdit" type="submit"><i class="fa fa-save"> <?php echo $gsprache->save;?></i></button>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="box box-info">
|
||||
<form action="admin.php?w=fn&d=md&r=fn" method="post" onsubmit="return confirm('<?php echo $gsprache->sure;?>');">
|
||||
|
||||
<input type="hidden" name="action" value="md">
|
||||
|
||||
<div class="box-body table-responsive">
|
||||
<div class="box-body table-responsive">
|
||||
<table id="dataTable" class="table table-bordered table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><?php echo $sprache->title;?></th>
|
||||
<th>ID</th>
|
||||
<th><?php echo $sprache->pubDate;?></th>
|
||||
<th><?php echo $sprache->status;?></th>
|
||||
<th><?php echo $gsprache->del;?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th><?php echo $sprache->title;?></th>
|
||||
<th>ID</th>
|
||||
<th><?php echo $sprache->pubDate;?></th>
|
||||
<th><?php echo $sprache->status;?></th>
|
||||
<th><?php echo $gsprache->del;?></th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="box-footer">
|
||||
<button class="btn btn-warning" id="inputEdit" type="submit"><i class="fa fa-play-circle"> <?php echo $gsprache->exec;?></i></button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</section>
|
@ -6,48 +6,38 @@
|
||||
</ol>
|
||||
</section>
|
||||
|
||||
<!-- Main Content -->
|
||||
<section class="content">
|
||||
|
||||
<?php echo $gsprache->feeds;?> <a href="admin.php?w=fe&d=ad"<span class="btn btn-primary btn-sm"><i class="fa fa-plus"></i></span></a>
|
||||
|
||||
<div class="box-footer clearfix">
|
||||
<ul class="pagination pagination-sm no-margin pull-right">
|
||||
<li><a href="admin.php?w=fe&d=md&a=<?php if(!isset($amount)) echo "20"; else echo $amount; ?>&p=<?php echo $zur;?>"><i class="fa fa-step-backward"></i></a></li>
|
||||
<li><a href="admin.php?w=fe&o=<?php echo $o;?>&a=20&p=<?php echo $start; ?>">20</a></li>
|
||||
<li><a href="admin.php?w=fe&o=<?php echo $o;?>&a=50&p=<?php echo $start; ?>">50</a></li>
|
||||
<li><a href="admin.php?w=fe&o=<?php echo $o;?>&a=100&p=<?php echo $start; ?>">100</a></li>
|
||||
<li><a href="admin.php?w=fe&d=md&a=<?php if(!isset($amount)) echo "20"; else echo $amount; ?>&p=<?php echo $vor;?>"><i class="fa fa-step-forward"></i></a></li>
|
||||
</ul>
|
||||
<div class="row">
|
||||
<div class="col-md-11">
|
||||
<?php echo $gsprache->feeds;?> <a href="admin.php?w=fe&d=ad"<span class="btn btn-success btn-sm"><i class="fa fa-plus-circle"></i> <?php echo $gsprache->add;?></span></a>
|
||||
</div>
|
||||
</div>
|
||||
<br/>
|
||||
<input type="hidden" name="action" value="md">
|
||||
<div class="box box-info">
|
||||
<div class="box-body table-responsive no-padding">
|
||||
<table class="table table-bordered table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th data-class="expand"><a href="admin.php?w=fe&d=md&a=<?php if(!isset($amount)) echo "20"; else echo $amount; ?>&p=<?php echo $start;?>&o=<?php if ($o=='au') { echo 'du'; } else { echo 'au'; } ?>">URL</a></th>
|
||||
<th data-hide="phone,tablet"><a href="admin.php?w=fe&d=md&a=<?php if(!isset($amount)) echo "20"; else echo $amount; ?>&p=<?php echo $start;?>&o=<?php if ($o=='di') { echo 'ai'; } else { echo 'di'; } ?>">ID</a></th>
|
||||
<th data-hide="phone,tablet"><a href="admin.php?w=fe&d=md&a=<?php if(!isset($amount)) echo "20"; else echo $amount; ?>&p=<?php echo $start;?>&o=<?php if ($o=='ds') { echo 'as'; } else { echo 'ds'; } ?>"><?php echo $sprache->status;?></a></th>
|
||||
<th data-hide="phone,tablet"><a href="admin.php?w=fe&d=md&a=<?php if(!isset($amount)) echo "20"; else echo $amount; ?>&p=<?php echo $start;?>&o=<?php if ($o=='at') { echo 'dt'; } else { echo 'at'; } ?>">Twitter</th>
|
||||
<th><?php echo $gsprache->del;?></a></th>
|
||||
<th><?php echo $gsprache->mod;?></a></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach ($table as $table_row) { ?>
|
||||
<tr>
|
||||
<td><a href="<?php echo $table_row['feedUrl'];?>" target="_blank"><?php echo $table_row['feedUrl'];?></a></td>
|
||||
<td><?php echo $table_row['id'];?></td>
|
||||
<td><i class="<?php if($table_row['active']=='Y') echo 'icon-ok'; else echo 'icon-ban-circle';?>"></i></td>
|
||||
<td><?php echo $table_row['twitter'];?></td>
|
||||
<td><a href="admin.php?w=fe&d=dl&id=<?php echo $table_row['id'];?>" ><span class="btn btn-sm btn-danger"><i class="fa fa-trash-o"></i></span></a></td>
|
||||
<td><a href="admin.php?w=fe&d=md&id=<?php echo $table_row['id'];?>" ><span class="btn btn-sm btn-primary"><i class="fa fa-edit"></i></span></a></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<hr>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="box box-info">
|
||||
<div class="box-body table-responsive">
|
||||
<div class="box-body table-responsive">
|
||||
<table id="dataTable" class="table table-bordered table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>URL</th>
|
||||
<th>ID</th>
|
||||
<th><?php echo $gsprache->action;?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th>URL</th>
|
||||
<th>ID</th>
|
||||
<th><?php echo $gsprache->action;?></th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
@ -8,40 +8,73 @@
|
||||
</ol>
|
||||
</section>
|
||||
|
||||
<!-- Main Content -->
|
||||
<section class="content">
|
||||
<div class="row">
|
||||
<div class="col-md-11">
|
||||
<div class="box box-info">
|
||||
|
||||
<div class="box box-info">
|
||||
<div class="box-body">
|
||||
<form role="form" action="admin.php?w=fe&d=md&id=<?php echo $id;?>&r=fe" onsubmit="return confirm('<?php echo $gsprache->sure; ?>');" method="post">
|
||||
<input type="hidden" name="token" value="<?php echo token();?>">
|
||||
<input type="hidden" name="action" value="md">
|
||||
<div class="form-group">
|
||||
<label for="inputActive"><?php echo $sprache->active;?></label>
|
||||
<select class="form-control" id="inputActive" name="active">
|
||||
<option value="N"><?php echo $gsprache->no;?></option>
|
||||
<option value="Y" <?php if ($active=='Y') echo 'selected="selected"'; ?>><?php echo $gsprache->yes;?></option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputTwitter">Twitter</label>
|
||||
<select class="form-control" id="inputTwitter" name="twitter" onchange="SwitchShowHideRows(this.value);">
|
||||
<option value="N"><?php echo $gsprache->no;?></option>
|
||||
<option value="Y" <?php if ($twitter=='Y') echo 'selected="selected"'; ?>><?php echo $gsprache->yes;?></option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="Y<?php if ($twitter=='N') echo ' display_none';?> switch form-group">
|
||||
<label for="inputTwitterLoginname">Twitter Loginname</label>
|
||||
<input class="form-control" id="inputTwitterLoginname" type="text" name="loginName" value="<?php echo $loginName;?>">
|
||||
</div>
|
||||
<div class="N<?php if ($twitter=='Y') echo ' display_none';?> switch form-group">
|
||||
<label for="inputFeedUrl">URL</label>
|
||||
<input class="form-control" id="inputFeedUrl" type="text" name="feedUrl" value="<?php echo $feedUrl;?>">
|
||||
</div>
|
||||
<form role="form" action="admin.php?w=fe&d=md&id=<?php echo $id;?>&r=fe" onsubmit="return confirm('<?php echo $gsprache->sure; ?>');" method="post">
|
||||
|
||||
<label for="inputEdit"></label>
|
||||
<input type="hidden" name="token" value="<?php echo token();?>">
|
||||
<input type="hidden" name="action" value="md">
|
||||
|
||||
<div class="box-body">
|
||||
<div class="form-group">
|
||||
<label for="inputActive"><?php echo $sprache->active;?></label>
|
||||
<select class="form-control" id="inputActive" name="active">
|
||||
<option value="N"><?php echo $gsprache->no;?></option>
|
||||
<option value="Y" <?php if ($active=='Y') echo 'selected="selected"'; ?>><?php echo $gsprache->yes;?></option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputTwitter">Twitter</label>
|
||||
<select class="form-control" id="inputTwitter" name="twitter" onchange="SwitchShowHideRows(this.value);">
|
||||
<option value="N"><?php echo $gsprache->no;?></option>
|
||||
<option value="Y" <?php if ($twitter=='Y') echo 'selected="selected"'; ?>><?php echo $gsprache->yes;?></option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="Y<?php if ($twitter=='N') echo ' display_none';?> switch form-group">
|
||||
<label for="inputTwitterLoginname">Twitter Loginname</label>
|
||||
<input class="form-control" id="inputTwitterLoginname" type="text" name="loginName" value="<?php echo $loginName;?>">
|
||||
</div>
|
||||
|
||||
<div class="N<?php if ($twitter=='Y') echo ' display_none';?> switch form-group">
|
||||
<label for="inputFeedUrl">URL</label>
|
||||
<input class="form-control" id="inputFeedUrl" type="text" name="feedUrl" value="<?php echo $feedUrl;?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="box-footer">
|
||||
<button class="btn btn-primary" id="inputEdit" type="submit"><i class="fa fa-save"> <?php echo $gsprache->save;?></i></button>
|
||||
</form>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
|
||||
<script type="text/javascript">
|
||||
window.onDomReady = initReady;
|
||||
|
||||
function initReady(fn) {
|
||||
if(document.addEventListener) {
|
||||
document.addEventListener("DOMContentLoaded", fn, false);
|
||||
} else {
|
||||
document.onreadystatechange = function() {
|
||||
readyState(fn);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function readyState(func) {
|
||||
if(document.readyState == "interactive" || document.readyState == "complete") {
|
||||
func();
|
||||
}
|
||||
}
|
||||
|
||||
window.onDomReady(onReady); function onReady() {
|
||||
SwitchShowHideRows('init_ready');
|
||||
}
|
||||
</script>
|
@ -7,75 +7,86 @@
|
||||
</ol>
|
||||
</section>
|
||||
|
||||
<!-- Main Content -->
|
||||
<section class="content">
|
||||
<div class="row">
|
||||
<div class="col-md-11">
|
||||
<div class="box box-info">
|
||||
|
||||
<div class="box box-info">
|
||||
<div class="box-body">
|
||||
<form role="form" action="admin.php?w=fe&d=se" onsubmit="return confirm('<?php echo $gsprache->sure; ?>');" method="post">
|
||||
<input type="hidden" name="token" value="<?php echo token();?>">
|
||||
<input type="hidden" name="action" value="md">
|
||||
<div class="form-group">
|
||||
<label for="inputActive"><?php echo $sprache->active;?></label>
|
||||
<select class="form-control" id="inputActive" name="active">
|
||||
<option value="N"><?php echo $gsprache->no;?></option>
|
||||
<option value="Y" <?php if ($active=='Y') echo 'selected="selected"'; ?>><?php echo $gsprache->yes;?></option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputSteam">Steam Feeds</label>
|
||||
<select class="form-control" id="inputSteam" name="steamFeeds">
|
||||
<option value="N"><?php echo $gsprache->no;?></option>
|
||||
<option value="Y" <?php if ($steamFeeds=='Y') echo 'selected="selected"'; ?>><?php echo $gsprache->yes;?></option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputMerge"><?php echo $sprache->merge;?></label>
|
||||
<select class="form-control" id="inputMerge" name="merge">
|
||||
<option value="N"><?php echo $gsprache->no;?></option>
|
||||
<option value="Y" <?php if ($merge=='Y') echo 'selected="selected"'; ?>><?php echo $gsprache->yes;?></option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputContent"><?php echo $sprache->displayContent;?></label>
|
||||
<select class="form-control" id="inputContent" name="displayContent">
|
||||
<option value="N"><?php echo $gsprache->no;?></option>
|
||||
<option value="Y" <?php if ($displayContent=='Y') echo 'selected="selected"'; ?>><?php echo $gsprache->yes;?></option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputOrderBy"><?php echo $sprache->orderBy;?></label>
|
||||
<select class="form-control" id="inputOrderBy" name="orderBy">
|
||||
<option value="I">URL</option>
|
||||
<option value="D" <?php if ($displayContent=='D') echo 'selected="selected"'; ?>>ID</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputDisplay"><?php echo $sprache->limitDisplay;?></label>
|
||||
<select class="form-control" id="inputDisplay" name="limitDisplay">
|
||||
<option value="N"><?php echo $gsprache->no;?></option>
|
||||
<option value="Y" <?php if ($limitDisplay=='Y') echo 'selected="selected"'; ?>><?php echo $gsprache->yes;?></option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputMaxKeep"><?php echo $sprache->maxKeep;?></label>
|
||||
<input class="form-control" id="inputMaxKeep" type="number" name="maxKeep" maxlength="6" value="<?php echo $maxKeep;?>">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputMaxChars"><?php echo $sprache->maxChars;?></label>
|
||||
<input class="form-control" id="inputMaxChars" type="number" name="maxChars" maxlength="6" value="<?php echo $maxChars;?>">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputNewsAmount"><?php echo $sprache->newsAmount;?></label>
|
||||
<input class="form-control" id="inputNewsAmount" type="number" name="newsAmount" maxlength="6" value="<?php echo $newsAmount;?>">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputUpdateMinutes"><?php echo $sprache->updateMinutes;?></label>
|
||||
<input class="form-control" id="inputUpdateMinutes" type="number" name="updateMinutes" maxlength="10" value="<?php echo $updateMinutes;?>">
|
||||
</div>
|
||||
<label for="inputEdit"></label>
|
||||
<form role="form" action="admin.php?w=fe&d=se" onsubmit="return confirm('<?php echo $gsprache->sure; ?>');" method="post">
|
||||
|
||||
<input type="hidden" name="token" value="<?php echo token();?>">
|
||||
<input type="hidden" name="action" value="md">
|
||||
|
||||
<div class="box-body">
|
||||
<div class="form-group">
|
||||
<label for="inputActive"><?php echo $sprache->active;?></label>
|
||||
<select class="form-control" id="inputActive" name="active">
|
||||
<option value="N"><?php echo $gsprache->no;?></option>
|
||||
<option value="Y" <?php if ($active=='Y') echo 'selected="selected"'; ?>><?php echo $gsprache->yes;?></option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputSteam">Steam Feeds</label>
|
||||
<select class="form-control" id="inputSteam" name="steamFeeds">
|
||||
<option value="N"><?php echo $gsprache->no;?></option>
|
||||
<option value="Y" <?php if ($steamFeeds=='Y') echo 'selected="selected"'; ?>><?php echo $gsprache->yes;?></option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputMerge"><?php echo $sprache->merge;?></label>
|
||||
<select class="form-control" id="inputMerge" name="merge">
|
||||
<option value="N"><?php echo $gsprache->no;?></option>
|
||||
<option value="Y" <?php if ($merge=='Y') echo 'selected="selected"'; ?>><?php echo $gsprache->yes;?></option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputContent"><?php echo $sprache->displayContent;?></label>
|
||||
<select class="form-control" id="inputContent" name="displayContent">
|
||||
<option value="N"><?php echo $gsprache->no;?></option>
|
||||
<option value="Y" <?php if ($displayContent=='Y') echo 'selected="selected"'; ?>><?php echo $gsprache->yes;?></option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputOrderBy"><?php echo $sprache->orderBy;?></label>
|
||||
<select class="form-control" id="inputOrderBy" name="orderBy">
|
||||
<option value="I">URL</option>
|
||||
<option value="D" <?php if ($displayContent=='D') echo 'selected="selected"'; ?>>ID</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputDisplay"><?php echo $sprache->limitDisplay;?></label>
|
||||
<select class="form-control" id="inputDisplay" name="limitDisplay">
|
||||
<option value="N"><?php echo $gsprache->no;?></option>
|
||||
<option value="Y" <?php if ($limitDisplay=='Y') echo 'selected="selected"'; ?>><?php echo $gsprache->yes;?></option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputMaxKeep"><?php echo $sprache->maxKeep;?></label>
|
||||
<input class="form-control" id="inputMaxKeep" type="number" name="maxKeep" maxlength="6" value="<?php echo $maxKeep;?>">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputMaxChars"><?php echo $sprache->maxChars;?></label>
|
||||
<input class="form-control" id="inputMaxChars" type="number" name="maxChars" maxlength="6" value="<?php echo $maxChars;?>">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="inputNewsAmount"><?php echo $sprache->newsAmount;?></label>
|
||||
<input class="form-control" id="inputNewsAmount" type="number" name="newsAmount" maxlength="6" value="<?php echo $newsAmount;?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="box-footer">
|
||||
<button class="btn btn-primary" id="inputEdit" type="submit"><i class="fa fa-save"> <?php echo $gsprache->save;?></i></button>
|
||||
</form>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
1
web/template/adminlte/ajax/ajax_admin_feed_active.tpl
Normal file
1
web/template/adminlte/ajax/ajax_admin_feed_active.tpl
Normal file
@ -0,0 +1 @@
|
||||
<input type="checkbox" name="ids[<?php echo $id;?>][active]" value="Y" <?php if($what=='Y') echo 'checked="checked"'; ?>>
|
1
web/template/adminlte/ajax/ajax_admin_feed_del.tpl
Normal file
1
web/template/adminlte/ajax/ajax_admin_feed_del.tpl
Normal file
@ -0,0 +1 @@
|
||||
<input type="checkbox" name="ids[<?php echo $id;?>][dl]" value="Y">
|
1
web/template/adminlte/ajax/ajax_admin_feed_hidden.tpl
Normal file
1
web/template/adminlte/ajax/ajax_admin_feed_hidden.tpl
Normal file
@ -0,0 +1 @@
|
||||
<input type="hidden" name="ids[<?php echo $id;?>][id]" value="<?php echo $id;?>">
|
1
web/template/adminlte/ajax/ajax_admin_job_checkbox.tpl
Normal file
1
web/template/adminlte/ajax/ajax_admin_job_checkbox.tpl
Normal file
@ -0,0 +1 @@
|
||||
<input type="checkbox" name="id[]" value="<?php echo $id;?>">
|
Loading…
x
Reference in New Issue
Block a user