From b15cfe9792fe461f7bdfdb7a8022f5ca8e0cad5d Mon Sep 17 00:00:00 2001 From: Andre Lorbach Date: Mon, 14 Jul 2008 16:35:35 +0200 Subject: [PATCH] Added Admin Index and Menu, and made necessary changes to the other templates Added Icons, also into the menu --- src/admin/index.php | 125 +++++++++++++++++++++++ src/images/icons/books.png | Bin 0 -> 1005 bytes src/images/icons/businessman.png | Bin 0 -> 824 bytes src/images/icons/businessmen.png | Bin 875 -> 875 bytes src/images/icons/data_edit.png | Bin 0 -> 928 bytes src/images/icons/document_view.png | Bin 0 -> 759 bytes src/images/icons/googleicon.png | Bin 0 -> 1183 bytes src/images/icons/help.png | Bin 0 -> 1013 bytes src/include/functions_common.php | 5 +- src/include/functions_users.php | 1 + src/templates/admin/admin_index.html | 11 +++ src/templates/admin/admin_menu.html | 18 ++++ src/templates/include_footer.html | 2 +- src/templates/include_header.html | 142 +++++++++++++++------------ 14 files changed, 237 insertions(+), 67 deletions(-) create mode 100644 src/admin/index.php create mode 100644 src/images/icons/books.png create mode 100644 src/images/icons/businessman.png create mode 100644 src/images/icons/data_edit.png create mode 100644 src/images/icons/document_view.png create mode 100644 src/images/icons/googleicon.png create mode 100644 src/images/icons/help.png create mode 100644 src/templates/admin/admin_index.html create mode 100644 src/templates/admin/admin_menu.html diff --git a/src/admin/index.php b/src/admin/index.php new file mode 100644 index 0000000..11b01f6 --- /dev/null +++ b/src/admin/index.php @@ -0,0 +1,125 @@ + Shows ... + * + * All directives are explained within this file + * + * Copyright (C) 2008 Adiscon GmbH. + * + * This file is part of phpLogCon. + * + * PhpLogCon 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. + * + * PhpLogCon 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 phpLogCon. If not, see . + * + * A copy of the GPL can be found in the file "COPYING" in this + * distribution + ********************************************************************* +*/ + +// *** Default includes and procedures *** // +define('IN_PHPLOGCON', true); +$gl_root_path = './../'; + +// Now include necessary include files! +include($gl_root_path . 'include/functions_common.php'); +include($gl_root_path . 'include/functions_frontendhelpers.php'); +include($gl_root_path . 'include/functions_filters.php'); + +// Include LogStream facility +// include($gl_root_path . 'classes/logstream.class.php'); + +// Set PAGE to be ADMINPAGE! +define('IS_ADMINPAGE', true); +$content['IS_ADMINPAGE'] = true; + +InitPhpLogCon(); +InitSourceConfigs(); +InitFrontEndDefaults(); // Only in WebFrontEnd +InitFilterHelpers(); // Helpers for frontend filtering! + +// Init admin langauge file now! +IncludeLanguageFile( $gl_root_path . '/lang/' . $LANG . '/admin.php' ); + +// --- Define Extra Stylesheet! +//$content['EXTRA_STYLESHEET'] = '' . "\r\n"; +//$content['EXTRA_STYLESHEET'] .= ''; +// --- + +// --- CONTENT Vars +/* +if ( isset($_GET['uid']) ) + $content['uid_current'] = intval($_GET['uid']); +else + $content['uid_current'] = UID_UNKNOWN; + +// Copy UID for later use ... +$content['uid_fromgetrequest'] = $content['uid_current']; + +// Init Pager variables +$content['uid_first'] = UID_UNKNOWN; +$content['uid_last'] = UID_UNKNOWN; +$content['main_pagerenabled'] = false; +$content['main_pager_first_found'] = false; +$content['main_pager_previous_found'] = false; +$content['main_pager_next_found'] = false; +$content['main_pager_last_found'] = false; + +// Set Default reading direction +$content['read_direction'] = EnumReadDirection::Backward; + +// If set read direction property! +if ( isset($_GET['direction']) ) +{ + if ( $_GET['direction'] == "next" ) + { + $content['skiprecords'] = 1; + $content['read_direction'] = EnumReadDirection::Backward; + } + else if ( $_GET['direction'] == "previous" ) + { + $content['skiprecords'] = 1; + $content['read_direction'] = EnumReadDirection::Forward; + } +} +*/ + +/* +// --- BEGIN CREATE TITLE +$content['TITLE'] = InitPageTitle(); + +if ( $content['messageenabled'] == "true" ) +{ + // Append custom title part! + $content['TITLE'] .= " :: Details for '" . $content['uid_current'] . "'"; +} +else +{ + // APpend to title Page title + $content['TITLE'] .= " :: Unknown uid"; +} +// --- END CREATE TITLE +*/ + +// --- Parsen and Output +InitTemplateParser(); +$page -> parser($content, "admin/admin_index.html"); +$page -> output(); +// --- + + +?> \ No newline at end of file diff --git a/src/images/icons/books.png b/src/images/icons/books.png new file mode 100644 index 0000000000000000000000000000000000000000..dd1a4919cd5822ac3cda50c4779a4d84042aa77d GIT binary patch literal 1005 zcmVWdKuQAUPmLWnv&QFfcM8F*Z6dF*-FdAS*C2FfftZS~&m!00(qQO+^RR z1s4r5C5RmLVgLXD32;bRa{vGe@Bjb`@Bu=sG?)MY00d`2O+f$vv5yP-)A{yLPs8?bt`beH0eaAdH}*iIPl>0Sy7;6<%o6D}&Lf zH>fuzUg(8L)NGm{Hzu0+fhbxXi%T342F*5V_rchvYiqyU`nmR9eX5;VJjwsLcyj*# z^PK0Lzr?>Gh2F+HpCzzfq}S3&m!{FJsdQyBEDU|mvuA%`M&uO*s%#1+^)>I8tIbC> zYst1Ho0W_fP2Aoh(2AsWAf-QVQ%$AwO-4?fI?uO)vnsH@As`>w$Lp=_m5y}DFBy$F z)|}6QWj~U68?tObZgA41Mr_?}JlxhuF&N@E!7FWu$hH7I{f+DWx>BH`TTt>pQOyL= z6T=kZW8{(%*2-YDqI7j~U%-uLEW&ucL{9K^dFtiXGwOnF8EDC|m{u`0RFSIXe;PFy zLc?id}Fcd0H- z5uS;1HVIQ}U~;)B6upx-MpzK!CV>Wpx#5XY|5Fc*41dPq$FFnljyYVZITk8T4B8HM zH6P>9j=OoSWhX5TCnMK_`J?)=v>-3n_CmsQa4UOX_)&fAf$jQLu{l@TdE)kG=;_^t z%V`t8loHiLgff>IPfifJDMm83beeHa3xTjg^g@g)zUPY$@2Bd$D_U|%<%{AV?_6Ib z9u>(64`_Y#Iq&4a)~DGkU%K$&_#1h#khKt0z;rS0uZ6n)|hv z*t17v_jZ|PhZ&n)B_-QAb#8Y6i~kb2*;*TAX~PQwZu;K)V89oASGcEBvvQYo}91ypip;a<^KXwUBp@YpnB2<%A2hG bpQZl>rT0E@$`60A00000NkvXXu0mjfnN84C literal 0 HcmV?d00001 diff --git a/src/images/icons/businessman.png b/src/images/icons/businessman.png new file mode 100644 index 0000000000000000000000000000000000000000..efbc1af7e61c6c549d22dec0b1d0f59ffb85902a GIT binary patch literal 824 zcmV-81IPS{P)WdKBPATcx`PH%P~GB7YQATc&NG&4FdHXti7F)%RO1yJn(000McNliru z)&&<0F)A3N=<@&o010qNS#tmY3lRVS3lRZ-WM7d0000DMK}|sb0I`n?{9y$E00NLn zL_t(|+I>?^PZLoTJ=0Fh&`wKfX{$g>5l|s2L?Fh5K+?p8M%*BAVH6i`{8$+i5~C~s zfF{byogazfMv^8bCc1GW5;QjQ4H1cjwoZrAnNDHaj(2cKC?YR8$(woio_Fp$_cGYA zUR*~X>%;>Sus@T@8WUR%R?NU z#TvIaAV`7^m~v(qI(j=;}8PXO=xL9NopMMlm!5n6Rw3h8y%PLEcqV-n-y=vJ>f7i zDF)d!s)622&Ee;gsNZVBF016{`Gu3%-@n$rQxy3XJ!xLDROc13Fa8?GD^$p$NYseyawo2I~ zaQOL7{ifAi9>INfux1SrHH23ifDjka+U$m`6kxXG&EWlYl;Ykhf73>jR`jJL6)OoD z#~a^)Z}m2`)N(GL z*UIzun4oA*HkVmjURY74KmNi@Bm+hGK^Y^2X~M>qC1r$KLL;HZsL@Wa8pE?rpw2>! zFiV&>`a;|8DQie8Hxezz8|ef^{WfD7Wn;fNm45&Y8sl>0o|CEo0000WdKcSAT=OOa(W;#FfcP9F*iCeF*-0cAS*C2Fffdk6>0zg00(qQO+^RR z1s4r5HI=L71^@s632;bRa{vGe@Bjb`@Bu=sG?)MY00d`2O+f$vv5yPh|r@0YTv7zVAzpQ-f(%tCh<7N}(Xn=JPYdiNvFKBscj#4LUnpUSGU;ym5V< zzM6n#)!;ZjT-R?eQAQ!|-P zGZu6n$>cP?eM^pNTE0MW$<01+i9+sYGb?4h_SvdE{vPcvski4%oPj8`}b}qElbUiZjAUq ztZp^fxGmIRRHvMep#@EQKarN-eUWdKcYATc!{L3L*!GB7YTATcpIGch_bG$1Q5F)%RM{uz1z000McNliru z)&&<0F*%$asVx8i010qNS#tmY3h)2`3h)6!tTdPa000DMK}|sb0I`n?{9y$E00K`* zL_t(|+Kp06XcJKsJ#U)W{F-XiN+~K@Y%vSdMOzoeg+)k-Qc$uhD7es_WZ}kz6$HhF zh&ziGe_&N6RVq~?rCO@pxe!ZHQw0|;L?vxvGQZ5n`!X}_^n-Ze%zba}z31H@1Id-4 zoW*sus&fU+)taqUt%@Jtznp$_^Snsc62X91IKjUpbMc`ycx}w;J#z9Kxi=H)+*lvh z5sCp%$uRA6G!n!>`Vco=HZ7A)J->U0&Of<}Kp)1Pyuug*BP}p~26pe*iU-*Vl*$r1 z_9riqsgn?0%0N}M6$IIA7PE67A*(8a^&1e6$B{YJPXscq-+01b>mtk%7VHu%b2(TP z(cICAWIBz{3NXJ26yN5M8y`bo|1lVb$(+~y++SE-`-e|?wC&jigWi!P4cZ?WMxqa2 z=kv9`*xjjBSkpc`(7u_ZB}vBY0-ZG#g^G@{q(k=yQIVyk=6c2Foxe^Fp+G(IM8Fgc ziejKt70?p2P!5M-7rG(?y9Cp;O**Z|-u5==@2BuvZ$PE45lzts6efld2!+9352Jfu z>)H$yX9@;oaQJ8%&qhW38Xbfrt58BgG;WL`)vaUmn-L^Jy=w{FJ<;kuq(TeuSLA(@Wc=7b{EBe(!2)W(dNk|j6uilMygr`{{ pydzAz1OdV}NB@uTxfcnGe*q#a91@_~_G175002ovPDHLkV1h7$LCF9B literal 0 HcmV?d00001 diff --git a/src/images/icons/googleicon.png b/src/images/icons/googleicon.png new file mode 100644 index 0000000000000000000000000000000000000000..04c72ea6472ff14d1dc6b9e0dc19f8544b3a1efa GIT binary patch literal 1183 zcmds#i%(N`6vwY_iGWZLC=3PzQ4rX86o$y$GGQ=^JnSfs4a_VrLx%DY+|0IY(`;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5v#Q}jm@L6Hzujgk8`yXo1{x!o>frSSlj;Y}=Ti(pQ2>RLBq`MDYk%SF)TgL4 zEn}x^F9rkOz+2a{o?=BU;rqEW7@q$YZ#>6p2LA^gGUSHty}ps)$MM zPjH$OCjw`{GfsSQ{TNPOJO~HN<5c(8aKnRhxnTra0`U9&uaLNlXy6=nzALf%5LKoE zr|iPcOo#;g#<57Dz=bq=x8J#dU29*?J$#O><=Bw1qZu6l^7N*B^$ zG?*}X1H*k6z?cjM{@RZf?FsZc6S@Itnr6X}coX5^ayemPdu!h=L$jj{88()M&X{=T zkJl*^ZCz;8164ypuV)8@+!G{|$?WqsvZ+*RtRz0e{<BFK1BFd7>Pt;iL}qGF0iq?v2&5wzr`Wn=V;@)k(C9k$r8GM+JdehH&YiR zWaK>F>o|($_%=*VhcoGPS|o9jsM=z&Sf#DKt)Lp}f%gL+vAolXJJK|=dI4)T5nhiE zUv-|w?nEDcyYj1adGyjHQ4|v-zDZ=QVyqXWzrTO5cSrA+FL(5KI$K^snJZD{sc35^ zCT4D6CN{k?etrBZjr + + + + + + + +
{LN_DETAILS_FORSYSLOGMSG}
+ + \ No newline at end of file diff --git a/src/templates/admin/admin_menu.html b/src/templates/admin/admin_menu.html new file mode 100644 index 0000000..b4f959f --- /dev/null +++ b/src/templates/admin/admin_menu.html @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + +
{LN_ADMINMENU_HOMEPAGE}{LN_ADMINMENU_GENOPT}{LN_ADMINMENU_SOURCEOPT}{LN_ADMINMENU_VIEWSOPT}{LN_ADMINMENU_SEARCHOPT}{LN_ADMINMENU_USEROPT}{LN_ADMINMENU_GROUPOPT} 
diff --git a/src/templates/include_footer.html b/src/templates/include_footer.html index 1723563..7da75ef 100644 --- a/src/templates/include_footer.html +++ b/src/templates/include_footer.html @@ -29,7 +29,7 @@ - +
diff --git a/src/templates/include_header.html b/src/templates/include_header.html index a4314ae..088dfe4 100644 --- a/src/templates/include_header.html +++ b/src/templates/include_header.html @@ -3,8 +3,8 @@ {TITLE} {EXTRA_METATAGS} - - + + {EXTRA_STYLESHEET} {EXTRA_JAVASCRIPT} @@ -13,32 +13,30 @@ - + - - @@ -48,43 +46,48 @@ + @@ -93,21 +96,23 @@ @@ -117,7 +122,14 @@
Satisfied with phpLogCon?
Donate and help keep the project alive!
-
- - - - - -
 {LN_MAIN_SELECTSTYLE}  - - -
-
+
+ + + + + +
 {LN_GEN_LANGUAGE}  + + +
+
-
- - - - - -
 {LN_GEN_LANGUAGE}  - - -
-
+ +
+ + + + + +
 {LN_MAIN_SELECTSTYLE}  + + +
+
+
-
- - - - - -
 {LN_GEN_SELECTSOURCE}  - -
-
+ +
+ + + + + +
 {LN_GEN_SELECTSOURCE}  + +
+
+
-
- - - - - -
 {LN_GEN_SELECTVIEW}  - - -
-
+ +
+ + + + + +
 {LN_GEN_SELECTVIEW}  + + +
+
+
- +
+ + + + + + +