[Projeler-commits] r172 - in pw: . scripts

projeler-uludag at uludag.org.tr projeler-uludag at uludag.org.tr
29 Eyl 2006 Cum 16:46:34 EEST


Author: gokmen.goksel
Date: Fri Sep 29 16:46:34 2006
New Revision: 172

Modified:
   pw/proc.php
   pw/request.php
   pw/scripts/script.php
Log:
let me dance ...

Modified: pw/proc.php
=================================================================
--- pw/proc.php	(original)
+++ pw/proc.php	Fri Sep 29 16:46:34 2006
@@ -53,17 +53,7 @@
         <td id="main">
             <input type="text" id="baslik" />
             <input type="text" id="gbaslik" style="float:left"/>
-            <select id="parent" >
-              <option value ="B">Bireysel</option>
-              <option value ="K">Kurumsal</option>
-              <option value ="G">Geliştirici</option>
-              <option value ="M">Ana Sayfa</option>
-              <option value ="P">Basin</option>
-            </select>
-            <select id="ptype" >
-              <option value ="P">Sayfa</option>
-              <option value ="D">Döküman</option>
-            </select>
+            <input type="text" id="modules" style="float:left"/>
             <select id="plang" >
               <option value ="TR">Türkçe</option>
               <option value ="EN">English</option>

Modified: pw/request.php
=================================================================
--- pw/request.php	(original)
+++ pw/request.php	Fri Sep 29 16:46:34 2006
@@ -29,9 +29,8 @@
         echo "\n<pidp>".$Temp[0]['ID']."</pidp>";
         echo "\n<title>".$Temp[0]['Title']."</title>";
         echo "\n<ntitle>".$Temp[0]['NiceTitle']."</ntitle>";
+        echo "\n<modules>".$Temp[0]['Modules']."</modules>";
         echo "\n<content>".htmlspecialchars($Temp[0]['Content'])."</content>";
-        echo "\n<parent>".array_search($Temp[0]['Parent'],$Parents)."</parent>";
-        echo "\n<ptype>".array_search($Temp[0]['PType'],$Ptypes)."</ptype>";
         echo "\n<plang>".array_search($Temp[0]['Lang'],$Plangs)."</plang>";
         echo "\n<dblog>".htmlspecialchars($Temp[0]['dblogs'])."</dblog>";
         echo "\n</Page>";
@@ -47,11 +46,9 @@
     }
 
     if (is_numeric($_POST['PageID'])) {
-        // FIXME Not Stable !?
-        //$_POST['Content'] = html_entity_decode($_POST['Content']);
-
+        $_POST["Modules"]=strtoupper($_POST["Modules"]);
         if ($_POST['PageID']==0){
-            $Values = Array ($_POST['Title'],$_POST['NiceTitle'],$_POST['Content'],$_POST['Parent'],$_POST['Ptype'],$_POST['Plang']);
+            $Values = Array ($_POST['Title'],$_POST['NiceTitle'],$_POST['Content'],$_POST['Modules'],$_POST['Plang']);
             $TID = $PP->InsertRecord($TableA,$Pages,$Values);
             $Temp = $PP->GetRecord($TableA,'*',$TID);
         }
@@ -59,8 +56,7 @@
             $PP->UpdateField($TableA,'Content',$_POST['Content'],$_POST['PageID']);
             $PP->UpdateField($TableA,'Title',$_POST['Title'],$_POST['PageID']);
             $PP->UpdateField($TableA,'NiceTitle',$_POST['NiceTitle'],$_POST['PageID']);
-            $PP->UpdateField($TableA,'Parent',$_POST['Parent'],$_POST['PageID']);
-            $PP->UpdateField($TableA,'Ptype',$_POST['Ptype'],$_POST['PageID']);
+            $PP->UpdateField($TableA,'Modules',$_POST['Modules'],$_POST['PageID']);
             $PP->UpdateField($TableA,'Lang',$_POST['Plang'],$_POST['PageID']);
             $Temp = $PP->GetRecord($TableA,'*',$_POST['PageID']);
         }

Modified: pw/scripts/script.php
=================================================================
--- pw/scripts/script.php	(original)
+++ pw/scripts/script.php	Fri Sep 29 16:46:34 2006
@@ -45,7 +45,7 @@
             Element.show('over');
             var url ='request.php';
             var _content = encodeURIComponent($('editor').value);
-            var linke = 'PageID='+nid+'&Title='+$('baslik').value+'&NiceTitle='+$('gbaslik').value+'&Parent='+$('parent').value+'&Ptype='+$('ptype').value+'&Plang='+$('plang').value+'&Content='+_content;
+            var linke = 'PageID='+nid+'&Title='+$('baslik').value+'&NiceTitle='+$('gbaslik').value+'&Modules='+$('modules').value+'&Plang='+$('plang').value+'&Content='+_content;
             //alert (linke);
             var AjaxPointer = new Ajax.Request(
                 url,
@@ -66,8 +66,7 @@
             $('ayrintilar').innerHTML   = root.getElementsByTagName('dblog').item(0).textContent;
             $('baslik').value           = root.getElementsByTagName('title').item(0).textContent;
             $('gbaslik').value          = root.getElementsByTagName('ntitle').item(0).textContent;
-            $('parent').selectedIndex   = root.getElementsByTagName('parent').item(0).textContent;
-            $('ptype').selectedIndex    = root.getElementsByTagName('ptype').item(0).textContent;
+            $('modules').value          = root.getElementsByTagName('modules').item(0).textContent;
             $('plang').selectedIndex    = root.getElementsByTagName('plang').item(0).textContent;
 
             pidp = root.getElementsByTagName('pidp').item(0).textContent;
@@ -81,9 +80,8 @@
             $('editor').innerHTML = $('editor').value;
             $('baslik').value = "";
             $('gbaslik').value = "";
+            $('modules').value = "";
             $('toolbar').innerHTML ="";
-            $('parent').selectedIndex = 0;
-            $('ptype').selectedIndex = 0;
             $('plang').selectedIndex = 0;
             $('ayrintilar').innerHTML = "";
         }



Projeler-commits mesaj listesiyle ilgili daha fazla bilgi