if (isFormSent()) {
switch (getRequestParameter('do')) {
case 'add':
- addSql("INSERT INTO `{?_MYSQL_PREFIX?}_payments` (time, payment, mail_title, price) VALUES ('".postRequestParameter('t_wait')."','".postRequestParameter('payment')."','".postRequestParameter('title')."','".postRequestParameter('price')."')");
- $result = SQL_QUERY_ESC("SELECT `id` FROM `{?_MYSQL_PREFIX?}_payments` WHERE time='%s' LIMIT 1",
- array(postRequestParameter('t_wait')), __FILE__, __LINE__);
+ addSql("INSERT INTO `{?_MYSQL_PREFIX?}_payments` (`time`, `payment`, `mail_title`, `price`) VALUES ('".postRequestParameter('t_wait')."','".postRequestParameter('payment')."','".postRequestParameter('title')."','".postRequestParameter('price')."')");
+ $result = SQL_QUERY_ESC("SELECT `id` FROM `{?_MYSQL_PREFIX?}_payments` WHERE `time`='%s' LIMIT 1",
+ array(postRequestParameter('t_wait')), __FILE__, __LINE__);
if (SQL_NUMROWS($result) == 1) {
// Re-init the array here
initSqls();
// List already existing categories for editing
while ($content = SQL_FETCHARRAY($result)) {
// Prepare array for the row template
- // @TODO Rewritings: title->mail_title, pay->payment in template
+ // @TODO Rewritings: title->mail_title in template
$content = array(
- 'sw' => $SW,
- 'id' => $content['id'],
- 'time' => $content['time'],
- 'title' => $content['mail_title'],
- 'pay' => translateComma($content['payment']),
- 'price' => translateComma($content['price'])
+ 'sw' => $SW,
+ 'id' => $content['id'],
+ 'time' => $content['time'],
+ 'title' => $content['mail_title'],
+ 'payment' => translateComma($content['payment']),
+ 'price' => translateComma($content['price'])
);
// Load row template and switch colors