Skip to content

Commit

Permalink
git-svn-id: http://svn.xp-dev.com/svn/Sweil_fs2/src@131 b49b0359-402e…
Browse files Browse the repository at this point in the history
…-0410-ad19-9fd90e479030
  • Loading branch information
Sweil authored and Sweil committed Jan 11, 2009
1 parent 6c5ff61 commit 97348f2
Show file tree
Hide file tree
Showing 50 changed files with 673 additions and 493 deletions.
54 changes: 35 additions & 19 deletions www/admin/admin.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,34 @@ body
/**************************************************/
/* formular styles */
/**************************************************/
.input_width
{
width:275px;
}
.input_highlight:focus, input_highlight:active
{
background-color:#64DC6A;
}

textarea
{
color:#000000;
font-size:8pt;
font-family:Verdana;
font-size:9pt;
font-family: "Courier New", Courier, monospace;
border:1px solid #000000;
background-color:#B7B7B7;
}
.nomonospace
{
font-family: Verdana, sans-serif;
font-size:8pt;

}
.monospace
{
font-family: "Courier New", Courier, monospace;
font-size:9pt;
}
select
{
color:#000000;
Expand All @@ -38,7 +58,7 @@ select
background-color:#B7B7B7;
cursor:pointer;
}
.text, .courier
.text
{
color:#000000;
font-size:8pt;
Expand All @@ -47,11 +67,6 @@ select
background-color:#B7B7B7;
font-weight:normal;
}
.courier
{
font-size:8pt;
font-family: "Courier New", Courier , serif;
}
.button
{
color:#000000;
Expand All @@ -70,9 +85,10 @@ select
.button_new
{
display:block;
padding:4px;
padding:3px;
padding-right:9px;
width:100%;
height: 27px;
background-image:url('img/button.jpg');
background-repeat:repeat;
font-weight:bold;
Expand Down Expand Up @@ -396,13 +412,13 @@ a.menu_link_right:hover, a.menu_link_right:focus

#menu_top_table
{
width: 100%;
padding-top: 4px;
width: 100%;
padding-top: 4px;
}
#menu_top_tr
{
height: 38px;
vertical-align: top;
height: 38px;
vertical-align: top;
}

#menu_top_log
Expand All @@ -415,15 +431,15 @@ a.menu_link_right:hover, a.menu_link_right:focus
top: 98px;
left: 50%;
margin-left: 393px;
padding-left: 12px;
padding-top: 3px;
text-align: left;
padding-left: 12px;
padding-top: 3px;
text-align: left;
z-index:5;
}
#menu_top_log_image_td
{
padding-right: 5px;
padding-top: 2px;
padding-top: 2px;
}


Expand Down Expand Up @@ -560,7 +576,7 @@ a.tooltip {
font-weight: normal;
border: none;
}
a.tooltip:hover {
a.tooltip:hover, a.tooltip:focus {
z-index: 1000;
background: transparent;
cursor:help;
Expand All @@ -578,7 +594,7 @@ a.tooltip span {
border: none;
font-size:7pt;
}
a.tooltip:hover span {
a.tooltip:hover span, a.tooltip:focus span {
display: block;
position: absolute;
top: 25px;
Expand Down
248 changes: 142 additions & 106 deletions www/admin/admin_allconfig.php

Large diffs are not rendered by default.

84 changes: 46 additions & 38 deletions www/admin/admin_articles_edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -446,13 +446,13 @@ function action_edit_display_page ( $data_arr )
<td class="config">
<select name="article_cat_id">
';
// Kategorien auflisten
$index = mysql_query ( "SELECT * FROM ".$global_config_arr['pref']."articles_cat", $db );
while ( $cat_arr = mysql_fetch_assoc ( $index ) )
{
settype ( $cat_arr['cat_id'], "integer" );
echo '<option value="'.$cat_arr['cat_id'].'" '.getselected($cat_arr['cat_id'], $articles_arr['article_cat_id']).'>'.$cat_arr['cat_name'].'</option>';
}
// Kategorien auflisten
$index = mysql_query ( "SELECT * FROM ".$global_config_arr['pref']."articles_cat", $db );
while ( $cat_arr = mysql_fetch_assoc ( $index ) )
{
settype ( $cat_arr['cat_id'], "integer" );
echo '<option value="'.$cat_arr['cat_id'].'" '.getselected($cat_arr['cat_id'], $articles_arr['article_cat_id']).'>'.$cat_arr['cat_name'].'</option>';
}
echo'
</select>
</td>
Expand Down Expand Up @@ -781,64 +781,72 @@ function db_delete_article ( $DATA )

// Edit Article
if (
isset ( $_POST['article_id'] ) &&
isset ( $_POST['sended'] ) &&
isset ( $_POST['article_action'] ) && $_POST['article_action'] == "edit" &&
isset ( $_POST['article_id'] ) &&
isset ( $_POST['sended'] ) &&
isset ( $_POST['article_action'] ) && $_POST['article_action'] == "edit" &&

isset ( $_POST['article_cat_id'] ) &&
$_POST['article_title'] && $_POST['article_title'] != "" &&

isset ( $_POST['article_cat_id'] ) &&
$_POST['article_title'] && $_POST['article_title'] != "" &&

( !in_array ( savesql ( $_POST['article_url'] ), $url_arr ) || $_POST['article_url'] == $_POST['article_old_url'] ) &&

( ( $_POST['d'] && $_POST['d'] > 0 && $_POST['d'] <= 31 ) || ( $_POST['d'] == "" && $_POST['m'] == "" && $_POST['y'] == "" ) ) &&
( ( $_POST['m'] && $_POST['m'] > 0 && $_POST['m'] <= 12 ) || ( $_POST['d'] == "" && $_POST['m'] == "" && $_POST['y'] == "" ) ) &&
( ( $_POST['y'] && $_POST['y'] > 0 ) || ( $_POST['d'] == "" && $_POST['m'] == "" && $_POST['y'] == "" ) )
)
( ( $_POST['d'] && $_POST['d'] > 0 && $_POST['d'] <= 31 ) || ( $_POST['d'] == "" && $_POST['m'] == "" && $_POST['y'] == "" ) ) &&
( ( $_POST['m'] && $_POST['m'] > 0 && $_POST['m'] <= 12 ) || ( $_POST['d'] == "" && $_POST['m'] == "" && $_POST['y'] == "" ) ) &&
( ( $_POST['y'] && $_POST['y'] > 0 ) || ( $_POST['d'] == "" && $_POST['m'] == "" && $_POST['y'] == "" ) )
)
{
db_edit_article ( $_POST );
db_edit_article ( $_POST );

// Unset Vars
unset ( $_POST );
unset ( $_REQUEST );
}

// Delete Article
elseif (
isset ( $_POST['article_id'] ) &&
isset ( $_POST['sended'] ) && $_POST['sended'] == "delete" &&
isset ( $_POST['article_action'] ) && $_POST['article_action'] == "delete" &&
isset ( $_POST['article_delete'] )
)
isset ( $_POST['article_id'] ) &&
isset ( $_POST['sended'] ) && $_POST['sended'] == "delete" &&
isset ( $_POST['article_action'] ) && $_POST['article_action'] == "delete" &&
isset ( $_POST['article_delete'] )
)
{
db_delete_article ( $_POST );

// Unset Vars
unset ( $_POST );;
unset ( $_REQUEST );
}


//////////////////////////////
//// Display Action-Pages ////
//////////////////////////////
elseif ( $_POST['article_id'] && $_POST['article_action'] )
if ( $_POST['article_id'] && $_POST['article_action'] )
{
// Edit Article
if ( $_POST['article_action'] == "edit" )
{
action_edit_display_page ( action_edit_get_data ( $_POST['article_id'] ) );
}
// Edit Article
if ( $_POST['article_action'] == "edit" )
{
action_edit_display_page ( action_edit_get_data ( $_POST['article_id'] ) );
}

// Delete Article
elseif ( $_POST['article_action'] == "delete" )
{
// Delete Article
elseif ( $_POST['article_action'] == "delete" )
{
$articles_arr = action_delete_get_data ( $_POST['article_id'] );
action_delete_display_page ( $articles_arr );
}
action_delete_display_page ( $articles_arr );
}
}

////////////////////////////////////////////
//// Display Default Articles List Page ////
////////////////////////////////////////////
else
{
// Filter
// Filter
$_REQUEST = default_set_filter_data ( $_REQUEST );
default_display_filter ( $_REQUEST );
default_display_filter ( $_REQUEST );

// Display Page
default_display_page ( default_display_all_entries ( default_get_pagenav_data () ), default_get_pagenav_data (), $_REQUEST );
// Display Page
default_display_page ( default_display_all_entries ( default_get_pagenav_data () ), default_get_pagenav_data (), $_REQUEST );
}
?>
26 changes: 13 additions & 13 deletions www/admin/admin_login.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@
switch ($loggedin)
{
case 0:
systext('Herzlich Willkommen im Admin-CP des Frogsystem 2!<br>Sie sind jetzt eingeloggt', 'Herzlich Willkommen!');
systext('Herzlich Willkommen im Admin-CP des Frogsystem 2!<br>Sie sind jetzt eingeloggt', 'Herzlich Willkommen!', FALSE, $admin_phrases[icons][ok]);
break;
case 1:
systext('Der Benutzer existiert nicht', 'Fehler beim Login', TRUE );
systext('Der Benutzer existiert nicht', $admin_phrases[common][error], TRUE, $admin_phrases[icons][error] );
break;
case 2:
systext('Das Passwort ist nicht korrekt', 'Fehler beim Login', TRUE );
systext('Das Passwort ist nicht korrekt', $admin_phrases[common][error], TRUE, $admin_phrases[icons][error] );
break;
case 3:
systext('Sie haben keine Rechte für diese Seite', 'Fehler beim Login', TRUE );
systext('Sie haben keine Rechte für diese Seite', $admin_phrases[common][error], TRUE, $admin_phrases[icons][error] );
break;
}
}
Expand All @@ -44,7 +44,7 @@
<form action="" method="post">
<input type="hidden" name="login" value="1">
<table class="configtable" cellpadding="4" cellspacing="0">
<tr><td class="line" colspan="2">Benutzerdaten eingeben</td></tr>
<tr><td class="line" colspan="2">Benutzerdaten eingeben</td></tr>
<tr>
<td class="config" width="200">
Name:
Expand All @@ -69,14 +69,14 @@
<input type="checkbox" name="stayonline" value="1" checked>
</td>
</tr>
<tr><td class="space"></td></tr>
<tr>
<td class="buttontd" colspan="2">
<button class="button_new" type="submit">
'.$admin_phrases[common][arrow].' Einloggen
</button>
</td>
</tr>
<tr><td class="space"></td></tr>
<tr>
<td class="buttontd" colspan="2">
<button class="button_new" type="submit">
'.$admin_phrases[common][arrow].' Einloggen
</button>
</td>
</tr>
</table>
</form>
';
Expand Down
2 changes: 1 addition & 1 deletion www/admin/admin_logout.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php
session_unset();
systext('Sie sind jetzt ausgeloggt');
systext ( "Sie sind jetzt ausgeloggt", FALSE, FALSE, $admin_phrases[icons][error] );
?>
4 changes: 2 additions & 2 deletions www/admin/admin_news_add.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
}

mysql_query ( "UPDATE ".$global_config_arr['pref']."counter SET news = news + 1", $db );
systext( $admin_phrases[news][news_added], $admin_phrases[common][info]);
systext( $admin_phrases[news][news_added], $admin_phrases[common][info], FALSE, $admin_phrases[icons][save_add] );

// Unset Vars
unset ( $_POST );
Expand All @@ -82,7 +82,7 @@
if ( TRUE )
{
if ( isset ( $_POST['sended'] ) && isset ( $_POST['addnews'] ) ) {
systext($admin_phrases[common][note_notfilled], $admin_phrases[common][error], TRUE);
systext ( $admin_phrases[news][news_not_added].'<br>'.$admin_phrases[common][note_notfilled], $admin_phrases[common][error], TRUE, $admin_phrases[icons][save_error] );
} else {
$_POST['news_active'] = 1;
$_POST['news_comments_allowed'] = 1;
Expand Down
Loading

0 comments on commit 97348f2

Please sign in to comment.