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.
52.
53.
54.
55.
56.
57.
58.
| 1. / 2. / ...
<?php
echo cs_html_table(1,'forum',1);
echo cs_html_roco(1,'headb');
echo 'Forum - Kommentare erhöhen';
echo cs_html_roco(0);
echo cs_html_roco(1,'leftb');
if (empty($_POST['submit'])) {
echo 'Benutzern beiträge hinzufügen';
echo cs_html_roco(0);
echo cs_html_table(0);
echo cs_html_br(1);
$users_data = cs_sql_select(__FILE__,'users','users_nick,users_id',0,'users_nick',0,0);
echo cs_html_form(1,'commentsadd','board','commentsadd');
echo cs_html_table(1,'forum',1);
echo cs_html_roco(1,'leftc');
echo 'UserID';
echo cs_html_roco(2,'leftb');
echo cs_dropdown('users_id','users_nick',$users_data);
echo cs_html_roco(0);
echo cs_html_roco(1,'leftc');
echo 'Kommentare';
echo cs_html_roco(2,'leftb');
echo cs_html_input('comments','','text');
echo cs_html_roco(0);
echo cs_html_roco(1,'leftc');
echo 'Optionen';
echo cs_html_roco(2,'leftb');
echo cs_html_vote('submit','Erstellen','submit');
echo cs_html_vote('reset','Nochmal','reset');
echo cs_html_table(0);
echo cs_html_form(0);
} else {
$comments = (int) $_POST['comments'];
$users_id = (int) $_POST['users_id'];
$time = cs_time();
$cells = array('users_id','comments_mod','comments_ip','comments_time');
for ($run = 0; $run < $comments; $run++) {
$content = array($users_id,'board','127.0.0.1',$time);
cs_sql_insert(__FILE__,'comments',$cells,$content);
}
echo 'Erfolgreich erhöht. ';
echo cs_link('Erneut erhöhren','board','commentsadd');
echo cs_html_roco(0);
echo cs_html_table(0);
}
?> |