[Uludag-commits] r6841 - in trunk/mawe: . commonlib/js/window commonlib/js/window/default commonlib/js/window/theme1 commonlib/php commonlib/php/FCKeditor commonlib/php/FCKeditor/editor/filemanager/browser/default/connectors/php commonlib/php/FCKeditor/editor/filemanager/upload/php themes/mawe themes/mawe/images
svn-uludag at uludag.org.tr
svn-uludag at uludag.org.tr
5 Nis 2006 Çar 16:56:01 EEST
Author: gokmen.goksel
Date: Wed Apr 5 16:55:52 2006
New Revision: 6841
Added:
trunk/mawe/commonlib/js/window/
trunk/mawe/commonlib/js/window/default/
trunk/mawe/commonlib/js/window/default.css
trunk/mawe/commonlib/js/window/default/bottom_left.gif (contents, props changed)
trunk/mawe/commonlib/js/window/default/bottom_mid.gif (contents, props changed)
trunk/mawe/commonlib/js/window/default/bottom_right.gif (contents, props changed)
trunk/mawe/commonlib/js/window/default/bottom_right_resize.gif (contents, props changed)
trunk/mawe/commonlib/js/window/default/center_left.gif (contents, props changed)
trunk/mawe/commonlib/js/window/default/center_right.gif (contents, props changed)
trunk/mawe/commonlib/js/window/default/close.gif (contents, props changed)
trunk/mawe/commonlib/js/window/default/resize.gif (contents, props changed)
trunk/mawe/commonlib/js/window/default/sizer.gif (contents, props changed)
trunk/mawe/commonlib/js/window/default/top_left.gif (contents, props changed)
trunk/mawe/commonlib/js/window/default/top_mid.gif (contents, props changed)
trunk/mawe/commonlib/js/window/default/top_right.gif (contents, props changed)
trunk/mawe/commonlib/js/window/theme.css
trunk/mawe/commonlib/js/window/theme1/
trunk/mawe/commonlib/js/window/theme1/bottom_left.gif (contents, props changed)
trunk/mawe/commonlib/js/window/theme1/bottom_mid.gif (contents, props changed)
trunk/mawe/commonlib/js/window/theme1/bottom_right.gif (contents, props changed)
trunk/mawe/commonlib/js/window/theme1/center_left.gif (contents, props changed)
trunk/mawe/commonlib/js/window/theme1/center_right.gif (contents, props changed)
trunk/mawe/commonlib/js/window/theme1/close.gif (contents, props changed)
trunk/mawe/commonlib/js/window/theme1/sizer.gif (contents, props changed)
trunk/mawe/commonlib/js/window/theme1/top_left.gif (contents, props changed)
trunk/mawe/commonlib/js/window/theme1/top_mid.gif (contents, props changed)
trunk/mawe/commonlib/js/window/theme1/top_right.gif (contents, props changed)
trunk/mawe/themes/mawe/images/
trunk/mawe/themes/mawe/images/help.png (contents, props changed)
Modified:
trunk/mawe/commonlib/php/FCKeditor/editor/filemanager/browser/default/connectors/php/config.php
trunk/mawe/commonlib/php/FCKeditor/editor/filemanager/upload/php/config.php
trunk/mawe/commonlib/php/FCKeditor/fckconfig.js
trunk/mawe/commonlib/php/maWeFunctions.php
trunk/mawe/login.php
trunk/mawe/themes/mawe/admin.mt
trunk/mawe/themes/mawe/head.mt
trunk/mawe/themes/mawe/login.mt
trunk/mawe/themes/mawe/style.css
Log:
ben gider..
Modified: trunk/mawe/commonlib/php/FCKeditor/editor/filemanager/browser/default/connectors/php/config.php
=================================================================
--- trunk/mawe/commonlib/php/FCKeditor/editor/filemanager/browser/default/connectors/php/config.php (original)
+++ trunk/mawe/commonlib/php/FCKeditor/editor/filemanager/browser/default/connectors/php/config.php Wed Apr 5 16:55:52 2006
@@ -24,7 +24,7 @@
$Config['Enabled'] = true ;
// Path to user files relative to the document root.
-$Config['UserFilesPath'] = '/pub/' ;
+$Config['UserFilesPath'] = '/temp/' ;
// Fill the following value it you prefer to specify the absolute path for the
// user files directory. Usefull if you are using a virtual directory, symbolic
Modified: trunk/mawe/commonlib/php/FCKeditor/editor/filemanager/upload/php/config.php
=================================================================
--- trunk/mawe/commonlib/php/FCKeditor/editor/filemanager/upload/php/config.php (original)
+++ trunk/mawe/commonlib/php/FCKeditor/editor/filemanager/upload/php/config.php Wed Apr 5 16:55:52 2006
@@ -21,10 +21,10 @@
global $Config ;
// SECURITY: You must explicitelly enable this "uploader".
-$Config['Enabled'] = true ;
+$Config['Enabled'] = false ;
// Path to uploaded files relative to the document root.
-$Config['UserFilesPath'] = '/pub/' ;
+$Config['UserFilesPath'] = '/temp/' ;
$Config['AllowedExtensions']['File'] = array() ;
$Config['DeniedExtensions']['File'] = array('php','php3','php5','phtml','asp','aspx','ascx','jsp','cfm','cfc','pl','bat','exe','dll','reg','cgi') ;
Modified: trunk/mawe/commonlib/php/FCKeditor/fckconfig.js
=================================================================
--- trunk/mawe/commonlib/php/FCKeditor/fckconfig.js (original)
+++ trunk/mawe/commonlib/php/FCKeditor/fckconfig.js Wed Apr 5 16:55:52 2006
@@ -29,7 +29,8 @@
FCKConfig.FullPage = false ;
FCKConfig.Debug = false ;
-FCKConfig.AllowQueryStringDebug = true ;
+
+FCKConfig.AllowQueryStringDebug = false ;
FCKConfig.SkinPath = FCKConfig.BasePath + 'skins/office2003/' ;
@@ -116,7 +117,7 @@
FCKConfig.LinkDlgHideAdvanced = false ;
FCKConfig.ImageDlgHideLink = false ;
-FCKConfig.ImageDlgHideAdvanced = false ;
+FCKConfig.ImageDlgHideAdvanced = true ;
FCKConfig.FlashDlgHideAdvanced = false ;
@@ -127,12 +128,12 @@
// inline when creating the editor instance. In that cases you must set the
// values of LinkBrowserURL, ImageBrowserURL and so on.
// Custom implementations should just ignore it.
-var _FileBrowserLanguage = 'asp' ; // asp | aspx | cfm | lasso | perl | php | py
+var _FileBrowserLanguage = 'php' ; // asp | aspx | cfm | lasso | perl | php | py
var _QuickUploadLanguage = 'asp' ; // asp | aspx | cfm | lasso | php
// Don't care about the following line. It just calculates the correct connector
// extension to use for the default File Browser (Perl uses "cgi").
-var _FileBrowserExtension = _FileBrowserLanguage == 'perl' ? 'cgi' : _FileBrowserLanguage ;
+var _FileBrowserExtension = _FileBrowserLanguage;
FCKConfig.LinkBrowser = true ;
FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Connector=connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension ;
@@ -140,7 +141,7 @@
FCKConfig.LinkBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ; // 70%
FCKConfig.ImageBrowser = true ;
-FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Image&Connector=connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension ;
+FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'editor/filemanager/browser/default/browser.html?Type=Image&Connector=connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension ;
FCKConfig.ImageBrowserWindowWidth = FCKConfig.ScreenWidth * 0.7 ; // 70% ;
FCKConfig.ImageBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ; // 70% ;
@@ -154,12 +155,12 @@
FCKConfig.LinkUploadAllowedExtensions = "" ; // empty for all
FCKConfig.LinkUploadDeniedExtensions = ".(php|php3|php5|phtml|asp|aspx|ascx|jsp|cfm|cfc|pl|bat|exe|dll|reg|cgi)$" ; // empty for no one
-FCKConfig.ImageUpload = true ;
+FCKConfig.ImageUpload = false ;
FCKConfig.ImageUploadURL = FCKConfig.BasePath + 'filemanager/upload/' + FCKConfig.QuickUploadLanguage + '/upload.' + _QuickUploadLanguage + '?Type=Image' ;
FCKConfig.ImageUploadAllowedExtensions = ".(jpg|gif|jpeg|png)$" ; // empty for all
FCKConfig.ImageUploadDeniedExtensions = "" ; // empty for no one
-FCKConfig.FlashUpload = true ;
+FCKConfig.FlashUpload = false ;
FCKConfig.FlashUploadURL = FCKConfig.BasePath + 'filemanager/upload/' + FCKConfig.QuickUploadLanguage + '/upload.' + _QuickUploadLanguage + '?Type=Flash' ;
FCKConfig.FlashUploadAllowedExtensions = ".(swf|fla)$" ; // empty for all
FCKConfig.FlashUploadDeniedExtensions = "" ; // empty for no one
@@ -170,4 +171,4 @@
FCKConfig.SmileyWindowWidth = 320 ;
FCKConfig.SmileyWindowHeight = 240 ;
-if( window.console ) window.console.log( 'Config is loaded!' ) ; // @Packager.Compactor.RemoveLine
\ No newline at end of file
+if( window.console ) window.console.log( 'Config is loaded!' ) ; // @Packager.Compactor.RemoveLine
Modified: trunk/mawe/commonlib/php/maWeFunctions.php
=================================================================
--- trunk/mawe/commonlib/php/maWeFunctions.php (original)
+++ trunk/mawe/commonlib/php/maWeFunctions.php Wed Apr 5 16:55:52 2006
@@ -100,7 +100,7 @@
$maWeFCK->Height = '500px';
$maWeFCK->Width = '100%';
$maWeFCK->ToolbarCanCollapse = true;
-
+
if ($Value<>"")
$maWeFCK->Value = $Value;
@@ -163,6 +163,14 @@
@session_register($key);
return true;
}
+
+ function maWeGet($Table, $Field="", $Value="") {
+ global $db;
+ $Field <> "" ? $Add = "WHERE $Field = '$Value'": $Add = "";
+ $sql = "SELECT * FROM {$db['DbPrefix']}$Table ".$Add;
+ return perform_sql($sql);
+ }
+
/** Misc Functions END **/
?>
Modified: trunk/mawe/login.php
=================================================================
--- trunk/mawe/login.php (original)
+++ trunk/mawe/login.php Wed Apr 5 16:55:52 2006
@@ -38,7 +38,14 @@
* Check and start or die.
*/
if ($Control){
- maWeSetSmartyVar("FCK",maWeShowFCK());
+ $Pages = maWeGet('Pages');
+
+ maWeSetSmartyVar("PageList", maWeGet('Pages'));
+
+ if (is_numeric($G['edit'])) $Value = maWeGet('Pages','ID',$G['edit']);
+ maWeSetSmartyVar("PageTitle",$Value[0]['PageTitle']);
+ maWeSetSmartyVar("FCK",maWeShowFCK($Value[0]['PageBody']));
+
maWeShowSmarty('admin.mt');
}
else
Modified: trunk/mawe/themes/mawe/admin.mt
=================================================================
--- trunk/mawe/themes/mawe/admin.mt (original)
+++ trunk/mawe/themes/mawe/admin.mt Wed Apr 5 16:55:52 2006
@@ -1,9 +1,62 @@
{include file="head.mt"}
+<div class="menu"><a href="?quit">Exit</a> • <a href="javascript:win.show();">Page List</a> • <a href="javascript:hola();">ist</a></div>
+<div id="loginbox">
+ {literal}
+
+ <script>
+ win = new Window('dialog', {className: "dialog", right:30, width:160, height:130, zIndex: 100, resizable: false, title: "Page List", hideEffect: Effect.SwitchOff})
+ win.getContent().innerHTML=
+ "{/literal}<div style='padding:8px;'><b>Const Pages</b><br><li><a href=?edit=1>Main Page</a><br>{section name=node loop=$PageList}<a href=?edit={$PageList[node].ID}>{$PageList[node].PageTitle}</a><br>{/section}</div>{literal}"
+ win.show();
+
+ help = new Window('help', {className: "dialog", width:220, height:100, zIndex: 100, resizable: false, title: "Help", hideEffect: Effect.SwitchOff})
+ help.getContent().innerHTML= "<b> Header of Page </b><br>This will be the link of page, do not use any sepcial character or space !"
+
+ </script>
+
+ <script type="text/javascript" src="commonlib/php/FCKeditor/fckeditor.js"></script>
+ <script type="text/javascript">
+
+ window.onload = function()
+ {
+ var oFCKeditor = new FCKeditor( 'hede' ) ;
+ oFCKeditor.BasePath = "commonlib/php/FCKeditor/" ;
+ oFCKeditor.Value = "memeooo";
+ oFCKeditor.ReplaceTextarea();
+ }
+ </script>
+
+<script>
+
+
+ function hola(){
+
+// var fck = document.getElementById('maWeFCKeditor');
+ var fck2 = document.getElementById('hede');
+// fck.value = "kokok";
+// alert (fck.value);
+ fck2.value = "memeooo";
+
+ alert (fck2.value);
+
+ }
+ document.onload= hola;
+</script>
+ {/literal}
<form action="login.php" method="post">
<fieldset id="maWeMain" style="width: 740px;">
<legend>and the editor redesigned ..</legend>
- {$FCK}
+ <span style="float:left;">
+ <label for ="maWeTitle">Header of Page : </label>
+ <input type="text" name="maWeTitle" value="{$PageTitle}" />
+ <a href="javascript:help.showCenter();"><img src="{$maWe.Path}images/help.png" /></a>
+ </span>
+ <span style="float: right;margin-right:1px;">
+ <input type="submit" name="maWeDoDoc" value="Update" />
+ </span>
+<!-- {$FCK} -->
+ <textarea id="hede" name="hede"></textarea>
</fieldset>
</form>
Modified: trunk/mawe/themes/mawe/head.mt
=================================================================
--- trunk/mawe/themes/mawe/head.mt (original)
+++ trunk/mawe/themes/mawe/head.mt Wed Apr 5 16:55:52 2006
@@ -11,10 +11,17 @@
<head>
<title>{$maWe.Title}</title>
<meta http-equiv="Content-Type" content="text/html; charset={$maWe.CharSet}" />
+
<link rel="stylesheet" href="{$maWe.Path}style.css" type="text/css" media="screen" />
+ <link rel="stylesheet" href="commonlib/js/window/default.css" type="text/css" />
+ <link rel="stylesheet" href="commonlib/js/window/theme.css" type="text/css" />
+
<script src="commonlib/js/prototype.js"></script>
+ <script src="commonlib/js/effects.js"></script>
+ <script src="commonlib/js/window.js"></script>
+
</head>
<body>
<center>
- <div id="loginbox">
\ No newline at end of file
+
Modified: trunk/mawe/themes/mawe/login.mt
=================================================================
--- trunk/mawe/themes/mawe/login.mt (original)
+++ trunk/mawe/themes/mawe/login.mt Wed Apr 5 16:55:52 2006
@@ -1,4 +1,5 @@
{include file="head.mt"}
+<div id="loginbox">
{if $error}{assign var="errorstyle" value="style='border: 1px solid #FF0000';"}{/if}
<form action="login.php" method="post">
<fieldset id="loginFieldSet" style="width: 300px;">
Modified: trunk/mawe/themes/mawe/style.css
=================================================================
--- trunk/mawe/themes/mawe/style.css (original)
+++ trunk/mawe/themes/mawe/style.css Wed Apr 5 16:55:52 2006
@@ -17,6 +17,7 @@
padding-left: .5em;
padding-right: .5em;
border: 1px solid #d3d7cf;
+ margin-bottom:8px;
}
label {
@@ -29,7 +30,7 @@
}
#loginbox {
- margin-top:30px;
+ margin-top:5px;
}
.label {
@@ -42,4 +43,30 @@
.bebox {
margin:10px;
+}
+
+.menu {
+ width:740px;
+ border: 1px solid #d3d7cf;
+ text-align:left;
+}
+
+a {
+ text-decoration:none;
+}
+
+a:visited {
+ color: blue;
+}
+
+.help {
+ font-family: Tahoma, Arial, Sans Serif;
+ font-size: 10px;
+ font-style: italic;
+ color: gray;
+}
+
+img {
+ border:0px;
+ vertical-align:middle;
}
\ No newline at end of file
Uludag-commits mesaj listesiyle ilgili
daha fazla bilgi