saimod beta checkboxes, fixed typo engeneering -> engineering
This commit is contained in:
parent
473fefd576
commit
1a315d70c7
@ -4,7 +4,7 @@
|
||||
\SYSTEM\autoload::registerFolder(dirname(__FILE__).'/default_home');
|
||||
\SYSTEM\autoload::registerFolder(dirname(__FILE__).'/default_citizen');
|
||||
\SYSTEM\autoload::registerFolder(dirname(__FILE__).'/default_politicians');
|
||||
\SYSTEM\autoload::registerFolder(dirname(__FILE__).'/default_engeneering');
|
||||
\SYSTEM\autoload::registerFolder(dirname(__FILE__).'/default_engineering');
|
||||
\SYSTEM\autoload::registerFolder(dirname(__FILE__).'/default_donate');
|
||||
|
||||
\SYSTEM\autoload::registerFolder(dirname(__FILE__).'/default_datenschutz');
|
||||
|
||||
@ -95,7 +95,7 @@
|
||||
<span> Spenden und Daueraufträge sind nur eine Möglichkeit, uns zu unterstützen.
|
||||
Wir suchen ständig motivierte Leute für die aktive Mitarbeit in unserem
|
||||
Projekt! Du hast Interesse Deine Fähigkeiten einzubringen – wir freuen uns
|
||||
über Anregungen, Fragen und Kritik. <a href="#!engeneering">Als Freiwilliger melden.</a></span>
|
||||
über Anregungen, Fragen und Kritik. <a href="#!engineering">Als Freiwilliger melden.</a></span>
|
||||
</div>
|
||||
<div class="col-lg-1"></div>
|
||||
<div class="col-lg-5" id="donate-box">
|
||||
|
||||
@ -1,16 +0,0 @@
|
||||
<?php
|
||||
class default_engeneering implements SYSTEM\PAGE\Page {
|
||||
public static function title(){
|
||||
return \SYSTEM\PAGE\text::get('title_engeneering');}
|
||||
public static function meta(){
|
||||
return \SYSTEM\PAGE\text::tag('meta_engeneering');}
|
||||
public static function js(){
|
||||
return array();}// new PPAGE('default_engeneering/js/default_engeneering.js'));}
|
||||
public static function css(){
|
||||
return array();}// new PPAGE('default_engeneering/css/default_engeneering.css'));}
|
||||
public function html(){
|
||||
$vars = array();
|
||||
$vars = array_merge($vars, \SYSTEM\PAGE\text::tag('democracy'));
|
||||
return SYSTEM\PAGE\replace::replaceFile((new PPAGE('default_engeneering/tpl/default_engeneering.tpl'))->SERVERPATH(), $vars);
|
||||
}
|
||||
}
|
||||
16
democracy/page/default_engineering/default_engineering.php
Normal file
16
democracy/page/default_engineering/default_engineering.php
Normal file
@ -0,0 +1,16 @@
|
||||
<?php
|
||||
class default_engineering implements SYSTEM\PAGE\Page {
|
||||
public static function title(){
|
||||
return \SYSTEM\PAGE\text::get('title_engineering');}
|
||||
public static function meta(){
|
||||
return \SYSTEM\PAGE\text::tag('meta_engineering');}
|
||||
public static function js(){
|
||||
return array();}// new PPAGE('default_engineering/js/default_engineering.js'));}
|
||||
public static function css(){
|
||||
return array();}// new PPAGE('default_engineering/css/default_engineering.css'));}
|
||||
public function html(){
|
||||
$vars = array();
|
||||
$vars = array_merge($vars, \SYSTEM\PAGE\text::tag('democracy'));
|
||||
return SYSTEM\PAGE\replace::replaceFile((new PPAGE('default_engineering/tpl/default_engineering.tpl'))->SERVERPATH(), $vars);
|
||||
}
|
||||
}
|
||||
@ -1,8 +1,8 @@
|
||||
var upload_files = {};
|
||||
|
||||
function init_engeneering(){
|
||||
function init_engineering(){
|
||||
$(".nav-item").removeClass("active");
|
||||
$("#menu_engeneering").parent().addClass("active");
|
||||
$("#menu_engineering").parent().addClass("active");
|
||||
$(".navbar").removeClass("startpage");
|
||||
$('[data-toggle="tooltip"]').tooltip();
|
||||
|
||||
@ -52,7 +52,7 @@ class default_faq implements SYSTEM\PAGE\Page {
|
||||
Nach entsprechender Freischaltung bekommst Du von uns einen Zugangscode sowie Deine Plattform-spezifische Installationsanleitung per Mail übersendet.',
|
||||
'category' => 'beta'),
|
||||
array( 'question' => 'Welche Funktionen sind in der BETA enthalten?',
|
||||
'answer' => 'DEMOCRACY bedeutet 1. Live Daten aus dem Bundestag, 2. eigene AppStimmung durch Dich als Nutzer und 3. eine crowdmodierte Diskussion zu den Anträgen. Im Prototyp realisiert sind davon die Live-Anbindung an die Bundestagsdaten sowie die Nutzerabstimmung. Die vollständige <a href="#!engeneering">Funktionsübersicht</a> kannst Du dieser Tabelle entnehmen.',
|
||||
'answer' => 'DEMOCRACY bedeutet 1. Live Daten aus dem Bundestag, 2. eigene AppStimmung durch Dich als Nutzer und 3. eine crowdmodierte Diskussion zu den Anträgen. Im Prototyp realisiert sind davon die Live-Anbindung an die Bundestagsdaten sowie die Nutzerabstimmung. Die vollständige <a href="#!engineering">Funktionsübersicht</a> kannst Du dieser Tabelle entnehmen.',
|
||||
'category' => 'beta'),
|
||||
array( 'question' => 'Wann kommt der Public MVP?',
|
||||
'answer' => 'Wir möchten so schnell wie möglich mit DEMOCRACY online gehen – wenn es nach uns geht, noch diesen Herbst. Bis zu diesem Zeitpunkt müssen allerdings noch einige Meilensteine erreicht werden. Dafür brauchen wir Deine Hilfe – Gestalte DEMOCRACY mit Deiner Spende oder Deinen Fähigkeiten. Fragen zum Stand der Entwicklung kannst Du gerne an <a href="mailto:prototyping@democracy-deutschland.de">prototyping@democracy-deutschland.de</a> adressieren. Bis zum Public MVP werden Dir Erweiterungen regelmäßig als Beta-Updates präsentiert.',
|
||||
|
||||
@ -17,7 +17,7 @@ class default_page implements \SYSTEM\PAGE\DefaultPage {
|
||||
new PPAGE('default_contact/js/default_contact.js'),
|
||||
new PPAGE('default_datenschutz/js/default_datenschutz.js'),
|
||||
new PPAGE('default_donate/js/default_donate.js'),
|
||||
new PPAGE('default_engeneering/js/default_engeneering.js'),
|
||||
new PPAGE('default_engineering/js/default_engineering.js'),
|
||||
new PPAGE('default_faq/js/default_faq.js'),
|
||||
new PPAGE('default_impressum/js/default_impressum.js'),
|
||||
new PPAGE('default_politicians/js/default_politicians.js'),
|
||||
@ -40,7 +40,7 @@ class default_page implements \SYSTEM\PAGE\DefaultPage {
|
||||
new PPAGE('default_contact/css/default_contact.css'),
|
||||
new PPAGE('default_datenschutz/css/default_datenschutz.css'),
|
||||
new PPAGE('default_donate/css/default_donate.css'),
|
||||
new PPAGE('default_engeneering/css/default_engeneering.css'),
|
||||
new PPAGE('default_engineering/css/default_engineering.css'),
|
||||
new PPAGE('default_faq/css/default_faq.css'),
|
||||
new PPAGE('default_impressum/css/default_impressum.css'),
|
||||
new PPAGE('default_politicians/css/default_politicians.css'),
|
||||
|
||||
@ -70,7 +70,7 @@
|
||||
<li class="nav-item active"><a id="menu_home" class="nav-link" href="#!home">Home</a></li>
|
||||
<li class="nav-item"><a id="menu_citizen" class="nav-link" href="#!citizen">Für Bürger</a></li>
|
||||
<li class="nav-item"><a id="menu_politicians" class="nav-link" href="#!politicians">Für Politiker</a></li>
|
||||
<li class="nav-item"><a id="menu_engeneering" class="nav-link" href="#!engeneering">Engeneering</a></li>
|
||||
<li class="nav-item"><a id="menu_engineering" class="nav-link" href="#!engineering">Engineering</a></li>
|
||||
<li class="nav-item"><a id="menu_donate" class="nav-link menu-important" href="#!donate">Spenden</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
@ -111,7 +111,7 @@
|
||||
<div class="col-lg-2 footer-in-touch">
|
||||
<h3>IN TOUCH</h3>
|
||||
<ul>
|
||||
<li><a href="#!engeneering#help">Mithelfen</a></li>
|
||||
<li><a href="#!engineering#help">Mithelfen</a></li>
|
||||
<li><a href="#!press">Presse</a></li>
|
||||
<li><a href="#!faq">FAQ</a></li>
|
||||
</ul>
|
||||
|
||||
@ -17,8 +17,8 @@ class page_democracy extends \SYSTEM\API\api_default {
|
||||
return (new default_citizen())->html();}
|
||||
public static function page_politicians(){
|
||||
return (new default_politicians())->html();}
|
||||
public static function page_engeneering(){
|
||||
return (new default_engeneering())->html();}
|
||||
public static function page_engineering(){
|
||||
return (new default_engineering())->html();}
|
||||
public static function page_donate(){
|
||||
return (new default_donate())->html();}
|
||||
|
||||
|
||||
@ -3,7 +3,31 @@ function init_saimod_beta_all() {
|
||||
$('#tabs_beta li a').each(function(){
|
||||
$(this).removeClass('active');});
|
||||
$('#menu_tag_beta').addClass('active');
|
||||
email_delete();
|
||||
$('.email_delete').click(function(){
|
||||
var emails = [];
|
||||
$('.all-check:checked').each(function() {
|
||||
emails.push($(this).attr('email'));
|
||||
});
|
||||
if (confirm('Are you sure you want to delete '+emails.length+' Users PERMANENTLY?')) {
|
||||
$.ajax({
|
||||
async: true,
|
||||
url: this.endpoint,
|
||||
type: 'GET',
|
||||
dataType: 'JSON',
|
||||
data: {
|
||||
sai_mod: '.SAI.saimod_beta',
|
||||
action: 'email_delete',
|
||||
emails: emails
|
||||
},
|
||||
success: function(){
|
||||
system.reload();
|
||||
},
|
||||
error: function(){
|
||||
alert('Something happend - try again!');
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
function init_saimod_beta_code() {
|
||||
@ -85,9 +109,10 @@ function init_saimod_beta_store_android() {
|
||||
$(this).removeClass('active');});
|
||||
$('#menu_tag_store_android').addClass('active');
|
||||
$('.code_android').click(function(){
|
||||
var email = $(this).attr('email');
|
||||
var android = $(this).attr('android');
|
||||
var ios = $(this).attr('ios');
|
||||
var emails = [];
|
||||
$('.android-check:checked').each(function() {
|
||||
emails.push($(this).attr('email'));
|
||||
});
|
||||
$.ajax({
|
||||
async: true,
|
||||
url: this.endpoint,
|
||||
@ -96,9 +121,9 @@ function init_saimod_beta_store_android() {
|
||||
data: {
|
||||
sai_mod: '.SAI.saimod_beta',
|
||||
action: 'store',
|
||||
email: email,
|
||||
android: android,
|
||||
ios: ios
|
||||
emails: emails,
|
||||
android: 1,
|
||||
ios: 0
|
||||
},
|
||||
success: function(){
|
||||
system.reload();
|
||||
@ -116,51 +141,12 @@ function init_saimod_beta_store_android() {
|
||||
document.execCommand("copy");
|
||||
$temp.remove();
|
||||
});
|
||||
email_delete();
|
||||
};
|
||||
function init_saimod_beta_store_ios() {
|
||||
$("#table_beta_store_ios").tablesorter();
|
||||
$('#tabs_beta li a').each(function(){
|
||||
$(this).removeClass('active');});
|
||||
$('#menu_tag_store_ios').addClass('active');
|
||||
$('.code_ios').click(function(){
|
||||
var email = $(this).attr('email');
|
||||
var android = $(this).attr('android');
|
||||
var ios = $(this).attr('ios');
|
||||
$.ajax({
|
||||
async: true,
|
||||
url: this.endpoint,
|
||||
type: 'GET',
|
||||
dataType: 'JSON',
|
||||
data: {
|
||||
sai_mod: '.SAI.saimod_beta',
|
||||
action: 'store',
|
||||
email: email,
|
||||
android: android,
|
||||
ios: ios
|
||||
},
|
||||
success: function(){
|
||||
system.reload();
|
||||
},
|
||||
error: function(){
|
||||
alert('Something happend - try again!');
|
||||
}
|
||||
});
|
||||
});
|
||||
$('.copy_email').click(function(){
|
||||
var i = $(this).attr('i');
|
||||
var $temp = $("<input>");
|
||||
$("body").append($temp);
|
||||
$temp.val($('#email_'+i).text()).select();
|
||||
document.execCommand("copy");
|
||||
$temp.remove();
|
||||
});
|
||||
email_delete();
|
||||
};
|
||||
function email_delete(){
|
||||
$('.email_delete').click(function(){
|
||||
if (confirm('Are you sure you want to delete this user PERMANENTLY?')) {
|
||||
var email = $(this).attr('email');
|
||||
var emails = [];
|
||||
$('.android-check:checked').each(function() {
|
||||
emails.push($(this).attr('email'));
|
||||
});
|
||||
if (confirm('Are you sure you want to delete '+emails.length+' Users PERMANENTLY?')) {
|
||||
$.ajax({
|
||||
async: true,
|
||||
url: this.endpoint,
|
||||
@ -169,7 +155,7 @@ function email_delete(){
|
||||
data: {
|
||||
sai_mod: '.SAI.saimod_beta',
|
||||
action: 'email_delete',
|
||||
email: email
|
||||
emails: emails
|
||||
},
|
||||
success: function(){
|
||||
system.reload();
|
||||
@ -180,4 +166,68 @@ function email_delete(){
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
function init_saimod_beta_store_ios() {
|
||||
$("#table_beta_store_ios").tablesorter();
|
||||
$('#tabs_beta li a').each(function(){
|
||||
$(this).removeClass('active');});
|
||||
$('#menu_tag_store_ios').addClass('active');
|
||||
$('.code_ios').click(function(){
|
||||
var emails = [];
|
||||
$('.ios-check:checked').each(function() {
|
||||
emails.push($(this).attr('email'));
|
||||
});
|
||||
$.ajax({
|
||||
async: true,
|
||||
url: this.endpoint,
|
||||
type: 'GET',
|
||||
dataType: 'JSON',
|
||||
data: {
|
||||
sai_mod: '.SAI.saimod_beta',
|
||||
action: 'store',
|
||||
emails: emails,
|
||||
android: 0,
|
||||
ios: 1
|
||||
},
|
||||
success: function(){
|
||||
system.reload();
|
||||
},
|
||||
error: function(){
|
||||
alert('Something happend - try again!');
|
||||
}
|
||||
});
|
||||
});
|
||||
$('.copy_email').click(function(){
|
||||
var i = $(this).attr('i');
|
||||
var $temp = $("<input>");
|
||||
$("body").append($temp);
|
||||
$temp.val($('#email_'+i).text()).select();
|
||||
document.execCommand("copy");
|
||||
$temp.remove();
|
||||
});
|
||||
$('.email_delete').click(function(){
|
||||
var emails = [];
|
||||
$('.ios-check:checked').each(function() {
|
||||
emails.push($(this).attr('email'));
|
||||
});
|
||||
if (confirm('Are you sure you want to delete '+emails.length+' Users PERMANENTLY?')) {
|
||||
$.ajax({
|
||||
async: true,
|
||||
url: this.endpoint,
|
||||
type: 'GET',
|
||||
dataType: 'JSON',
|
||||
data: {
|
||||
sai_mod: '.SAI.saimod_beta',
|
||||
action: 'email_delete',
|
||||
emails: emails
|
||||
},
|
||||
success: function(){
|
||||
system.reload();
|
||||
},
|
||||
error: function(){
|
||||
alert('Something happend - try again!');
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
};
|
||||
@ -88,8 +88,10 @@ class saimod_beta extends \SYSTEM\SAI\sai_module{
|
||||
return \JsonResult::ok();
|
||||
}
|
||||
|
||||
public static function sai_mod__SAI_saimod_beta_action_email_delete($email){
|
||||
\SQL\BETA_EMAIL_DELETE::QI(array($email));
|
||||
public static function sai_mod__SAI_saimod_beta_action_email_delete($emails){
|
||||
foreach($emails as $email){
|
||||
\SQL\BETA_EMAIL_DELETE::QI(array($email));
|
||||
}
|
||||
return \JsonResult::ok();
|
||||
}
|
||||
|
||||
@ -100,6 +102,7 @@ class saimod_beta extends \SYSTEM\SAI\sai_module{
|
||||
$beta = \SQL\BETA_STORE_ANDROID_FIND::QQ();
|
||||
$i = 0;
|
||||
while($row = $beta->next()){
|
||||
$row['tr_class'] = 'table-warning';
|
||||
$row['i'] = $i++;
|
||||
if($row['android']){
|
||||
$row['device'] = 'android';}
|
||||
@ -116,11 +119,10 @@ class saimod_beta extends \SYSTEM\SAI\sai_module{
|
||||
if($row['storedAt']){
|
||||
$row['stored'] = 'check';
|
||||
$row['stored_time'] = \SYSTEM\time::time_ago_string(strtotime($row['storedAt']));
|
||||
$row['disabled'] = 'disabled';
|
||||
$row['tr_class'] = 'table-success';
|
||||
} else {
|
||||
$row['stored'] = 'times';
|
||||
$row['stored_time'] = '';
|
||||
$row['disabled'] = '';
|
||||
}
|
||||
$row['used_code'] = $row['used_code'] == '' ? 'invalid' : $row['used_code'];
|
||||
if($row['used_code'] == $row['code']){
|
||||
@ -141,6 +143,7 @@ class saimod_beta extends \SYSTEM\SAI\sai_module{
|
||||
$beta = \SQL\BETA_STORE_IOS_FIND::QQ();
|
||||
$i = 0;
|
||||
while($row = $beta->next()){
|
||||
$row['tr_class'] = 'table-warning';
|
||||
$row['i'] = $i++;
|
||||
if($row['android']){
|
||||
$row['device'] = 'android';}
|
||||
@ -157,11 +160,10 @@ class saimod_beta extends \SYSTEM\SAI\sai_module{
|
||||
if($row['storedAt']){
|
||||
$row['stored'] = 'check';
|
||||
$row['stored_time'] = \SYSTEM\time::time_ago_string(strtotime($row['storedAt']));
|
||||
$row['disabled'] = 'disabled';
|
||||
$row['tr_class'] = 'table-success';
|
||||
} else {
|
||||
$row['stored'] = 'times';
|
||||
$row['stored_time'] = '';
|
||||
$row['disabled'] = '';
|
||||
}
|
||||
$row['used_code'] = $row['used_code'] == '' ? 'invalid' : $row['used_code'];
|
||||
if($row['used_code'] == $row['code']){
|
||||
@ -175,58 +177,13 @@ class saimod_beta extends \SYSTEM\SAI\sai_module{
|
||||
return \SYSTEM\PAGE\replace::replaceFile((new \PSAI('saimod_beta/tpl/store_ios.tpl'))->SERVERPATH(),$vars);
|
||||
}
|
||||
|
||||
public static function sai_mod__SAI_saimod_beta_action_store($email,$android,$ios){
|
||||
\SQL\BETA_STORE::QI(array($email));
|
||||
|
||||
return self::action_email($email,$android,$ios);
|
||||
}
|
||||
|
||||
/* public static function sai_mod__SAI_saimod_beta_action_mail(){
|
||||
$vars = array();
|
||||
|
||||
$vars['data'] = '';
|
||||
$beta = \SQL\BETA_MAIL_FIND::QQ();
|
||||
$i = 0;
|
||||
while($row = $beta->next()){
|
||||
$row['i'] = $i++;
|
||||
if($row['android']){
|
||||
$row['device'] = 'android';}
|
||||
if($row['ios']){
|
||||
$row['device'] = 'apple';}
|
||||
if($row['redeemedAt']){
|
||||
$row['redeemed'] = 'check';
|
||||
$row['redeemed_time'] = \SYSTEM\time::time_ago_string(strtotime($row['redeemedAt']));
|
||||
} else {
|
||||
$row['redeemed'] = 'times';
|
||||
$row['redeemed_time'] = '';
|
||||
}
|
||||
if($row['storedAt']){
|
||||
$row['stored'] = 'check';
|
||||
$row['stored_time'] = \SYSTEM\time::time_ago_string(strtotime($row['storedAt']));
|
||||
} else {
|
||||
$row['stored'] = 'times';
|
||||
$row['stored_time'] = '';
|
||||
}
|
||||
if($row['emailedAt']){
|
||||
$row['mailed'] = 'check';
|
||||
$row['mailed_time'] = \SYSTEM\time::time_ago_string(strtotime($row['emailedAt']));
|
||||
$row['disabled'] = 'disabled';
|
||||
} else {
|
||||
$row['mailed'] = 'times';
|
||||
$row['mailed_time'] = '';
|
||||
$row['disabled'] = '';
|
||||
}
|
||||
$row['used_code'] = $row['used_code'] == '' ? 'invalid' : $row['used_code'];
|
||||
if($row['used_code'] == $row['code']){
|
||||
$row['valid'] = 'green';
|
||||
} else {
|
||||
$row['valid'] = 'red';
|
||||
}
|
||||
$vars['data'] .= \SYSTEM\PAGE\replace::replaceFile((new \PSAI('saimod_beta/tpl/mail_tr.tpl'))->SERVERPATH(),$row);
|
||||
public static function sai_mod__SAI_saimod_beta_action_store($emails,$android,$ios){
|
||||
foreach($emails as $email){
|
||||
\SQL\BETA_STORE::QI(array($email));
|
||||
self::action_email($email,$android,$ios);
|
||||
}
|
||||
$vars = array_merge($vars, \SYSTEM\PAGE\text::tag('time'));
|
||||
return \SYSTEM\PAGE\replace::replaceFile((new \PSAI('saimod_beta/tpl/mail.tpl'))->SERVERPATH(),$vars);
|
||||
} */
|
||||
return \SYSTEM\LOG\JsonResult::ok();
|
||||
}
|
||||
|
||||
public static function action_email($email,$android,$ios){
|
||||
$bcc = null;
|
||||
|
||||
@ -5,13 +5,9 @@ REPLACE INTO `system_api` (`ID`, `group`, `type`, `parentID`, `parentValue`, `na
|
||||
REPLACE INTO `system_api` (`ID`, `group`, `type`, `parentID`, `parentValue`, `name`, `verify`) VALUES (7020, 42, 2, 7000, 'comment', 'code', 'STRING');
|
||||
REPLACE INTO `system_api` (`ID`, `group`, `type`, `parentID`, `parentValue`, `name`, `verify`) VALUES (7021, 42, 2, 7000, 'comment', 'comment', 'STRING');
|
||||
|
||||
REPLACE INTO `system_api` (`ID`, `group`, `type`, `parentID`, `parentValue`, `name`, `verify`) VALUES (7030, 42, 2, 7000, 'store', 'email', 'STRING');
|
||||
REPLACE INTO `system_api` (`ID`, `group`, `type`, `parentID`, `parentValue`, `name`, `verify`) VALUES (7030, 42, 2, 7000, 'store', 'emails', 'JSON');
|
||||
REPLACE INTO `system_api` (`ID`, `group`, `type`, `parentID`, `parentValue`, `name`, `verify`) VALUES (7031, 42, 2, 7000, 'store', 'android', 'BOOL');
|
||||
REPLACE INTO `system_api` (`ID`, `group`, `type`, `parentID`, `parentValue`, `name`, `verify`) VALUES (7032, 42, 2, 7000, 'store', 'ios', 'BOOL');
|
||||
|
||||
-- REPLACE INTO `system_api` (`ID`, `group`, `type`, `parentID`, `parentValue`, `name`, `verify`) VALUES (7040, 42, 2, 7000, 'email', 'email', 'STRING');
|
||||
-- REPLACE INTO `system_api` (`ID`, `group`, `type`, `parentID`, `parentValue`, `name`, `verify`) VALUES (7041, 42, 2, 7000, 'email', 'android', 'BOOL');
|
||||
-- REPLACE INTO `system_api` (`ID`, `group`, `type`, `parentID`, `parentValue`, `name`, `verify`) VALUES (7042, 42, 2, 7000, 'email', 'ios', 'BOOL');
|
||||
|
||||
REPLACE INTO `system_api` (`ID`, `group`, `type`, `parentID`, `parentValue`, `name`, `verify`) VALUES (7050, 42, 2, 7000, 'code_delete', 'code', 'STRING');
|
||||
REPLACE INTO `system_api` (`ID`, `group`, `type`, `parentID`, `parentValue`, `name`, `verify`) VALUES (7060, 42, 2, 7000, 'email_delete', 'email', 'STRING');
|
||||
REPLACE INTO `system_api` (`ID`, `group`, `type`, `parentID`, `parentValue`, `name`, `verify`) VALUES (7060, 42, 2, 7000, 'email_delete', 'emails', 'JSON');
|
||||
@ -10,7 +10,9 @@
|
||||
<th>Store</th>
|
||||
<th>Email</th>
|
||||
<th>Comment</th>
|
||||
<th>Action</th>
|
||||
<th>
|
||||
<button type="button" class="btn btn-sm btn-danger email_delete"><i class="fa fa-trash"></i></button>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>${data}</tbody>
|
||||
|
||||
@ -7,5 +7,7 @@
|
||||
<td><i class="fa fa-${stored}"></i> ${stored_time}</td>
|
||||
<td><i class="fa fa-${emailed}"></i> ${emailed_time}</td>
|
||||
<td>${comment}</td>
|
||||
<td><button type="button" class="btn btn-danger email_delete" email="${email}"><i class="fa fa-trash"></i></button></td>
|
||||
<td>
|
||||
<input type="checkbox" class="all-check" email="${email}"/>
|
||||
</td>
|
||||
</tr>
|
||||
@ -7,7 +7,7 @@
|
||||
<td>${count}</td>
|
||||
<td><input id="comment_${i}" type="text" class="form-control" value="${comment}"></td>
|
||||
<td>
|
||||
<button type="button" class="btn btn-warning code_setcomment" code="${code}" i="${i}"><i class="fa fa-pencil"></i></button>
|
||||
<button type="button" class="btn btn-danger code_delete" ${code_delete_disabled} code="${code}"><i class="fa fa-trash"></i></button>
|
||||
<button type="button" class="btn btn-sm btn-warning code_setcomment" code="${code}" i="${i}"><i class="fa fa-pencil"></i></button>
|
||||
<button type="button" class="btn btn-sm btn-danger code_delete" ${code_delete_disabled} code="${code}"><i class="fa fa-trash"></i></button>
|
||||
</td>
|
||||
</tr>
|
||||
@ -1,17 +0,0 @@
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-condensed tablesorter sai_margin_off" id="table_store_ios">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Code</th>
|
||||
<th>EMail</th>
|
||||
<th>Device</th>
|
||||
<th>Redeemed</th>
|
||||
<th>Store</th>
|
||||
<th>Mail</th>
|
||||
<th>Comment</th>
|
||||
<th>Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>${data}</tbody>
|
||||
</table>
|
||||
</div>
|
||||
@ -1,13 +0,0 @@
|
||||
<tr>
|
||||
<td style="color: ${valid}">${used_code}</td>
|
||||
<td>${email}</td>
|
||||
<td><i class="fa fa-${device}"></i></td>
|
||||
<td><i class="fa fa-${redeemed}"></i> ${redeemed_time}</td>
|
||||
<td><i class="fa fa-${stored}"></i> ${stored_time}</td>
|
||||
<td><i class="fa fa-${mailed}"></i> ${mailed_time}</td>
|
||||
<td>${comment}</td>
|
||||
<td>
|
||||
<button type="button" class="btn btn-warning beta_mail" ${disabled} email="${email}" ios="${ios}" android="${android}"><i class="fa fa-envelope"></i> Send Mail</button>
|
||||
<button type="button" class="btn btn-danger email_delete" email="${email}"><i class="fa fa-trash"></i></button>
|
||||
</td>
|
||||
</tr>
|
||||
@ -9,7 +9,10 @@
|
||||
<th>Redeemed</th>
|
||||
<th>Store</th>
|
||||
<th>Comment</th>
|
||||
<th>Action</th>
|
||||
<th>
|
||||
<button type="button" class="btn btn-sm btn-warning code_android"><i class="fa fa-android"></i> I added to Store -> Mail</button>
|
||||
<button type="button" class="btn btn-sm btn-danger email_delete"><i class="fa fa-trash"></i></button>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>${data}</tbody>
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
<tr>
|
||||
<tr class="${tr_class}">
|
||||
<td style="color: ${valid}">${used_code}</td>
|
||||
<td><span id="email_${i}">${email}</span> <button class="btn btn-link copy_email sai_padding_off" i="${i}"><i class="fa fa-clipboard"></i></button></td>
|
||||
<td><i class="fa fa-${device}"></i></td>
|
||||
@ -7,7 +7,6 @@
|
||||
<td><i class="fa fa-${stored}"></i> ${stored_time}</td>
|
||||
<td>${comment}</td>
|
||||
<td>
|
||||
<button type="button" class="btn btn-warning code_android" ${disabled} email="${email}" ios="${ios}" android="${android}"><i class="fa fa-android"></i> Habe ich dem Store hinzugefügt -> Mail</button>
|
||||
<button type="button" class="btn btn-danger email_delete" email="${email}"><i class="fa fa-trash"></i></button>
|
||||
<input type="checkbox" class="android-check" email="${email}"/>
|
||||
</td>
|
||||
</tr>
|
||||
@ -9,7 +9,10 @@
|
||||
<th>Redeemed</th>
|
||||
<th>Store</th>
|
||||
<th>Comment</th>
|
||||
<th>Action</th>
|
||||
<th>
|
||||
<button type="button" class="btn btn-sm btn-warning code_ios"><i class="fa fa-apple"></i> I added to Store -> Mail</button>
|
||||
<button type="button" class="btn btn-sm btn-danger email_delete"><i class="fa fa-trash"></i></button>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>${data}</tbody>
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
<tr>
|
||||
<tr class="${tr_class}">
|
||||
<td style="color: ${valid}">${used_code}</td>
|
||||
<td><span id="email_${i}">${email}</span> <button class="btn btn-link copy_email sai_padding_off" i="${i}"><i class="fa fa-clipboard"></i></button></td>
|
||||
<td><i class="fa fa-${device}"></i></td>
|
||||
@ -7,7 +7,6 @@
|
||||
<td><i class="fa fa-${stored}"></i> ${stored_time}</td>
|
||||
<td>${comment}</td>
|
||||
<td>
|
||||
<button type="button" class="btn btn-warning code_ios" ${disabled} email="${email}" ios="${ios}" android="${android}"><i class="fa fa-apple"></i> Habe ich dem Store hinzugefügt -> Mail</button>
|
||||
<button type="button" class="btn btn-danger email_delete" email="${email}"><i class="fa fa-trash"></i></button>
|
||||
<input type="checkbox" class="ios-check" email="${email}"/>
|
||||
</td>
|
||||
</tr>
|
||||
@ -1,7 +1,7 @@
|
||||
REPLACE INTO `system_page` (`id`, `group`, `name`, `state`, `parent_id`, `login`, `type`, `div`, `url`, `func`, `php_class`) VALUES (10, 1, 'home', 'home', -1, 0, 0, '#content', './?page=home', 'init_home', 'default_home');
|
||||
REPLACE INTO `system_page` (`id`, `group`, `name`, `state`, `parent_id`, `login`, `type`, `div`, `url`, `func`, `php_class`) VALUES (11, 1, 'citizen', 'citizen', -1, 0, 0, '#content', './?page=citizen', 'init_citizen', 'default_citizen');
|
||||
REPLACE INTO `system_page` (`id`, `group`, `name`, `state`, `parent_id`, `login`, `type`, `div`, `url`, `func`, `php_class`) VALUES (12, 1, 'politicians', 'politicians', -1, 0, 0, '#content', './?page=politicians', 'init_politicians', 'default_politicians');
|
||||
REPLACE INTO `system_page` (`id`, `group`, `name`, `state`, `parent_id`, `login`, `type`, `div`, `url`, `func`, `php_class`) VALUES (13, 1, 'engeneering', 'engeneering', -1, 0, 0, '#content', './?page=engeneering', 'init_engeneering', 'default_engeneering');
|
||||
REPLACE INTO `system_page` (`id`, `group`, `name`, `state`, `parent_id`, `login`, `type`, `div`, `url`, `func`, `php_class`) VALUES (13, 1, 'engineering', 'engineering', -1, 0, 0, '#content', './?page=engineering', 'init_engineering', 'default_engineering');
|
||||
REPLACE INTO `system_page` (`id`, `group`, `name`, `state`, `parent_id`, `login`, `type`, `div`, `url`, `func`, `php_class`) VALUES (60, 1, 'donate', 'donate', -1, 0, 0, '#content', './?page=donate', 'init_donate', 'default_donate');
|
||||
|
||||
REPLACE INTO `system_page` (`id`, `group`, `name`, `state`, `parent_id`, `login`, `type`, `div`, `url`, `func`, `php_class`) VALUES (45, 1, 'datenschutz', 'datenschutz', -1, 0, 0, '#content', './?page=datenschutz', 'init_datenschutz', 'default_datenschutz');
|
||||
|
||||
Reference in New Issue
Block a user